Use the new focus component in sandbox.
2005/12/5, Tony Czupryna <[EMAIL PROTECTED]>:
> I have a valueChangeListener set on an inputTextBox. If I change the value
> and once the page is rerendered, there is no cursor. Does anyone know how to
> make sure the cursor shows up in the next input box (assume I hit 'Tab')?
>
> <h:inputText id="firstName" value="#{user.firstName}" required="true"
> onchange="submit()"
> valueChangeListener="#{user.firstNameChanged}"
> immediate="true"/>
>
> public void firstNameChanged(ValueChangeEvent e){
> String name = (String)e.getNewValue();
> setFirstName(name);
> FacesContext.getCurrentInstance().renderResponse();
> }
>
> Thanks in advance,
> Tony
>
>
>
>
>
--
Yours truly (Atenciosamente),
Rogério