aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Implementing the child window in JSF." Watch "Implementing the child window in JSF." New topic
Author

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 window.open(). 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: 15641
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing the child window in JSF.
 
Similar Threads
Opening a Child Window, send URL back
Opening a Child Window, send URL back
No javascript for child windows.
No javascript for child windows.
How to Close multiple child windows from a parent window