3 Replies Latest reply on Jun 25, 2007 1:16 PM by Grégory Tanneau

    ui:include and seam extended EL

    Grégory Tanneau Newbie

      Hi all !

      I have an issue, using Seam 1.2.1.GA (i dont know with other versions).

      Here is a working code, using EL with params :

      <h:commandLink value="#{p10}" actionListener="#{bean.setPageSize(p10)}" />

      But, when i use this code inside a ui:include
      <ui:include src="layout/w_resultsPerPage.xhtml">
       <ui:param name="x" value="#{bean}" />
      <h:commandLink value="#{p10}" actionListener="#{x.setPageSize(p10)}" />

      ... then i got an exception

      15:25:00,093 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
       at org.jboss.seam.ui.facelet.MethodExpressionHelper.findParamTypes(MethodExpressionHelper.java:146)
       at org.jboss.seam.ui.facelet.MethodExpressionHelper.invokeTheExpression(MethodExpressionHelper.java:98)
       at org.jboss.seam.ui.facelet.ParamMethodExpression.invoke(ParamMethodExpression.java:62)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)

      Anyone has already had such an error ?
      Am I doing something wrong ? (maybe)

      Thanks !