1 Reply Latest reply on Jun 6, 2011 7:57 AM by ajanz

    Conversational components and JSF component

    ajanz
      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.