-
1. Re: pressing enter doesn't submit the form in IE when there'
shane.bryzak Aug 7, 2006 6:06 AM (in response to liudan2005)Neither, it's just how IE works. Incidentally, the IE7 beta seems to behave how you would expect (it submits the form).
-
2. Re: pressing enter doesn't submit the form in IE when there'
liudan2005 Aug 7, 2006 6:40 AM (in response to liudan2005)I guess more than 80% of users in this world use IE 6. Is there any way to get around this problem?
What I have now is quite simple. A form contains 2 elements: a inputText for user to enter search term, and a commandButton for submit the form (similar to google's home page). When user entered the search term and press enter, nothing happens!
Don't you think it's a bit funny to say "Seam+Facelet+JSF doesn't support any user interface simple as google's, but support fancy UIs like Amazon or EBay's"? -
3. Re: pressing enter doesn't submit the form in IE when there'
theute Aug 7, 2006 7:00 AM (in response to liudan2005)It should work, there is nothing preventing you from doing it.
See the demo: http://seam.demo.jboss.com/
Press enter after submitting a username/password and it will work even on IE 6.
However if there is no submit button at all that's a wrong design and browsers do what they want...
Seam supports a user interface as simple as google... -
4. Re: pressing enter doesn't submit the form in IE when there'
theute Aug 7, 2006 7:03 AM (in response to liudan2005)Actually now i see what you mean in the "Search" page of the booking it doesn't behave correctly.
But it probably has nothing to do with the fact that it's alone on the form. -
5. Re: pressing enter doesn't submit the form in IE when there'
liudan2005 Aug 7, 2006 7:40 AM (in response to liudan2005)The Seam booking demo works because it has 2 input fields: username and password. If there's only one input field (say only username), it would stop working. It is caused by being alone in the form.
I guess the first thing to do is to find out whether this is a Seam bug, or Facelet bug? With this problem, people can't build a user interface as simple as google by using Seam+Facelets. -
6. Re: pressing enter doesn't submit the form in IE when there'
theute Aug 8, 2006 3:37 AM (in response to liudan2005)This is an interesting thread related to the issue:
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=46551 -
7. Re: pressing enter doesn't submit the form in IE when there'
liudan2005 Aug 8, 2006 5:07 AM (in response to liudan2005)aha, it's a jsf issue.
Looks like the simplest solution is to add one more field with "width: 0px; height: 0px" to make it invisible. -
8. Re: pressing enter doesn't submit the form in IE when there'
koenhandekyn Jul 6, 2007 6:18 PM (in response to liudan2005)thanx for the advice but i think it's fair to call this a JSF bug ...