This content has been marked as final.
Show 3 replies
-
1. Re: Select One Menu onchange inside column
nbelaevski Jul 5, 2010 5:54 PM (in response to francescototti)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
francescototti Jul 6, 2010 6:09 AM (in response to nbelaevski)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
dgmanu Jul 7, 2010 7:09 AM (in response to francescototti)instead of using a4j:support action use attribute valueChangeListener with h:selectOneMenu and keep render attribute with <a4j:supportevent="onchange" reRender ="Ids"/>