Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1418

UISaveState is included in htmlTag param map

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.8
    • 1.1.9
    • Html Tag
    • None
    • JBOSS 5.0.1, XP, JSF ri 1.2, Tomahawk 1.1.8

    Description

      <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))

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            javaone9 Dave
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified