Re: DropDownChoice updates onchange event.

2011-07-28 Thread Andrea Del Bene
Hi, I've looked at your code but is not clear to me how and when you read the selected value in savedReportsDropDown. Is trackingProfileVO an instance of SelectedTrackProfileVO? Here is the code: private DropDownChoiceSelectedTrackProfileVO savedReportsDropDown; savedReportsDropDown =

Re: DropDownChoice updates onchange event.

2011-07-28 Thread Archana
The savedReportsDropDownList Arraylist contains a collection of SelectedTrackProfileVO. trackingProfileVO is a type of TrackingProfileVO, which contains the selected object which is of type SelectedTrackProfileVO. profileDropDown is of type SelectedTrackProfileVO. TrackingProfileVO is added to the

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Martin Grigorov
I didn't see the question. On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA archanaacharya.adhik...@gmail.com wrote: Hi All, I am using a DropDownChoice with a list of values. The choice list come from DB in a sorted order. When I new AjaxFormComponentUpdatingBehavior(onchange) event, the

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Adam Gray
What type of collection are you using in the model object? On Wed, Jul 27, 2011 at 2:09 PM, Martin Grigorov mgrigo...@apache.orgwrote: I didn't see the question. On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA archanaacharya.adhik...@gmail.com wrote: Hi All, I am using a DropDownChoice

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Archana
I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C, D). But after the execution of onUpdate() the DropDownChoice contains in the order of (D, B, A, C) which is totally a new order. I have not updated the sequence of the elements. But still the order

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Archana
I am using a List. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699387.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Archana
I am using a Arraylist. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699493.html Sent from the Users forum mailing list archive at Nabble.com.

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Pedro Santos
The DropDownChoice should respect the list sequence, show some code so we can track the source of the problem. On Wed, Jul 27, 2011 at 3:16 PM, Archana archanaacharya.adhik...@gmail.com wrote: I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C,

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Andrea Del Bene
Hi, attach the code from onUpdate(AjaxRequestTarget target) method. This should be responsible of changing order. I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C, D). But after the execution of onUpdate() the DropDownChoice contains in the

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Archana
private DropDownChoiceSelectedTrackProfileVO savedReportsDropDown;savedReportsDropDown = new DropDownChoiceSelectedTrackProfileVO(profileDropDown,savedReportsDropDownList); savedReportsDropDown.setChoiceRenderer(new ChoiceRendererSelectedTrackProfileVO(reportName, cstmReportId));

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Archana
Here is the code: private DropDownChoiceSelectedTrackProfileVO savedReportsDropDown; savedReportsDropDown = new DropDownChoiceSelectedTrackProfileVO(profileDropDown,savedReportsDropDownList); savedReportsDropDown.setChoiceRenderer(new ChoiceRendererSelectedTrackProfileVO(reportName,

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Clint Checketts
Show the code for savedReportsDropDownList. I suspect you aren't using a Model. Also a couple of tweaks to your code. Your calls to 'setChoices' indicate a 'pushing data' approach. Like you are setting the lists in those components instead of using models there to. I think that is where you are