access parent elements from child in jsf

parent jap

<h:form id="form1">

<h:inputText id="xxx" value="xxxxxxx"/>

<h:commandLink onmousedown="window.open('/my_child.jsp')">

<h:outputText value="viewImage"/>

</h:commandLink>

my chiled jsp

<head>

function updateParent()

{

var xname = window.parent ;

alert (" Parent" + xname);

var xname1= window.parent.document;

alert (" Parent" + xname1);

var formww = window.parent.document.getElementById('form1:xxx');

alert(" Parent name"+ formww);

}

</head>

<body>

<input type="text" value=""/>

<input type="submit" value="Submit" onclick="updateParent()"/>

</body>

and i am not able to get element by id 'xxx' from parent in child in jsf

but the above two gives the object.

i need to update the text in parent jsp with the value from child.

Thanx

[1346 byte] By [veerjaa] at [2007-11-27 10:35:29]
# 1

The id used in the generated HTML from JSF components (called the client id) is different from the id of the component.

RaymondDeCampoa at 2007-7-28 18:35:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...