Or you encapsulate all of the components with a own if statements which 
validates if the component was chosen. 

-----Ursprüngliche Nachricht-----
Von: 张启迪 [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 29. September 2006 16:28
An: Tapestry users
Betreff: How to do this with tapestry 4?

For example, there is a page named PA, which contains 10 components 
(BaseComponent). We name these components as C1,C2,...,C10. Let's assume that 
C1 prints "C1",C2 prints "C2",C3 prints "C3", etc.

I have another page named PB which contains a form. Users can input a string 
which includes a serial of component names, such as "C1-C2-C3-C2-C3-C2-C2-C3".

Requirements: If a user input a string in page PB, then jump to page PA and 
render PA with those components. For example, if the user input 
"C1-C2-C3-C2-C3-C2-C2-C3", then PA should dynamically render 8 components and 
the result html text is "C1-C2-C3-C2-C3-C2-C2-C3" too.

Thanks.

Qidi


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

Reply via email to