This content has been marked as final.
Show 5 replies
-
1. Re: datascroller in table facet : not working in 3.1.2.SP1
jonckvanderkogel Dec 14, 2007 8:36 AM (in response to dkane)Hi,
Putting a datascroller in the header/footer does work in 3.1.2.SP1, could you perhaps post your complete code?
Regards, Jonck -
2. Re: datascroller in table facet : not working in 3.1.2.SP1
dkane Dec 14, 2007 9:45 AM (in response to dkane)<rich:dataTable id="userTbl" value="#{userList}" width="700" var="userRecord" rowClasses="#{userAdmin.userListStyles}" rows="10"> <a:support event="onRowClick" reRender="userTbl,userDetail"> <a:actionparam name="uId" value="#{userRecord.userId}" assignTo="#{userAdmin.currentRowUserId}" /> </a:support> <f:facet name="footer"> <rich:datascroller for="userTbl" align="left" /> </f:facet> <rich:column> <f:facet name="header">Name</f:facet> <h:outputText value="#{userRecord.name}" /> </rich:column> <rich:column> <f:facet name="header">Login</f:facet> <h:outputText value="#{userRecord.login}" /> </rich:column> <rich:column> <f:facet name="header">Active</f:facet> <h:selectBooleanCheckbox value="#{userRecord.status}" /> </rich:column> <rich:column> <f:facet name="header">Group</f:facet> <h:outputText value="#{userRecord.group.name}" /> </rich:column> <rich:column> <f:facet name="header"> </f:facet> <a:commandLink value="delete" id="delLink" rendered="#{userRecord.userId > 0}" onclick="Event.stop(event||window.event);"> <rich:toolTip event="onclick" verticalOffset="0" horizontalOffset="0" mode="client" layout="block" styleClass="admtooltip"> <span style="white-space: nowrap"> Confirm <br /> <br /> <a:commandLink value="Delete" actionListener="#{userAdmin.deleteUser}" reRender="userTbl,userDetail" onclick="Event.stop(event||window.event);" /> <a:commandLink value="Cancel" onclick="Event.stop(event||window.event);" reRender="userTbl" /> <br /> </span> </rich:toolTip> </a:commandLink> </rich:column> </rich:dataTable>
-
3. Re: datascroller in table facet : not working in 3.1.2.SP1
dkane Dec 14, 2007 10:40 AM (in response to dkane)It looks fine in Richfaces visual editor (JBoss tools), BTW
Both table content and footer with datascroller are visible.
But not in runtime. -
4. Re: datascroller in table facet : not working in 3.1.2.SP1
jonckvanderkogel Dec 14, 2007 12:57 PM (in response to dkane)I only got the dataScroller to work in the header/footer facet when the facet tags followed directly after the <rich:dataTable> tag. In your code I see that you placed an <a:support> tag between the <rich:dataTable> and the <f:facet> tag. Perhaps you could try moving the <a:support> tag below the <f:facet> tag?
Kind regards, Jonck -
5. Re: datascroller in table facet : not working in 3.1.2.SP1
dkane Dec 17, 2007 4:07 AM (in response to dkane)"jonckvanderkogel" wrote:
Perhaps you could try moving the <a:support> tag below the <f:facet> tag?
Kind regards, Jonck
Thank you for the idea.
It did not help.
And it must not, I think. XML parsers must not pay attention to the order of the same-level tags.