dataScroller nested facets disappear

I've managed to get a Tomahawk dataTable working with sorting. I've also added two dataScroller tags (as shown in the example wars).

The dataTable uses an ArrayList in a backing bean, configured as a session-scoped managed bean.

The paginator works fine; i.e. I can go from one "scroller page" to another using the "paginator numbers" (the 1, 2, 3, etc. generated) in the middle, however the nested facets in the first dataScroller (the first, previous, next, last, etc. links) disappear as soon as a new request is sent, e.g. when clicking a paginator page link or changing the sort column.

How's that possible, knowing that the actual pagination works fine? Is there any problem with my facets?

<t:dataScroller

id="scroll_1"

for="tradeTable"

paginator="true"

fastStep="10"

paginatorMaxPages="10"

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>

* I've tried changing the <h:outputText>

to <t:outputText>

or using images as in the examples [<t:graphicImage>] but that doesn't seem to help.

* I've also given every element on the page an id.

[2268 byte] By [metropolitana] at [2007-10-2 7:48:28]
# 1
Anybody have a clue on this?
metropolitana at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Did you ever solve this problem? I'm running into it also. Thanks.
jill123a at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Well I found out what my problem was ....I was using <f:dataTable>.I changed it to use MyFaces <t:dataTable> and the problem went away. Jill
jill123a at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Might have been a while ago. I am / was using <t:dataTable> at that time. I still haven't found a solution to this problem.

What I have noticed though is when I startup my Tomcat, 2 or more sets of similar components (myfaces / sun) seem to be merged. But not sure if the behaviour of the dataTable is effected by this.

Any feedback wecome.

18:31:29,206 WARN Digester:120 - [ComponentRule]{faces-config/component} Merge(org.apache.myfaces.HtmlCommandButton)

18:31:29,221 WARN Digester:120 - [ComponentRule]{faces-config/component} Merge(org.apache.myfaces.HtmlCommandLink)

18:31:29,221 WARN Digester:120 - [ComponentRule]{faces-config/component} Merge(org.apache.myfaces.HtmlDataTable)

metropolitana at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Hi

I have same problem but i have soved it

in your web.xml

change this to

<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>client</param-value>

</context-param>

this

<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>server</param-value>

</context-param>

it worked for me hope it works for other

singhGurpreeta at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Hi,I'm trying to use tomahawk's datascroller, but getting Jasperexceptions. Could anybody give me a working example?Thanks
Whiteboarda at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

Hi there,

I don't know if there is any thread about this, but from what i've searched this seams to be the better place to ask this question.

I'm trying to scroll a datascroller in java so that i can add a row to the datatable that it controls.

The purpose is to add a row to the datatable in java and show in the next rendering of the page.

That way i need to get the datascroller to display the last page.

The problem is that i can't figure out how to chance the currently displayed rows of the datatable. In other words, i can't get it to be scrolled...

Manufea at 2007-7-16 21:35:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...