I am trying to submit a form using the enter key, but it doesn't work...
I have the following code in mye jsp:
<h:inputText ..... onkeypress="if (event.keyCode == 13)
document.getElementById('formFindArticle:search').click();">
and it does call the search method that is specified in th search button but
there is one difference compared to
clicking the button itself..
The action method opens a popup window using the Tomahawk's ExtestionFilter to
inject the Javascript in the
rendered page and this opens as it should when clicking the button and calling
the search method. But calling the
same search method when pressing Enter does nothing... Or I can see the page
being submitted and I see that the
search method is called, but it just redraws the page without opening the
popup...
What am I missing?
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen
[EMAIL PROTECTED]
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.