Re: [Wicket-user] How to do a table with cell specific background image and image ?

2007-01-19 Thread ZedroS Schwart
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-19 Thread Igor Vaynberg

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 : 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-17 Thread ZedroS Schwart
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.

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.phpp=sourceforgeCID=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 ?

2007-01-17 Thread Igor Vaynberg

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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-16 Thread ZedroS Schwart
Hi igor

Thanks again, but I tried it but to no success.

In fact, my issue is that I currently have something like :
tr wicket:id=repeating
tdimg wicket:id = image1 //td
tdimg wicket:id = image2 //td
tdimg wicket:id = image3 //td
/tr

However, I would like to do something like this at rendering time:
tr
td BACKGROUND=backgroundA1.pngimageA1.png/td
td BACKGROUND=backgroundA2.pngimageA2.png/td
td BACKGROUND=backgroundA3.pngimageA3.png/td
/tr
tr
td BACKGROUND=backgroundB1.pngimageB1.png/td
td BACKGROUND=backgroundB2.pngimageB2.png/td
td BACKGROUND=backgroundB3.pngimageB3.png/td
/tr   

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.phpp=sourceforgeCID=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 ?

2007-01-16 Thread Igor Vaynberg

ah! thats easy! throught you were using datatable, not dataview

tr wicket:id=repeating
td wicket:id=td1img wicket:id=image1//td
...
/tr

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 :
tr wicket:id=repeating
tdimg wicket:id = image1 //td
tdimg wicket:id = image2 //td
tdimg wicket:id = image3 //td
/tr

However, I would like to do something like this at rendering time:
tr
td BACKGROUND=backgroundA1.pngimageA1.png/td
td BACKGROUND=backgroundA2.pngimageA2.png/td
td BACKGROUND=backgroundA3.pngimageA3.png/td
/tr
tr
td BACKGROUND=backgroundB1.pngimageB1.png/td
td BACKGROUND=backgroundB2.pngimageB2.png/td
td BACKGROUND=backgroundB3.pngimageB3.png/td
/tr

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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-15 Thread ZedroS Schwart
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
td/td around my image...

I tried various things like, among others :
- to put some wicket id into the td 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-15 Thread Igor Vaynberg

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
td/td around my image...

I tried various things like, among others :
- to put some wicket id into the td 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ?

2007-01-14 Thread ZedroS Schwart
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.phpp=sourceforgeCID=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 ?

2007-01-14 Thread Igor Vaynberg

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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user