Re: [Wicket-user] How to display applet in wicket?

2007-05-23 Thread edward durai

Finally, It's working.

My applet looks lik

APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
WIDTH=400 HEIGHT=450


/APPLET

Here Hardcoded values x_axis_value and y_axis_value is working fine.
Consider I have one text box with label Dates and
Consider I have one text box with label values(y).
How to get both values and apply the above applet tags? I am the newbie of
wicket. Please tell your suggestions.




Robert Novotny wrote:
 
 One problem, which could arise, is the URL from which is the graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).
 
 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs. 
 
 There can be another hiccup dealing with URL mounting. In our project we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files which
 are located in the directory just above the WEB-INF.
 
 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 
 
 
  !-- Dynamic --
 !-- Dynamic --
 
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10759460
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
ahh, so you wish to use wicket to generate dynamic content for the applet?

Look at the howto include javascript thread, theres an example on howto 
create a attribute modifier, im not sure howto communicate with your 
applet though?


edward durai wrote:
 Finally, It's working.

 My applet looks lik

 APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
 WIDTH=400 HEIGHT=450


 /APPLET

 Here Hardcoded values x_axis_value and y_axis_value is working fine.
 Consider I have one text box with label Dates and
 Consider I have one text box with label values(y).
 How to get both values and apply the above applet tags? I am the newbie of
 wicket. Please tell your suggestions.




 Robert Novotny wrote:
   
 One problem, which could arise, is the URL from which is the graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).

 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs. 

 There can be another hiccup dealing with URL mounting. In our project we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files which
 are located in the directory just above the WEB-INF.

 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.


 edward durai wrote:
 
 Hi to all,

 I have one graph.java file. In HTML I can display like

 APPLET CODE=graph.class WIDTH=900 HEIGHT=400



  !-- Dynamic --
 !-- Dynamic --

 /APPLET


 In Wicket, how can I display this applet file? Please explain me. 

 Thank you for answering



   
 

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-23 Thread Ayodeji Aladejebi

can applets read attributes from HTML DOM? if applets can read HTML DOM Tree
then Wicket and Applets should be able to communicate via AJAX. Wicket
updates DOM tree variables via AJAX and then Applets pick up the values for
internal use?

can this work

any?

On 5/23/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


ahh, so you wish to use wicket to generate dynamic content for the applet?

Look at the howto include javascript thread, theres an example on howto
create a attribute modifier, im not sure howto communicate with your
applet though?


edward durai wrote:
 Finally, It's working.

 My applet looks lik

 APPLET codebase=http://localhost:8080/projectName; CODE=ClassName
 WIDTH=400 HEIGHT=450


 /APPLET

 Here Hardcoded values x_axis_value and y_axis_value is working fine.
 Consider I have one text box with label Dates and
 Consider I have one text box with label values(y).
 How to get both values and apply the above applet tags? I am the newbie
of
 wicket. Please tell your suggestions.




 Robert Novotny wrote:

 One problem, which could arise, is the URL from which is the
graph.class
 loaded. When you've got your applet page on
 http://server.com/page/applet.html, browser JVM willl try to load
 graph.class from http://server.com/page/graph.class URL. Also make sure
 that you have a correct case (Java classes should start with an
uppercase
 letter, therefore I think it is better to have applect
 code=Graph.class.. and class called Graph).

 However, if you specify the JAR files in the archive attribute, your
 classes will be loaded from the specified JARs.

 There can be another hiccup dealing with URL mounting. In our project
we
 have mounted the Wicket webapplication on the
 url-pattern/app/*/url-pattern. Therefore our applet page has URL
 http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:
uinf.wid.tools.UserProfileApplet,
 which means that the JAR files are loaded from the
 http://[servername]:8080/[appname] directory, i. e. from JAR files
which
 are located in the directory just above the WEB-INF.

 If your webpage is mounted (for example to
 http://[servername]:8080/[appname]/app/userprofile), you could come
across
 JAR loading problems, because JVM will try to load JAR/CLASS file from
 that http://[servername]:8080/[appname]/app/userprofile, which does not
 correspond to any server directory, therefore it will not find your
 JARs/CLASSes.


 edward durai wrote:

 Hi to all,

 I have one graph.java file. In HTML I can display like

 APPLET CODE=graph.class WIDTH=900 HEIGHT=400



  !-- Dynamic --
 !-- Dynamic --

 /APPLET


 In Wicket, how can I display this applet file? Please explain me.

 Thank you for answering








-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-14 Thread Jean-Baptiste Quenot
* edward durai:

 anyone help this.

Dear Edward,

Please exit  from your applet  tunnel vision.  Begin  talking in
terms of  HTTP requests.  Wicket  does not make any  assumption on
whether you serve an applet, Flash, image, HTML or anything else.

So, what are  the HTTP requests URL that are  made on your server?
Can you list them?
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-14 Thread Jean-Baptiste Quenot
Oh, and by the way, why do  you need Wicket for streaming a static
resource from the server?  Just  specify the relative path of your
static file in the web application.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-13 Thread edward durai

anyone help this.



edwarddurai wrote:
 
 actually my html file looks like
 
 here I have one Graph.class file inside mywicket.examples folder. Could
 you tell me what is  archive=applets.jar,log4j-1.2.12.jar. Is it
 essential. Because Graph.java is not inside in jar file. So what jar file
 here i have to include. 
 
 My Aim is to display the graph, x axis contains Date and y axis contains
 average speed. 
 BUt i am getting class not found exception. 
 
 html
   head titleGraph/title
   
 
   /head
   body

 APPLET CODE=mywicket.examples.Graph.class WIDTH=900 HEIGHT=400
 
   PARAM name=title value=Date Vs Average Speed/
   PARAM name=show_small_squares value=6/
   PARAM name=vret_grid_off/
   PARAM name=show_legend_on_right/
   PARAM name=legend_border_off/
   PARAM name=show_percents_on_legend/
   PARAM name=X_axis_description value=Average Speed/
   PARAM name=Y_axis_description value=Date/
   PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007/
 !-- Dynamic --
   PARAM name=data_set_1 
 value=13,27,50,70,10,30,30,20,80/!--
 Dynamic --
   PARAM name=description_1 value=item1/
   
   /APPLET
 
   /body
   
 /html
 
 
 
 
 
 
 
 Robert Novotny wrote:
 
 Hello,
 in my experience, the most frequent problems with applets are connected
 with classpath problems. Could you have a look into the Java Console
 output and search for the potential ClassNotFoundError stack traces? (If
 I remember correctly, you could right click on the applet that failed
 loading and use 'Show Java Console' from the popup menu).
 
 Besides that, this is an applet page from our project:
 HTML template: 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 
 head
 titleApplet Page/title
 /head
 
 body
 div id=main
   h1User profile/h1
   applet
 code=uinf.wid.tools.UserProfileApplet.class
 archive=applets.jar,log4j-1.2.12.jar
 name=UserProfileApplet
 width=800
 height=600
   
   /applet
 /div
 /body
 /html
 Corresponding Java class:
 public class UserProfileAppletPage extends WebPage {
  public static final Logger logger =
 Logger.getLogger(UserProfileAppletPage.class);
  
  public UserProfileAppletPage() {
  logger.debug(UserProfileAppletPage loaded.);  
  }   
 }
 
 
 
 edward durai wrote:
 
 Hi!
 
 I have put both graph.class and html file. In non-wicket page it is
 working.
 but in wicket it is not working.
 
 Please advise.
 Thanks
 
 
 
 
 howzat wrote:
 
 Does the markup you give below work in a non-wicket page?
 I would make a the simplest possible html page including your applet
 tag below to see if it works. When it works, compare it to the html
 generated by wicket. If they are the same, you should observe exactly
 the same result in your browser in both cases. 
 
 
 
 edward durai wrote:
 
 Hi,
 
 I have tried. but i am not able to display that applet. Please give me
 one sample. Thanks
 
 
 
 Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just
 put the proper applet tags into the HTML page template. You don't
 even need to have corresponding components in the Java class, since
 applet is not a wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
 Dynamic --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10555730
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread howzat

Does the markup you give below work in a non-wicket page?
I would make a the simplest possible html page including your applet tag
below to see if it works. When it works, compare it to the html generated by
wicket. If they are the same, you should observe exactly the same result in
your browser in both cases. 



edward durai wrote:
 
 Hi,
 
 I have tried. but i am not able to display that applet. Please give me one
 sample. Thanks
 
 
 
 Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just put
 the proper applet tags into the HTML page template. You don't even need
 to have corresponding components in the Java class, since applet is not a
 wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic
 --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443124
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread edward durai

Hi!

I have put both graph.class and html file. In non-wicket page it is working.
but in wicket it is not working.

Please advise.
Thanks




howzat wrote:
 
 Does the markup you give below work in a non-wicket page?
 I would make a the simplest possible html page including your applet tag
 below to see if it works. When it works, compare it to the html generated
 by wicket. If they are the same, you should observe exactly the same
 result in your browser in both cases. 
 
 
 
 edward durai wrote:
 
 Hi,
 
 I have tried. but i am not able to display that applet. Please give me
 one sample. Thanks
 
 
 
 Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just put
 the proper applet tags into the HTML page template. You don't even need
 to have corresponding components in the Java class, since applet is not
 a wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
 Dynamic --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread Robert Novotny

Hello,
in my experience, the most frequent problems with applets are connected with
classpath problems. Could you have a look into the Java Console output and
search for the potential ClassNotFoundError stack traces? (If I remember
correctly, you could right click on the applet that failed loading and use
'Show Java Console' from the popup menu).

Besides that, this is an applet page from our project:
HTML template: 
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;

head
titleApplet Page/title
/head

body
div id=main
  h1User profile/h1
  applet
code=uinf.wid.tools.UserProfileApplet.class
archive=applets.jar,log4j-1.2.12.jar
name=UserProfileApplet
width=800
height=600
  
  /applet
/div
/body
/html
Corresponding Java class:
public class UserProfileAppletPage extends WebPage {
public static final Logger logger =
Logger.getLogger(UserProfileAppletPage.class);

public UserProfileAppletPage() {
logger.debug(UserProfileAppletPage loaded.);  
}   
}



edward durai wrote:
 
 Hi!
 
 I have put both graph.class and html file. In non-wicket page it is
 working.
 but in wicket it is not working.
 
 Please advise.
 Thanks
 
 
 
 
 howzat wrote:
 
 Does the markup you give below work in a non-wicket page?
 I would make a the simplest possible html page including your applet tag
 below to see if it works. When it works, compare it to the html generated
 by wicket. If they are the same, you should observe exactly the same
 result in your browser in both cases. 
 
 
 
 edward durai wrote:
 
 Hi,
 
 I have tried. but i am not able to display that applet. Please give me
 one sample. Thanks
 
 
 
 Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just
 put the proper applet tags into the HTML page template. You don't even
 need to have corresponding components in the Java class, since applet
 is not a wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
 Dynamic --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443943
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread Igor Vaynberg

what is your html look like? what does the html that wicket outputs look
like? there might be a path problem where the browser cant find the jar.

-igor


On 5/12/07, edward durai [EMAIL PROTECTED] wrote:



Hi!

I have put both graph.class and html file. In non-wicket page it is
working.
but in wicket it is not working.

Please advise.
Thanks




howzat wrote:

 Does the markup you give below work in a non-wicket page?
 I would make a the simplest possible html page including your applet tag
 below to see if it works. When it works, compare it to the html
generated
 by wicket. If they are the same, you should observe exactly the same
 result in your browser in both cases.



 edward durai wrote:

 Hi,

 I have tried. but i am not able to display that applet. Please give me
 one sample. Thanks



 Robert Novotny wrote:

 Hello,
 there is nothing special in displaying applets in wicket pages. Just
put
 the proper applet tags into the HTML page template. You don't even
need
 to have corresponding components in the Java class, since applet is
not
 a wicket component.

 Robert Novotny



 edward durai wrote:

 Hi to all,

 I have one graph.java file. In HTML I can display like

 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series

value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
 Dynamic --
 PARAM name=description_1 value=item1
 /APPLET


 In Wicket, how can I display this applet file? Please explain me.

 Thank you for answering










--
View this message in context:
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread edwarddurai

actually my html file looks like

here I have one Graph.class file inside mywicket.examples folder. Could you
tell me what is  archive=applets.jar,log4j-1.2.12.jar. Is it essential.
Because Graph.java is not inside in jar file. So what jar file here i have
to include.

My Aim is to display the graph, x axis contains Date and y axis contains
average speed.
BUt i am getting class not found exception.

html
  head titleGraph/title
 

  /head
  body
   
APPLET CODE=mywicket.examples.Graph.class WIDTH=900 HEIGHT=400

PARAM name=title value=Date Vs Average Speed/
PARAM name=show_small_squares value=6/
PARAM name=vret_grid_off/
PARAM name=show_legend_on_right/
PARAM name=legend_border_off/
PARAM name=show_percents_on_legend/
PARAM name=X_axis_description value=Average Speed/
PARAM name=Y_axis_description value=Date/
PARAM name=variation_series
value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007/
!-- Dynamic --
PARAM name=data_set_1
value=13,27,50,70,10,30,30,20,80/!-- Dynamic --
PARAM name=description_1 value=item1/
   
/APPLET
   
  /body
 
/html 


igor.vaynberg wrote:
 
 what is your html look like? what does the html that wicket outputs look
 like? there might be a path problem where the browser cant find the jar.
 
 -igor
 
 
 On 5/12/07, edward durai [EMAIL PROTECTED] wrote:


 Hi!

 I have put both graph.class and html file. In non-wicket page it is
 working.
 but in wicket it is not working.

 Please advise.
 Thanks




 howzat wrote:
 
  Does the markup you give below work in a non-wicket page?
  I would make a the simplest possible html page including your applet
 tag
  below to see if it works. When it works, compare it to the html
 generated
  by wicket. If they are the same, you should observe exactly the same
  result in your browser in both cases.
 
 
 
  edward durai wrote:
 
  Hi,
 
  I have tried. but i am not able to display that applet. Please give me
  one sample. Thanks
 
 
 
  Robert Novotny wrote:
 
  Hello,
  there is nothing special in displaying applets in wicket pages. Just
 put
  the proper applet tags into the HTML page template. You don't even
 need
  to have corresponding components in the Java class, since applet is
 not
  a wicket component.
 
  Robert Novotny
 
 
 
  edward durai wrote:
 
  Hi to all,
 
  I have one graph.java file. In HTML I can display like
 
  APPLET CODE=graph.class WIDTH=900 HEIGHT=400
  PARAM name=title value=Date Vs Average Speed
  PARAM name=X_axis_description value=Average Speed
  PARAM name=Y_axis_description value=Date
  PARAM name=variation_series
 
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
  !-- Dynamic --
  PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
  Dynamic --
  PARAM name=description_1 value=item1
  /APPLET
 
 
  In Wicket, how can I display this applet file? Please explain me.
 
  Thank you for answering
 
 
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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/How-to-display-applet-in-wicket--tf3725676.html#a10444340
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread edwarddurai

actually my html file looks like

here I have one Graph.class file inside mywicket.examples folder. Could you
tell me what is  archive=applets.jar,log4j-1.2.12.jar. Is it essential.
Because Graph.java is not inside in jar file. So what jar file here i have
to include. 

My Aim is to display the graph, x axis contains Date and y axis contains
average speed. 
BUt i am getting class not found exception. 

html
  head titleGraph/title
  

  /head
  body
   
APPLET CODE=mywicket.examples.Graph.class WIDTH=900 HEIGHT=400

PARAM name=title value=Date Vs Average Speed/
PARAM name=show_small_squares value=6/
PARAM name=vret_grid_off/
PARAM name=show_legend_on_right/
PARAM name=legend_border_off/
PARAM name=show_percents_on_legend/
PARAM name=X_axis_description value=Average Speed/
PARAM name=Y_axis_description value=Date/
PARAM name=variation_series
value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007/
!-- Dynamic --
PARAM name=data_set_1 
value=13,27,50,70,10,30,30,20,80/!-- Dynamic
--
PARAM name=description_1 value=item1/

/APPLET

  /body
  
/html







Robert Novotny wrote:
 
 Hello,
 in my experience, the most frequent problems with applets are connected
 with classpath problems. Could you have a look into the Java Console
 output and search for the potential ClassNotFoundError stack traces? (If I
 remember correctly, you could right click on the applet that failed
 loading and use 'Show Java Console' from the popup menu).
 
 Besides that, this is an applet page from our project:
 HTML template: 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 
 head
 titleApplet Page/title
 /head
 
 body
 div id=main
   h1User profile/h1
   applet
 code=uinf.wid.tools.UserProfileApplet.class
 archive=applets.jar,log4j-1.2.12.jar
 name=UserProfileApplet
 width=800
 height=600
   
   /applet
 /div
 /body
 /html
 Corresponding Java class:
 public class UserProfileAppletPage extends WebPage {
   public static final Logger logger =
 Logger.getLogger(UserProfileAppletPage.class);
   
   public UserProfileAppletPage() {
   logger.debug(UserProfileAppletPage loaded.);  
   }   
 }
 
 
 
 edward durai wrote:
 
 Hi!
 
 I have put both graph.class and html file. In non-wicket page it is
 working.
 but in wicket it is not working.
 
 Please advise.
 Thanks
 
 
 
 
 howzat wrote:
 
 Does the markup you give below work in a non-wicket page?
 I would make a the simplest possible html page including your applet tag
 below to see if it works. When it works, compare it to the html
 generated by wicket. If they are the same, you should observe exactly
 the same result in your browser in both cases. 
 
 
 
 edward durai wrote:
 
 Hi,
 
 I have tried. but i am not able to display that applet. Please give me
 one sample. Thanks
 
 
 
 Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just
 put the proper applet tags into the HTML page template. You don't even
 need to have corresponding components in the Java class, since applet
 is not a wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!--
 Dynamic --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10444325
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-12 Thread Robert Novotny

One problem, which could arise, is the URL from which is the graph.class
loaded. When you've got your applet page on
http://server.com/page/applet.html, browser JVM willl try to load
graph.class from http://server.com/page/graph.class URL. Also make sure that
you have a correct case (Java classes should start with an uppercase letter,
therefore I think it is better to have applect code=Graph.class.. and
class called Graph).

However, if you specify the JAR files in the archive attribute, your classes
will be loaded from the specified JARs. 

There can be another hiccup dealing with URL mounting. In our project we
have mounted the Wicket webapplication on the
url-pattern/app/*/url-pattern. Therefore our applet page has URL
http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet,
which means that the JAR files are loaded from the
http://[servername]:8080/[appname] directory, i. e. from JAR files which are
located in the directory just above the WEB-INF.

If your webpage is mounted (for example to
http://[servername]:8080/[appname]/app/userprofile), you could come across
JAR loading problems, because JVM will try to load JAR/CLASS file from that
http://[servername]:8080/[appname]/app/userprofile, which does not
correspond to any server directory, therefore it will not find your
JARs/CLASSes.


edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic
 --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10445420
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to display applet in wicket?

2007-05-11 Thread edward durai

Hi to all,

I have one graph.java file. In HTML I can display like

APPLET CODE=graph.class WIDTH=900 HEIGHT=400
PARAM name=title value=Date Vs Average Speed
PARAM name=X_axis_description value=Average Speed
PARAM name=Y_axis_description value=Date
PARAM name=variation_series
value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
!-- Dynamic --
PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic --
PARAM name=description_1 value=item1
/APPLET


In Wicket, how can I display this applet file? Please explain me. 

Thank you for answering


-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10426521
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-11 Thread Robert Novotny

Hello,
there is nothing special in displaying applets in wicket pages. Just put the
proper applet tags into the HTML page template. You don't even need to have
corresponding components in the Java class, since applet is not a wicket
component.

Robert Novotny



edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic
 --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10429225
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to display applet in wicket?

2007-05-11 Thread edward durai

Hi,

I have tried. but i am not able to display that applet. Please give me one
sample. Thanks



Robert Novotny wrote:
 
 Hello,
 there is nothing special in displaying applets in wicket pages. Just put
 the proper applet tags into the HTML page template. You don't even need to
 have corresponding components in the Java class, since applet is not a
 wicket component.
 
 Robert Novotny
 
 
 
 edward durai wrote:
 
 Hi to all,
 
 I have one graph.java file. In HTML I can display like
 
 APPLET CODE=graph.class WIDTH=900 HEIGHT=400
 PARAM name=title value=Date Vs Average Speed
 PARAM name=X_axis_description value=Average Speed
 PARAM name=Y_axis_description value=Date
 PARAM name=variation_series
 value=1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007
 !-- Dynamic --
 PARAM name=data_set_1 value=13,27,50,70,10,30,30,20,80!-- Dynamic
 --
 PARAM name=description_1 value=item1
 /APPLET
 
 
 In Wicket, how can I display this applet file? Please explain me. 
 
 Thank you for answering
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10442998
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user