Display or not an image dynamically

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Display or not an image dynamically

Charles Moulliard
How can I dynamically display or not an image (= a link) in a html
table page using wicket ? It means that depending on a condition, the
button link will be displayed or not at all.
Is it possible to create a buttonLink in Wicket ?

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Display or not an image dynamically

Ernesto Reinaldo Barreiro-4
Why not create your own panel with a link containing an image? I mean
something like:
<wicket:panel>
        <a class="imagebutton" wicket:id="link" title=""><img wicket:id=
"image" src=""/><span wicket:id="label"></span></a>
        <wicket:child/>
</wicket:panel>
And then control the visibility of this panel with isVisible()?

Ernesto

On Fri, Sep 25, 2009 at 11:50 AM, Charles Moulliard <[hidden email]>wrote:

> How can I dynamically display or not an image (= a link) in a html
> table page using wicket ? It means that depending on a condition, the
> button link will be displayed or not at all.
> Is it possible to create a buttonLink in Wicket ?
>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>