-
1. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Nov 29, 2007 2:12 PM (in response to rulinsun)<rich:scrollableDataTable value="#{capitalsBean.capitals}" var="cap" width="300px" height="250px"> <f:facet name="header"> <h:outputText value="Table Header"></h:outputText> </f:facet> <rich:column> <f:facet name="header"> <h:outputText value="Column header 1"></h:outputText> </f:facet> <h:outputText value="#{cap.name}"/> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Column header 2"></h:outputText> </f:facet> <h:outputText value="#{cap.state}"/> </rich:column> <rich:column> <h:selectBooleanCheckbox value="#{cap.checked}"></h:selectBooleanCheckbox> </rich:column> </rich:scrollableDataTable> </a4j:outputPanel> <rich:panel> <h:commandButton value="delete selected" action="#{capitalsBean.deleteSelected}"/> </rich:panel>
andpublic String deleteSelected() { for (Iterator capital = capitals.iterator(); capital.hasNext();) { Capital cap = (Capital)capital.next(); if (cap.isChecked()){ capital.remove(); } } return null; }
Seems works fine for me or I missed something? -
2. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 29, 2007 2:26 PM (in response to rulinsun)What's the RichFaces version you have? I remember it worked before.
-
3. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Nov 29, 2007 2:36 PM (in response to rulinsun)yes sorry.. I've checked this under 3.1.3.. Now will check under latest 3.2.0.
Thanks! -
4. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Nov 29, 2007 3:12 PM (in response to rulinsun)hm... also works under 3.2.0 currently built..
-
5. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 29, 2007 3:17 PM (in response to rulinsun)I downloaded 3.1.3 11292007 snapshot. I only change dataTable, at least I can get new value. Anyway, let double check too.
Thanks! -
6. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 29, 2007 3:30 PM (in response to rulinsun)I tried again: only change dataTable back to scrollableDataTable. It dosen't work! 3.1.3 11292007 snapshot.
Can any third party do a test?
Thanks! -
7. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Nov 29, 2007 3:37 PM (in response to rulinsun)To speed up the process - create a bug in our jira - assign to me and put fully working war(with libs) sample and describe server and browser you've using. Also write step by steo instructions. I think this will be coimpletelly clear.
-
8. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 29, 2007 4:12 PM (in response to rulinsun)I can't do this in a short period. Right now, my project links a database server. I don't it will work if I just package the war file for you. I will create a simple project later on to demo this bug only.
Thanks! -
9. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Nov 30, 2007 8:28 AM (in response to rulinsun)B.t.w. http://jira.jboss.com/jira/browse/RF-1373.. seems about your bug.
-
10. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 30, 2007 9:18 AM (in response to rulinsun)I seems my problem since it works in another project. I am trying to figure out what's the problem, right now, as I said, as long as I change to dataTable it will work.
Thanks anyway!
Rulin -
11. Re: scrollableDataTable: New values of inputFields will not
rulinsun Nov 30, 2007 3:30 PM (in response to rulinsun)Still couldn't figure out, but I noticed the difference between dataTable and scrollableDataTable.
In the page source, the ids for a input field in different rows generated by scrollableDataTable are same in follow format:
formId:tableId:_idxx
But that generated by the dataTable are different:
formId:tableId:rowIndex:_idxx
I think this maybe the reason, could multiple input fields have same id?
Rulin -
12. Re: scrollableDataTable: New values of inputFields will not
ilya_shaikovsky Dec 3, 2007 7:06 AM (in response to rulinsun)Can't confirm this. In my sample inputs in defferent rows has ids like "form:j_id5:4:input" , "form:j_id5:5:input". j_id5 - is generated id for the table.
-
13. Re: scrollableDataTable: New values of inputFields will not
rulinsun Dec 3, 2007 3:43 PM (in response to rulinsun)I tried so many things and finally found the mystery solution by copying ilya' sample code in the early post!
After I add
<f:facet name="header">
<h:outputText value="Table Header"></h:outputText>
</f:facet>
before the first <rich:column .., it works, if remove them it doesn't work.
However, I created a small test project, in which, it worked with/without that's three line codes.
Thanks anyway! As long as it works, I am happy.