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

InputSuggestAjax does not use the "style" option

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.5-SNAPSHOT
    • 1.1.5
    • InputSuggestAjax
    • None
    • Windows XP, Tomcat 5.5.20

    Description

      The tag like:

      ====================================
      <s:inputSuggestAjax suggestedItemsMethod="#

      {inputSuggest.getSuggestItems}

      "
      value="#

      {inputSuggest.selectedValue}

      "
      charset="utf-8"
      style="width: 200px;"
      autoComplete="off"
      />
      ====================================

      did not work as expected. It did NOT use the "style". By applying the following patch it will work.

      ====================================
      InputSuggestAjaxRenderer.java:
      ...
      }

      out.startElement(HTML.DIV_ELEM, component);
      out.writeAttribute(HTML.ID_ATTR, clientId , null);
      if(inputSuggestAjax.getStyle() != null)

      { out.writeAttribute(HTML.STYLE_ATTR, inputSuggestAjax.getStyle(), null); }

      out.endElement(HTML.DIV_ELEM);

      String inputSuggestComponentVar = DojoUtils.calculateWidgetVarName(clientId);
      ...
      ====================================

      Or do I just not know how the InputSuggestAjax should be used and was this possible all along? (I know how to use a containing DIV to simulate part of this but that makes HTML dirty)

      Attachments

        1. InputSuggestAjaxRenderer.java
          10 kB
          Milo van der Zee

        Activity

          People

            bierbrauer Gerald Müllan
            milovdzee Milo van der Zee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: