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> <title>Graph</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>
> <title>Applet Page</title>
> </head>
> 
> <body>
> <div id="main">
>   <h1>User 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to