Re: [Wicket-user] Empty Dynamic Images

2006-10-06 Thread Matt B

Found the problem when I removed JAI from machine.  Worked like a charm once
JAI was removed.

igor.vaynberg wrote:
> 
> make sure your servlet mapping ends with /* as in /myapp/*
> 
> -Igor
> 
> 
> On 10/3/06, Matthew Bourgeois <[EMAIL PROTECTED]> wrote:
>>
>> I am new to wicket and have enjoyed it alot so far. I am specifically
>> interested in using Wicket with dynamic images.  I have tried to use the
>> Wicket 1.2.2 examples as a guide on how to do this.  When I run the
>> Wicket
>> 1.2.2 examples on my own machine both of the dynamic images in the image
>> example page show up as empty images. I have tried to use dynamic images
>> in
>> my own tests outside of the 1.2.2 examples and have had the same result.
>> Here is a quick example piece of code that I feel should work but have
>> had
>> no success with. Are there any gothcas about working with dynamic images?
>>
>> TestImagePage.java
>>
>> package com.testimage;
>> import wicket.markup.html.WebPage;
>> import wicket.markup.html.image.resource.RenderedDynamicImageResource;
>> import wicket.markup.html.image.Image;
>> import java.awt.Graphics2D;
>>
>>
>> public class TestImagePage extends WebPage {
>>
>> public TestImagePage() {
>>
>> add( new Image("cross", new RenderedDynamicImageResource(100,
>> 100)
>> {
>> protected boolean render(Graphics2D graphics)
>> {
>> graphics.drawLine( 0, 0, 20, 20 );
>> graphics.drawLine( 0, 20, 20, 0 );
>> return true;
>> }
>> }));
>>
>> }
>>
>> }
>>
>> TestImagePage.html
>>
>> >  " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>
>>  >   xmlns="http://www.w3.org/1999/xhtml";
>>   xmlns:wicket=" http://wicket.sourceforge.net/";
>>   xml:lang="en"
>>   lang="en">
>>
>> 
>> Test Dynamic Image
>> 
>>
>> 
>>
>>  
>>
>> 
>>
>> 
>>
>> --
>> Stay connected with the news, people, places and online services that
>> matter to you on Live.com Try
>> it!
>>
>> -
>> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Empty-Dynamic-Images-tf2388871.html#a6689980
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Empty Dynamic Images

2006-10-05 Thread Igor Vaynberg
make sure your servlet mapping ends with /* as in /myapp/*-IgorOn 10/3/06, Matthew Bourgeois <[EMAIL PROTECTED]
> wrote:



I am new to wicket and have enjoyed it alot so far. I am specifically interested in
using Wicket with dynamic images.  I have tried to use the Wicket 1.2.2
examples as a guide on how to do this.  When I run
the Wicket 1.2.2 examples on my own machine both of the dynamic images in
the image example page show up as empty images. I have tried to use dynamic images in my own tests outside of the 1.2.2 examples and have had the same result. Here is a quick
example piece of code that I feel should work but have had no success with. Are there any gothcas about working with dynamic
images?  TestImagePage.java
package com.testimage;import wicket.markup.html.WebPage;import wicket.markup.html.image.resource.RenderedDynamicImageResource;import wicket.markup.html.image.Image;import java.awt.Graphics2D;

public class TestImagePage extends WebPage {        public TestImagePage() {                add( new Image("cross", new RenderedDynamicImageResource(100, 100)                {                    protected boolean render(Graphics2D graphics)
                    {                    graphics.drawLine( 0, 0, 20, 20 );                    graphics.drawLine( 0, 20, 20, 0 );                    return true;                    }                }));
            }}TestImagePage.html "

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      xmlns="
http://www.w3.org/1999/xhtml"    xmlns:wicket="
http://wicket.sourceforge.net/"    xml:lang="en"    lang="en">  
        Test Dynamic Image
                        Stay connected with the news, people, places and online services that matter to you on 
Live.com  
Try it!

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions 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 listWicket-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] Empty Dynamic images

2006-10-05 Thread Matt Bourgeois
I am new to wicket but have enjoyed it alot so far. I am interested in using Wicket with dynamic images.  I have tried to use the Wicket 1.2.2 examples as a guide on how to use dynamic image resources.  When I run the Wicket 
1.2.2 examples on my own machine both the dynamic images on the image example page show up as empty images.  Here is a quick example piece of code. Are there any gothcas about working with dynamic images?  TestImagePage.java
package com.testimage;import wicket.markup.html.WebPage;import wicket.markup.html.image.resource.RenderedDynamicImageResource;import wicket.markup.html.image.Image;import java.awt.Graphics2D;
public class TestImagePage extends WebPage {        public TestImagePage() {                add( new Image("cross", new RenderedDynamicImageResource(100, 100)                {                    protected boolean render(Graphics2D graphics)
                    {                    graphics.drawLine( 0, 0, 20, 20 );                    graphics.drawLine( 0, 20, 20, 0 );                    return true;                    }                }));
            }}TestImagePage.html "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      xmlns="http://www.w3.org/1999/xhtml"    xmlns:wicket="
http://wicket.sourceforge.net/"    xml:lang="en"    lang="en">          Test Dynamic Image
                         

-
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] Empty Dynamic Images

2006-10-05 Thread Matthew Bourgeois


I am new to wicket and have enjoyed it alot so far. I am specifically interested in
using Wicket with dynamic images.  I have tried to use the Wicket 1.2.2
examples as a guide on how to do this.  When I run
the Wicket 1.2.2 examples on my own machine both of the dynamic images in
the image example page show up as empty images. I have tried to use dynamic images in my own tests outside of the 1.2.2 examples and have had the same result. Here is a quick
example piece of code that I feel should work but have had no success with. Are there any gothcas about working with dynamic
images?  TestImagePage.java
package com.testimage;import wicket.markup.html.WebPage;import wicket.markup.html.image.resource.RenderedDynamicImageResource;import wicket.markup.html.image.Image;import java.awt.Graphics2D;
public class TestImagePage extends WebPage {        public TestImagePage() {                add( new Image("cross", new RenderedDynamicImageResource(100, 100)                {                    protected boolean render(Graphics2D graphics)
                    {                    graphics.drawLine( 0, 0, 20, 20 );                    graphics.drawLine( 0, 20, 20, 0 );                    return true;                    }                }));
            }}TestImagePage.html "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      xmlns="http://www.w3.org/1999/xhtml"    xmlns:wicket="
http://wicket.sourceforge.net/"    xml:lang="en"    lang="en">          Test Dynamic Image
                        Stay connected with the news, people, places and online services that matter to you on Live.com  Try it!
-
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