Re: AjaxEditableLabel default type

2008-04-06 Thread Johan Compagner
Thats how all formcomponents work. If you dont set a type and it cant resolve it themselfs or the type is resolved to a string then convertValue() is used and not the converter. If you want a converter to be called on a string you have to set the type yourself. On 4/5/08, Jan Kriesten [EMAIL

AjaxEditableLabel default type

2008-04-05 Thread Jan Kriesten
Hi, is there a reason why AEL assumes type String by default and doesn't use the ConverterLocator on the ModelObject to create the label + read/write the Model? String should only be a fallback if no IConverter could be found? Best regards, --- Jan.

Re: AjaxEditableLabel default type

2008-04-05 Thread Erik van Oosten
Regardless of the reason (I don't know it), you can use a model wrapper to circumvent this. Search for ModelWrapper in earlier posts. Regards, Erik. Jan Kriesten wrote: Hi, is there a reason why AEL assumes type String by default and doesn't use the ConverterLocator on the

Re: AjaxEditableLabel default type

2008-04-05 Thread Jan Kriesten
hi erik, Regardless of the reason (I don't know it), you can use a model wrapper to circumvent this. you don't need a wrapper if you set the type on the ael - that's why i'm curious why the converterlocator isn't used in the first place. best regards, --- jan.