Re: CompoundPropertyModel - white space

2021-06-08 Thread Mihir Chhaya
limit. > > For this, I have added OnChangeAjaxBehavior to all the three text fields > + > > the drop down. > > > > These fields are bound to the respective bean properties using > > CompoundProperyModel. The bean has a generic getter method to calculate > > c

Re: CompoundPropertyModel - white space

2021-06-08 Thread Sven Meier
trimming white space from any field. Issue: The CompoundPropertyModel bean setter method is not called when a white space is entered after any letter in the field. For example, entering "f" in the first name will call the setter method, but entering white space after "f" does not call the sette

CompoundPropertyModel - white space

2021-06-08 Thread Mihir Chhaya
fields + the drop down. These fields are bound to the respective bean properties using CompoundProperyModel. The bean has a generic getter method to calculate combined length without trimming white space from any field. Issue: The CompoundPropertyModel bean setter method is not called when a white

Re: CompoundPropertyModel: override method or catch exception

2015-06-17 Thread Martin Grigorov
16, 2015 at 9:23 PM, sorinev wrote: > To go with my other thread > < > http://apache-wicket.1842946.n4.nabble.com/TextField-AjaxEventBehavior-onBlur-onEvent-tp4671150.html > > > about the same form page, I have an issue with the CompoundPropertyModel. > There is a Tex

CompoundPropertyModel: override method or catch exception

2015-06-16 Thread sorinev
To go with my other thread <http://apache-wicket.1842946.n4.nabble.com/TextField-AjaxEventBehavior-onBlur-onEvent-tp4671150.html> about the same form page, I have an issue with the CompoundPropertyModel. There is a TextField in a form on this page, and the corresponding setter in the mod

Re: how bind CompoundPropertyModel to items of DataView

2014-02-13 Thread Martin Grigorov
Hi, CompoundPropertyModel (CPM) works by using the component path between the component with the model and its children. I.e. if you set CPM to the DataView then you must make sure its object has the same structure as the items in the dataview. This could be challenging to setup and to maintain

how bind CompoundPropertyModel to items of DataView

2014-02-13 Thread Farrukh SATTOROV
Hi everyone, is there any example or explanation of using CompundPropertyModel for wciket output component (like table).

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-23 Thread Petr Zajac
); }); Petr Dne 22.5.2013 22:18, Martin Grigorov napsal(a): Hi, On Wed, May 22, 2013 at 11:07 PM, Petr Zajac wrote: Hi, when I tried to upgrade to to Wicket 6.8.0 I found probably serious issue. We have Form with two text fields ('username' and 'password')

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-23 Thread Martin Grigorov
primary : "ui-icon-clock" >>> }); >>> $submitBtn.button("refresh"); >>> $submitBtn.button("disable"); >>> // $form.find('input[type="text"]').add($form.find('i

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-23 Thread Petr Zajac
}); Petr Dne 22.5.2013 22:18, Martin Grigorov napsal(a): Hi, On Wed, May 22, 2013 at 11:07 PM, Petr Zajac wrote: Hi, when I tried to upgrade to to Wicket 6.8.0 I found probably serious issue. We have Form with two text fields ('username' and 'password'). We

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-23 Thread Martin Grigorov
*, true); > }); > > > Petr > > Dne 22.5.2013 22:18, Martin Grigorov napsal(a): > >> Hi, >> >> >> On Wed, May 22, 2013 at 11:07 PM, Petr Zajac >> wrote: >> >> Hi, >>> when I tried to upgrade to to Wicket 6.8.0 I found probably serious

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-22 Thread Petr Zajac
$submitBtn.button("disable"); // $form.find('input[type="text"]').add($form.find('input[type="password"]')).attr('disabled', true); }); Petr Dne 22.5.2013 22:18, Martin Grigorov napsal(a): Hi, On Wed, May 22, 201

Re: Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-22 Thread Martin Grigorov
Hi, On Wed, May 22, 2013 at 11:07 PM, Petr Zajac wrote: > Hi, > when I tried to upgrade to to Wicket 6.8.0 I found probably serious issue. > We have Form with two text fields ('username' and 'password'). > We set CompoundPropertyModel and bound properties to two

Issue in 6.8.0 - Form with CompoundPropertyModel and AjaxSubmitLink

2013-05-22 Thread Petr Zajac
Hi, when I tried to upgrade to to Wicket 6.8.0 I found probably serious issue. We have Form with two text fields ('username' and 'password'). We set CompoundPropertyModel and bound properties to two textfields. The submit button uses AjaxSubmitLink. When I click to submit

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Sven Meier
However I'm curious to know if a possible solution would be to create the DetailPage instance inside the onClick method of the Link, so that it becomes a local variable that gets collected asap. Sure, that's perfectly fine. Sven On 03/19/2013 11:39 AM, Lucio Crusca wrote: In data Tuesday 19

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Lucio Crusca
In data Tuesday 19 March 2013 09:42:54, Sven Meier ha scritto: > Hi Lucio, > FormComponentPanels are an advanced concept and I'd recommend you extend > org.apache.wicket.markup.html.panel.Panel until you really need the > features of a FormComponentPanel. Thanks that solved the problem. > BTW yo

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Sven Meier
et serialized pages separately. Hope this helps Sven On 03/18/2013 10:23 PM, Lucio Crusca wrote: I'm trying to use CompoundPropertyModel in a form I dynamically create with a RepeatingView. I use the CompoundPropertyModel#bind method to bind each input tag to the corresponding java bean proper

CompoundPropertyModel binding direction

2013-03-18 Thread Lucio Crusca
I'm trying to use CompoundPropertyModel in a form I dynamically create with a RepeatingView. I use the CompoundPropertyModel#bind method to bind each input tag to the corresponding java bean property. Binding from java bean to html does work (the fields get filled), while the other way a

Image.initModel() returns null and forbids attaching an image to a form CompoundPropertyModel - why?

2013-03-14 Thread Marios Skounakis
Hi all, I have created a component that extends NonCachingImage which overrides getImageResource(). The intent was to include this in a form, and retrieve the image data from a property of the form object. However this does not work because Image.initModel() returns null and as a result my compon

Re: Label with default text if model empty + CompoundPropertyModel

2013-02-18 Thread Sven Meier
Zizka wrote: Hi all, I have: public FooPage( ... ) { this.setDefaultModel( new CompoundPropertyModel(new GenericIdLDM( Foo.class, 1)) ); add(new Label("title")); I'd like to have $subj. I've found this solution from 2007 (point below) : http://www.mail-arc

Label with default text if model empty + CompoundPropertyModel

2013-02-18 Thread Ondrej Zizka
Hi all, I have: public FooPage( ... ) { this.setDefaultModel( new CompoundPropertyModel(new GenericIdLDM( Foo.class, 1)) ); add(new Label("title")); I'd like to have $subj. I've found this solution from 2007 (point below) : http://www.mail-arc

Re: Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-28 Thread Eric Jablow
On Fri, Jan 25, 2013 at 4:24 AM, Pieter Claassen wrote: > When I try to create the following model after migrating to wicket 6.5.0 > > new CompoundPropertyModel(reportWebModel) > > *where* > > ReportWebModel extends BaseWebModel > > *and* > > BaseWebModel imple

Re: Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-28 Thread Martin Grigorov
I believe that this question has been asked recently and it got a response. http://markmail.org/thread/rfcqarnvct3t2gh3 On Fri, Jan 25, 2013 at 11:24 AM, Pieter Claassen wrote: > When I try to create the following model after migrating to wicket 6.5.0 > > new CompoundProp

Re: Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-25 Thread Bas Gooren
Well, from the looks of it it's a bit odd that you write new CompoundPropertyModel(reportWebModel) instead of new CompoundPropertyModel(reportWebModel) since ReportWebModel extends BaseWebModel The CPM constructor expects either a type literal or a model. In your case it is both, an

Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-25 Thread Pieter Claassen
When I try to create the following model after migrating to wicket 6.5.0 new CompoundPropertyModel(reportWebModel) *where* ReportWebModel extends BaseWebModel *and* BaseWebModel implements IModel My IDE (Intellij) shows no problem with type checking the code but when I try to compile it I

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
Ah great. It works now. I enabled the validation and somehow it works now... I tested it x times before with no results.. well thanks.. :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942p4652946.html Sent

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread Dan Retzlaff
ed, my object was not populated... > > I will try again though... > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942p4652944.htm

Re: CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
/CompoundPropertyModel-not-working-Warning-message-tp4652942p4652944.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: CompoundPropertyModel not working... Warning message

2012-10-13 Thread Dan Retzlaff
BasePage; name: wicket-logo.png; locale: null; style: > null; > variation: null] because it cannot be located./ > > Here is the Java File: > > > And the HTML file: > > > > > What am I missing? > > > > -- > View this message in context: > http://a

CompoundPropertyModel not working... Warning message

2012-10-13 Thread delta458
the HTML file: What am I missing? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942.html Sent from the Users forum mailing list archive at Nabble.com

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
Wicket 1.5 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-problem-the-values-are-not-refreshing-tp4649987p464.html Sent from the Users forum mailing list archive at Nabble.com

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Sven Meier
Customer customer = new Customer(); CompoundPropertyModel compoundPropertyModel = new CompoundPropertyModel(customer ); final Form addCardForm= new Form("addCardForm",compoundPropertyModel); customer.setFirstName(parameters.get("firstName").toString());

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
.1842946.n4.nabble.com/CompoundPropertyModel-problem-the-values-are-not-refreshing-tp4649987p4649993.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional com

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Thomas Götz
Could you please provide a Quickstart that describes your problem? This will make it much easier for us to help you. -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
Below are my files HTML Bean Customer.java - getters/setters for firstName and lastname Component.java - On URL getting the firstname and lastNames as page parameters Customer customer = new Customer(); CompoundPropertyModel compoundPropertyModel = new CompoundPropertyModel

RE: CompoundPropertyModel and FormComponent

2012-01-18 Thread Schlärmann , Bob
IModel model = super.initModel(); return new CompoundPropertyModel(model); } protected void onBeforeRender() { getDefaultModel(); // getDefaultModel initialized model if not yet initialized super.onBeforeRender(); } public boolean processC

Re: CompoundPropertyModel and FormComponent

2012-01-18 Thread Andrea Del Bene
mewhere else? No, I don't think so. The page to which the component is added is constructed as follows: CompoundPropertyModel model = new CompoundPropertyModel(this); Form form = new Form("form", model); form.add(new TextField("person.firstname")); form.add(new AdresPa

RE: CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
> Yes, I think you are doing it "the Wicket way", but your snippet and > mine should work. Do you modify components' model somewhere else? No, I don't think so. The page to which the component is added is constructed as follows: CompoundPropertyModel model = new

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
ror. However I also tried the following modified version of your idea: In AddressPanel.java: @Override protected void onInitialize() { super.onInitialize(); Object o = getDefaultModelObject(); setDefaultModel(new CompoundPropertyModel(getDefaultModelObject())); } With

RE: CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
bject(); setDefaultModel(new CompoundPropertyModel(getDefaultModelObject())); } With the above code I can now load the page, also the getDefaultModelObject() returns the correct Address instance. Unfortunately upon submitting the form I get the same exception again ("No get method defined for cl

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Hi, I think you need to build a CompoundPropertyModel inside the component itself. Override onInitialize method of AddressPanel and try with something like this: @Override protected void onInitialize() { super.onInitialize(); setDefaultModel(new CompoundPropertyModel

CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
ith a CompoundPropertyModel? I'm using the following code to add the component to the form: Form form = new Form("form", new CompoundPropertyModel(this)); // HomePage has an instance of Person called person form.add(new TextField("person.firstname")); form.add(new AddressPanel(&qu

Re: What is the difference between Model , PropertyModel,CompoundPropertyModel?

2011-11-10 Thread raju.ch
yeah..thats very good material...I've understood it..thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-the-difference-between-Model-PropertyModel-CompoundPropertyModel-tp4030452p4030480.html Sent from the Users forum mailing list archive at Nabbl

Re: What is the difference between Model , PropertyModel,CompoundPropertyModel?

2011-11-10 Thread Clint Checketts
Model is like a box. It is just a container. Put your object in and get it back out. PropertyModel lets you put an object in the box and always lookup a value on that object, and set that value CompoundPropertyModel merely removes the string setting which value is pointing to the object and uses

Re: What is the difference between Model , PropertyModel,CompoundPropertyModel?

2011-11-10 Thread Steve Swinsburg
Hi, There is some documentation about models on the wiki: https://cwiki.apache.org/WICKET/working-with-wicket-models.html cheers, Steve On 11/11/2011, at 3:33 PM, raju.ch wrote: > Could someone please explain me the difference between Model , > PropertyModel,CompoundPropert

Re: Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
gt; > Sorry this isn't a solution, but it's where I'd start looking for > something. I'm sure someone with more experience may have a much > better suggestion. > > On Tue, Aug 9, 2011 at 7:19 PM, Marco Aurélio Silva wrote: >> Hi Rodrigo, >> >> Th

Re: Radio with compoundPropertyModel

2011-08-09 Thread Rodrigo Heffner
élio Silva wrote: > Hi Rodrigo, > > Thanks for the fast response, but that approach didn't solve the > problem. Actually, the problem is not the CompoundPropertyModel, if I > use a PropertyModel instead it wouldn't work as well... in both cases > only the textField is updati

Re: Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
Hi Rodrigo, Thanks for the fast response, but that approach didn't solve the problem. Actually, the problem is not the CompoundPropertyModel, if I use a PropertyModel instead it wouldn't work as well... in both cases only the textField is updating my model, the radio does not. Thanks

Re: Radio with compoundPropertyModel

2011-08-09 Thread Rodrigo Heffner
sted this, but I believe this should do the trick: > > class PhoneNumber { > > String number; > boolean default; > > /* Add getters and setters for both  */ > > } > > public void EditPhonePanel(String id, PhoneNumber phoneNumber) { > > CompoundPropertyM

Re: Radio with compoundPropertyModel

2011-08-09 Thread Rodrigo Heffner
Hi Marco, I haven't tested this, but I believe this should do the trick: class PhoneNumber { String number; boolean default; /* Add getters and setters for both */ } public void EditPhonePanel(String id, PhoneNumber phoneNumber) { CompoundPropertyModel model = new CompoundProperty

Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
ber) { setModel(new CompoundPropertyModel(phoneNumber)); add(TextField("number")); add(Radio("default")); } And I'm using a repeater to add one EditPhonePanel for each phone in my list. The number property of PhoneNumber object is being updated as expected, but I don't kn

Re: CompoundPropertyModel for label?

2011-06-12 Thread Clint Checketts
You need to set the CompoundPropertyModel on the parent object. In your example the page. Try the following code: customer = new Customer(); customer.setFirstName("Jimmy"); customer.setLastName("Dean"); customer.getAddress().setStr

CompoundPropertyModel for label?

2011-06-12 Thread Brian Lavender
Jimmy"); customer.setLastName("Dean"); customer.getAddress().setStreet("123 Easy Street"); myModel = new CompoundPropertyModel(customer); firstNameLabel = new Label("firstName",myModel); add(firstNam

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-30 Thread huberc
Yes, i can get the CompoundPropertyModel and it refers to the entity containing the calendar. So i was wondering if i should just get the object from the model and throw it in a PropertyResolver. But somehow I have the feeling this would not be the intended way, would it? Can you debug

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-30 Thread Andrea Del Bene
Can you debug onBeforeRender and see if CompoundPropertyModel refers to the original Panel's field containing the calendar? Or model's object is already null? I tried to call getModel() in onBeforeRender() to get hold of the parent's model (the CompoundPropertyModel of the pan

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-29 Thread huberc
You shouldn't care about passing model from parent to child-children. If I understood right your situation you should have a panel (parent of DateDropDownChoice) where you have set a CompoundPropertyModel binded to an object containing a calendar (i.e. setDefaultModel(new CompoundProperty

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-29 Thread andrea del bene
You shouldn't care about passing model from parent to child-children. If I understood right your situation you should have a panel (parent of DateDropDownChoice) where you have set a CompoundPropertyModel binded to an object containing a calendar (i.e. setDefaultModel(new CompoundProperty

Re: how handle confirm password field with CompoundPropertyModel ?

2011-05-29 Thread Mathilde Pellerin
You are right : when I tested I didn't use new Model with the good component ! Sorry for disturbing... 2011/5/29 Sven Meier > Hi, > > a component acquires a model from a CompoundPropertyModel only if you don't > explicitly provide one. > Thus your exam

Re: how handle confirm password field with CompoundPropertyModel ?

2011-05-29 Thread Sven Meier
Hi, a component acquires a model from a CompoundPropertyModel only if you don't explicitly provide one. Thus your example should work just fine: PasswordTextField confirmPwdField = new PasswordTextField("confirmPassword", new Model()); What do you mean by "it didn&#x

how handle confirm password field with CompoundPropertyModel ?

2011-05-29 Thread Mathilde Pellerin
Hi all, I have a subcription form with a CompoundPropertyModel like this : Form inscriptionForm = new Form("inscriptionForm", new CompoundPropertyModel(new LoadableDetachableModel() { @Override protected M

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-29 Thread huberc
mponent that extends FormComponent to display a date in a certain way. This component is part of a Panel in which I use a CompoundPropertyModel to render an object containing a calendar among other things (the object is fully populated and load from the database by using a LoadableDetachable

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-29 Thread huberc
ould look (WARNING: Rather lengthy post). My particular problem is that I have a custom component that extends FormComponent to display a date in a certain way. This component is part of a Panel in which I use a CompoundPropertyModel to render an object containing a calendar among other things (the

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread James Carman
that someone here could enlighten me or tell me where I should >> look (WARNING: Rather lengthy post). >> >> My particular problem is that I have a custom component that extends >> FormComponent to display a date in a certain way. This component >> is part of a Panel in w

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread andrea del bene
meone here could enlighten me or tell me where I should look (WARNING: Rather lengthy post). My particular problem is that I have a custom component that extends FormComponent to display a date in a certain way. This component is part of a Panel in which I use a CompoundPropertyModel to render

How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread huberc
is that I have a custom component that extends FormComponent to display a date in a certain way. This component is part of a Panel in which I use a CompoundPropertyModel to render an object containing a calendar among other things (the object is fully populated and load from the database by

RE: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-16 Thread datazuul
frontend I can access it with index like "memberships[0]". -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-bind-object-in-Hashset-to-CompoundPropertyModel-expression-tp3521031p3526385.html Sent from the Users forum mailing list archive at

RE: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-15 Thread Wilhelmsen Tor Iver
> I haven't tried it and guaranteeing the ordering would need to be accounted > for. But its a potential direction. Another approach would be to change the Hibernate mapping from a to a since that will map to a List on the Java side. - Tor Iver

Re: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-14 Thread Clint Checketts
t; A set doesn't allow indexed access. > > Sven > > > On 05/13/2011 09:55 PM, datazuul wrote: > >> I have this model: >> final CompoundPropertyModel userModel = new >> CompoundPropertyModel(user); >> >> and want bind a checkbox to a boolean fi

Re: How to bind object in Hashset to CompoundPropertyModel expression

2011-05-13 Thread Sven Meier
A set doesn't allow indexed access. Sven On 05/13/2011 09:55 PM, datazuul wrote: I have this model: final CompoundPropertyModel userModel = new CompoundPropertyModel(user); and want bind a checkbox to a boolean field in User - getUserAccount - getMemberships - Membership - acceptedTerms

How to bind object in Hashset to CompoundPropertyModel expression

2011-05-13 Thread datazuul
I have this model: final CompoundPropertyModel userModel = new CompoundPropertyModel(user); and want bind a checkbox to a boolean field in User - getUserAccount - getMemberships - Membership - acceptedTerms (the boolean field) I used this expression: userModel.bind("userAccount.memberships.

Re: CompoundPropertyModel and Image

2011-04-23 Thread andrea del bene
s.picture = new ContextRelativeResource ("image/" + pic); } } public Team () { CompoundPropertyModel tm = new CompoundPropertyModel (reneTm) ; setDefaultModel (tm) ; add (new Label ("name")); // wo

CompoundPropertyModel and Image

2011-04-23 Thread Rene Stolle
, String pic) { this.name = name; this.age = age; this.picture = new ContextRelativeResource ("image/" + pic); } } public Team () { CompoundPro

Re: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Maarten Billemont
On 09 Mar 2011, at 22:36, Brown, Berlin [GCG-PFS] wrote: >> On 09 Mar 2011, at 22:01, Chris Colman wrote: >>> >>> Sorry, CompoundPropertyModel is not deprecated in 1.5, it's >>> BoundCompoundPropertyModel that is. >> >> Too bad :-) >>

RE: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Brown, Berlin [GCG-PFS]
What is wrong with compoundpropertymodel (pre 1.5)? -Original Message- From: Maarten Billemont [mailto:lhun...@gmail.com] Sent: Wednesday, March 09, 2011 4:30 PM To: users@wicket.apache.org Subject: Re: CompoundPropertyModel deprecated in 1.5 - what is the replacement? On 09 Mar 2011

Re: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Maarten Billemont
On 09 Mar 2011, at 22:01, Chris Colman wrote: > > Sorry, CompoundPropertyModel is not deprecated in 1.5, it's > BoundCompoundPropertyModel that is. Too bad :-) Really, you use normal models and LDMs, or BindGen (http://code.google.com/p/bindgen-wicket/) and make your

RE: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Chris Colman
My bad! I was had done s search on CompoundPropertyModel and BoundCompoundPropertyModel showed up in the deprecated list but I just saw the highlighted "CompountPropertyModel" part... =] Sorry, CompoundPropertyModel is not deprecated in 1.5, it's BoundCompoundProper

Re: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Martin Grigorov
On Wed, Mar 9, 2011 at 9:56 AM, Coleman, Chris < chris.cole...@thalesgroup.com.au> wrote: > I noticed that CompoundPropertyModel is deprecated in 1.5 but I can't find > anything relating to this on the "Migration to Wicket 1.5" page. > > What is meant to be use

CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-08 Thread Coleman, Chris
I noticed that CompoundPropertyModel is deprecated in 1.5 but I can't find anything relating to this on the "Migration to Wicket 1.5" page. What is meant to be used instead of this class? DISCLAIMER:

CheckGroups in Form with CompoundPropertyModel

2010-11-17 Thread sonxurxo
I'm using (and I'd like not to have to reject that) a CompoundPropertyModel for my form. As I am creating a new instance, the model for the form is empty of data. The problem is that the instances of B that can be associated with each A instance are not in the model I am using (in fact

Re: Multiple submit buttons - CompoundPropertyModel not updated

2010-11-03 Thread Igor Vaynberg
but it DOES HAVE to update my CompoundPropertyModel values, to deal with the user's (partially) entered values so far. I cannot get this together: setDefaultFormProcessing(false) will not update my models, setDefaultFormProcessing(true) will finally submit my form, also calling the form's

Multiple submit buttons - CompoundPropertyModel not updated

2010-11-03 Thread Benjamin Lorenz
), etc..., but it DOES HAVE to update my CompoundPropertyModel values, to deal with the user's (partially) entered values so far. I cannot get this together: setDefaultFormProcessing(false) will not update my models, setDefaultFormProcessing(true) will finally submit my form, also calling the f

Re: CompoundPropertymodel loses object after form submit

2010-06-09 Thread Manfred Bergmann
Hi. Certainly I can. Here is the main Panel for the case where the CompoundPropertyModel loses the object. The WebPage classes basically only contain one of those main panels depending of the PageParameters which are passed into the panel as converted to a Scala immutable Map instance

Re: CompoundPropertymodel loses object after form submit

2010-06-08 Thread yaniv kessler
Can you show some code? On Wed, Jun 9, 2010 at 1:01 AM, Bergmann Manfred wrote: > Hi. > > I experience a strange behaviour where I'm not exactly sure what I'm doing > wrong. > On my pages which are wrapped around some database model classes I have > forms with CompoundPropertyModels. > On one of

CompoundPropertymodel loses object after form submit

2010-06-08 Thread Bergmann Manfred
Hi. I experience a strange behaviour where I'm not exactly sure what I'm doing wrong. On my pages which are wrapped around some database model classes I have forms with CompoundPropertyModels. On one of five pages the form seems to lose the model object after a submit is done so that the page r

How to make sure that you always have a CompoundPropertyModel

2010-05-28 Thread Erwin Bolwidt
Hi, I try to make my components re-usable whenever this is feasible. A problem that I'm running into is this: A Component itself decides that it needs a CompoundPropertyModel, because it wants to use the automatic property model lookups feature when a model is omitted on a child comp

Re: CompoundPropertyModel issue

2010-03-03 Thread chinedu efoagui
t; > Cheers, >> > Xavier >> > >> > 2010/3/2 chinedu efoagui >> > >> >> hello, >> >> >> >> i am added a dropdownchoice to a form. The form's model is set to a >> >> CompoundPropertyModel >> >> as shown bel

Re: CompoundPropertyModel issue

2010-03-03 Thread Xavier López
el(), new > > Model("")); > > > > Cheers, > > Xavier > > > > 2010/3/2 chinedu efoagui > > > >> hello, > >> > >> i am added a dropdownchoice to a form. The form's model is set to a > >> CompoundPropertyModel >

Re: CompoundPropertyModel issue

2010-03-03 Thread chinedu efoagui
t; > 2010/3/2 chinedu efoagui > >> hello, >> >> i am added a dropdownchoice to a form. The form's model is set to a >> CompoundPropertyModel >> as shown below >> IModel zaModel=new CompoundPropertyModel(selected); >> leaveform.setModel(zaModel); >

Re: CompoundPropertyModel issue

2010-03-02 Thread Xavier López
The form's model is set to a > CompoundPropertyModel > as shown below > IModel zaModel=new CompoundPropertyModel(selected); > leaveform.setModel(zaModel); > > Now the dropdown shows a list of Employees > > EmployeeDropDownChoice approvalofficers=new > EmployeeDropDownC

CompoundPropertyModel issue

2010-03-02 Thread chinedu efoagui
hello, i am added a dropdownchoice to a form. The form's model is set to a CompoundPropertyModel as shown below IModel zaModel=new CompoundPropertyModel(selected); leaveform.setModel(zaModel); Now the dropdown shows a list of Employees EmployeeDropDownChoice approvalofficer

CompoundPropertyModel: continue traversal with multiple CPMs in the hierarchy

2010-02-22 Thread srm
Hi list, say I have a Component hierarchy like CompA->CompB->CompC. CompB and CompA each have a distinct CompoundPropertyModel. CompC will use it's ID as accessor to one of the CPM.modelObject's fields. Given that CompB's CPM doesn't have a coresponding property

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-17 Thread David Chang
concern in terms of memory consumption? Regards, David --- On Fri, 2/5/10, Martijn Dashorst wrote: > From: Martijn Dashorst > Subject: Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book > To: users@wicket.apache.org > Date: Friday, February 5, 2010, 7:09 AM >

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Riyad Kalla
o ask incase there were plans for it. -R On Fri, Feb 5, 2010 at 5:09 AM, Martijn Dashorst wrote: > On Fri, Feb 5, 2010 at 10:16 AM, Wilhelmsen Tor Iver > wrote: > >> super(new CompoundPropertyModel(this)); > > > > This seems wrong: A call to super() cannot reference

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Martijn Dashorst
On Fri, Feb 5, 2010 at 10:16 AM, Wilhelmsen Tor Iver wrote: >>   super(new CompoundPropertyModel(this)); > > This seems wrong: A call to super() cannot reference "this" directly or > indirectly: > > JLS §8.8.7 says: > "It is a compile-time error for

SV: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Wilhelmsen Tor Iver
> super(new CompoundPropertyModel(this)); This seems wrong: A call to super() cannot reference "this" directly or indirectly: JLS §8.8.7 says: "It is a compile-time error for a constructor to directly or indirectly invoke itself through a series of one or more ex

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-04 Thread Andrew Lombardi
Hello, I am learning Wicket by reading <>. I am using > Wicket 1.4.5 and Java 6. > > On page 244, the sample code is as follows: > > private int counter = 0; > public MyPage() { > super(new CompoundPropertyModel(this)); > final Label counterLabel = new

Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-04 Thread David Chang
Hello, I am learning Wicket by reading <>. I am using Wicket 1.4.5 and Java 6. On page 244, the sample code is as follows: private int counter = 0; public MyPage() { super(new CompoundPropertyModel(this)); final Label counterLabel = new Label("counter");

CompoundPropertyModel and Resource Key

2009-12-15 Thread Oliver Krohne
Hi, i have a form containing text fields with borders. I am using a CompoundPropertyModel with field navigation e.g. "seller.firstName" to define the sellers firstname. form.add(new FormComponentFeedbackBorder("borderFirstName") .add(new RequiredTextField("se

Re: nested property and CompoundPropertyModel

2009-12-02 Thread fachhoch
It worked I was wrong. Thanks fachhoch wrote: > > I tried it did now work , need suggestion If I can make it work > > James Carman-3 wrote: >> >> Have you tried it? >> >> On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: >>> I am using   Co

Re: nested property and CompoundPropertyModel

2009-12-02 Thread James Carman
Read this: http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels On Wed, Dec 2, 2009 at 10:53 AM, James Carman wrote: > Have you tried it? > > On Wed, Dec 2, 2009 at 10:51 AM, tubin gen wrote: >> I am using   CompoundPrope

  1   2   3   >