Ignore:
Timestamp:
Mar 28, 2008, 2:55:23 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #103.
Added "About" information to xml file and a minor fix to synchronize with latest core changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/HelloWorldFactory.java

    r636 r641  
    1616{
    1717
    18   private MenuItemBean[] helloWorld;
     18  private MenuItemAction[] helloWorld;
    1919
    2020  // A public, no-argument constructor is required
    2121  public HelloWorldFactory()
    2222  {
    23     helloWorld = new MenuItemBean[1];
     23    helloWorld = new MenuItemAction[1];
    2424  }
    2525   
     
    3939    if (helloWorld[0] == null)
    4040    {
    41       helloWorld[0] = new MenuItemBean();
    42       helloWorld[0].setTitle("Hello factory world!");
    43       // TODO - implement jspContext.getRoot() or something similar
    44       helloWorld[0].setIcon("/extensions" + "/images/info.gif");
    45       helloWorld[0].setOnClick("alert('Hello factory world!')");
     41      MenuItemBean bean = new MenuItemBean();
     42      bean.setTitle("Hello factory world!");
     43      bean.setIcon(jspContext.getRoot() + "/images/info.gif");
     44      bean.setOnClick("alert('Hello factory world!')");
     45      helloWorld[0] = bean;
    4646    }
    4747    return helloWorld;
Note: See TracChangeset for help on using the changeset viewer.