Struts2 jQuery Plugin Autocompleter renders HTML with style attributes <== changing this?

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-05-18T12:18:54Z Indexed on 2010/05/18 12:20 UTC
Read the original article Hit count: 187

Filed under:
|
|
|
|

I'm using the Struts2 jQuery plugin 2.1 and render an autocompleter in my JSP. Here's the code:

<s:form id="search-form" action="search" theme="simple">
         <s:url id="remoteurl" action="jsonlanguages"/>
          <div>
        <sj:autocompleter 
            cssClass="bgstandardelement empty"
            id="languages" 
            name="echo"
            href="%{remoteurl}" 
            delay="50"
            value="Search..."
        />

        <input type="submit" id="search-button" value="GO" />
        </div>
    </s:form>

No matter what theme I set the autocompleter-form to, the HTML rendered for the list I output is always an unordered list with a style element that I cannot override. It has the following stype-attribute:

style='z-index: 1; top: 242px; left: 926px; display: none; width: 256px';

As I want another outfit for my list, this doesn't work. Putting in the following attribute has no effect:

cssStyle="width:115px!important;"

What can I do?

© Stack Overflow or respective owner

Related posts about struts2

Related posts about jquery-ui