Thanks, I followed your suggestion and overrode AjaxEditableMultiLineLabel#newLabel() method.
Now I am trying to unit-test the content of the displayed label using WicketTester. However, I cannot use WicketTester#assertLabel() because AjaxEditableMultiLineLabel is a Panel and not a Label. Does anybody know how to access the display value of AjaxEditableMultiLineLabel? Thanks, Alec On Fri, Dec 25, 2009 at 2:10 PM, vineet semwal <[email protected]>wrote: > it doesn't use converter even for the multilinelabel.. > some months ago i needed converter for multilinelabel inside > ajaxeditablemultilinelabel, > i subclassed ajaxeditablemultilinelabel and provided converter logic for > multilinelabel there, > it didn't take much time ;) > > > On Sat, Dec 26, 2009 at 2:02 AM, Sven Meier <[email protected]> wrote: > > > AjaxEditableMultiLineLabel doesn't use its converter for the wrapped > editor > > as AjaxEditableLabel does - see #newEditor(). > > > > You should create a RFE in JIRA. > > > > Sven > > > > Alec Swan wrote: > > > >> I am using to allow the user to enter a Velocity > >> > >> template in the editor and then preview the bound template content in > the > >> label. > >> > >> I created a TemplateConverter class and overrode > >> AjaxEditableMultiLineLabel#getConverter() method to return an instance > of > >> TemplateConverter. However, the > AjaxEditableMultiLineLabel#getConverter() > >> is > >> never called. > >> > >> What am I doing wring and what is the recommended way to do this? > >> > >> Thanks, > >> > >> Alec > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > regards, > Vineet Semwal >
