Changeset 682


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

References #103. Moved all examples into a submenu.

Location:
extensions/net.sf.basedb.examples/trunk
Files:
4 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>
  • extensions/net.sf.basedb.examples/trunk/resources/hello_world.xjsp

    r661 r682  
    1717    <h3 class="docked">Hello <%=HTML.encodeTags(current.getName())%></h3>
    1818    <div class="boxedbottom">
    19       Here are your settings:
     19      Here are your X-JSP settings:
    2020      <table class="form" border="0" cellspacing="1" cellpadding="2">
    2121      <tr>
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/HelloUserFactory.java

    r667 r682  
    4040    String userName = getUserName(context.getClientContext());
    4141    MenuItemBean helloUser = new MenuItemBean();
     42    helloUser.setMenuId("hello");
    4243    helloUser.setTitle(prefix + " " + userName + "!");
    4344    helloUser.setIcon(icon);
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/HelloWorldFactory.java

    r642 r682  
    3737    {
    3838      MenuItemBean bean = new MenuItemBean();
     39      bean.setMenuId("hello");
    3940      bean.setTitle("Hello factory world!");
    4041      bean.setIcon(jspContext.getHome(context.getExtension()) + "/images/factory.png");
Note: See TracChangeset for help on using the changeset viewer.