Re: CompoundPropertyModel not working... Warning message
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 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...@wicket.apache.org
Re: CompoundPropertyModel not working... Warning message
If you don't add any of the standard validators, doesn't that accomplish your goal? I think you still want "form processing" which includes population of model objects from the raw submitted strings. If you're using another post-submit validation framework, you probably want to override Form#onValidateModelObjects() which is for that purpose. On Sun, Oct 14, 2012 at 1:19 AM, delta458 wrote: > I disabled default form processing because I need to, for my project. I > will > use another validation framework for validating. > > Also when it is enabled, 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.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...@wicket.apache.org > >
Re: CompoundPropertyModel not working... Warning message
I disabled default form processing because I need to, for my project. I will use another validation framework for validating. Also when it is enabled, 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.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...@wicket.apache.org
Re: CompoundPropertyModel not working... Warning message
Hi! It's not clear what you mean by "not working" but I'll assume you expect your Invoice object to be populated when the submit button is clicked. It won't work with your code because you have disabled default form processing with your submit button. You actually don't even need a Wicket component for the submit button. Just include an inside your form markup. To handle the submit, you can override Form#onSubmit(). The warning message is not related to your form model issues. Maybe you're referring to wicket-logo.png with a PackageResourceReference but it's not actually alongside BasePage? Hope that helps, Dan On Sun, Oct 14, 2012 at 12:12 AM, delta458 wrote: > Tried so much... still not working.. > I get the following warning message: > /WARNING: A ResourceReference wont be created for a resource with key > [scope: template.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://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942.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...@wicket.apache.org > >
CompoundPropertyModel not working... Warning message
Tried so much... still not working.. I get the following warning message: /WARNING: A ResourceReference wont be created for a resource with key [scope: template.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://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-not-working-Warning-message-tp4652942.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...@wicket.apache.org