[ 
https://issues.apache.org/jira/browse/TOMAHAWK-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472199
 ] 

Gerald Müllan commented on TOMAHAWK-879:
----------------------------------------

body .dojoComboBox {
        width:300px;
}

This sould do the work (among with other style attributes)

> InputSuggestAjax does not use the "style" option
> ------------------------------------------------
>
>                 Key: TOMAHAWK-879
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-879
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>          Components: InputSuggestAjax
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: Windows XP, Tomcat 5.5.20
>            Reporter: Milo van der Zee
>         Assigned To: Gerald Müllan
>            Priority: Minor
>             Fix For: 1.1.5-SNAPSHOT
>
>         Attachments: InputSuggestAjaxRenderer.java
>
>
> 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)

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