Saturday, 15 May 2010

java - Wicket: How to use Map instead of PropertyModel? -


We are all right with the user's wicket 6 and POJO objects and property modal to access model objects. Now instead of a POJO, I want to use a map, how can I do this?

add.add (new TextField & lt; string & Gt; ("fieldName", new property model & lt; string & gt; (pojo, "fieldName")));

I like something

  form.add (new TextField & lt; string & gt; ("fieldName", new mappeload & lt; string & Gt; (map, "workspace name")));  

Is there any wicket class to do this?

I think the following should be done:

  form. Add (new textfield & lt; string & gt; ("field name", new property model ATP; string> (map, "keyname")));  

No comments:

Post a Comment