Re: enter key form submission (newbie question)

2008-02-22 Thread jnl1
hi i found submitOnEvent and it looks like a cleaner solution. I added the submitOnEvent call to one of the inputText fields but when I hit "enter", the form is not submitted. below is my page. can someone point me in the right direction. Just would like the search form to be submitt

Re: enter key form submission (newbie question)

2008-02-22 Thread Gerhard Petracek
hello, are you using trinidad? (trinidad provides the possibility of default command components - see [1] - have a look at defaultCommand) --- if you would like to use your custom javascript implementation, you have to attach the keypress event. e.g.: function init() { if (document.addEvent

enter key form submission (newbie question)

2008-02-22 Thread jnl1
hi all... i'm trying to submit a form when a user hits enter. i'm new to myfaces, so i'm probably missing something simple. seems like this is done with javascript. below is my javascript which I found from this site. my problem is, how/where do i invoke the javascript ? currently, there's