struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Azua <g...@imc.nl>
Subject Re: best choice for this use case ... ?
Date Mon, 03 Dec 2007 14:46:58 GMT
hi,

I found a post from Musachy that resolves the a) problem of submitting
the selected index as part of the ajax action request:
http://www.mail-archive.com/user@struts.apache.org/msg69361.html

I changed the JSP to what's below.

Now I'm trying to resolve problem b) that e.g. the autocompleter 
eurosPerListedUnit0
does not get filled properly.

I did a manual execution of the Ajax action and this is the result it 
displays:
{"eurosPerListedUnit0":1.0,
  "eurosPerListedUnit0Key":1.0,
  "eurosPerListedUnit1":1.0,
  "eurosPerListedUnit1Key":1.0}
which is good! but then the widget displays blank ... and includes tree 
items:
"type, selected, data ..." ??

TIA,
regards,
Giovanni

<s:url var="exchangeRates" action="AjaxGetExchangeRates.action" />

<s:form id="formSimulation" action="%{targetAction}" method="post" 
theme="%{currentTheme}">
      <sx:autocompleter tooltip="Provide the first Historic Book" 
valueNotifyTopics="/changedHistoricBook0" searchType="substring" 
label="Historic Book 1" cssStyle="width: 250px;" dropdownHeight="180" 
name="historicBook0" list="historicBooks" listKey="id" listValue="name" 
/>        
     ....
    <sx:autocompleter tooltip="Provide the Currency Rate 1" 
formId="formSimulation" href="%{#exchangeRates}" autoComplete="false" 
listenTopics="/changedHistoricBook0" label="Currency Rate 1" 
showDownArrow="false" cssStyle="width: 250px;" name="eurosPerListedUnit0" />
    ...
    <s:submit value="%{buttonLabel}" align="center"/>
</s:form>

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


Mime
View raw message