wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Renz <s.r...@efonds.com>
Subject Re: How to hide an optional Image component?
Date Thu, 18 Jul 2013 05:44:03 GMT
Hi Sven,

Sven Meier wrote:
>> apart from asking the database _again_ for the data or presence thereof
> 
> Whether the image is visible must be determined when the page is
> rendered. The actual loading of the image is done in another request.
> Thus two times to ask the databse.

thanks for reminding me -- sometimes, a powerful framework such as
Wicket makes you forget you work with HTTP ;-)

> 
> Alternatively you may render a default resource (e.g.
> https://www.google.com/search?q=no+image) if your database doesn't have
> any data to stream back when the image is requested.
> 
> Regards
> Sven
> 

Have a nice day.
    Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message