-
1. No support for <rich:columns> in RF 4.0.0 CR1?
ilya_shaikovsky Mar 14, 2011 5:16 AM (in response to ahoehn)unfortunatelly out of Final scope. Will be migrated later. And for now could use just c:forEach with column as for any other components.
-
2. No support for <rich:columns> in RF 4.0.0 CR1?
ale4jsf Mar 17, 2011 12:56 PM (in response to ilya_shaikovsky)I tried to surround my <rich:column> with <c:foreach> but it didn't work.
Is there any other possibility to deal with this in RF4 ?
-
3. No support for <rich:columns> in RF 4.0.0 CR1?
nbelaevski Mar 17, 2011 2:28 PM (in response to ale4jsf)c:forEach should work. Please post page/bean code.
-
4. Re: No support for <rich:columns> in RF 4.0.0 CR1?
ale4jsf Mar 18, 2011 3:50 AM (in response to nbelaevski)Code of the xhtml-Page:
<rich:dataTable value="#{teamHandler.mitarbeiter}" var="m"> <rich:column> <f:facet name="header">Mitarbeiter</f:facet> <h:outputText value="#{m.name}" /> </rich:column> <c:forEach items="#{datumsHandler.span}" var="d"> <rich:column> <f:facet name="header"> <h:outputText value="d" /> </f:facet> <h:outputText value="-" /> </rich:column> </c:forEach> </rich:dataTable>
teamHandler.mitarbeiter <- ArrayList of my class Mitarbeiter (m.getName() returns a String)
datumsHandler.span <- ArrayList of Strings
I can ensure that the data produced by the managed beans are correct.
(creating a simple html-table with two <a4j:repeat>-Tags works fine)
-
5. Re: No support for <rich:columns> in RF 4.0.0 CR1?
nbelaevski Mar 18, 2011 4:17 AM (in response to ale4jsf)How does namespace for c:* tags is declared?
-
6. No support for <rich:columns> in RF 4.0.0 CR1?
ale4jsf Mar 18, 2011 4:24 AM (in response to nbelaevski)xmlns:c="http://java.sun.com/jsp/jstl/core"
-
7. No support for <rich:columns> in RF 4.0.0 CR1?
nbelaevski Mar 18, 2011 8:06 AM (in response to ale4jsf)Checked and works for me. Can you please prepare example application reproducing the problem?
-
8. No support for <rich:columns> in RF 4.0.0 CR1?
ale4jsf Mar 18, 2011 8:56 AM (in response to nbelaevski)now it does work - thanks a lot !
(my namespace in the specific file was corrupted - respect that you detected this without having the appropriate code)
-
9. No support for <rich:columns> in RF 4.0.0 CR1?
palacete Mar 30, 2011 12:55 PM (in response to ahoehn)Will this work with some kind of input field in the columns?
-
10. No support for <rich:columns> in RF 4.0.0 CR1?
ilya_shaikovsky Mar 31, 2011 3:50 AM (in response to palacete)yup.. should be no problem.
-
11. No support for <rich:columns> in RF 4.0.0 CR1?
ahoehn Mar 31, 2011 8:50 AM (in response to ahoehn)hmm have tried the following and it's not functioning:
<rich:dataTable value="#{listOfRows}" var="myRow" rowKeyVar="rowIndex">
<rich:column>
Rownnr#{rowIndex}
<c:if test="#{myRow != null}">
is not null for jstl
</c:if>
</rich:column>
</rich:dataTable>
Is something wrong in my code or is there no way (because of rendering jstl earlier than rich:dataTable) to access the var of the rich:dataTable with jstl?
-
12. No support for <rich:columns> in RF 4.0.0 CR1?
palacete Mar 31, 2011 9:42 AM (in response to ilya_shaikovsky)One problem seems to be that @ViewScoped breaks when any UIComponent is bound to the bean using binding attribute or when using JSTL <c:forEach> or <c:if> tags in the view.
I guess I'll wait until this is merged since I'm using @ViewScoped heavily. Any ideas of when it will happen?
Thanks!
-
13. No support for <rich:columns> in RF 4.0.0 CR1?
ilya_shaikovsky Apr 1, 2011 4:25 AM (in response to palacete)Component instances should not be bound to the objects which live longer the requests. And that's not a RichFaces limitation but just JSF known problem.
-
14. No support for <rich:columns> in RF 4.0.0 CR1?
ilya_shaikovsky Apr 1, 2011 4:27 AM (in response to ahoehn)That will not work.
c:if and dataTable evaluated at different lifecycle places. So var of the dataTable not accessible when c:if evaluates the condition.
changes to just rendered attribute usage.
if you using c:forEach for example to generate set of columns - it should be also pointed to some collection not using var expressiopn but directly.
http://www.ilikespam.com/jsf/c:foreach-vs-ui:repeat-in-facelets