You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by roriveram <to...@gmail.com> on 2009/09/28 08:05:41 UTC

Re: Help with Combobox

Help me whit this code:

 <s:form>
    <s:action name="IterateDemo" var="customers" >
        <s:bean name="tags.iterate.action.Combo" var="customers">
            <s:param name="customers.name" value="text{'name'}"/>
            <s:combobox label="Nombres" name="nombres" headerValue="--
Select --" headerKey="1"
            list="#customers" listValue="customers" size="15"/>
        </s:bean>
    </s:action>
 </s:form>

Struts.xml:

         <action name="IterateDemo" method="execute"
             class="tags.iterate.action.Combo">
             
             <result name="input">/tags/iteratedemo.jsp</result>
             <result name="SUCCESS">/tags/iteratedemo.jsp</result>
         </action>    

The combobox is empty... why?????


Juan Pablo Pizarro wrote:
> 
> Thanks!!
> 
> It works fine!
> 
> Regards.
> 
> 2008/6/26 Lukasz Lenart <lu...@googlemail.com>:
>> 2008/6/26 Juan Pablo Pizarro <ju...@gmail.com>:
>>> Sorry, I use:
>>>
>>> <s:combobox label="%{getText('technology')}"
>>>                                name="technology" readonly="true"
>>>                                headerValue="--- Please Select ---"
>>> headerKey="1"
>>> list="lstTechnology.{shortDesc}"/>
>>
>> It should be like this
>>
>> list="lstTechnology"
>> listKey="technologyId" - this will be the value of technology
>> listValue="technologyLabel" - what will user see
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Help-with-Combobox-tp18137053p25640995.html
Sent from the Struts - User mailing list archive at Nabble.com.


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