you could use a List and then take one object from index 0 or a map and
then take it from an name 'object1
you need to look how the ognl _expression_ should be.
Als you can hold those 2 objects in one object:
ObjectWrapper
{
object1
object2
}
and then put that wrapper object as youre model object.
Then you can access the fields of object1 or 2 like this:
object1.name
object2.name
for youre input fields.
johan
frank bengtsson wrote:
my first day with wicket so please explain it in a bit more detailed way...
Page:
add(new DetailForm("detailForm", model, feedback));
where du you want to put the map ?
/Frank B.
On Monday 11 July 2005 19:31, Phil Kulak wrote:
You could just throw them in a map.
-Phil
On 7/11/05, frank bengtsson <[EMAIL PROTECTED]> wrote:
Hi all,
Scenario 1:
I have TWO POJO's(models) from backend(Hibernate). I need to display both
on ONE form on a page. But i can only give ONE model in constructor to
the form ?
Does this mean i have to make a new model, which inlcudes both POJO's ?
or have one of the POJO's in constructor and the other ?
As i understand these models, they should eliminate the typical transfer
from domain objects to the form(ala Struts etc.) ???
All the examples(library etc) i have seen so far "Happens" to have ONE
model that fill the needs to what needs to be displayed...so an
example(or explanation/help) would be greatly appreciated :)
Best regards,
Frank
--
Frank Kastell Bengtsson
Kastell
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening July 14 at 8am PDT/11am EDT. We invite you to explore the
latest in dual core and dual graphics technology at this free one hour
event hosted by HP, AMD, and NVIDIA. To register visit
http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest
in dual core and dual graphics technology at this free one hour event
hosted by HP, AMD, and NVIDIA. To register visit
http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
|
- Re: [Wicket-user] Models and POJO's Johan Compagner
-