I don't suppose it has anything to do with the name
"handleDescriptionNachChange" does it? The function in your JS does not
have "Nach" in the name.
Ramon Casha
On Fri, 2008-07-18 at 02:54 -0700, Stefan Bley wrote:
> I use DynaFaces.fireAjaxTransaction to update fields based on other input
> field values. This is invoked using onBlur() and a valueChangeListener Java
> method is executed.
>
> However, I can't update the changed field itself!
> This is what I tried:
>
> // myform.js
> function handleDescriptionChange(element) {
> DynaFaces.fireAjaxTransaction(element, {
> execute: 'form1:txtDescription',
> render: 'form1:txtDescription'});
> }
> }
>
> // myform.jsp
> <webuijsf:textField id="txtDescription"
> onBlur="handleDescriptionNachChange(this);"
> text="#{MyBean.description}"
> valueChangeListenerExpression="#MyBean.handleDescriptionChange}"/>
>
>
> // MyBean.java
> public void handleDescriptionChange(ValueChangeEvent event) {
> String shortDesc = (String)event.getNewValue());
> String longDesc = this.mgr.getLongDescription(shortDesc);
> this.setDescription(longDesc);
> getFacesContext().renderResponse();
> }
>
> But the value of field txtDescription is not updated to the long
> description.
>
> Any ideas, guys?
DISCLAIMER
----------------------
The information contained in this electronic mail may be confidential or legally privileged. It is for the intended recipient(s) only. Should you receive this message in error, please notify the sender by replying to this mail. Unauthorised use of the contents is strictly prohibited. Whilst all care has been taken, the Megabyte Group is not responsible for the integrity of the contents of this electronic mail and any attachments included within.