Ignore:
Timestamp:
Apr 30, 2008, 9:56:27 AM (15 years ago)
Author:
Nicklas Nordborg
Message:

References #103. Moved all examples into a submenu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml

    r661 r682  
    1515    extends="net.sf.basedb.clients.web.menu.extensions"
    1616    >
     17    <index>0</index>
     18    <action-factory>
     19      <factory-class>
     20        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
     21      </factory-class>
     22      <parameters>
     23        <type>SUBMENU</type>
     24        <submenuId>hello</submenuId>
     25        <title>Hello world examples!</title>
     26        <tooltip>Find all examples here</tooltip>
     27        <icon>/images/info.gif</icon>
     28      </parameters>
     29    </action-factory>
     30  </extension>
     31  <extension
     32    id="net.sf.basedb.clients.web.menu.extensions.helloworldsimple"
     33    extends="net.sf.basedb.clients.web.menu.extensions"
     34    >
    1735    <index>1</index>
    1836    <about>
     
    2947      </factory-class>
    3048      <parameters>
     49        <menuId>hello</menuId>
    3150        <title>Hello world!</title>
    3251        <tooltip>This is to test the extensions system</tooltip>
     
    97116      </factory-class>
    98117      <parameters>
     118        <menuId>hello</menuId>
    99119        <title>Hello JSP world!</title>
    100120        <tooltip>Opens a JSP page with the message</tooltip>
     
    110130    <index>5</index>
    111131    <about>
    112       <name>Hello JSP world</name>
     132      <name>Hello X-JSP world</name>
    113133      <description>
    114         This example uses a custom JSP page to display the
     134        This example uses a custom X-JSP page to display the
    115135        "Hello world" message instead of a javascript popup.
     136        An X-JSP file is a JSP file that has access to classes in
     137        the extension's JAR file. NOTE! This example requires that
     138        the XJSP compiler is installed on the server.
    116139      </description>
    117140    </about>
     
    121144      </factory-class>
    122145      <parameters>
     146        <menuId>hello</menuId>
    123147        <title>Hello X-JSP world!</title>
    124148        <tooltip>Opens a X-JSP page with the message</tooltip>
    125         <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloJspWorld', 400, 300)</onClick>
     149        <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloXJspWorld', 400, 300)</onClick>
    126150        <icon>~/images/xworld.png</icon>
    127151      </parameters>
     
    145169      </factory-class>
    146170      <parameters>
     171        <menuId>hello</menuId>
    147172        <title>Hello Servlet world!</title>
    148173        <tooltip>Opens a Servlet generated page with the message</tooltip>
Note: See TracChangeset for help on using the changeset viewer.