Hi
glad to hear, that your table works.
Regarding your question I fear I'll again need a little more information:
which type of binding are you referring to?
value binding ( value="#{var}" ) or component binding ( binding="'#{component}")
which method is called twice?
btw. since you seem to use a debbuger anyway - When you stop at
a breakpoint and you don't know why the method is called, you
can take a look at the stack up to the LifecycleImpl . There you
can then see in which phase of the JSF request lifecycle you
currently are.
greez
Ernst
On 5/21/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote:
Don´t worry about the problem. It works!!! The solution was establish:
preserveDataModel=false and sent binding values at inputText field in order
to reset datascroller.
There are two execution of methods (can you explain why is this happening?
lifeCycle???). At first execution you recieve binding values, in this step
you can reset datascroller internal variables (pageIndex, rowsCount, ...)
depending from previous binding values....
Thanks for your interest Ernst. Only one thing, can you explain me why the
two execution of methods when you go to server (Request - Response). Thank
you very much!!!
----- Mensaje original ----
De: Ernst Fastl <[EMAIL PROTECTED]>
Para: MyFaces Discussion <[email protected]>
Enviado: sábado, 19 de mayo, 2007 15:52:11
Asunto: Re: <s:pprPanelGroup> and datascroller
Thanks for the detailed information,
I will try to reproduce the problem. Am I correctly asuming
that the inputText you are referring to is some sort of a search string
which shrinks the list of the datatable to matching entries?
and i guess you are using something like onchange="submit(this);" for
the inputText right?
kind regards
Ernst
On 5/17/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote:
>
> Let me explain, I have a paged datatable. I'm trying to refresh datalist
> trhough an inputText, when user insert some text (trigger) my datatable
get
> refresh by ajax (<s:pprPanelGroup>).
>
> All work perfect, datalist get updated, datamodel seems to update new
> variables (pageIndex, rowsCount, ...) but when you click on last buttom
> (paginator) it drive you through last page from old search, ie:
>
> rows = 5
> initial results ---> 25 / 5 = 5 pages.
> filter results ----> 15 / 5 = 3 pages.
> click last buttom --> you go to page 5 of 3 (15 results)
>
> Thanks for all!!!
>
> ----- Mensaje original ----
> De: Ernst Fastl <[EMAIL PROTECTED]>
> Para: MyFaces Discussion <[email protected]>
> Enviado: martes, 15 de mayo, 2007 23:20:28
> Asunto: Re: <s:pprPanelGroup> and datascroller
>
>
>
> Seems to work fine for me on:
>
>
http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf
>
> what exactly do you mean?
>
> On 5/11/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody,
> >
> > can anybody tell me why, when you have a datatable with datascroller
> inside
> > label: <s:pprPanelGroup></s:pprPanelGroup> the internal
> > datascroller variables (pageIndex,...) don't refresh until you go to
> server.
> >
> > Thank you very much...
> >
> > ________________________________
> >
> > LLama Gratis a cualquier PC del Mundo.
> > Llamadas a fijos y móviles desde 1 céntimo por minuto.
> > http://es.voice.yahoo.com
>
>
> ________________________________
>
> ¡Descubre una nueva forma de obtener respuestas a tus preguntas!
> Entra en Yahoo! Respuestas.
>
________________________________
¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.