You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by smallufo <sm...@gmail.com> on 2008/03/17 21:22:24 UTC

Is it possible to auto discover images in ?

I have a lot of images bound to some component under the same directory.
Images and htmls are located at the same directory in classes/ ,
It's necessary to assign wicket:id for each <IMG> tag.
It is tedious and error-prone , and refactory-unfriendly (
ResourceReference(Clazz.class , "filename.jpg") );
"filename.jpg" is unchecked at compile time.

Is it possible for wicket to auto discover the images in the <IMG> tag and
add them to resources ?
It will ease a lot of work if your component links a lot of images.

Re: Is it possible to auto discover images in ?

Posted by smallufo <sm...@gmail.com>.
Oops , sorry for my trivial question.


2008/3/18, Martin Grigorov <mc...@e-card.bg>:
>
> Wrap them all in <wicket:link>.
>
>
> On Tue, 2008-03-18 at 04:22 +0800, smallufo wrote:
> > I have a lot of images bound to some component under the same directory.
> > Images and htmls are located at the same directory in classes/ ,
> > It's necessary to assign wicket:id for each <IMG> tag.
> > It is tedious and error-prone , and refactory-unfriendly (
> > ResourceReference(Clazz.class , "filename.jpg") );
> > "filename.jpg" is unchecked at compile time.
> >
> > Is it possible for wicket to auto discover the images in the <IMG> tag
> and
> > add them to resources ?
> > It will ease a lot of work if your component links a lot of images.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Is it possible to auto discover images in ?

Posted by Martin Grigorov <mc...@e-card.bg>.
Wrap them all in <wicket:link>.

On Tue, 2008-03-18 at 04:22 +0800, smallufo wrote:
> I have a lot of images bound to some component under the same directory.
> Images and htmls are located at the same directory in classes/ ,
> It's necessary to assign wicket:id for each <IMG> tag.
> It is tedious and error-prone , and refactory-unfriendly (
> ResourceReference(Clazz.class , "filename.jpg") );
> "filename.jpg" is unchecked at compile time.
> 
> Is it possible for wicket to auto discover the images in the <IMG> tag and
> add them to resources ?
> It will ease a lot of work if your component links a lot of images.


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