You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by 张启迪 <zh...@gmail.com> on 2006/09/29 16:27:47 UTC
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
Re: How to do this with tapestry 4?
Posted by Jun Tsai <ju...@gmail.com>.
You can use RenderBlock component to do this.
pls refer http://tapestry.apache.org/tapestry4.1/components/RenderBlock.html
Jun Tsai
2006/9/29, 张启迪 <zh...@gmail.com>:
>
> 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
>
>
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net
AW: How to do this with tapestry 4?
Posted by Michael Wölm <ma...@m-woelm.de>.
Or you encapsulate all of the components with a own if statements which validates if the component was chosen.
-----Ursprüngliche Nachricht-----
Von: 张启迪 [mailto:zhangqidi@gmail.com]
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org