your model can also do the conversion in its setobject method
-igor
On 5/20/07, Florian Hehlen <[EMAIL PROTECTED]> wrote:
hi all,
thanks for all the input on DDC. I have finally gotten the DDC to work. My
problem was that I was mixing up the OO notions in the DDC and the html
notions of the select tab.... anyways it's working well now. I just had to
make sure that the list of objects passed to the DDC was also the object
that would be set in my form model object. Instead I was providing object s
to the DDC and hoping it would set strings in my form model object.
About the IConverter... this is very interesting. I will need to
experiment with these because they might allow me to get around an other
problem I have: my business objects are not bean-compatible! Am I correct in
thinking that I could use converters to do custom mapping when dealing with
non-bean-compatible pojos?
At the moment I get around the problem by implementing a proxy layer of
simple pojos. I can live with this at the moment because I don't have very
many data objects to render in wicket and in many cases they are complex
enough object-graphs that I my proxy layer is not simply a one-to-one
mapping layer but rather a layer of synthetic data objects. An example of
this is I have an object graph on the DB side made up of 1 parent and 5
children records/objects and I really only ever want to render one table row
on a web page for each one of those graphs.
anyways... thanks again for the help... this mailing-list is quite useful.
florian
Thomas R. Corbin wrote:
On Friday 18 May 2007 4:27 pm, Johan Compagner escreveu:
a converter and choice renderer is not really the same thing
But i guess if you give a list of strings to the DDC that it displays
then the converter can convert the selected object to that string and back
again
that should also work yes.
Cool. Actually, what I do is load objects from the db using ibatis and
give
those to the DDC and the converter pulls the strings to display. Works
really well.
the choicerender is if you don't want to do that upfront but just have
a list of Objects/Pojos and the selected object is also that Object/Pojo
then you the toString is done for you
johan
On 5/18/07, Thomas R. Corbin <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
I had started to use a ChoiceRenderer when I started with wicket, but
quickly
found that registering a converter was easier for me.
Is that an unusual way of dealing with DDC?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user