[Seaside] FormElement focus after an update

Bany, Michel mbany at cincom.com
Wed Oct 3 15:21:51 UTC 2007


 
> >     Did anyone managed to recover focus state in a similar 
> scenario? 
> > any idea on how to do it?
> 
> You can track the focus using JavaScript and onFocus/onBlur 
> events on all the required elements.

The SeasideAsync package has some Javascript support for tracking
events.

	html textInput ...;
		forEvent: 'onblur' callback: [:event | ... ]; 

	html textInput ...;
		onFocusCallback: [:event | ... ];
		...

where the event object has some interesting accessors.

This may help.

Michel.


More information about the seaside mailing list