property model question

2011-07-20 Thread wmike1...@gmail.com
itself off of. Thanks, mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/property-model-question-tp3681616p3681616.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe

Re: property model question

2011-07-20 Thread Igor Vaynberg
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/property-model-question-tp3681616p3681616.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: property model question

2011-07-20 Thread Per Newgro
to pass a property model a sublass of IModel to base itself off of. Thanks, mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/property-model-question-tp3681616p3681616.html Sent from the Users forum mailing list archive at Nabble.com

Re: quick page model question

2011-01-04 Thread gnugrf
) { e.printStackTrace(); } return client; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/quick-page-model-question-tp3172678p3173721.html Sent from the Users forum mailing list archive at Nabble.com

Re: quick page model question

2011-01-04 Thread Jeremy Thomerson
On Tue, Jan 4, 2011 at 9:18 AM, gnugrf gnu...@sdf.lonestar.org wrote: I set a breakpoint within the load() and when the page first gets constructed I am able to watch the code get executed. When I refresh, the listview on the page (which uses a different LDM) does get called again, however

Re: quick page model question

2011-01-04 Thread gnugrf
inherited from an abstract class? I would assume setting it on the detach method in the abstract class. Isnt this going to make execution stop every time ANY ldm detaches? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/quick-page-model-question-tp3172678p3173857

Re: quick page model question

2011-01-04 Thread Jeremy Thomerson
On Tue, Jan 4, 2011 at 10:28 AM, gnugrf gnu...@sdf.lonestar.org wrote: Jeremy thanks for your patience, I have a couple of questions about your replies. 1. If my constructors for the page are public ManageClientPage(long id){this(new ClientLDM(id));} public

Re: quick page model question

2011-01-04 Thread gnugrf
with dynamic models e.g propertymodels referencing the page model. You saved me weeks of searching and I can't tell you how much I appreciate the time you took helping me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/quick-page-model-question-tp3172678p3174289.html Sent

Re: quick page model question

2011-01-04 Thread Jeremy Thomerson
On Tue, Jan 4, 2011 at 2:10 PM, gnugrf gnu...@sdf.lonestar.org wrote: Thanks a million man! I wasn't calling super(model) and after figuring out how to attach sources (which I hadn't known about), I was able to see that the page model was being detached and refreshed. Great! The labels

quick page model question

2011-01-03 Thread gnugrf
how do you get the page model to refresh when a user presses reload or F5? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/quick-page-model-question-tp3172678p3172678.html Sent from the Users forum mailing list archive at Nabble.com

Re: quick page model question

2011-01-03 Thread Martin Makundi
.n4.nabble.com/quick-page-model-question-tp3172678p3172678.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: quick page model question

2011-01-03 Thread gnugrf
ManageClientPage(IModelClient client) { ///code here} and its being called using id. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/quick-page-model-question-tp3172678p3172797.html Sent from the Users forum mailing list archive at Nabble.com

Re: quick page model question

2011-01-03 Thread Jeremy Thomerson
On Mon, Jan 3, 2011 at 5:00 PM, gnugrf gnu...@sdf.lonestar.org wrote: I'm pretty much a noob, even though I've been slowly working on a project for about a year so bear with me. I've read understanding models a couple dozen times already and lifecycle, requestcycle, etc. and did a fair amount

Re: Model question ?

2009-08-16 Thread Martijn Dashorst
the page itself as the model object? Warren -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Friday, August 14, 2009 5:43 PM To: users@wicket.apache.org Subject: RE: Model question ? Warren, If you don't mind your wicket:ids becoming rather misleading

RE: Model question ?

2009-08-15 Thread Warren Bell
Is there any issues you need to be concerned with when using the page itself as the model object? Warren -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Friday, August 14, 2009 5:43 PM To: users@wicket.apache.org Subject: RE: Model question ? Warren

Re: Model question ?

2009-08-15 Thread Eelco Hillenius
Is there any issues you need to be concerned with when using the page itself as the model object? I don't think so. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Model question ?

2009-08-14 Thread Warren Bell
How should I set up my model for the following situation. I have a form with a ListChoice and a TextField. The TextField needs to access a property of the object selected of the ListChoice. I have it all working using a ValueMap, but that seems like overkill to use a ValueMap for one object. Here

Re: Model question ?

2009-08-14 Thread jWeekend
- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Model-question---tp24978225p24979787.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: Model question ?

2009-08-14 Thread Warren Bell
@wicket.apache.org Subject: Re: Model question ? Warren, ... and if you prefer using a CPM for your vendorEditForms: public class HomePage extends WebPage { private ListVendor vendors = Arrays.asList(new Vendor(v1), new Vendor

RE: Model question ?

2009-08-14 Thread jWeekend
...@cabouge.com] Sent: Friday, August 14, 2009 3:47 PM To: users@wicket.apache.org Subject: Re: Model question ? Warren, ... and if you prefer using a CPM for your vendorEditForms: public class HomePage extends WebPage { private ListVendor vendors = Arrays.asList(new Vendor(v1

RE: Model question ?

2009-08-14 Thread jWeekend
...@cabouge.com] Sent: Friday, August 14, 2009 3:47 PM To: users@wicket.apache.org Subject: Re: Model question ? Warren, ... and if you prefer using a CPM for your vendorEditForms: public class HomePage extends WebPage { private ListVendor vendors = Arrays.asList(new Vendor(v1

Re: Model Question

2009-07-07 Thread Linda van der Pal
Is there a Calendar object under the covers somewhere? Cause it looks like a conversion error, seeing how the months start counting from zero in the Calendar object. Regards, Linda jpalmer1...@mchsi.com wrote: I have the following code to allow the user to select the date that a report is to

Model Question

2009-07-06 Thread jpalmer1026
I have the following code to allow the user to select the date that a report is to be generated for. For some reason, though, whatever date is selected from the textfield, the previous date is being used. For example, if the user inputs 07/06/2009 into the dateTextField, 07/05/2009 is being

Re: simple model question

2009-05-29 Thread bferr
/simple-model-question-tp23750088p23786425.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: simple model question

2009-05-27 Thread Igor Vaynberg
if you chain your models properly its no problem.. imodel ldm=new loadabledetachablemodel(..) imodel prop=new propertymodel(ldm, prop); -igor On Wed, May 27, 2009 at 1:20 PM, bf b...@juno.com wrote: I constructed a Page that uses a LoadableDetachableModel.  The LoadableDetachableModel

Component Model question

2009-04-13 Thread Craig Tataryn
I have a component I'm designing where it displays a list of items to the user, so the setup for the component on the page might look like this: add(new MultiTextInputCollectionString(tags, new ArrayListString() { { add(apple);

Re: Component Model question

2009-04-10 Thread Martin Makundi
Are you trying to handle state on client side? While that is possible, it is not the purpose of Wicket. Would you consider managing he state on server side? ** Martin 2009/4/10 Craig Tataryn crai...@tataryn.net: I have a component I'm designing where it displays a list of items to the user, so

Re: Component Model question

2009-04-10 Thread Craig Tataryn
On 10-Apr-09, at 12:58 PM, Martin Makundi wrote: Are you trying to handle state on client side? While that is possible, it is not the purpose of Wicket. Would you consider managing he state on server side? It's an existing javascript widget I wrote so I was looking for a quick port to

Re: Component Model question

2009-04-10 Thread Martin Makundi
So if it's possible for me to (easily) map those two sets of hidden inputs to my model upon form submit I'd really like to know how. What specifically is the difficult part? ** Martin - To unsubscribe, e-mail:

Re: Component Model question

2009-04-10 Thread Igor Vaynberg
look at textfield. all you have to do is to write out the input tags with a name you obtain from formcomponent.getname() - to guarantee uniqueness, then override convertinput() and pull those values out of the request into a collection and call setconvertedinput(collection). formcomponent will

Re: Component Model question

2009-04-10 Thread Craig Tataryn
On 10-Apr-09, at 3:10 PM, Igor Vaynberg wrote: look at textfield. all you have to do is to write out the input tags with a name you obtain from formcomponent.getname() - to guarantee uniqueness, then override convertinput() and pull those values out of the request into a collection and call

Re: Component Model question

2009-04-10 Thread Igor Vaynberg
no, all you have to do is override convertinput and inside call setconvertedinput(yourcollection); the default implementation of updatemodel() already does getmodel().setobject(getconvertedinput()); -igor On Fri, Apr 10, 2009 at 3:29 PM, Craig Tataryn crai...@tataryn.net wrote: On 10-Apr-09,

Model question

2007-09-11 Thread Leszek Gawron
Assuming eventModel is loadable detachable model sould I implement some marker interfaces in the following model? private static class SystemWarningEventImagePathModel extends AbstractReadOnlyModel { private IModel eventModel; public SystemWarningEventImagePathModel( IModel

Re: Model question

2007-09-11 Thread Martijn Dashorst
Nothing directly. The only thing you should do is propagate the 'detach' method to your nested eventModel. The chaining model is merely interesting for consumers of your model, so they can get to the embedded model using a specified API. From chapter 5 Understanding Models of Wicket in Action