I'd just use <input type="hidden" name="nextStep" value="<fmt:message key='button.validate'/>">.

Wendy Smoak wrote:
I have what must be the world's simplest form... it has a text field and a
button:

<html-el:form action="denRegister" >
    <fmt:message key="label.associationId"/>: <br/>
    <html-el:text property="associationId" size="15" />
    <html-el:submit property="nextStep">
      <fmt:message key="button.validate"/>
    </html-el:submit>
</html-el:form>

It works great if the user clicks the button... not so great if he presses
enter, which submits the form without the value of nextStep coming through.

So I thought to put a hidden field in the form and just ignore the button
entirely.  But I can't seem to get the value of the hidden field to come
from ApplicationResources.properties.  I tried to do it like the submit
button, but <html-el:hidden> *must* be an empty tag.  None of the possible
attributes seem to do it.

Am I missing something?  Otherwise I have to hardcode it...
         <html-el:hidden property="nextStep" value="Validate" />



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to