You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bruno Aranda <br...@gmail.com> on 2005/07/01 09:53:49 UTC

Re: getScrolling and ValueChangeListener

I don't know if this works: you could put hidden buttons and in the
onchange attribute click that hidden button using javascript...

Bruno

2005/6/30, Mariano Petrakovsky <mp...@tecnonexo.com>:
> Hi Bruno, thanks but this context parameter is already in true...
> All request call to getScrolling javascript, but, when use the
> 
> <h:inputText id="wireless" value="#{sizeDefHandler.wireless}"
>                                         required="true" size="10" onchange="this.form.submit();"
>                                         immediate="true"
>                                         valueChangeListener="#{sizeDefHandler.totalKeysetsWirelessListener}">
> 
> the onchange, don't call the getscrolling... then scroll page is not saved
> :(!
> 
> 
> --
> Mariano G. Petrakovsky
> Programmer · Software Factory
> AXG Tecnonexo -  www.tecnonexo.com
> 
> Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
> Argentina.
> Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.
> 
> Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA.
> Tel.: (202) 986-7541 - Fax: (202) 787-3891.
> 
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> · · · ·
> 
> -----Mensaje original-----
> De: Bruno Aranda [mailto:brunoaranda@gmail.com]
> Enviado el: Jueves, 30 de Junio de 2005 02:55
> Para: MyFaces Discussion
> Asunto: Re: getScrolling and ValueChangeListener
> 
> 
> Mariano, setting to 'true'  the context parameter
> 'org.apache.myfaces.AUTO_SCROLL' in your web.xml file should resolve
> your problem.
> 
> <context-param>
>         <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
>         <param-value>true</param-value>
>         <description>
>             If true, a javascript function will be rendered that is
> able to restore the
>             former vertical scroll on every request. Convenient
> feature if you have pages
>             with long lists and you do not want the browser page to
> always jump to the top
>             if you trigger a link or button action that stays on the same
> page.
>             Default: "false"
>         </description>
>     </context-param>
> 
> Regards,
> 
> Bruno
> 
> 2005/6/29, Mariano Petrakovsky <mp...@tecnonexo.com>:
> >
> >         I'm using the valueChangeListener property in an InputText.
> >
> >         When the listener is called, all work fine, but when do the
> > renderResponse... the html page loose the scrolling state, it's back to
> top.
> > :(...
> >
> > How resolve this? :) thanxs!
> >
> > --
> > Mariano G. Petrakovsky
> > Programmer · Software Factory
> > AXG Tecnonexo -  www.tecnonexo.com
> >
> > Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
> > Argentina.
> > Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.
> >
> > Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA.
> > Tel.: (202) 986-7541 - Fax: (202) 787-3891.
> >
> > · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> ·
> > · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> ·
> > · · · ·
> >
> >
> 
>