I have found with the latest Tap5.3 beta that the html generated from a simple 
textfield differs significantly if you are using tapestry-core or 
tapestry-hibernate.

In my .tml file I have the following simple input:

        <t:label for="username">Username: </t:label>
        <t:textfield t:id="username" value="username" class="username" />

When this is run with tapestry-core I get the following html:

<label for="username">Username: </label>
<input class="username" value="f...@bar.com" id="username" name="username" 
type="text">

When I run the same template with tapestry-hibernate I get the following html:

<label>Username: </label>
<input class="username" value="f...@bar.com" type="text">

Notice the tapestry-hibernate version is missing the id attribute which is 
causing my javascript to fail (and I think when the form is submitted, tap 
can't seem to decode the values).

I've put together a small sample app that you can clone from github that 
demonstrates the problem:

https://github.com/hhubris/broken

Simply change the tapestry dependency from tapestry-core to tapestry-hibernate 
and restart jetty with "mvn clean jetty:run" to see the problem.

Any help would be greatly appreciated.

Thanks
Tony Nelson
Starpoint Solutions

Reply via email to