-
1. Re: rich:columns footer problem
ilya_shaikovsky Feb 11, 2010 7:34 AM (in response to zjda)could you please provide sample in war(with java sources)? checked under simple test-apps with just column and controls and footer - seems works. -
2. Re: rich:columns footer problem
zjda Feb 12, 2010 10:27 PM (in response to ilya_shaikovsky)Hi Ilya,
Thank you for looking at the issue. I created a simple test code for you to reproduce the problem. It includes a jsp file and a java class for the back bean as attached. And you need to add the following config:
<managed-bean>
<managed-bean-name>testTable</managed-bean-name>
<managed-bean-class>
test.ObjectTableModel
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>Set a break point inside the method setFilterName(String filterName) of ObjectTableModel.java, you will see that it will be called only once when clicking the links in the footer.
I am using RF3.3.3-20091106.214036-25. If you need more information, please let me know.
Again, thank you very much.
-ZJ
-
ObjectTableModel.java.zip 1.2 KB
-
tableFooter.jsp.zip 1.1 KB
-
-
3. Re: rich:columns footer problem
zjda Feb 28, 2010 7:41 PM (in response to zjda)Hi Ilya,
Are you able to reproduce the problem with my soure files? I attach the war file in case you want it. After you deploy the war file, you can point you browser to
http://localhost:8080/rftest/faces/tableFooter.jsp
It includes source files and uses richfaces 3.3.3.CR1. First time when you click a link in the fotter, setFilterName(String filterName) in the back bean is called. Then it is never called anymore unless you refresh the whole page.
Please let me know if there is a solution/workaround.
Thanks,
-ZJ
-
rftest.war 9.1 MB
-
-
4. Re: rich:columns footer problem
ilya_shaikovsky Mar 1, 2010 7:02 AM (in response to zjda)Define id explicitly for links. As columns recerated at every requests links has the other Id's after the first and you not rerender table so on next request action event just populated wrong. But re-render the table seems not a good solution so better to use :
<a4j:commandLink id="link#{index}"
minor problems
1) do not define Filter for RF twice.
2) do not add two richfaces-impl jars. Use only one for jsf 1.2
-
5. Re: rich:columns footer problem
zjda Mar 5, 2010 12:22 PM (in response to ilya_shaikovsky)Thanks, Ilya.
It seems that I also need to remove the <a4j:region> around the <a4j:commandLink>.
Again, your help is appreciated.
-ZJ