Doubt about actionListener
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Doubt about actionListener  XML
Forum Index -> General Help
Author Message
jflf83

Joined: 23/10/2007 00:00:00
Messages: 18
Offline


Hello,

I have an inputText component in my page and I have a action listener method in my bean. The action listener method is used by my input text component. This method is activated when the user click the Enter key, but nothing happen when the user click the tab key?
Is it normal? Why nothing happen when the user click the tab key? click the tab key is not an action? There is a way to activate my actionListener method when the user click the tab key? The only way to do this is use a value change event method?

thanks
radu.jakab

Joined: 31/10/2007 00:00:00
Messages: 240
Offline


Hi,

Yes, in web hitting the tab key isn't normally an action. You can 'hack' this by adding javascript that makes a partialSubmit when the tab key is pressed in that inputText.

But then again, you should use partialSubmit="true" and a valueChangeListener to handle this situation.

Radu
jflf83

Joined: 23/10/2007 00:00:00
Messages: 18
Offline


thanks,
I'm using ValueChangeEvent and cleaning the field if something goes wrong
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team