UISaveState is included in htmlTag param map
--------------------------------------------

                 Key: TOMAHAWK-1418
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1418
             Project: MyFaces Tomahawk
          Issue Type: Bug
    Affects Versions: 1.1.8
         Environment: JBOSS 5.0.1, XP, JSF ri 1.2, Tomahawk 1.1.8
            Reporter: Dave


<t:div>
<t:saveState .../>

</t:div>

<saveState> are included as <f:param> for htmlTagRender.


HtmlComponentUtils.java

  public static Map getParameterMap(UIComponent component) {
        Map result = new HashMap();
        for (Iterator iter = component.getChildren().iterator(); 
iter.hasNext();) {
            UIComponent child = (UIComponent) iter.next();
            if (child instanceof UIParameter) {
                UIParameter uiparam = (UIParameter) child;
                Object value = uiparam.getValue();
                if (value != null) {
                    result.put(uiparam.getName(), value);
                }
            }
        }
        return result;
    }   

----------fix:----------------
parameterMap is for <f:param> only.

so change the following:
if (child instanceof UIParameter)  --> if 
(child.getClass().equals(UIParameter.class))




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to