-
1. Re: problems with rich:datascroller
giacomino Jul 4, 2009 10:02 AM (in response to giacomino)Ok. it was a problem of library. But now it occurs onother exception:
-------------------------------------------------------------------
]] Root cause of ServletException.
org.richfaces.component.EnclosingFormRequiredException: class org.richfaces.component.html.HtmlDatascroller (id="j_id_id3") did not find parent form.
at org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(FormUtil.java:45)
at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:195)
at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:682)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:850)
Truncated. see log file for complete stacktrace
---------------------------------------------------------------
There is in the following rows the sample piece of code:
--------------------------------------------------------------
<af:form><rich:datascroller for="sampleData" maxPages="10"/>
<rich:dataTable id="sampleData" value="#{JavaBeatRichfacesBean.employees}" var="loc" rows="10">
<rich:column>
<h:outputText value="#{loc.title}"/>
</rich:column>
<rich:column>
<h:outputText value="#{loc.description}"/>
</rich:column>
</rich:dataTable>
</af:form>
---------------------------------------------------------
can anybody help me? Thank's
Giacomo -
2. Re: problems with rich:datascroller
nbelaevski Jul 4, 2009 12:50 PM (in response to giacomino)Hi Giacomo,
Try h:form instead of af:form.