How to specify codebase for applet?
Hi, in our application we need to make use of an applet. For the size and logistics reasons I don't want to package the required applet jars inside Java packages (that is unlike e.g. images and css that we do package together with the components). So, say, I'll package the jars under 'applet' web folder so that they are web-accessible via http://server/context-path/applet/jar1.jar etc. Now I don't want to hardcore context-path into the markup file, so I don't want to simply write in HTML: applet codebase=/context-path/applet code=Applet archive=jar1.jar,jar2.jar name=Applet You need Java support to run this applet. /applet What do I need to write so that codebase refers to the proper folder regardless of the chosen context-path? (folder name inside the context-path will still be the same) Thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to specify codebase for applet?
See the source for ContextImage for an example. Martijn On Mon, Mar 1, 2010 at 1:19 PM, Sergey Olefir solf.li...@gmail.com wrote: Hi, in our application we need to make use of an applet. For the size and logistics reasons I don't want to package the required applet jars inside Java packages (that is unlike e.g. images and css that we do package together with the components). So, say, I'll package the jars under 'applet' web folder so that they are web-accessible via http://server/context-path/applet/jar1.jar etc. Now I don't want to hardcore context-path into the markup file, so I don't want to simply write in HTML: applet codebase=/context-path/applet code=Applet archive=jar1.jar,jar2.jar name=Applet You need Java support to run this applet. /applet What do I need to write so that codebase refers to the proper folder regardless of the chosen context-path? (folder name inside the context-path will still be the same) Thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to specify codebase for applet?
Thanks for the pointer, I was able to solve my problem with this information. However I had to roll my own versions of ContextImage and ContextPathGenerator -- because the ones supplied with Wicket appear to be hardcoded to use 'src' attribute. Maybe generic versions that are able to manipulate specified attribute should be included in Wicket distribution? Martijn Dashorst wrote: See the source for ContextImage for an example. Martijn -- View this message in context: http://old.nabble.com/How-to-specify-codebase-for-applet--tp27742745p27745948.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