users@woodstock.java.net

Re: onblur() and submit

From: Dmitry Kushner <Dmitry.Kushner_at_Sun.COM>
Date: Tue, 03 Jul 2007 13:43:12 -0600
Daniel,

Hope you found what you needed in Venkatesh's reply. Also, I would like to encourage you to take a look a woodstock documentation. Specifically, functional specs and TLD documents ( i.e. on webuijsf:TextField) have examples on how to perform actions like this and use built in ajax functionality. Most of the latest components have ajax refresh() funcitonality, input type components ( i.e. textField) also add ajax submit() functionality.

Venkatesh Babu wrote:
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



--

thank you ,
~    dmitry