• Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening a new window with a commandbutton  RSS feed

 
Wim Drapier
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a page with a datatable component(Myfaces) showing me some data, now I would like to add a button below my table that opens a new window simular like the inputcalendar except that it needs to add a row to my datatable.

But I don't know how to open new window with the commandbutton
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can you use javascript to open the new window. Use the commandButton's onClick attribute to issue the window.open command.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!