myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam R Rice <ADAMR...@uk.ibm.com>
Subject [Trinidad] tr:commandbutton issue
Date Tue, 19 Oct 2010 21:34:05 GMT
I have been trying to use the Trinidad command button to call a method in 
a bean but it doesn't seem to recognise that the method is there.

index.jsp
<f:view>
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1">
        <meta content="no-cache" http-equiv="Cache-Control" />
        <meta content="no-cache" http-equiv="Pragma" />
        <title>Tracking</title>
        </head>
        <body style="height: 100%">
        <tr:form>
                <tr:commandButton action="#{trackingBean.update}" />
        </tr:form>
........


TrackingBean.java
public String update()
{
        // do something;
        return "";
}

If I type '<tr:commandButton action="#{trackingBean.' and press Ctrl+Space 
the list of available methods does not show the update() method.

What else do I need to do to allow this method to be selected? I believe 
that the method signature is correct and there is no need to make any 
modifications to faces-config.xml.

Any help would be much appreciated.


Regards,
Adam Rice





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU






Mime
View raw message