looks like there is no other way than sending the data from parent while opening the child window. They cannot be in sync until there is request to your server(in sync or async using ajax) to update/read parent and populate the same in child.
Have Fun with Java
little,little.. little by little makes a lot..
Joined: Feb 09, 2011
could you please tell me how do i send parent data to child window when i open a child window?
what is there in it? Am i missing something? Am on the same page as yours..
Anyways, it is same as how you get the data in your parent read, it from the infrastructure of your application. It can be from any scope - the application (retrieve from the static variables in child window), session(retrieve from the session which you would set before opening child window), request (same from request). how to set these values in different scope is the actual story. Say if you are not processing any request in the server side to open the (somewhat called static JSP) child then you can just put it in the URL (like childURL?parameterName=value) but it is not recommended for security reasons and not a good practice.
Do you want to send the field or the field value (content)??
If you want to pass the field content, I think that you would must to try passing the parameter by url similar to this I think you won't have problems if the new windows is a popup (child)