This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Window.showModal Dialog in JSF  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Window.showModal Dialog in JSF

We are developing a JSF Datatable which displays a set of rows containing some records. The data in each row can be edited in a pop up window where they are in the form of input text boxes. The need is for us to make a modal dialog box as a popup. The data edited in the page is sent to the managed bean to update in the datatbase. The problem is the pop up window does not close when we click the submit button to execute the JSF action. When we try giving a java script function to close the same the window closes and the managed bean is not called.

We tried using

opener.document.formname.txt1.value = 'newvalue' it works fine for the modeless dialog but when we use the same fot the modal Dialog it is not working propely.

We got the following error opener.document is null or not an object.
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is venkat me also facing same problem but its little different.I have solution to you are problem.I think you got answer for your problem.But any way am sending answer to you your problem.You have to write


This will work for showModalDialog for refreshing parent window.

I need what you write for edit .Because I need that code.When i click on edit hyperLink i have to display the corresponding data what i selected.

So if you have can you re reply to this topic.

Yhanks In advance.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!