Hi,

I try to use the yui:autocompleter (struts2yuiplugin-0.1-ALPHA-7.jar + jsonplugin-0.33.jar ) Problem: The parameters in my Action class are not set ( by the params interceptor ).
Maybe I have to put the params to the action-URL myself ?

short extract of my JSP is this:
..
<%@ taglib prefix="yui" uri="/struts-yui-tags" %>
<yui:head autocompleter="true" />
..
<s:form
       id="productChoiceForm"
action="ProductList" > <div class="yui-skin-sam" > <s:hidden id="categoryNo" name="categoryNo" /> <s:url id="productListUrl" namespace="/ajax" action="ProductList" includeParams='none' /> <yui:autocompleter id="product" name="product" href="%{#productListUrl}" containerCssStyle="width:100px" /> </div> <s:submit type="input" cssClass="mySubmitButton"/> </s:form> ...

( I changed the 'includeParams' parameter without any effect )

struts.xml has this action:

<package name="ajax" namespace="/ajax" extends="json-default"> <action name="ProductList" class="my.classpath.ajax.ProductList">
           <result type="json">
               <param name="root">options</param>
           </result>
</action> </package>

and the action has parameters+getter/setter for product,productKey,categoryNo but none of these parameters is initialized before the 'execute' method is called (
with the 'getOptions' method it's the same thing ).

Any suggestion ( or may be a working example ) is appreciated ...

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to