Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Dipu Seminlal
try adding AjaxFormComponentUpdatingBehavior to your drop down some thing like this AjaxFormComponentUpdatingBehavior updateBehavior = new AjaxFormComponentUpdatingBehavior("onchange") { private static final long serialVersionUID = 1L; protected void onUpdate(AjaxReq

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Edi
That's fine. How to get the value of selected item in dropdown box? Regards, edi Dipu Seminlal wrote: > > can you try target.addjavascript(javascript) or target.appendjavascript > (javascript) > > regards > Dipu > > On 7/13/07, Edi <[EMAIL PROTECTED]> wrote: >> >> >> When onchange the DropD

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Dipu Seminlal
can you try target.addjavascript(javascript) or target.appendjavascript (javascript) regards Dipu On 7/13/07, Edi <[EMAIL PROTECTED]> wrote: When onchange the DropDown box, how can I call the javascript function? for eg; makes.add(new AjaxFormComponentUpdatingBehavior("onchange")

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Edi
When onchange the DropDown box, how can I call the javascript function? for eg; makes.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(AjaxRequestTarget target) { target

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Igor Vaynberg
On 7/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 7/13/07, Edi <[EMAIL PROTECTED]> wrote: > > > Could you please explain in detail manner? whats there to explain? in form.onsubmit or onchange event copy values from your textarea/textfield to the appropriate hiddenfield element via javas

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Igor Vaynberg
On 7/13/07, Edi <[EMAIL PROTECTED]> wrote: Could you please explain in detail manner? whats there to explain? in form.onsubmit or onchange event copy values from your textarea/textfield to the appropriate hiddenfield element via javascript. then when your form submits you can read the valu

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Edi
Could you please explain in detail manner? igor.vaynberg wrote: > > On 7/12/07, Edi <[EMAIL PROTECTED]> wrote: >> >> >> Hi! >> >> I have one drop down like >> >> textboxtextarea >> >> in the above case, I have 2 items, 1.textbox 2.textarea. >> >> If I select textbox, text box should be displaye

Re: [Wicket-user] Regarding onchange DropDown

2007-07-12 Thread Igor Vaynberg
On 7/12/07, Edi <[EMAIL PROTECTED]> wrote: Hi! I have one drop down like textboxtextarea in the above case, I have 2 items, 1.textbox 2.textarea. If I select textbox, text box should be displayed below the combo box. If I select textarea, textarea should be displayed but textbox should be h

[Wicket-user] Regarding onchange DropDown

2007-07-12 Thread Edi
Hi! I have one drop down like textboxtextarea in the above case, I have 2 items, 1.textbox 2.textarea. If I select textbox, text box should be displayed below the combo box. If I select textarea, textarea should be displayed but textbox should be hided. If I did not select anything, both text