Hi Igor

It's now working fine, that's great ! And thanks for the wiki link,
it's most instructing.

Cheers
ZedroS

On 1/17/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 1/17/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> > Thanks again Igor !
> >
> > You're most helpful.
> >
> > However, as a newbe I am, I still don't get it to work (but I try
> > before posting again, I promise!).
> >
> > In fact, the issue now is with the path associated with my images.
> >
> > Indeed, for the cell image, I used :
> > Image test = new Image("image1", new Model("test.png"));
> > then, currently, I do a item.add(test);
> >
> > However, in my WebMarkupContainer, when I do tag.put ("background",
> > "test2.png"); } it gives in the html : <td background="test2.png">
> > even if this image is in fact in my package next to the html page.
>
> image does some stuff behind scenes to build the url for you, you can do the
> same
>
> String test2pngurl=RequestCycle.get().urlFor(new
> ResourceReference(pageclass, "test2.png"))
>
> should get you url to test2.png in the same package as page class
>
> > At the end of the day, I've found that my image from new
> > Image("image1", new Model("test.png")); is written as test_en.png in
> > the html file. But I don't need to localise it neither, so I wonder
> > what is the best way...
>
> image is one of those bastardized classes that tries to do too much... i
> wouldnt mind if we split it into a bunch of subclasses
>
> for now just do the same thing as bove - use resourcereference instead of
> the string
> new Image("foo", new ResourceReference(pageclass, "test.png"));
>
> > A last question :
> > I don't use a DataView but a RepeatingView. In the end, if it works
> > properly, I would like to have some ajax behavior linked to the
> > images' hover (to render some information on the image displayed on
> > the right corner of the page). Is a DataView better suited for such an
> > use? I don't know exactly, yet, when to use XXView or XXData... I read
> > the Javadoc but I wasn't enlightened.
>
> there is a page on the wiki that details the hierarchy and usecases for the
> repeaters [1]
>
>
> [1]
> http://cwiki.apache.org/confluence/display/WICKET/Tables+and+Grids
>
> -igor
>
>
>
> > Thanks in advance again !
> > ZedroS
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to