Re: Very Basic Hello World - Applet
Yes.. servlet container model limits where resources can be fetched online. ** Martin 2009/12/10 McIlwee, Craig : > Really? I've never written applets before, is there some limitation that > would prevent it from being fetched as a shared resource? If not then add a > wicket:id attribute to the applet tag, create a Label with the same wicket > ID, and then use an AttributeModifier to create the code attribute on the > applet tag. > > Craig > _ > > From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] > To: users@wicket.apache.org > Sent: Wed, 09 Dec 2009 12:28:13 -0500 > Subject: Re: Very Basic Hello World - Applet > >> but 1 little question ... when i complie the code... instead of manually > > copy pasting it to my WEBAPP folder.. can i give it as a path (like > > /myproject/src/main/webapp/HelloWorld.class) ... > > No. But you can tweak your build configuration (maven, ant) to copy it > automatically. > > ** > Martin > > > > And thank u to every1 who helped me out. > > :handshake::handshake::handshake: > > > > > > MartinM wrote: > >> > >> COmpile HelloWorld.java applet into HelloWorld.class and put it into > >> the webapp directory and write: > >> > >> > >> > >> > >> > >> > >> > >> 2009/12/9 local_shamil : > >>> > >>> Ok cool the image works fine... > >>> > >>> i just added this and it came out " Picture.JPG " > >>> > >>> now i need to insert an applet .. > >>> > >>> this is my HelloWorld.java code >> > >>> > >>> import java.applet.Applet; > >>> import java.awt.Graphics; > >>> > >>> public class HelloWorld extends Applet { > >>> public void paint(Graphics g) { > >>> g.drawString("Hello world!", 50, 25); > >>> } > >>> } > >>> > >>> and my HelloWolrd.HTML code > >>> > >>> > >>> > >>> A Simple Program > >>> > >>> > >>> > >>> Here is the output of my program: > >>> > >>> > >>> > >>> > >>> > >>> and i have entered these 2 in the "COM.MYCOMPANY" Package but in your > >>> applet code it says > >>> > >>> >>> WIDTH=600 HEIGHT=600> > >>> > >>> > >>> What does archive="/xyz.jar" do ?? should i create a jar of my > >>> HelloWorld.java class and have it in the WEBAPP folder ?? > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> MartinM wrote: > >>>> > >>>>> Guys i am a bit confused now... > >>>> > >>>> Take it slow :) > >>>> > >>>>> I am trying to have an Applet displayed in a wicket website... > >>>> > >>>> That's fine. It is just like displaying an IMAGE in a html page. The > >>>> applet has nothing to do with wicket. > >>>> > >>>>> should i create a JAR as HelloWorld.jar and put it in to the WEBAPP > >>>>> folder > >>>> > >>>> NO. > >>>> > >>>> Just make a quickstart WORK and try to make IMAGE ( ) work with > >>>> the image in webapp/ directory. > >>>> > >>>> Then put your applet.class file into the webapp/directory and add the > >>>> html tag next to your tag. > >>>> > >>>> Restart if necessary. Furthermore: it should work even from file > >>>> system without wicket running. Remember: applet has nothing to do with > >>>> wicket. > >>>> > >>>> ** > >>>> Martin > >>>>> MartinM wrote: > >>>>>> > >>>>>> The jar is a library for the applet code. Baybe you do not need it. > >>>>>> > >>>>>> ** > >>>>>> Martin > >>>>>> > >>>>>> 2009/12/9 local_shamil : > >>>>>>> > >>>>>>> Ok... this is the code i used to create my Maven Wicket project > >>>>>>>
Re: Very Basic Hello World - Applet
And then there is: http://java.com/js/deployJava.js";> // See http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html deployJava.setInstallerType('kernel'); deployJava.runApplet({code:'path/YourClass.class',archive:'../jars/YourJar.jar',width:100,height:100},{legacy_lifecycle:"true"},'1.4'); That is all you need to know to get your applet running. Regards Bernard On Wed, 9 Dec 2009 21:53:51 +0600, you wrote: >I need to know how to set-up a simple hello world applet to Wicket , i have >almost browsed the entire web, and clueless of how to find it .. can some >one please help me out... or point me to a relevant site .. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
Q: An applet tag does not get its archive attribute value resolved in the output HTML in the same way as img src attributes. How can I fix this? A: See org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler This currently only supports the attributes "href", "src", "background". Solution: Add applet tag as WebMarkupContainer with behavior to rewrite the attribute. WebMarkupContainer clockContainer = new WebMarkupContainer("clock"); clockContainer.add(new AbstractBehavior() { private static final long serialVersionUID = 1L; @Override public void onComponentTag(Component component, ComponentTag tag) { // Modify the relevant attribute String attrName = "archive"; IValueMap valueMap = tag.getAttributes(); String attrValue = valueMap.getString(attrName); // We don't need the generalised checking as in // org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler: //if ((attrValue != null) && (attrValue.startsWith("/") == false) && //(attrValue.indexOf(":") < 0) && !(attrValue.startsWith("#"))) if(attrValue != null){ IRequestCodingStrategy coder = RequestCycle.get() .getProcessor() .getRequestCodingStrategy(); valueMap.put(attrName, coder.rewriteStaticRelativeUrl(attrValue)); }// if } }); add(clockContainer); On Wed, 9 Dec 2009 21:53:51 +0600, you wrote: >I need to know how to set-up a simple hello world applet to Wicket , i have >almost browsed the entire web, and clueless of how to find it .. can some >one please help me out... or point me to a relevant site .. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
Really? I've never written applets before, is there some limitation that would prevent it from being fetched as a shared resource? If not then add a wicket:id attribute to the applet tag, create a Label with the same wicket ID, and then use an AttributeModifier to create the code attribute on the applet tag. Craig _ From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] To: users@wicket.apache.org Sent: Wed, 09 Dec 2009 12:28:13 -0500 Subject: Re: Very Basic Hello World - Applet > but 1 little question ... when i complie the code... instead of manually > copy pasting it to my WEBAPP folder.. can i give it as a path (like > /myproject/src/main/webapp/HelloWorld.class) ... No. But you can tweak your build configuration (maven, ant) to copy it automatically. ** Martin > And thank u to every1 who helped me out. > :handshake::handshake::handshake: > > > MartinM wrote: >> >> COmpile HelloWorld.java applet into HelloWorld.class and put it into >> the webapp directory and write: >> >> >> >> >> >> >> >> 2009/12/9 local_shamil : >>> >>> Ok cool the image works fine... >>> >>> i just added this and it came out " Picture.JPG " >>> >>> now i need to insert an applet .. >>> >>> this is my HelloWorld.java code >> >>> >>> import java.applet.Applet; >>> import java.awt.Graphics; >>> >>> public class HelloWorld extends Applet { >>>public void paint(Graphics g) { >>>g.drawString("Hello world!", 50, 25); >>>} >>> } >>> >>> and my HelloWolrd.HTML code >>> >>> >>> >>> A Simple Program >>> >>> >>> >>> Here is the output of my program: >>> >>> >>> >>> >>> >>> and i have entered these 2 in the "COM.MYCOMPANY" Package but in your >>> applet code it says >>> >>> >>WIDTH=600 HEIGHT=600> >>> >>> >>> What does archive="/xyz.jar" do ?? should i create a jar of my >>> HelloWorld.java class and have it in the WEBAPP folder ?? >>> >>> >>> >>> >>> >>> >>> >>> MartinM wrote: >>>> >>>>> Guys i am a bit confused now... >>>> >>>> Take it slow :) >>>> >>>>> I am trying to have an Applet displayed in a wicket website... >>>> >>>> That's fine. It is just like displaying an IMAGE in a html page. The >>>> applet has nothing to do with wicket. >>>> >>>>> should i create a JAR as HelloWorld.jar and put it in to the WEBAPP >>>>> folder >>>> >>>> NO. >>>> >>>> Just make a quickstart WORK and try to make IMAGE ( ) work with >>>> the image in webapp/ directory. >>>> >>>> Then put your applet.class file into the webapp/directory and add the >>>> html tag next to your tag. >>>> >>>> Restart if necessary. Furthermore: it should work even from file >>>> system without wicket running. Remember: applet has nothing to do with >>>> wicket. >>>> >>>> ** >>>> Martin >>>>> MartinM wrote: >>>>>> >>>>>> The jar is a library for the applet code. Baybe you do not need it. >>>>>> >>>>>> ** >>>>>> Martin >>>>>> >>>>>> 2009/12/9 local_shamil : >>>>>>> >>>>>>> Ok... this is the code i used to create my Maven Wicket project >>>>>>> >>>>>>> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >>>>>>> -DarchetypeArtifactId=wicket-archetype-quickstart >>>>>>> -DarchetypeVersion=1.4.3 >>>>>>> -DgroupId=com.mycompany -DartifactId=myproject " >>>>>>> >>>>>>> and i used the above example to create >>>>>>> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >>>>>>> my applet >>>>>>> >>>>>>
Re: Very Basic Hello World - Applet
MartinM wrote: > > > No. But you can tweak your build configuration (maven, ant) to copy it > automatically. > > I am using maven i'll start working on it thanks loads -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26714185.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
> but 1 little question ... when i complie the code... instead of manually > copy pasting it to my WEBAPP folder.. can i give it as a path (like > /myproject/src/main/webapp/HelloWorld.class) ... No. But you can tweak your build configuration (maven, ant) to copy it automatically. ** Martin > And thank u to every1 who helped me out. > :handshake::handshake::handshake: > > > MartinM wrote: >> >> COmpile HelloWorld.java applet into HelloWorld.class and put it into >> the webapp directory and write: >> >> >> >> >> >> >> >> 2009/12/9 local_shamil : >>> >>> Ok cool the image works fine... >>> >>> i just added this and it came out " Picture.JPG " >>> >>> now i need to insert an applet .. >>> >>> this is my HelloWorld.java code >> >>> >>> import java.applet.Applet; >>> import java.awt.Graphics; >>> >>> public class HelloWorld extends Applet { >>> public void paint(Graphics g) { >>> g.drawString("Hello world!", 50, 25); >>> } >>> } >>> >>> and my HelloWolrd.HTML code >>> >>> >>> >>> A Simple Program >>> >>> >>> >>> Here is the output of my program: >>> >>> >>> >>> >>> >>> and i have entered these 2 in the "COM.MYCOMPANY" Package but in your >>> applet code it says >>> >>> >> WIDTH=600 HEIGHT=600> >>> >>> >>> What does archive="/xyz.jar" do ?? should i create a jar of my >>> HelloWorld.java class and have it in the WEBAPP folder ?? >>> >>> >>> >>> >>> >>> >>> >>> MartinM wrote: > Guys i am a bit confused now... Take it slow :) > I am trying to have an Applet displayed in a wicket website... That's fine. It is just like displaying an IMAGE in a html page. The applet has nothing to do with wicket. > should i create a JAR as HelloWorld.jar and put it in to the WEBAPP > folder NO. Just make a quickstart WORK and try to make IMAGE ( ) work with the image in webapp/ directory. Then put your applet.class file into the webapp/directory and add the html tag next to your tag. Restart if necessary. Furthermore: it should work even from file system without wicket running. Remember: applet has nothing to do with wicket. ** Martin > MartinM wrote: >> >> The jar is a library for the applet code. Baybe you do not need it. >> >> ** >> Martin >> >> 2009/12/9 local_shamil : >>> >>> Ok... this is the code i used to create my Maven Wicket project >>> >>> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >>> -DarchetypeArtifactId=wicket-archetype-quickstart >>> -DarchetypeVersion=1.4.3 >>> -DgroupId=com.mycompany -DartifactId=myproject " >>> >>> and i used the above example to create >>> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >>> my applet >>> >>> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" >>> file >>> in the com.mycompany pakage.. >>> >>> have i done correctly up to this point ?? >>> >>> then i dont undestand what archive="/xyz.jar" that u have quoted in >>> your >>> reply ... Should i have to create a HelloWorl.jar file and have it in >>> the >>> com.mycompany package ?? >>> >>> Please help ... :( :( >>> -- >>> View this message in context: >>> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713627.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mai
Re: Very Basic Hello World - Applet
Guess What ... it worked .. Thanks loads ... but 1 little question ... when i complie the code... instead of manually copy pasting it to my WEBAPP folder.. can i give it as a path (like /myproject/src/main/webapp/HelloWorld.class) ... And thank u to every1 who helped me out. :handshake::handshake::handshake: MartinM wrote: > > COmpile HelloWorld.java applet into HelloWorld.class and put it into > the webapp directory and write: > > > > > > > > 2009/12/9 local_shamil : >> >> Ok cool the image works fine... >> >> i just added this and it came out " Picture.JPG " >> >> now i need to insert an applet .. >> >> this is my HelloWorld.java code >> >> >> import java.applet.Applet; >> import java.awt.Graphics; >> >> public class HelloWorld extends Applet { >> public void paint(Graphics g) { >> g.drawString("Hello world!", 50, 25); >> } >> } >> >> and my HelloWolrd.HTML code >> >> >> >> A Simple Program >> >> >> >> Here is the output of my program: >> >> >> >> >> >> and i have entered these 2 in the "COM.MYCOMPANY" Package but in your >> applet code it says >> >> > WIDTH=600 HEIGHT=600> >> >> >> What does archive="/xyz.jar" do ?? should i create a jar of my >> HelloWorld.java class and have it in the WEBAPP folder ?? >> >> >> >> >> >> >> >> MartinM wrote: >>> Guys i am a bit confused now... >>> >>> Take it slow :) >>> I am trying to have an Applet displayed in a wicket website... >>> >>> That's fine. It is just like displaying an IMAGE in a html page. The >>> applet has nothing to do with wicket. >>> should i create a JAR as HelloWorld.jar and put it in to the WEBAPP folder >>> >>> NO. >>> >>> Just make a quickstart WORK and try to make IMAGE ( ) work with >>> the image in webapp/ directory. >>> >>> Then put your applet.class file into the webapp/directory and add the >>> html tag next to your tag. >>> >>> Restart if necessary. Furthermore: it should work even from file >>> system without wicket running. Remember: applet has nothing to do with >>> wicket. >>> >>> ** >>> Martin MartinM wrote: > > The jar is a library for the applet code. Baybe you do not need it. > > ** > Martin > > 2009/12/9 local_shamil : >> >> Ok... this is the code i used to create my Maven Wicket project >> >> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >> -DarchetypeArtifactId=wicket-archetype-quickstart >> -DarchetypeVersion=1.4.3 >> -DgroupId=com.mycompany -DartifactId=myproject " >> >> and i used the above example to create >> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >> my applet >> >> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" >> file >> in the com.mycompany pakage.. >> >> have i done correctly up to this point ?? >> >> then i dont undestand what archive="/xyz.jar" that u have quoted in >> your >> reply ... Should i have to create a HelloWorl.jar file and have it in >> the >> com.mycompany package ?? >> >> Please help ... :( :( >> -- >> View this message in context: >> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713627.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsub
Re: Very Basic Hello World - Applet
COmpile HelloWorld.java applet into HelloWorld.class and put it into the webapp directory and write: 2009/12/9 local_shamil : > > Ok cool the image works fine... > > i just added this and it came out " Picture.JPG " > > now i need to insert an applet .. > > this is my HelloWorld.java code >> > > import java.applet.Applet; > import java.awt.Graphics; > > public class HelloWorld extends Applet { > public void paint(Graphics g) { > g.drawString("Hello world!", 50, 25); > } > } > > and my HelloWolrd.HTML code > > > > A Simple Program > > > > Here is the output of my program: > > > > > > and i have entered these 2 in the "COM.MYCOMPANY" Package but in your > applet code it says > > WIDTH=600 HEIGHT=600> > > > What does archive="/xyz.jar" do ?? should i create a jar of my > HelloWorld.java class and have it in the WEBAPP folder ?? > > > > > > > > MartinM wrote: >> >>> Guys i am a bit confused now... >> >> Take it slow :) >> >>> I am trying to have an Applet displayed in a wicket website... >> >> That's fine. It is just like displaying an IMAGE in a html page. The >> applet has nothing to do with wicket. >> >>> should i create a JAR as HelloWorld.jar and put it in to the WEBAPP >>> folder >> >> NO. >> >> Just make a quickstart WORK and try to make IMAGE ( ) work with >> the image in webapp/ directory. >> >> Then put your applet.class file into the webapp/directory and add the >> html tag next to your tag. >> >> Restart if necessary. Furthermore: it should work even from file >> system without wicket running. Remember: applet has nothing to do with >> wicket. >> >> ** >> Martin >>> MartinM wrote: The jar is a library for the applet code. Baybe you do not need it. ** Martin 2009/12/9 local_shamil : > > Ok... this is the code i used to create my Maven Wicket project > > " mvn archetype:create -DarchetypeGroupId=org.apache.wicket > -DarchetypeArtifactId=wicket-archetype-quickstart > -DarchetypeVersion=1.4.3 > -DgroupId=com.mycompany -DartifactId=myproject " > > and i used the above example to create > http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html > my applet > > So what i did was i added the "HelloWorld.java" and "HelloWorld.html" > file > in the com.mycompany pakage.. > > have i done correctly up to this point ?? > > then i dont undestand what archive="/xyz.jar" that u have quoted in > your > reply ... Should i have to create a HelloWorl.jar file and have it in > the > com.mycompany package ?? > > Please help ... :( :( > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713627.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
do that : I'd say get your applet working in a non-wicket, java webapp (with a static HTML page) first. Then, wicketize it. then make panel using your working applet html and add it to a WebPage with it own html NM On Wed, Dec 9, 2009 at 1:37 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > > Guys i am a bit confused now... > > Take it slow :) > > > I am trying to have an Applet displayed in a wicket website... > > That's fine. It is just like displaying an IMAGE in a html page. The > applet has nothing to do with wicket. > > > should i create a JAR as HelloWorld.jar and put it in to the WEBAPP > folder > > NO. > > Just make a quickstart WORK and try to make IMAGE () work with > the image in webapp/ directory. > > Then put your applet.class file into the webapp/directory and add the > html tag next to your tag. > > Restart if necessary. Furthermore: it should work even from file > system without wicket running. Remember: applet has nothing to do with > wicket. > > ** > Martin > > MartinM wrote: > >> > >> The jar is a library for the applet code. Baybe you do not need it. > >> > >> ** > >> Martin > >> > >> 2009/12/9 local_shamil : > >>> > >>> Ok... this is the code i used to create my Maven Wicket project > >>> > >>> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket > >>> -DarchetypeArtifactId=wicket-archetype-quickstart > >>> -DarchetypeVersion=1.4.3 > >>> -DgroupId=com.mycompany -DartifactId=myproject " > >>> > >>> and i used the above example to create > >>> > http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html > >>> my applet > >>> > >>> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" > >>> file > >>> in the com.mycompany pakage.. > >>> > >>> have i done correctly up to this point ?? > >>> > >>> then i dont undestand what archive="/xyz.jar" that u have quoted in > your > >>> reply ... Should i have to create a HelloWorl.jar file and have it in > the > >>> com.mycompany package ?? > >>> > >>> Please help ... :( :( > >>> -- > >>> View this message in context: > >>> > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html > >>> Sent from the Wicket - User mailing list archive at Nabble.com. > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > >> > > > > -- > > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Very Basic Hello World - Applet
Ok cool the image works fine... i just added this and it came out " Picture.JPG " now i need to insert an applet .. this is my HelloWorld.java code >> import java.applet.Applet; import java.awt.Graphics; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 50, 25); } } and my HelloWolrd.HTML code A Simple Program Here is the output of my program: and i have entered these 2 in the "COM.MYCOMPANY" Package but in your applet code it says What does archive="/xyz.jar" do ?? should i create a jar of my HelloWorld.java class and have it in the WEBAPP folder ?? MartinM wrote: > >> Guys i am a bit confused now... > > Take it slow :) > >> I am trying to have an Applet displayed in a wicket website... > > That's fine. It is just like displaying an IMAGE in a html page. The > applet has nothing to do with wicket. > >> should i create a JAR as HelloWorld.jar and put it in to the WEBAPP >> folder > > NO. > > Just make a quickstart WORK and try to make IMAGE ( ) work with > the image in webapp/ directory. > > Then put your applet.class file into the webapp/directory and add the > html tag next to your tag. > > Restart if necessary. Furthermore: it should work even from file > system without wicket running. Remember: applet has nothing to do with > wicket. > > ** > Martin >> MartinM wrote: >>> >>> The jar is a library for the applet code. Baybe you do not need it. >>> >>> ** >>> Martin >>> >>> 2009/12/9 local_shamil : Ok... this is the code i used to create my Maven Wicket project " mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.3 -DgroupId=com.mycompany -DartifactId=myproject " and i used the above example to create http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html my applet So what i did was i added the "HelloWorld.java" and "HelloWorld.html" file in the com.mycompany pakage.. have i done correctly up to this point ?? then i dont undestand what archive="/xyz.jar" that u have quoted in your reply ... Should i have to create a HelloWorl.jar file and have it in the com.mycompany package ?? Please help ... :( :( -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713627.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
> Guys i am a bit confused now... Take it slow :) > I am trying to have an Applet displayed in a wicket website... That's fine. It is just like displaying an IMAGE in a html page. The applet has nothing to do with wicket. > should i create a JAR as HelloWorld.jar and put it in to the WEBAPP folder NO. Just make a quickstart WORK and try to make IMAGE () work with the image in webapp/ directory. Then put your applet.class file into the webapp/directory and add the html tag next to your tag. Restart if necessary. Furthermore: it should work even from file system without wicket running. Remember: applet has nothing to do with wicket. ** Martin > MartinM wrote: >> >> The jar is a library for the applet code. Baybe you do not need it. >> >> ** >> Martin >> >> 2009/12/9 local_shamil : >>> >>> Ok... this is the code i used to create my Maven Wicket project >>> >>> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >>> -DarchetypeArtifactId=wicket-archetype-quickstart >>> -DarchetypeVersion=1.4.3 >>> -DgroupId=com.mycompany -DartifactId=myproject " >>> >>> and i used the above example to create >>> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >>> my applet >>> >>> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" >>> file >>> in the com.mycompany pakage.. >>> >>> have i done correctly up to this point ?? >>> >>> then i dont undestand what archive="/xyz.jar" that u have quoted in your >>> reply ... Should i have to create a HelloWorl.jar file and have it in the >>> com.mycompany package ?? >>> >>> Please help ... :( :( >>> -- >>> View this message in context: >>> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
I'd say get your applet working in a non-wicket, java webapp (with a static HTML page) first. Then, wicketize it. On Wed, Dec 9, 2009 at 11:31 AM, local_shamil wrote: > > Guys i am a bit confused now... > > I am trying to have an Applet displayed in a wicket website... > > What should i exactly do .. > > should i create a JAR as HelloWorld.jar and put it in to the WEBAPP folder > ?? > > in that case i will have the HelloWorld.java and HelloWorld.html in my > "com.mycompany" package, and the HelloWorld.jar in the WEBAPP folder > > I am new to wicket ... so please help ... > > and thanks for replying > > > MartinM wrote: >> >> The jar is a library for the applet code. Baybe you do not need it. >> >> ** >> Martin >> >> 2009/12/9 local_shamil : >>> >>> Ok... this is the code i used to create my Maven Wicket project >>> >>> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >>> -DarchetypeArtifactId=wicket-archetype-quickstart >>> -DarchetypeVersion=1.4.3 >>> -DgroupId=com.mycompany -DartifactId=myproject " >>> >>> and i used the above example to create >>> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >>> my applet >>> >>> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" >>> file >>> in the com.mycompany pakage.. >>> >>> have i done correctly up to this point ?? >>> >>> then i dont undestand what archive="/xyz.jar" that u have quoted in your >>> reply ... Should i have to create a HelloWorl.jar file and have it in the >>> com.mycompany package ?? >>> >>> Please help ... :( :( >>> -- >>> View this message in context: >>> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
Guys i am a bit confused now... I am trying to have an Applet displayed in a wicket website... What should i exactly do .. should i create a JAR as HelloWorld.jar and put it in to the WEBAPP folder ?? in that case i will have the HelloWorld.java and HelloWorld.html in my "com.mycompany" package, and the HelloWorld.jar in the WEBAPP folder I am new to wicket ... so please help ... and thanks for replying MartinM wrote: > > The jar is a library for the applet code. Baybe you do not need it. > > ** > Martin > > 2009/12/9 local_shamil : >> >> Ok... this is the code i used to create my Maven Wicket project >> >> " mvn archetype:create -DarchetypeGroupId=org.apache.wicket >> -DarchetypeArtifactId=wicket-archetype-quickstart >> -DarchetypeVersion=1.4.3 >> -DgroupId=com.mycompany -DartifactId=myproject " >> >> and i used the above example to create >> http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html >> my applet >> >> So what i did was i added the "HelloWorld.java" and "HelloWorld.html" >> file >> in the com.mycompany pakage.. >> >> have i done correctly up to this point ?? >> >> then i dont undestand what archive="/xyz.jar" that u have quoted in your >> reply ... Should i have to create a HelloWorl.jar file and have it in the >> com.mycompany package ?? >> >> Please help ... :( :( >> -- >> View this message in context: >> http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26713212.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
Wicket is deployed as a war in a servlet container (like Jetty or Tomcat). It is not deployed as an applet. Are you trying to ask how to use an applet within Wicket? Or how to deploy Wicket? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Dec 9, 2009 at 10:17 AM, local_shamil wrote: > > Ok... this is the code i used to create my Maven Wicket project > > " mvn archetype:create -DarchetypeGroupId=org.apache.wicket > -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.3 > -DgroupId=com.mycompany -DartifactId=myproject " > > and i used the above example to create > http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html > my applet > > So what i did was i added the "HelloWorld.java" and "HelloWorld.html" file > in the com.mycompany pakage.. > > have i done correctly up to this point ?? > > then i dont undestand what archive="/xyz.jar" that u have quoted in your > reply ... Should i have to create a HelloWorl.jar file and have it in the > com.mycompany package ?? > > Please help ... :( :( > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Very Basic Hello World - Applet
Oh, I went to Southampton Uni'! :-) It depends how it is being deployed but the most simplest way is to put your the applet in your 'webapp' folder. Best, James. 2009/12/9 local_shamil : > > Ok... this is the code i used to create my Maven Wicket project > > " mvn archetype:create -DarchetypeGroupId=org.apache.wicket > -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.3 > -DgroupId=com.mycompany -DartifactId=myproject " > > and i used the above example to create > http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html > my applet > > So what i did was i added the "HelloWorld.java" and "HelloWorld.html" file > in the com.mycompany pakage.. > > have i done correctly up to this point ?? > > then i dont undestand what archive="/xyz.jar" that u have quoted in your > reply ... Should i have to create a HelloWorl.jar file and have it in the > com.mycompany package ?? > > Please help ... :( :( > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
The jar is a library for the applet code. Baybe you do not need it. ** Martin 2009/12/9 local_shamil : > > Ok... this is the code i used to create my Maven Wicket project > > " mvn archetype:create -DarchetypeGroupId=org.apache.wicket > -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.3 > -DgroupId=com.mycompany -DartifactId=myproject " > > and i used the above example to create > http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html > my applet > > So what i did was i added the "HelloWorld.java" and "HelloWorld.html" file > in the com.mycompany pakage.. > > have i done correctly up to this point ?? > > then i dont undestand what archive="/xyz.jar" that u have quoted in your > reply ... Should i have to create a HelloWorl.jar file and have it in the > com.mycompany package ?? > > Please help ... :( :( > -- > View this message in context: > http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
Ok... this is the code i used to create my Maven Wicket project " mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.3 -DgroupId=com.mycompany -DartifactId=myproject " and i used the above example to create http://journals.ecs.soton.ac.uk/java/tutorial/getStarted/applet/index.html my applet So what i did was i added the "HelloWorld.java" and "HelloWorld.html" file in the com.mycompany pakage.. have i done correctly up to this point ?? then i dont undestand what archive="/xyz.jar" that u have quoted in your reply ... Should i have to create a HelloWorl.jar file and have it in the com.mycompany package ?? Please help ... :( :( -- View this message in context: http://old.nabble.com/Very-Basic-Hello-World---Applet-tp26712682p26712974.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Very Basic Hello World - Applet
If you have an applet you can put it into wicket very easily: 2009/12/9 Shamil : > I need to know how to set-up a simple hello world applet to Wicket , i have > almost browsed the entire web, and clueless of how to find it .. can some > one please help me out... or point me to a relevant site .. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org