-
1. Re: Problem with selection on extendedDataTable built with c:forEach
paul.dijou May 7, 2012 7:48 AM (in response to quajo)I'm really sorry to say that, but you should not use "<c:forEach>" inside an extendedDataTable. JSTL tags like "<c:forEach>" are not part of the JSF lifecycle and are evaluated only once when the page is loaded, any JSF Ajax will no impact them for what I know.
Have you consider using "<rich:columns>" tag instead of "<c:forEach>" ? Or "<a4j:repeat>" ?
-
2. Re: Problem with selection on extendedDataTable built with c:forEach
quajo May 9, 2012 7:22 AM (in response to paul.dijou)Hi Paul, Thanks for your answer. I´m trying doing it now with<a4j:repeat> but nothing is shown:
<rich:extendedDataTable value="#{exttable.actas}" var="act"
id="actasList">
<a4j:repeat value="#{exttable.columns}" var="vcol">
<rich:column>
<f:facet name="header">
<h:outputText value="#{act[vcol.cabecera]}" />
</f:facet>
<h:outputText value="#{act[vcol.valor]}" />
</rich:column>
</a4j:repeat>
</rich:extendedDataTable>
I don´t know why it´s not working. I´ve read in this old post: https://community.jboss.org/message/521751, that this way of create dynamic columns was in preparation, I don´t know if it´s ready. Any way of showing the change of columns if the structure of objects in the list below changes and different columns has to be shown?
-
3. Re: Problem with selection on extendedDataTable built with c:forEach
paul.dijou May 9, 2012 7:41 AM (in response to quajo)If you are using RichFaces 3.x, go with <rich:columns>.
If you are using RichFaces 4.x.... ... ... <c:forEach> is the only way I know, right now, to have dynamic columns in this version (I was hoping that <a4j:repeat> would work, but no... I guess <ui:repeat> will not work either). The problem is that <c:forEach> will not like JSF ajax.
I will bring the problem to the next RichFaces meeting and will provide you feedback. Don't hesitate to spam me if no news before the end of next week.
Regards,
-
4. Re: Problem with selection on extendedDataTable built with c:forEach
quajo May 9, 2012 7:54 AM (in response to paul.dijou)Thanks Paul, I´m using richfaces 4.2, so I´ll be waiting for some news.
Thanks again!
-
5. Re: Problem with selection on extendedDataTable built with c:forEach
ringodw Apr 16, 2014 12:03 PM (in response to quajo)Hi all! Does someone have a workaround for this? We are using 4.3.5, and have an EDT with dynamic columns using <c:forEach>. The row selection seems to work with a F5 refresh like above. Getting desperate, but even a JS call to refresh using window.location.reload() on our table search button is not working consistently...