3 Replies Latest reply on Jul 7, 2010 7:09 AM by Manu Gowda

    Select One Menu  onchange inside column

    totti franc Newbie
               <rich:column>
                  <f:facet name="header">
                          <h:outputText   value="Status" />
                      </f:facet>
                      
                      
                      <h:selectOneMenu   id="statscodes"  disabled="#{events.occurred}"   value="#{item.statusCode}" >
      <f:selectItems value="#{events.eventItems}" />
      <a4j:support event="onchange"   reRender="appTablet,panel"  action="#{events.modify}" ></a4j:support>
      </h:selectOneMenu>
                 
                   
                  </rich:column>
                 
      
      

       

       

      I have selectonemnu inside a table. I want on change to rerender the table.. plus ofcourse the value be submitted on change.

       

      its not working above? anyone got solution?    

        • 1. Re: Select One Menu  onchange inside column
          Nick Belaevski Master

          Hi,

           

          Try removing disabled attribute. Also check FAQ page for problems diagnostics steps: http://community.jboss.org/docs/DOC-13788

          • 2. Re: Select One Menu  onchange inside column
            totti franc Newbie

            I need to use that, its a must.

             

             

            <rich:column>
                        <f:facet name="header">
                                <h:outputText   value="Status" />
                            </f:facet>
                            
                
                    <h:selectOneMenu   id="statscodes"  disabled="#{events.occurred}"   value="#{item.statusCode}">
                    <f:selectItems value="#{events.eventItems}" />
            <a4j:support event="onchange"   reRender="panel,appTablet" action="#{events.modify}"  ></a4j:support>
                    </h:selectOneMenu>
            
                    
            
                        </rich:column>
                        
                        
                        <rich:column id="col" >
                            <f:facet name="header">
                                <h:outputText styleClass="font"  value="Notification Date" />
                            </f:facet>
            
            
                             <rich:calendar rendered="#{item.disable}" id="dateusesd"  onchanged="checkTimes(this.value,this.id)" datePattern="dd-MMM-yyyy"    value="#{item.dateUsed}" cellWidth="24px" cellHeight="22px" style="width:200px"/>
                        </rich:column>
                        
                        <rich:column id="col2">
            
                                <f:facet name="header">
                                <h:outputText styleClass="font"  value="Event Date" />
                            </f:facet>
                            
            
                                 <rich:calendar   rendered="#{!item.disable}" id="occurred" onchanged="checkTime(this.value,this.id)"datePattern="dd-MMM-yyyy"    value="#{item.occurredDate}" cellWidth="24px" cellHeight="22px" style="width:200px"/>
                        </rich:column>

             

             

            what i need is on the change of selectmenu..i need to update the columns col, col2. or  the table if i cant update column.

            • 3. Re: Select One Menu  onchange inside column
              Manu Gowda Newbie

              instead of using a4j:support action  use  attribute valueChangeListener  with h:selectOneMenu and keep render attribute with <a4j:supportevent="onchange" reRender ="Ids"/>