You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2006/05/05 10:22:07 UTC
dataScroller on TOP of dataTable
Hi!
Currently it is not possible to put the datascroller on TOP of a table.
e.g.
<t:dataScroller>
</t:dataScroller>
<h:dataTable>
...
The reason is, that the dataScroller will always see the previous
dataModel due to the caching of the model in UIData.
This cache will be cleared in UIData's encodeBegin, but I guess the
better place will be at the end of processDecodes()
That way, when it comes to rendering, the dataScroller will get a fresh
new copy from the bean instead of the cached one.
What do you think?
Ciao,
Mario
Re: dataScroller on TOP of dataTable
Posted by Thomas Spiegl <th...@gmail.com>.
Hi Mario,
that's a very old issue, which can be solved with t:buffer
http://www.irian.at/myfaces/buffer.jsf
On 5/5/06, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi Greg!
> > <t:dataTable>
> > <f:facet name="header">
> > <t:dataScroller>
> [snip]
> > Worked for me.
> >
> Yes, I know that this will work, but I wont use the header/footer for
> this. I'll say this is a workaround.
>
> Ciao,
> Mario
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: dataScroller on TOP of dataTable
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi Greg!
> <t:dataTable>
> <f:facet name="header">
> <t:dataScroller>
[snip]
> Worked for me.
>
Yes, I know that this will work, but I wont use the header/footer for
this. I'll say this is a workaround.
Ciao,
Mario
Re: dataScroller on TOP of dataTable
Posted by Greg <de...@gmail.com>.
<t:dataTable>
<f:facet name="header">
<t:dataScroller>
</t:dataScroller>
</f:facet>
<t:column>
</t:column>
<f:facet name="footer">
<t:dataScroller>
</t:dataScroller>
</f:facet>
</t:dataTable>
Worked for me.