Thanks very much for trying to help,

I have it working now, but I'm not happy with the code - it's not "correct".

It's the small, obvious, things that are difficult for beginners.

I had this:

new Model(tmpBrand.getName(), "name")

which of course did not work. Changing to this:

new PropertyModel(tmpBrand, "name")

made things work a lot better. ;-)


Now to the part I still don't understand. The only models I explicitly create are the ones I need to populate the rows in the ListView. The Form itself does not have a Model (that I created) and I feel it should.

How would you use a CompoundPropertyModel (with the form) when it contains a ListView?

/Anders
--
http://ojalgo.org/

Java Algorithms for Mathematics, Linear Algebra and Optimisation

Phil Kulak wrote:
If you used a PropertyModel or CompoundPropertyModel, then that's all
you have to do. When the form is submitted, the properties will be
updated if the form passes validation.

On 8/16/05, Anders Peterson <[EMAIL PROTECTED]> wrote:

Beginner here!

Stuck on a problem:

1) I get all (4) records from a table in the database.
2) Using a Form and a ListView I display all records simultaneously each
with its own TextField
3) I press the submit button after having changed any or all of the
items in the form/list.

How do I get these objects to be updated correctly?

What kind of model should I feed the form, and what object should I feed
that model?


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to