This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing a Tomahawk popup manually?

 
Karl Beowulph
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic