File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Implementing the child window in JSF. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Implementing the child window in JSF." Watch "Implementing the child window in JSF." New topic

Implementing the child window in JSF.

Vinodh Sa
Ranch Hand

Joined: May 06, 2010
Posts: 55
Hi all,
I want to implement the concept of opening a child window in my webpage, when the user clicks on a particular command button. Currently i have implemented it using some css and 'div' tag. The css file has the necessary design attributes of the new window. And the div tag holds the design of the new window, and i m setting the visibility of that div tag using backend code. So that when the user clicks on that button, the div tag's visibility will be set to true and the new window will open on the parent window, and all the controls of the parent window will be disabled.
But the problem in this is that the new window is a static one, the user wont be able to move it. I want to create the child window, in such manner that the user can just move it by clicking on the titile bar and dragging it.
I also tried it initially using But the problem in that is that the user can jump to the parent window without closing the child window. (And one of my friend even suggested a code, which will close the child window, if the user clicks any control on the parent window)
My requirement is this, i want the child window to be created in a manner that the user should be able to move its position and the user cant switch to the parent window without closing the child window(jus like in the case of using the confirm dialog box in java script).

Thanks, Vinodh
[Servlet tutorial]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Actually, I have pop-up windows disabled in my browser. I hate the little $%$^@#@!!s. Allowed Pop-ups render in a new tab, not a new window. And the tab is background-loaded, not automatically made active.

However, your problem isn't in the programming, it's in the browser. No web browser I know of permits a window to totally lock out input processing for another window, and that's just as well, since malware could probably have all sorts of fun with a capability like that.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Implementing the child window in JSF.
It's not a secret anymore!