This content has been marked as final.
Show 1 reply
-
1. Re: tabPanel - using the same page for the different tabs changing the content dinamically
schuck Feb 25, 2010 8:34 AM (in response to schuck)ok, the approach above worked out after a couple of tries using actionListener (I was not changing the correct attribute).
actionListener
1- it fires when the tab is selected
2-it grabs the managed bean through:
ManBean mb = (ManBean) context.getExternalContext().getSessionMap().get("manBean");
3- it modifies the managed bean which is the "value" in the extendedDataTable
4- important!: add a f:subview around each -ui:include- to avoid a "duplicate component ID" error!
Would you say there is a better approach for this?
Thanks.