Hello! I have just started working with tapestry. I m having some problems with tapestry If component. here are some. 1- Some help materail required ... Like examples and etc. 2- How to check Conditions like ( a==10 && b ==20)in If component? 3- How to use if-else-if? ... If any... -- 4- How can i restrict my @For component to specific number of iterations? 5- How can i see that which no of iteration is it going? I mean ...like in java for(int i ...) through i I can see which iteration is going.... (Please see the files code in the end..)
Your guidance Required... Thnaks You.. Ahsan Jamshaid..
HTML file ---------- <div jwcid="Messages"> // Market is a for component <span jwcid="@If" condition="ognl:currentIndex.messageType == 'Market' "> <p class="topic" jwcid="@Insert" value="ognl:currentIndex.messageText"> The Guru's Corner: Fear creates opportunities</p> </span>