users@glassfish.java.net

Re: jsf2 on glassfish v2 - el parameters not working

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Feb 2010 01:42:34 PST

First try, both files in WEB-INF/lib (remember, I just want that for one application):

javax.el.MethodNotFoundException: /erreur/list.xhtml @67,102 action="#{erreursController.actionDetails}": Method not found: be.ucl.epc.common.web.control.ErreursController_at_19d65cf.actionDetails()
javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: /erreur/list.xhtml @67,102 action="#{erreursController.actionDetails}": Method not found: be.ucl.epc.common.web.control.ErreursController_at_19d65cf.actionDetails()
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:92)

controller:

  public String actionDetails(ErrorReport errorReport) {
        currentErrorReport = errorReport;
        return VUE_ERREUR_DETAILS;
    }

page:

  <h:dataTable value="#{erreursController.errorReports}" var="errorReport" rendered="#{!empty erreursController.errorReports}" styleClass="bordered pluspetit">
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="..."/>
                        </f:facet>
                        <h:commandLink value="détails" action="#{erreursController.actionDetails(errorReport)}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="Heure/date"/>
                        </f:facet>
                        <h:outputText value="#{errorReport.errorDateTime}">
                            <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" />
                        </h:outputText>
                    </h:column>
[...]
</h:dataTable>
[Message sent by forum member 'ymajoros' (yannick.majoros_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=388364