Re: [Wicket-user] Beginner Image question

2006-06-22 Thread Stefan Arentz
On 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Yep. Or alternatively, use attribute modifiers: > > WebMarkupContainer c = new WebMarkupContainer("myimage"); > c.add(new SimpleAttributeModifier("src", > "http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg";)); > add(c);

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Igor Vaynberg
you know what would be a great commercial, the scene from hot shots where sheen cooks an egg on golino's sexy stomich.-IgorOn 6/21/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Now making commercials for Apple, are you? :)MartijnOn 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> Yep. Or alt

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Martijn Dashorst
Now making commercials for Apple, are you? :) Martijn On 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Yep. Or alternatively, use attribute modifiers: > > WebMarkupContainer c = new WebMarkupContainer("myimage"); > c.add(new SimpleAttributeModifier("src", > "http://images.apple.com/macboo

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Eelco Hillenius
Yep. Or alternatively, use attribute modifiers: WebMarkupContainer c = new WebMarkupContainer("myimage"); c.add(new SimpleAttributeModifier("src", "http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg";)); add(c); or public class ExternalImage extends WebMarkupContainer { p

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Well, in my case the URL is not static... it has different value depending on what the service returns.(In my specific small application, I input countryCode in the form and get the URL to the image which is the country Flag...) -- View this message in context: http://www.nabble.com/-Beginner--Im

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Hugo Visser
This may sound really stupid, but if the image is static you could link to it in your page.html right? That would be like maintaining the constant in your view html code and not in your java code.Hugo On 6/21/06, Alex Objelean <[EMAIL PROTECTED]> wrote: Sorry.. my mistake. It works. I indeed forgot

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Sorry.. my mistake. It works. I indeed forgot to use the ExternalImage component. Thank you again! :) -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975300 Sent from the Wicket - User forum at Nabble.com. _

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Yes, exactly... the Image I am trying to use is located outside my application... I thought it will be a piece of cake:( -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4975150 Sent from the Wicket - User forum at Nabble.com. ___

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Stefan Arentz
On 6/21/06, Alex Objelean <[EMAIL PROTECTED]> wrote: Unfortunatelly, this code throws an exception:WicketMessage: Unable to find package resource [path =training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg,style = null, locale = en_US] Root cause:wicket.Wick

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Unfortunatelly, this code throws an exception: WicketMessage: Unable to find package resource [path = training/wicket/countryInfo/http:/www.oorsprong.org/WebSamples.CountryInfo/Images/Romania.jpg, style = null, locale = en_US] Root cause: wicket.WicketRuntimeException: Unable to find package re

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Stefan Arentz
:-)I just refactored that code to take a URL instead of a String. That is a bit nicer and guarantees that the URL is valid. S.On 6/21/06, Alex Objelean <[EMAIL PROTECTED]> wrote:Yes, this is exactly what I need! :) Thank you very much!--View this message in context: http://www.nabble.com/-Beginner

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Alex Objelean
Yes, this is exactly what I need! :) Thank you very much! -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4974498 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing list Wicket-use

Re: [Wicket-user] [Beginner] Image question

2006-06-21 Thread Alex Objelean
Yes, this is exactly what I need! :) Thank you very much! -- View this message in context: http://www.nabble.com/-Beginner--Image-question-t1823773.html#a4974481 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing list Wicket-use

Re: [Wicket-user] Beginner Image question

2006-06-21 Thread Stefan Arentz
Do you mean something like this:         public class TestPage extends WebPage{    public TestPage()    {    add(new ExternalImage("externalImage", " http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg"));    }}If so, then I just hacked this together. Warning: might cont