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
abble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands
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 ma
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
after submit, using FormComponentPanel
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
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
context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-
FormComponentPanel-tp4654441p4654557.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-uns
nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654557.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional comman
ountCodeValidator.getInstance());
}
@Override
public Component add(final Behavior... behaviors) {
entity.add(behaviors);
office.add(behaviors);
dc.add(behaviors);
number.add(behaviors);
return
nent add(final Behavior... behaviors) {
entity.add(behaviors);
office.add(behaviors);
dc.add(behaviors);
number.add(behaviors);
return this;
}
}
--
View this message in context:
http://apache-wicket.1842946
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
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;
new Model(
new Account(config.getCcc(;
add(ccc);
....
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel
.
-Original Message-
From: Raul [mailto:ralva...@netwie.com]
Sent: Tuesday, 4 December 2012 8:35 AM
To: users@wicket.apache.org
Subject: Model is null after submit, using FormComponentPanel
Hello, I want to create a reusable component for use as part of a form, for
this class use
:
http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
18 matches
Mail list logo