I think Block/RenderBlock are what people normally use for things like this.
If you are doing tabs as previously mentioned you should check out the tassle project for tap3 or tacos for tap4. (Though from reading things you might actually be doing a wizard). On 7/25/06, Kosarev A.V. <[EMAIL PROTECTED]> wrote:
Hi all! What best way for switching between components? I next way can could use? Client.page: ... <component id="clientsList" type="ClientsList"> ... </component> <component id="clientEdit" type="ClientEdit"> ... </component> <component id="directEdit" type="DirectLink"> <binding name="listener" value="listener:editClient"/> <binding name="parameters" value="ognl:currentClient.id"/> </component> ... Client.html: ... <span jwcid="@If" condition="ognl:componentName == 'ClientsList'"> <span jwcid="clientsList"/> </span> <span jwcid="@If" condition="ognl:componentName == 'ClientEdit'"> <span jwcid="clientEdit"/> </span> ... Client.java: @Persist public abstract String getComponentName(); public abstract void setComponentName(String componentName); public void editClient(final long clientId) { this.setComponentName("ClientEdit"); ... } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.