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
://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]
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
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
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
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
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
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
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,
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
10 matches
Mail list logo