Hi.  Hopefully I can explain this scenario OK - I'll try to keep it simple.

On a form, I have a couple of TextFields - SalePrice and DiscountAmount.  

After the user enters SalePrice, I need a way to allow the user to enter the
DiscountAmount as either a flat rate or as a percentage of the SalePrice.

For example, if entered SalePrice is 1000, the user could enter a flat
DiscountAmount of 200.00.  Or they could enter 20%.  I'd like the option to
do either since SalePrice might be 8,745 and the discount 2.75% or something
(so hard to just calculat the true cash amount).  Or it might just really be
a flat £200 in which case hard to calculate the %.

In a traditional app where I'm writing the JavaScript, I can think of
various ways to do this involving extra fields for flatrate and/or % - then
updating the real DiscountAmount field when the "dummy" fields change.

But I'm trying to work out an elegant way with Wicket/AJAX - without too
much success so far.  

Any suggestions - or links to similar examples?  Ideally, the fewer extra
dummy fields the better.

Thanks. 


-- 
View this message in context: 
http://www.nabble.com/Wicket-AJAX-update-form-TextField-value-from-another-field-tp20117258p20117258.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to