Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5.1] t:hidden + id

Michael Gentry

2010-03-10

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi everyone,

Should the Hidden component preserve the id? In my TML I have:

<input id="jumpToPage" t:type="Hidden" t:id="jumpToPage" t:value="jumpToPage"/>

However, the generated HTML looks like:

<input type="hidden" name="jumpToPage"/>


Makes it hard to use $('jumpToPage') in my JavaScript to set the value. :-)

If I switch to:

<input style="display: none;" t:type="TextField" t:id="jumpToPage"
t:value="jumpToPage"/>

It works, but of course, that just feels wrong. Thoughts?

Thanks in advance,

mrg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.