[jboss-user] [JBoss Seam] - Re: duplicate id error using ICE data paginator - need help
henrik.lindberg
do-not-reply at jboss.com
Wed Feb 14 16:06:42 EST 2007
Here is the full facelet xhtml:
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:ice="http://www.icesoft.com/icefaces/component"
| template="layout/template.xhtml">
|
| <ui:define name="title">Cloudsmith - User Settings</ui:define>
| <ui:define name="bannerHeading">Settings</ui:define>
| <ui:define name="body">
| <h:panelGroup rendered="#{not identity.loggedIn}">
| <ui:include src="/layout/error_NotLoggedIn.xhtml" />
| </h:panelGroup>
| <h:panelGroup rendered="#{identity.loggedIn}">
| <f:view>
| <h:form>
| <ice:panelTabSet>
| <ice:panelTab label="Spaces">
| <ice:dataTable id="space_list" value="#{availableSpaces}" var="p"
| rendered="#{availableSpaces != null and availableSpaces.rowCount > 0}"
| rowClasses="first,second" columnClasses="col1class,col2class"
| rows="5">
| <ice:column>
| <f:facet name="header">Space Name</f:facet>
| <ice:outputText value="#{p.spaceName}" />
| </ice:column>
| <ice:column>
| <f:facet name="header">Added date</f:facet>
| <ice:outputText value="#{p.dateAdded}" />
| </ice:column>
| </ice:dataTable>
| <ice:dataPaginator for="space_list"
| paginator="true" fastStep="3" paginatorMaxPages="12">
| <f:facet name="xlast">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-last.gif" style="border:none;" title="Last Page" />
| </f:facet>
| <f:facet name="xfirst">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-first.gif" style="border:none;" title="First Page" />
| </f:facet>
| <f:facet name="xprevious">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-previous.gif" style="border:none;" title="Previous Page" />
| </f:facet>
| <f:facet name="xnext">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-next.gif" style="border:none;" title="Next Page" />
| </f:facet>
| </ice:dataPaginator>
| <ice:dataPaginator id="scroll_2"
| for="space_list"
| rowsCountVar="rowsCount"
| displayedRowsCountVar="displayedRowsCountVar"
| firstRowIndexVar="firstRowIndex"
| lastRowIndexVar="lastRowIndex"
| pageCountVar="pageCount"
| pageIndexVar="pageIndex"
| >
|
| <ice:outputFormat value="{0} spaces found, displaying {1} spaces, from {2} to {3}. Page {4} / {5}" styleClass="standard" >
| <f:param value="#{rowsCount}" />
| <f:param value="#{displayedRowsCountVar}" />
| <f:param value="#{firstRowIndex}" />
| <f:param value="#{lastRowIndex}" />
| <f:param value="#{pageIndex}" />
| <f:param value="#{pageCount}" />
| </ice:outputFormat>
|
| </ice:dataPaginator>
| <div id="pubBox">
| <h:form id="pubForm">
| <s:validateAll>
| <ice:panelGrid columns="1">
| <ice:outputLabel for="spaceInput">Wanted Space Name:</ice:outputLabel>
| <div><b>public.</b><ice:inputText id="spaceInput"
| value="#{userSpaces.spaceInput}" required="true"
| maxlength="93" style="width:350px;" /></div>
| <ice:commandButton type="submit" value="Add Space"
| action="#{userSpaces.addSpace}" />
| <ice:message for="spaceInput" />
| </ice:panelGrid>
| <ice:messages globalOnly="true" />
| </s:validateAll>
| </h:form>
| </div>
| </ice:panelTab>
| <ice:panelTab label="Account">
| <table class="formTable" border="0">
| <col class="labelCol" />
| <col class="inputCol" />
| <s:validateAll>
| <tr>
| <td><h:outputLabel for="login">Username (login):</h:outputLabel></td>
| <td><h:inputText id="login" value="#{currentUser.login}"
| required="true" /></td>
| </tr>
| <tr>
| <td><h:outputLabel for="realName">Real Name:</h:outputLabel></td>
| <td><h:inputText id="realName"
| value="#{currentUser.realName}" required="true" /></td>
| </tr>
| <tr>
| <td><h:outputLabel for="password">Password:</h:outputLabel></td>
| <td><h:inputSecret id="password"
| value="#{currentUser.password}" required="true"
| redisplay="true" /></td>
| </tr>
| <tr>
| <td><h:outputLabel for="verify">Verify Password:</h:outputLabel></td>
| <td><h:inputSecret id="verify" value="#{settings.verify}"
| required="true" redisplay="true" /></td>
| </tr>
|
| <tr>
| <td><h:outputLabel for="email">Email:</h:outputLabel></td>
| <td><h:inputText id="email" value="#{currentUser.email}"
| required="true" /></td>
| </tr>
| </s:validateAll>
| </table>
| <h:messages />
| <h:commandButton type="submit" value="Save"
| action="#{settings.updateSettings}" />
| </ice:panelTab>
|
| </ice:panelTabSet>
| </h:form>
| </f:view>
| </h:panelGroup>
| </ui:define>
| </ui:composition>
|
|
Hope someone can point me to what I am doing wrong, and that it is some naiive beginners mistake...
Cheers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016632#4016632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016632
More information about the jboss-user
mailing list