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-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 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


[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 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


[Wicket-user] XML Parsing

2007-05-10 Thread edward durai

Hi Wicket Experts,

I have one xml file, like 

Personal Information
   usernameDavid/username
   addressUSA/address
/Personal Information

I want to parse username and its value and address value. Is it possible in
wicket? If Yes How?

Thanking You
Edward
-- 
View this message in context: 
http://www.nabble.com/XML-Parsing-tf3721455.html#a10412772
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] Query String passing

2007-05-10 Thread edward durai

Hi,

I am newbie of wicket, 
in jsp, consider one.jsp contains username field. When I click submit button
goto another page that is two.jsp.
I can get  username field using request.getParameter(username);

But In Wicket, How can I do it the same process?

Please explain. Thanking You.

-- 
View this message in context: 
http://www.nabble.com/Query-String-passing-tf3721482.html#a10412858
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 pass the values from one page another page in wicket?

2007-05-10 Thread edward durai

Hi,

I am newbie of wicket, 
in jsp, consider one.jsp contains username field. When I click submit button
goto another page that is two.jsp.
I can get  username field using request.getParameter(username);

But In Wicket, How can I do it the same process?

Please explain me. Thanking You.
-- 
View this message in context: 
http://www.nabble.com/How-to-pass-the-values-from-one-page-another-page-in-wicket--tf3721484.html#a10412860
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 pass the values from one page another page in wicket?

2007-05-10 Thread edward durai

Hi,

I am newbie of wicket, 
in jsp, consider one.jsp contains username field. When I click submit button
goto another page that is two.jsp.
I can get  username field using request.getParameter(username);

But In Wicket, How can I do it the same process?

Please explain. Thanking You.
-- 
View this message in context: 
http://www.nabble.com/How-to-pass-the-values-from-one-page-another-page-in-wicket--tf3721486.html#a10412862
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