Re: DropDownChoice/Model Confusion

2010-10-06 Thread Daniel Stoch
The code looks ok. Maybe the problem is in childRecordService: childRecordService.getList() when method getList() does not reflect changes until you create a new session. So maybe the problem is related to your service layer? Have you checked whet this method returns inside

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
-Original Message- From: Shelli Orton Sent: Tuesday, October 05, 2010 2:24 PM To: users@wicket.apache.org Subject: RE: DropDownChoice/Model Confusion I don't know how to determine that. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com

Re: DropDownChoice/Model Confusion

2010-10-06 Thread James Carman
] On Behalf Of James Carman Sent: Tuesday, October 05, 2010 4:50 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion Is your getList() being called multiple times? On Tue, Oct 5, 2010 at 6:37 PM, Shelli Orton shelli.or...@sjrb.ca wrote: I overrode the detach method

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
] Sent: Wednesday, October 06, 2010 1:37 AM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion The code looks ok. Maybe the problem is in childRecordService: childRecordService.getList() when method getList() does not reflect changes until you create a new session. So maybe

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
I don't understand what you mean by between requests. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Wednesday, October 06, 2010 9:43 AM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion I

RE: DropDownChoice/Model Confusion

2010-10-06 Thread Shelli Orton
is called before the ldm.load, but the onSubmit is called after the ldm.load for the delete button? Thanks for all the help! Shelli -Original Message- From: Shelli Orton Sent: Wednesday, October 06, 2010 9:41 AM To: users@wicket.apache.org Subject: RE: DropDownChoice/Model Confusion

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
...@gmail.com] Sent: Monday, October 04, 2010 6:27 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list

Re: DropDownChoice/Model Confusion

2010-10-05 Thread jcgarciam
://user/SendEmail.jtp?type=nodenode=2956214i=1 Subject: Re: DropDownChoice/Model Confusion Hi, instead of passing getMyRecords() in the constructor wrap it around a LoadableDetachableModel and pass that model to the DDC. The difference is that your current list is fetch only once

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
05, 2010 9:33 AM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion Yes, that should make your DDC to query the list any time it needs to re render. To your 2nd. question in order to set a default or selected value, just set a MyRecord reference to your property, keep in mind

Re: DropDownChoice/Model Confusion

2010-10-05 Thread jcgarciam
: Tuesday, October 05, 2010 9:33 AM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=1 Subject: Re: DropDownChoice/Model Confusion Yes, that should make your DDC to query the list any time it needs to re render. To your 2nd. question in order to set a default or selected value

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
No, I'm not using AJAX. Is there a way to force the LDB to reload? Shelli -Original Message- From: jcgarciam [mailto:jcgarc...@gmail.com] Sent: Tuesday, October 05, 2010 12:52 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion I dont think it may be related

Re: DropDownChoice/Model Confusion

2010-10-05 Thread jcgarciam
-Original Message- From: jcgarciam [mailto:[hidden email]http://user/SendEmail.jtp?type=nodenode=2956527i=0] Sent: Tuesday, October 05, 2010 9:33 AM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=2956527i=1 Subject: Re: DropDownChoice/Model Confusion Yes, that should

Re: DropDownChoice/Model Confusion

2010-10-05 Thread James Carman
To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion I dont think it may be related to the hierarchy, are you using AJAX? On Tue, Oct 5, 2010 at 2:38 PM, Shelli Orton [via Apache Wicket] ml-node+2956527-385265518-65...@n4.nabble.comml-node%2B2956527-38526551 8-65...@n4

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
childRecordService.getList(); } }; } -Original Message- From: jcgarciam [mailto:jcgarc...@gmail.com] Sent: Tuesday, October 05, 2010 1:31 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion There should not need to force the LDB to reload, Can you share more

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
I don't know how to determine that. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Tuesday, October 05, 2010 1:44 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion Is it being detached

RE: DropDownChoice/Model Confusion

2010-10-05 Thread Shelli Orton
/Model Confusion I don't know how to determine that. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Tuesday, October 05, 2010 1:44 PM To: users@wicket.apache.org Subject: Re: DropDownChoice/Model Confusion

Re: DropDownChoice/Model Confusion

2010-10-05 Thread James Carman
Message- From: Shelli Orton Sent: Tuesday, October 05, 2010 2:24 PM To: users@wicket.apache.org Subject: RE: DropDownChoice/Model Confusion I don't know how to determine that. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf

DropDownChoice/Model Confusion

2010-10-04 Thread Shelli Orton
I am writing a (simple?) database CRUD app where I have multiple tab panels that encapsulate the different tables in the database. On a panel there's a dropdownchoice which lists the existing records for that table. There's also create, delete and edit buttons (and and edit panel with save and

Re: DropDownChoice/Model Confusion

2010-10-04 Thread jcgarciam
.n4.nabble.com/DropDownChoice-Model-Confusion-tp2955144p2955144.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4