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 -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
