Re: Conditional markup

2008-03-14 Thread Martijn Dashorst
http://google.com/search?q=wicket+conditional+markup On 3/14/08, Martijn Dashorst [EMAIL PROTECTED] wrote: add(new Component(id) { @override public boolean isVisible() { return someCondition; } }); On 3/14/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I have a question

Re: Conditional markup

2008-03-14 Thread Doug Leeper
://www.nabble.com/Conditional-markup-tp16048105p16048355.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Conditional markup

2008-03-14 Thread jeredm
Nilsson wrote: I have a question about conditional markup. There are many scenarios where we put labels if some conditions are meet. How do I do this the best way. Example If document is under update show image that displays that a new version is under process What is the wicket way

Re: Conditional markup

2008-03-14 Thread Mathias P.W Nilsson
Thanks for your suggestions. I think this will solve my problem. -- View this message in context: http://www.nabble.com/Conditional-markup-tp16048105p16051475.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How does wicket support conditional markup display?

2008-01-04 Thread Igor Vaynberg
you would put the message inside webmarkupcontainer and override its isvisible so it only returns true when there are no items in the list -igor On Jan 4, 2008 10:44 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote: I have a page that normally display a list of items retrieved from some external

How does wicket support conditional markup display?

2008-01-04 Thread Zheng, Xiahong
I have a page that normally display a list of items retrieved from some external source. The markup page will be table based in this case. However, when the list returned is empty, I want to display some error message using different markup. Is there a wicket component or tag I can use for this

Re: conditional markup change with AjaxEditableLabel

2007-08-28 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 MyAjaxEditableLabel extends

Re: conditional markup change

2007-08-24 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

conditional markup change

2007-08-24 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,

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