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