You should use "ognl:{ searchAgent.clientId}" instead in this instance.
On 1/12/06, slavik <[EMAIL PROTECTED]> wrote:
Hi list,
I'm having a problem with tacos4-alpha-7 (tapestry4-release) not
refreshing a PropertySelection component inside a form by using
AjaxEventSubmit.
My configuration is basically as follows:
<form name="alertSearchForm" jwcid="[EMAIL PROTECTED]:AjaxForm"
listener="listener:onSearch" delegate="beans:delegate"
clientValidationEnabled="ognl:true" processScripts="ognl:true">
<span jwcid="databaseChangeScript"
updateComponents="ognl:{'searchAgent'}"/>
<table>
<tr>
<td>
<select name="searchDatabase" jwcid="[EMAIL PROTECTED]"
model="ognl:availableDatabases" value="ognl:searchDatabase"
eventListener=">displayName="message:dbName">
<option value=""></option>
<option value="1">x</option>
<option value="2">y</option>
</select>
</td>
<td>
<select name="searchAgent" jwcid="[EMAIL PROTECTED]"
model="ognl:availableAgents" value="ognl:searchAgent"
displayName="message:agentName">
<option value=""></option>
<option value="1">a</option>
<option value="2">b</option>
</select>
</td>
</form>
What I'm trying to achieve is to refresh the second PropertySelection
with regards to the value of the first one. What I'm seeing is that
everything works but the 'searchAgent' is not being rendered to the
reply (it is rendered by the NullWriter and discarded).
If I'm trying to refresh a regular text field or "Any" element, it works
without a problem.
Am I doing something wrong?
10x a lot
Slavik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBDxkr00O5sJYJINdoRAuB8AKCDJL0iqYhzbGcf2tNhrq9JRboIjQCdFieN
UzzuJTsm8Kvf4IfVQp5Pxbw=
=UXdO
-----END PGP SIGNATURE-----
