-
1. Re: nested repeater not work?
sergeysmirnov Apr 27, 2007 10:29 AM (in response to edbras1)The code snippet you provided does not help to catch the source of the problem. Please post more code with two nested repeaters at least. The beans' structure might be useful as well.
-
2. Re: nested repeater not work?
edbras1 Apr 27, 2007 4:24 PM (in response to edbras1)I wanted to save you all the text....
Ok, here it is. I made a little test page to reproduce the error that makes it a bit more compact.
Below you find the xhtml form and the last part of the strack trace.
Please let me know what you need more ?
I hope you see anyting.
The stack trace:Caused by: javax.faces.el.EvaluationException: Bean: bla.ViewSubscriptionsOverviewDefault, property: memberSelected at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:461) at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85) at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141) at com.sun.el.parser.AstValue.getValue(AstValue.java:118) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) ... 58 more ... ... ... Caused by: java.lang.IllegalArgumentException: row is unavailable at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:66) at org.ajax4jsf.ajax.repeat.SequenceDataModel.getRowData(SequenceDataModel.java:147) at org.ajax4jsf.ajax.repeat.UIDataAdaptor.getRowData(UIDataAdaptor.java:230) at bla.ViewEntityRepeaterWizard.getSelectedEntity(ViewEntityRepeaterWizard.java:205) at bla.ViewSubscriptionsOverviewDefault.getMemberSelected(ViewSubscriptionsOverviewDefault.java:197)
The xhtml:<jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:a4j="https://ajax4jsf.dev.java.net/ajax" xmlns:ui="http://java.sun.com/jsf/facelets"> <h:form> <table cellpadding="0" cellspacing="0" class="wizardListTable"> <tbody> <a4j:repeat binding="#{wizardList.repeater}" ajaxKeys="#{wizardList.updateKeys}" value="#{wizardList.list}" var="props"> <tr> <td class="wizardListExpandCell"> <a4j:commandLink value="+/-" action="#{wizardList.selectItem}" reRender="details" limitToList="true" immediate="true"> </a4j:commandLink> </td> <td class="wizardListNestedCell"> <h:panelGroup id="details"> <!-- BEGIN: The Collapsed part --> <h:panelGroup rendered="#{not wizardList.selected}"> <h:outputText>Collapsed</h:outputText> </h:panelGroup> <!-- END: The Collapsed part --> <!-- BEGIN: The Expanded part --> <h:panelGroup rendered="#{wizardList.selected}"> <a4j:repeat value="#{wizardList.memberSelected.userProperties.userPropertiesWrapped}" var="uProp"> <h:outputText value="#{uProp.userProperty.userPropertyName.name}" /> </a4j:repeat> </h:panelGroup> <!-- END: The Expanded part --> </h:panelGroup> </td> </tr> </a4j:repeat> </tbody> </table> </h:form> </jsp:root>
-
3. Re: nested repeater not work?
edbras1 Apr 30, 2007 4:52 PM (in response to edbras1)Yeee, sometimes I "can solve" something myself...
I solved it by basicaly just checking if the row of the repeater is available. If not just returing null and deal with it...
I stil find it strange that the row isn't available.. but I found out that sometimes it's better no try to understand everything yet.... of JSF.. ;) -
-
5. Re: nested repeater not work?
sergeysmirnov May 2, 2007 7:05 PM (in response to edbras1)you need to replace h:form with a4j:form at least.
-
6. Re: nested repeater not work?
edbras1 May 3, 2007 9:38 AM (in response to edbras1)But I use h:form as you can see in the above...
-
7. Re: nested repeater not work?
edbras1 May 3, 2007 9:39 AM (in response to edbras1)Owww.. sjit... sorry.. I was doing toooo many things at the same time... And didn't read your post wel..
SOrry...