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

Re: DropDownChoice/Model Confusion

2010-10-04 Thread jcgarciam
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 at construction of your pages and is considered static because its never get called again unless you