You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by srinivas59924 <sr...@gmail.com> on 2012/05/10 10:22:00 UTC
Re: Setting a button press on hitting the enter key from the
keyboard
addItemTextBoxField.add(new AbstractBehavior(){
private static final long serialVersionUID = 1L;
@Override
public void onComponentTag(org.apache.wicket.Component
component,ComponentTag tag) {
tag.put("onkeydown","if(event.keyCode==13){
document.getElementById('"+searchButtion.getMarkupId()+"').click();return
false;}");
}
});
add(addItemTextBoxField);
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-a-button-press-on-hitting-the-enter-key-from-the-keyboard-tp1874539p4622841.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Setting a button press on hitting the enter key from the
keyboard
Posted by akshaypawar8082 <ak...@gmail.com>.
Hi srinivas59924,
Your solution is working,
Thanks you so so much :):):):):):):):)
Regards,
Akshay.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-a-button-press-on-hitting-the-enter-key-from-the-keyboard-tp1874539p4670800.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org