myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Herrmann" <>
Subject Problem with t:inputText in s:subForm
Date Mon, 26 Mar 2007 07:13:13 GMT

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" >
      <img class="menuImage" style="margin-left: 10px; float:none;"
src="img/search.png" />
    <h:outputText value="#{messages['search.product']}" />

View raw message