Difference between revisions of "HelloWorld Example"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'HelloWord example will add a new Widget in tab documents user interface. Create a file called HelloWorld.gwt.xml into resources/com/openkm/extension/frontend <source lang="xml">…')
 
Line 1: Line 1:
 
HelloWord example will add a new Widget in tab documents user interface.
 
HelloWord example will add a new Widget in tab documents user interface.
  
Create a file called HelloWorld.gwt.xml into resources/com/openkm/extension/frontend
+
Create a file called '''HelloWorld.gwt.xml''' into '''resources/com/openkm/extension/frontend'''
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
Line 10: Line 10:
 
   <inherits name='com.google.gwt.user.User'/>
 
   <inherits name='com.google.gwt.user.User'/>
 
   <inherits name="com.google.gwt.http.HTTP"/>
 
   <inherits name="com.google.gwt.http.HTTP"/>
 +
 +
</module>
 +
</source>
 +
 +
Edit Customization.gwt.xml into '''resources/com/openkm/extension/frontend''' and add the new module
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<!DOCTYPE module SYSTEM "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd">
 +
<module>
 +
 +
  <!-- Inherit the extension widgets -->
 +
  <inherits name="com.openkm.extension.frontend.HelloWorld"/>
  
 
</module>
 
</module>
 
</source>
 
</source>

Revision as of 15:51, 2 June 2010

HelloWord example will add a new Widget in tab documents user interface.

Create a file called HelloWorld.gwt.xml into resources/com/openkm/extension/frontend

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module SYSTEM "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd">
<module>

  <!-- Inherit the core Web Toolkit stuff -->
  <inherits name='com.google.gwt.user.User'/>
  <inherits name="com.google.gwt.http.HTTP"/>

</module>

Edit Customization.gwt.xml into resources/com/openkm/extension/frontend and add the new module

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module SYSTEM "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd">
<module>

  <!-- Inherit the extension widgets -->
  <inherits name="com.openkm.extension.frontend.HelloWorld"/>

</module>