- This topic has 1 reply, 2 voices, and was last updated 18 years, 10 months ago by
Riyad Kalla.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
pr0grammerMemberHi,
Does anyone have already used this component successfully, I’ve in my jsf page the following code :
<h:dataTable value="#{currencyGui.currenciesFilter}" rendered="true" var="rowOperator" border="1" id="dtaCurrency"> <h:column> <f:facet name="header"> <h:outputText value="#{text.common_code}"/> </f:facet> <h:outputText id="fieldId" value="#{rowOperator.id}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="#{text.common_libelle}"/> </f:facet> <h:outputText id="fieldDescription" value="#{rowOperator.description}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="#{text.common_iso}"/> </f:facet> <h:outputText id="fieldIsoCode" value="#{rowOperator.isoCode}"/> </h:column> <h:column> <f:facet name="header"> </f:facet> <h:commandLink id="lnkEdit" action="#{currencyGui.selectRecord}"> <h:graphicImage id="imgEdit" alt="#{text.common_edit}" style="border-style:none" value="/images/edit.gif"> </h:graphicImage> <f:param name="selectCurrencyId" value="#{rowOperator.id}" /> </h:commandLink> <h:commandLink id="lnkDelete" action="#{currencyGui.deleteRecord}"> <h:graphicImage id="imgDelete" alt="#{text.common_delete}" style="border-style:none" value="/images/delete.gif"> </h:graphicImage> <f:param name="selectCurrencyId" value="#{rowOperator.id}" /> </h:commandLink> <h:commandLink id="lnkDisplay" action="#{currencyGui.displayRecord}"> <h:graphicImage id="imgDisplay" alt="#{text.common_display}" style="border-style:none" value="/images/view.gif"></h:graphicImage> <f:param name="selectCurrencyId" value="#{rowOperator.id}" /> </h:commandLink> </h:column> </h:dataTable> <t:dataScroller id="dtsUsuarios" for="dtaCurrency" paginator="true" fastStep="10" pageIndexVar="myPosition" pageCountVar="mySize" paginatorMaxPages="2" paginatorActiveColumnStyle="font-weight:bold;"> <f:facet name="first"> <h:outputText value="|<" /> </f:facet> <f:facet name="previous"> <h:outputText value="<" /> </f:facet> <f:facet name="next"> <h:outputText value=">" /> </f:facet> <f:facet name="last"> <h:outputText value=">|" /> </f:facet> <f:facet name="fastforward"> <h:outputText value=">>" /> </f:facet> <f:facet name="fastrewind"> <h:outputText value="<<"/> </f:facet> </t:dataScroller>
And in my bean controller these vars :
private Integer myPosition = new Integer(0); private Integer mySize = new Integer(5);
but when I run I got a division by zero error
javax.servlet.ServletException: javax.servlet.jsp.JspException: / by zero javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
I’ve tryied to change:
pageIndexVar="myPosition" pageCountVar="mySize"
to :
pageIndexVar="#{currencyGui.myPosition}" pageCountVar="#{currencyGui.mySize}"
but I’m still having an error :
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.Integer javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) javax.faces.FacesException: javax.servlet.jsp.JspException: java.lang.Integer org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
could somebody help me ?
Regards
Al
Riyad KallaMemberMoving to OT > Soft Dev
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)