Issue Details (XML | Word | Printable)

Key: ICE-1934
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Alok Mittal
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ICEfaces

f:attribute does not work with JSF 1.2 runtime

Created: 27/Jul/07 10:28 AM   Updated: 14/Apr/08 03:34 PM
Component/s: None
Affects Version/s: 1.6
Fix Version/s: 1.6.3, 1.7Beta1, 1.7

Environment: Firefox/IE, ICEFaces 1.6, JSF 1.2


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Brendan Billingsley added a comment - 18/Sep/07 02:06 PM
It is not clear to me if this is a JSF 1.2 issue in the implementation or a icefaces issue.

Brendan Billingsley added a comment - 18/Sep/07 02:29 PM
This is a very serious issue, please give us some update on it.

Ted Goddard added a comment - 09/Jan/08 12:47 PM
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.


Ken Fyten added a comment - 09/Jan/08 03:17 PM
Please backport to 1.6 brand and add 1.6.3 as a fix target.

Ted Goddard added a comment - 09/Jan/08 06:08 PM
fix ported to icefaces-1.6 branch