Re: conditional markup change with AjaxEditableLabel

2007-08-27 Thread Eelco Hillenius
On 8/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > i am using a subclass of AjaxEditableLabel. > This one works fine so far but I have one Problem. > > If the value of the label is < 0 the markup should change. > I tried it this way with no effect. > > public class MyAjaxEditableLab

conditional markup change with AjaxEditableLabel

2007-08-24 Thread fhagen
Hi, i am using a subclass of AjaxEditableLabel. This one works fine so far but I have one Problem. If the value of the label is < 0 the markup should change. I tried it this way with no effect. public class MyAjaxEditableLabel extends AjaxEditableLabel{ protected void onSubmit(AjaxRequestTarge

Re: conditional markup change

2007-08-24 Thread Oleg Taranenko
Hello Konstantin, Your code snippet is from panel constructor, is not it? So far it executed only first time, by creating page! Your need explicitly use in the link handler replaceWith() method. See Component's javadoc. Cheers, Oleg. Friday, August 24, 2007, 8:46:01 AM, you wrote: > I need to

Re: conditional markup change

2007-08-23 Thread Igor Vaynberg
there are a few ways to do this one is to add both and override isvisible() on them to conditionally hide one or the other another way would be for that link to replace one with the other -igor On 8/23/07, Konstantin Ignatyev <[EMAIL PROTECTED]> wrote: > > I need to change presentation dynami

conditional markup change

2007-08-23 Thread Konstantin Ignatyev
I need to change presentation dynamically depending on object status and I can do it with conditionally using different panels like this: if( getWSSession().getVisit().isSaved( v.getId() ) ){ add( new VehicleUncompareControl( "compareControl", new Model( v ), new Component[]{ ajaxTarget