Is there any specific reason you don't want to do this server side? Not
using javascript would make the application more accessible, and
probable also more robust and secure. Unless you're targeting some very
specific user group, I always try not to depend on javascrip / ajax
(that's why I love the AjaxFallback stuff in wicket so much).
Just my 2c.
Matthijs
PS. If you must use javascript, why not use the hidden field's id, which
can be controlled with setMarkupId. But it might be better not to use
setMarkupId (to avoid id collisions). You could write some javascript
(with use of templates) that fills in the markupId (getMarkupId)
dynamically.
Ritz123 wrote:
Hi,
Is it possible to set specific name to the hidden field component?
Here is my usage scenario -
1. I have radio group for shipping options on a page.
2. Depending on the shipping option selected, I need to show the order total
changed
2. radio has associated model which obviously contains more information than
just the shipping price
The only way I can think of doing this efficiently without going to the
server side is by using hidden fields for shipping costs. Using the
javascript to update the total on the page. Problem is, seems like hidden
field names cannot be specified or controlled and hence cannot be referenced
by javascript precisely.
Correct me if I am wrong, also let me know if there is a better way of doing
this.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]