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);
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
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
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
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
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
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.
_
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.
___
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
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
:-)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
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
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
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
14 matches
Mail list logo