Thanks, your suggestion solved my problem. Greetings from Spain.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654594.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi Raul,
there are a few things to improve here:
- in your case you don't need to extend FormComponentPanel
- if you really want to control the textField's inputName, you have to
let the component know about it
- usage of models could be improved.
See here for some ideas:
http://www.fileconvo
Here is the example to prove it's package it and deploy it in an application
server.
http://ul.to/ymfabds0
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.html
Sent from the Users forum mailing l
Paul Bors wrote:
> Assuming that you don't set a model for the FormComponet won't Wicket fail
> back to the CompountPropertyModel of the form?
Yes, for sure. But you explicitly recommended:
>> If you're using CompoundPropertyModel and set the model on your
>> FormComponentPanel then your TextFiel
Clean it, zip it and just publish it somewhere where you can post the URL in
a reply to this thread :)
~ Thank you,
Paul Bors
-Original Message-
From: Raul [mailto:ralva...@netwie.com]
Sent: Thursday, December 06, 2012 3:32 PM
To: users@wicket.apache.org
Subject: RE: Model is null
ul Bors
-Original Message-
From: Joachim Schrod [mailto:jsch...@acm.org]
Sent: Thursday, December 06, 2012 2:05 PM
To: users@wicket.apache.org
Subject: Re: Model is null after submit, using FormComponentPanel
Paul Bors wrote:
> I would suggest overriding FormComponentPanel#convertInput() on
I created a quickstart, Where I can upload it for what you may see?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654566.html
Sent from the Users forum mailing list archive at Nabble.com.
-
Paul Bors wrote:
> I would suggest overriding FormComponentPanel#convertInput() only if your
> domain object can't be easily converted by Wicket given the model you have.
>
> If you're using CompoundPropertyModel and set the model on your
> FormComponentPanel then your TextField ID and type should
lso take a look at FormComponentPanel's direct known subclasses:
DateTimeField, MultiFileUploadField, Multiply
~ Thank you,
Paul Bors
-Original Message-
From: Raul [mailto:ralva...@netwie.com]
Sent: Thursday, December 06, 2012 10:35 AM
To: users@wicket.apache.org
Subject: Re: Model
I've tried to override FormComponentPanel#convertInput (), but in the
execution of this, both the method TextField#getConvertedInput () and
TextField#getModelObject () return null. By the way I'm using Wicket 6.3
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model
Hi,
I think you need to override FormComponentPanel#convertInput().
Cheers,
Tobias
Thanks for the reply, I tried to use the component on the form with the
object
CompoundPropertyModel. As follows,
ccc = new CustomerAccountCode("ccc",
new CompoundPropertyModel(new Account(config.getCcc(;
fo
Thanks for the reply, I tried to use the component on the form with the
object
CompoundPropertyModel. As follows,
ccc = new CustomerAccountCode("ccc",
new CompoundPropertyModel(new Account(config.getCcc(;
form.add(ccc);
But this does the same as before, ie load correctly disp
Take a look at https://cwiki.apache.org/WICKET/working-with-wicket-models.html
Okay so Account is the type of the model object and your FormComponentPanel
seem to work off a CustomerAccountCodeModel:
>> CustomerAccountCodeModel ccc = getModelObject();
If I'm understanding this right, what does
I tried to use CompoundPropertyModel in CustomerAccountCode object
constructor, and similarly
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654490.html
Sent from the Users forum mailing list archive at
Raul wrote:
> Thank Col, But I have no validation, my component code is the code of the
> component is
>
> public class CustomerAccountCode extends
> FormComponentPanel {
>
> private FormComponent entity;
> private FormComponent office;
> private FormComponent dc;
Thank Col, But I have no validation, my component code is the code of the
component is
public class CustomerAccountCode extends
FormComponentPanel {
private FormComponent entity;
private FormComponent office;
private FormComponent dc;
private FormCo
Raul,
There are better qualified people to answer this, but...
Are the components actually passing validation? Pre-validation the model would
be null - if the validation fails the model would be null. If the component
validates then the model would be updated with the valid value.
Col.
-O
17 matches
Mail list logo