Well, I tried it like you did it, but unfortunatly I didn't solve the problem...

ciao
Alex

2007/3/26, Stefan Frank <[EMAIL PROTECTED]>:
I'm not sure if this is really the reason for you problem: But I once
had a problem with submitting a form (actually a search-box like
yours) with only one field in it: The problem only appeared on IE6 and
I solved it by adding an empty and invisible inputfield:

<h:inputText value="" style="width: 0px; height: 0px;
display:none;visibility:hidden;" />

I admit, that this is merely voodoo, and I never found out the real
reason, why submitting a one-field-form on IE with Enter did not work
(althoughthere are some discussions on the web that claim an IE-bug) -
but dropping in the empty field solved my case - maybe you can give it
a try and someone can explain why this happens....

cheers
stf


2007/3/26, Alexander Herrmann <[EMAIL PROTECTED]>:
> Howdy,
>
> I'm using a subform within my application. It contains an input text
> field as well as a submit button. Submitting per submit button works
> fine. But when the input text field is empty and I hit enter while
> focused on it a wrong action is performed.
> How can I solve this?
>
> <s:subForm id="searchForm">
>   <t:inputText value="#{SearchBean.searchString}" size="30"
> style="vertical-align: top; margin-top:0px; border:1px solid black;
> height:13px;" />
>   <t:commandLink action="#{SearchBean.doSearch}" type="submit" >
>     <f:verbatim>
>       <img class="menuImage" style="margin-left: 10px; float:none;"
> src="img/search.png" />
>     </f:verbatim>
>     <h:outputText value="#{messages['search.product']}" />
>   </t:commandLink>
> </s:subForm>
>

Reply via email to