Ignore:
Timestamp:
Apr 14, 2008, 2:42:28 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #103: Create example extensions

Adding a servlet example

Location:
extensions/net.sf.basedb.examples/trunk/META-INF
Files:
1 added
1 edited

Legend:

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

    r641 r656  
    104104    </action-factory>
    105105  </extension>
     106  <extension
     107    id="net.sf.basedb.clients.web.menu.extensions.helloservletworld"
     108    extends="net.sf.basedb.clients.web.menu.extensions"
     109    >
     110    <index>5</index>
     111    <about>
     112      <name>Hello Servlet world</name>
     113      <description>
     114        This example uses a custom Servlet page to display the
     115        "Hello world" message instead of a javascript popup.
     116      </description>
     117    </about>
     118    <action-factory>
     119      <factory-class>
     120        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
     121      </factory-class>
     122      <parameters>
     123        <title>Hello Servlet world!</title>
     124        <tooltip>Opens a Servlet generated page with the message</tooltip>
     125        <onClick>Main.openPopup('$HOME$/HelloWorld.servlet?ID=' + getSessionId(), 'HelloServletWorld', 400, 300)</onClick>
     126        <icon>~/images/servlet.png</icon>
     127      </parameters>
     128    </action-factory>
     129  </extension>
    106130
    107131</extensions>
Note: See TracChangeset for help on using the changeset viewer.