Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
All Places
>
Seam
>
Seam 2
>
Discussions
Please enter a title.
You can not post a blank message. Please type your message and try again.
Body
This project is read only now.
1 Reply
Latest reply
on Jun 6, 2011 7:57 AM by ajanz
Conversational components and JSF component
ajanz
Jun 6, 2011 7:56 AM
i use a session bean, which has two components with a binding, under which i create the componenttree dynamically.
@Name("Session")
@Scope(ScopeType.SESSION)
class MySession {
HtmlPanelGroup group=new HtmlPanelGroup();
setter/getter
}
now i read the part in the reference manual about "Conversational components and JSF component"
so i wanted to switch, but got trouble to make it work.
i removed "group" from MySession
Wrote Event Scoped Class
@Name("panelgroup")
@Scope(ScopeType.EVENT)
class PanelGroup{
HtmlPanelGroup grp= new HtmlPanelGroup();
// setter /getter
}
and added
@In(required=false)
PanelGroup panelgroup;
to mySession
but this doesn't work.
Whate must i write on xhtml?
#{MySession.panelgroup.grp}
or
#{panelgroup.grp}?
Where must the tree be created? and where to store?
Creating the tree in every getter from PanelGroup seems not an option.
This content has been marked as final.
Show 1 reply
1.
Re: Conversational components and JSF component
ajanz
Jun 6, 2011 7:57 AM
(
in response to ajanz
)
Conversational components and JSF component binding!
sorry....
binding
was missing