File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Closing a Tomahawk popup manually? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Closing a Tomahawk popup manually?" Watch "Closing a Tomahawk popup manually?" New topic

Closing a Tomahawk popup manually?

Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
As a stop gap to try and create a combo-box (until RichFaces releases 3.2.0, which should include one by default), I'm trying to simulate one via an input box and a Tomahawk popup which contains an <h:selectOneListBox> element.

Is there any way to manually trigger a <t:popup> to close?
Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
Alright, I'm closing it by putting the following into a JavaScript as part of the "onclick" event of my nested element within the popup:

It works like I want it to, but obviously it's not going to replicate very well.

Is there a way I can control the id that Tomahawk assigns the popup? I.e., if left to its own devices, it gives me something like:

The actual name of the variable I have seemingly no control over.
[ January 28, 2008: Message edited by: Karl Beowulph ]
I agree. Here's the link:
subject: Closing a Tomahawk popup manually?
Similar Threads
Window.opener problem
Problem using tomahawk inputCalendar component
SelectItem and labels
Error while working with JSF SelectOneMenu and JSTL forEach Tag
Form to search bean