[
https://issues.apache.org/jira/browse/TOMAHAWK-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705413#action_12705413
]
Dave commented on TOMAHAWK-1418:
--------------------------------
UISaveState is subclass of UIParameter
> 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
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> <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.