Re: Drop Down Box - Ajax Behaviour

2009-02-22 Thread Timo Rantalaiho
On Thu, 19 Feb 2009, Daniel Ferreira Castro wrote: > My problem is that After I submit the form, inserting on the bank a new > Category (Caategoria in Portuguese), the DropDown does not update its values > list with the inserted one. That's probably best done with a pull model IModel> allCatego

Re: Drop Down Box - Ajax Behaviour

2009-02-19 Thread Daniel Ferreira Castro
The method getHibernateTransaction is a need :) Hibernate complains if I try to do a select without an active transaction. But this is not the case, it is working fine - no runtime errors - so it is ok at the moment :) My problem is that After I submit the form, inserting on the bank a new Categor

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
On Thu, 19 Feb 2009, Timo Rantalaiho wrote: > AjaxFormComponentUpdatingBehavior does not submit the whole > form -- for that you need to use some *submitting*behavior. Ah, now I saw that you had probably tried that? It's pretty hard to investigate what's going on -- you could try debugging Form.

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, Daniel Ferreira Castro wrote: > AjaxFormComponentUpdatingBehavior("onchange") and > AjaxFormComponentUpdatingBehavior("onsubmit") to the DropDown Box that I > want to be updated after the form post. > But didn't work yet. "onsubmit" probably doesn't exist for . Have you looke

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Daniel Ferreira Castro
I tryied to add the AjaxBehaviour AjaxFormComponentUpdatingBehavior("onchange") and AjaxFormComponentUpdatingBehavior("onsubmit") to the DropDown Box that I want to be updated after the form post. But didn't work yet. I am doing this way. This is the constructor of the Panel that I am using to sho

Re: Drop Down Box - Ajax Behaviour

2009-02-16 Thread Daniel Ferreira Castro
*This is my form source code* package com.jasp.ecommfwk.pages.forms; import java.io.Serializable; import java.util.List; import org.apache.log4j.Logger; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket

Re: Drop Down Box - Ajax Behaviour

2009-02-16 Thread Daniel Ferreira Castro
I have this method that is run on the momento of the form construction The List keyValuePairsTemp stores the values of the DropDown private DropDownChoice criaCategoriaPaiDropdown() { setOutputMarkupId(true); choiceRenderer = new CategoriaChoiceRenderer(); getHibernate

Re: Drop Down Box - Ajax Behaviour

2009-02-16 Thread Eyal Golan
Where do yo u have the values in the DropDown in the first place? If you use a model, why not updating it? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessa

Drop Down Box - Ajax Behaviour

2009-02-16 Thread Daniel Ferreira Castro
I read the examples of Ajax Forms and I am trying to adapt it to my needs. I have a form with a input text, a drop down box, a feedback panel and a submit button. My submit is an ajaxButton. My form setsOutputMarkupId(true); My dropdown sets OutputMarkupId(true); When I submit my form it inserts