Hi Peter,

here is the easiest solution:
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/If.html

put in your page something like this:

<span jwcid="@If"  condition="ognl:theCondition">
   ....
</span>
Now you got to implement the "isTheConditon()" in your java-code (in the Page).



Dynamic number of components:
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/For.html



I dont know if it is what you want to know.
Look in the componentreference.....


Rudolf B.



Peter Verhoye wrote:
Hi all,

It happens sometimes that I'm starting to think of new interesting
projects to create myself. Since I've recently discovered Tapestry, I
wanted to do something with it. However, I have a problem for which I
haven't found a solution yet.

Let's say you have a page on which you want to display a non-predefined
number of components and that the location for them on that page is not
defined also.

I guess the later you could do by somehow changing the css style of the
page at runtime.

But how would you do the former? Is it possible to dynamically add
components to a page?

Any help or discussion would be greatly appreciated :-)

BB
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to