click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject Re: Missing validation error messages / markers in template form layout
Date Tue, 05 Apr 2011 05:13:49 GMT
Hi,

Please subscribe to dev list if you want to post here, however send user queries to the user
list.

In manual layout you need to render the errors:

http://click.apache.org/docs/click-api/org/apache/click/control/Form.html#manual-layout

Bob


On 2011/04/04 23:39 PM, Haim Schindler wrote:
> Hi,
> If I create a form and render in velocity as:
>
> *$form*
>
> I get validation error messages if the form is not valid.
>
> However, when  I render the form as a template layout form  for example:
>
> *${form.startTag()}
>      <div  style="margin: 1em;">
>          <ol>
>
>
>              <li>
>                  <label  for="firstname">Firstname:</label>
>
>
>                  ${form.fields.firstname}
>              </li>
>          </ol>
>      </div>
>
>
>      ${form.fields.submit}
> ${form.endTag()}*
>
> then I don't see any validation error messages / markers.
>
> why ?
>


Mime
View raw message