users@woodstock.java.net

Re: onblur() and submit

From: Venkatesh Babu <Venkatesh.M_at_Sun.COM>
Date: Mon, 02 Jul 2007 15:06:52 +0530

Hi Daniel,

If you want to refresh a particular component with data from other
component,
try using the "refresh" javascript function available on the dom element.

For example, to refresh the text of a label with the value entered in a
text field,

you could have javascript like this:
        function refreshLabel() {
           var domNode = document.getElementById("form1:label1");
            domNode.refresh("form1:textFieldl"); // Update text field
value and refresh.
       }

You can hook up this function to the onBlur of a textField.

I am not sure whether you can update the entire contents of a table with
an onblur of a text field.(if thats what you meant).

Thanks
-Venky

Daniel Grewing wrote:
>
> Hello,
>
> I need the function, to do a submit on the java-script-method onBlur().
>
>
> My goal is, to refresh tableData with the entry of a text-field.
>
>
> It is possible with the Woodstock-components?
>
>
> Greets
> Daniel
>