Donate Share

XUI RIA Framework

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

How to bind Events to MenuItems???

You are viewing a single message from this topic. View all messages.

  1. 2008-11-12 07:03:14 UTC
    Hi,

    I have an XUI page as follows...

    <XPage class="com.ocimum.biotracker.Biotracker">
    <Components>
    <MenuBar name="menubar" w="1020" h="20">
    <Menu name="filemenu" text="File" >
    <MenuItem name="menuItemPerson" text="Person"/>
    <MenuItem name="menuItemClose" text="Close"/>
    </Menu>
    </MenuBar>
    </Components>
    <Events>
    <Event target="menuItemPerson" type="MenuHandler" method="person"/>
    <Event target="menuItemClose" type="MenuHandler" method="close"/>
    </Events>
    </XPage>


    when i try to run the application i get the following error...
    Wed Nov 12 12:25:42 GMT+05:30 2008 ERROR: While adding the event element: close
    java.lang.NullPointerException
    at net.xoetrope.builder.XuiBuilder.getMenuItem(XuiBuilder.java:1502)
    at net.xoetrope.builder.XuiBuilder.addEvent(XuiBuilder.java:839)
    --
    ---

    I tried to find the problem but was not able to do so. Can anyone please let me know what the problem is...???

    regards,
    Sri.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.