ICEfaces
  1. ICEfaces
  2. ICE-1934

f:attribute does not work with JSF 1.2 runtime

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.3, 1.7Beta1, 1.7
    • Component/s: None
    • Labels:
      None
    • Environment:
      Firefox/IE, ICEFaces 1.6, JSF 1.2

      Description

      f:attribute does not work with JSF 1.2 runtime. I have the following in a page:

      <ice:commandButton value="Test" actionListener="#{myBean.onTest}">
               <f:attribute name="i" value="testval"/>
       </ice:commandButton>

      When I try to load the page in the browser, it throws the following error:

      javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.jsf_core.AttributeTag.setName - argument type mismatch

      The same page works fine with JSF 1.1 runtime.

        Activity

        Hide
        Brendan Billingsley added a comment -

        It is not clear to me if this is a JSF 1.2 issue in the implementation or a icefaces issue.

        Show
        Brendan Billingsley added a comment - It is not clear to me if this is a JSF 1.2 issue in the implementation or a icefaces issue.
        Hide
        Brendan Billingsley added a comment -

        This is a very serious issue, please give us some update on it.

        Show
        Brendan Billingsley added a comment - This is a very serious issue, please give us some update on it.
        Hide
        Ted Goddard added a comment -

        A fix is checked in to the trunk. Is this also needed in the 1.6 branch?

        The basic idea is to reflectively check for the type expected by setName on the tag, and if the tag is expecting a ValueExpression, to pass a ValueExpression rather than a String.

        Show
        Ted Goddard added a comment - A fix is checked in to the trunk. Is this also needed in the 1.6 branch? The basic idea is to reflectively check for the type expected by setName on the tag, and if the tag is expecting a ValueExpression, to pass a ValueExpression rather than a String.
        Hide
        Ken Fyten added a comment -

        Please backport to 1.6 brand and add 1.6.3 as a fix target.

        Show
        Ken Fyten added a comment - Please backport to 1.6 brand and add 1.6.3 as a fix target.
        Hide
        Ted Goddard added a comment -

        fix ported to icefaces-1.6 branch

        Show
        Ted Goddard added a comment - fix ported to icefaces-1.6 branch

          People

          • Assignee:
            Unassigned
            Reporter:
            Alok Mittal
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: