0 Replies Latest reply on May 30, 2008 3:03 AM by rafaeljjg

    Insert f:setPropertyActionListener objetc into richfaces:pan

    rafaeljjg

      I want to add a f:setPropertyActionListener component into a rich:panelMenuItem by java code

      I can make it into JSP code but I don't know how to make it with java, the JSP code is:

      <rich:panelMenuItem action="#{Bean.action}" mode="server">
      <f:setPropertyActionListener target="#{bean.data}" value="#{bean2.value}">
      </rich:paneMenuItem>


      I think that Java code must be something similar to:
      HtmlPanelMemnu item = new HtmlPanelMenuItem();
      SetPropertyActionListener li = new SetPropertyActionListener ();
      item.getChildren().add(li);


      This code not compile because SetPropertyActionListener isn't a UIComponent.

      Someone can helpme?