Re: [Wicket-user] How to do a table with cell specific background image and image ?
glad to hear it you are welcome -igor On 1/19/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: 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 : > > 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 - 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
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 : > > 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
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 : 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
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 : even if this image is in fact in my package next to the html page. 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... 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. 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
ah! thats easy! throught you were using datatable, not dataview ... populateitem(item) { WebMarkupContainer td1=new WebMarkupContainer("td1") { oncomponenttag(tag) { tag.put("background", "foo.jpg"); } } item.add(td1); td1.add(new myimage("image1")); } -igor On 1/16/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: Hi igor Thanks again, but I tried it but to no success. In fact, my issue is that I currently have something like : However, I would like to do something like this at rendering time: imageA1.png imageA2.png imageA3.png> imageB1.png imageB2.png imageB3.png> But I don't manage to define the td background tag... Do you have any clue ? Thank again in advance 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
Hi igor Thanks again, but I tried it but to no success. In fact, my issue is that I currently have something like : However, I would like to do something like this at rendering time: imageA1.png imageA2.png imageA3.png> imageB1.png imageB2.png imageB3.png> But I don't manage to define the td background tag... Do you have any clue ? Thank again in advance 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
youve tried item.add(new SimpleAttributeModifier("style", "background-color:red;")) ? -igor On 1/15/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: Hi igor Thanks a lot for your answer. Being a newbe and digging into the RepeatingPage example, I managed to define an image per cell. However, I didn't manage to set up the attribute "background" of the around my image... I tried various things like, among others : - to put some wicket id into the but to no success - to use getParent() - to use a repeater for the td itself Do you have any clue ? Thanks in advance ZedroS On 1/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > take a look at repeater examples in wicket-examples > > -igor > > > > On 1/13/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote: > > > > Hi all > > > > I'm new to wicket and I'm looking for creating a table where each cell > > would have a specific background image and, as a content, a specific > > image with a link upon it. > > > > What's the best way to do it in Wicket ? I've started looking at > > SimpleViewList but I'm not so sure it's the right thing to do ! > > > > Thanks in advance > > 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 - 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
Hi igor Thanks a lot for your answer. Being a newbe and digging into the RepeatingPage example, I managed to define an image per cell. However, I didn't manage to set up the attribute "background" of the around my image... I tried various things like, among others : - to put some wicket id into the but to no success - to use getParent() - to use a repeater for the td itself Do you have any clue ? Thanks in advance ZedroS On 1/14/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > take a look at repeater examples in wicket-examples > > -igor > > > > On 1/13/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote: > > > > Hi all > > > > I'm new to wicket and I'm looking for creating a table where each cell > > would have a specific background image and, as a content, a specific > > image with a link upon it. > > > > What's the best way to do it in Wicket ? I've started looking at > > SimpleViewList but I'm not so sure it's the right thing to do ! > > > > Thanks in advance > > 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
Re: [Wicket-user] How to do a table with cell specific background image and image ?
take a look at repeater examples in wicket-examples -igor On 1/13/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: Hi all I'm new to wicket and I'm looking for creating a table where each cell would have a specific background image and, as a content, a specific image with a link upon it. What's the best way to do it in Wicket ? I've started looking at SimpleViewList but I'm not so sure it's the right thing to do ! Thanks in advance 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
[Wicket-user] How to do a table with cell specific background image and image ?
Hi all I'm new to wicket and I'm looking for creating a table where each cell would have a specific background image and, as a content, a specific image with a link upon it. What's the best way to do it in Wicket ? I've started looking at SimpleViewList but I'm not so sure it's the right thing to do ! Thanks in advance 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