This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

@if component Tapestry

Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 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>

Componnet File

<property name="currentIndex"/>

<component id="Messages" type="For">
<binding name="source" value="messageList"/>
<binding name="value" value="currentIndex"/>

<component id="type" type="Insert">
<binding name="value" value="currentIndex.messageType"/>

<component id="text" type="Insert">
<binding name="value" value="currentIndex.messageText"/>
I'm still in control here. LOOK at this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!