myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From delbd <>
Subject Re: Direct usage of myfaces out of a Java program and save/restoreState issues
Date Mon, 04 Sep 2006 18:44:30 GMT
Could you provide us with a sampel code of how you create your UIComponent?
Ulrich Teichert a écrit :
> Hi,
> suppose I want to create some UIComponents via Java, which are not listed
> in any template (for instance, creating a variable number of tabs inside
> a HtmlPanelTabbedPane).
> These components will be added to an existing tabbed pane (generated
> via a template from spring, to be exact).
> After some self-inflicted pain, I got them to show up just fine and my
> data inside the tabs (org.apache.myfaces.custom.tree2.HtmlTree) is displayed, but after
a save/restore cycle through going onto another page
> and coming back, nothing is there. I can see that I'm getting empty tabs
> set during the process in my bean, but that's it.
> Maybe I'm just trying something stupid? Or do I need to implement another interface as
"Serializable" as well in my bean? I would also happy for
> any hint where I should start debugging,
> thanks for any help,
> Uli

View raw message