-
1. Re: How to ReRender table cells with ajax support?
alexsmirnov Jan 17, 2008 1:48 PM (in response to rulinsun)For a your case, scrollableDataGrid ( as far as a4j:repeater, rich:dataTable ) will update only active row by default.
So, simple set reRender="output1index,input2index".
For a more complex cases ( with updates of 2 or more rows ) your can set index values in the ajaxKeys attribute. -
2. Re: How to ReRender table cells with ajax support?
rulinsun Jan 17, 2008 2:49 PM (in response to rulinsun)Thanks for reply!
1) How to get the value of output1Index? (I just put a word there, it's not actual value).
2) I looked generated html source, and hard coded the ReRender="editForm:editTable:bc_0_2" which is the Id value of the output1 in first row, but the field was not updated after ajax call. -
3. Re: How to ReRender table cells with ajax support?
alexsmirnov Jan 17, 2008 3:04 PM (in response to rulinsun)Set exact id values for a all updatable components, and point this id's in the reRender parameters :
<rich:column> <f:facet name="header"> <h:outputText value="Input1"/> </f:facet> <f:facet name="footer"> <h:outputText value="#{Controller.totalInput1}"/> </f:facet> <h:inputText id="input1" value="#{entry.input1}" > <a4j:support actionListener="{Controller.updateEntry}" event="onblur" reRender="output1, input2"> </a4j:support> </h:inputText> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Value2"/> </f:facet> <f:facet name="footer"> <h:outputText value="#{Controller.totalOutput1}"/> </f:facet> <h:outputText id="output1" value="#{entry.output1}" > </h:inputText> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Input2"/> </f:facet> <f:facet name="footer"> <h:outputText value="#{Controller.totalInput2}"/> </f:facet> <h:inputText id="input2" value="#{entry.input1}" > </h:inputText> </rich:column>
-
4. Re: How to ReRender table cells with ajax support?
rulinsun Jan 18, 2008 8:48 AM (in response to rulinsun)This doesn't work. I am working with a scrollableDataTable.
Thanks anyway! -
5. Re: How to ReRender table cells with ajax support?
rulinsun Jan 22, 2008 2:51 PM (in response to rulinsun)I still can't make this work.
Anyone has experience to reRender only table cells in scrollableTable? -
6. Re: How to ReRender table cells with ajax support?
sergeyhalipov Jan 23, 2008 9:30 AM (in response to rulinsun)Jira issue http://jira.jboss.com/jira/browse/RF-1999 has been filed.