2 Replies Latest reply on Jun 11, 2009 7:14 AM by Zaferullah Khan

    Binding form values to backing bean property when using rich

    Zaferullah Khan Newbie

      Hi All,
      I am facing issue with binding form values to backing bean properties specifically when using rich:modalPanel. The value are not submitted on richfaces event. The <h:form> tag is in place. The following is the code.

      Parent page

      <ui:composition .....>
       <ui:composition template="templates.xhtml">
       <ui:define name="title">Popup</ui:define>
       <ui:define name="header">
       <ui:define name="footer">
       <ui:define name="body">
       <ui:include src="/LookUp.xhtml" />
       <a onclick="Richfaces.showModalPanel('lookupPanel');" href="#">Show</a>

      Popup page. LookUp.xhtml
      <rich:modalPanel id="lookupPanel">
      <h:selectOneMenu value=#{bean.beanProperty}>
      <f:selectItems value="#{bean.selectItemList}"/>
      <a4j:support event="onchange" action="#{bean.actionMethod}"/>

      Here the form value of dropdown is not set to beanProperty for an onchange event. Appreciate your inputs on this.