Well I'm not too familiar with this area of Wicket, but there's also
AjaxLink "which is similar to Link, but sends a request using Ajax"*.
Which means it doesn't submit like AjaxSubmitLink does.
Linda
*quote from Wicket in Action (Which I heartily recommend if you haven't
read it yet.)
Andrea Aime wrote:
Linda van der Pal ha scritto:
Have you tried adding an AjaxFormComponentUpdatingBehavior?
Something like this:
dropdown.add(new AjaxFormComponentUpdatingBehavior("onchange") {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
target.addComponent(textfield);
}
});
I did not actually, I also need to ask the user if he really
wants to overwrite the contents of the textarea before
going, something which I attached to the link.
My problem is also more general, I have plenty of forms in
which I'd like a more desktop-ish behaviour and this general
problem tends to pop up in many variations depending on the
form, so I'm looking either for a better understanding
or for a more elegant solution (e.g. in other forms I have
lists to be filled with whatever the user types in a text field,
or palette components to be modified based on the contents of
another component in the form, and so on).
Cheers
Andrea
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.23/2254 - Release Date: 07/22/09 05:59:00
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]