Making RichFaces panel non-modal

Ilya Shaikovsky (Exadel) blogged about how to make a rich:modalPane to be non-modal.

If you are on Linux like me, you have to add this right after the rich:modalPanel:


  function removeTabHandlingFromPanel(modalPanelComponent){
       modalPanelComponent.lastOnfocus = function(event){};
       modalPanelComponent.firstOnfocus = function(event){};
       modalPanelComponent.processAllFocusElements = function(event){};
       modalPanelComponent.processTabindexes = function(event){};
       modalPanelComponent.restoreTabindexes = function(event){};
       modalPanelComponent.preventFocus = function(event){};
       modalPanelComponent.restoreFocus = function(event){};


  1. raghab says:

    I have some problem with modal panel
    i want to render a outputText field in parentwindow on button click in modalpanel
    this works when i directly put the button in modalpanel,but does not work if i include the button in a page which is included in modalpanel

    follwing is the code sample



    package com.test;

    import javax.faces.event.ActionEvent;

    public class parentpage {
    private String outputval;
    private int count;

    public parentpage() {
    // TODO Auto-generated constructor stub
    outputval = “Before Change”;

    public String getOutputval() {
    return outputval;

    public void setOutputval(String outputval) {
    this.outputval = outputval;

    public void changeoutputval(ActionEvent event) {
    outputval = “Got that”;

    Click on “modal direct click” outputval is updated
    Click On “modal included click” outputval is not updated

    Please guide me in this regard..

  2. raghab says:



  3. max says:

    I don’t see the code you posted. My recommendation is to ask this on RichFaces forum:

  4. raghab says:

    i tried to put the jsp part,but i think the jsp tags are causing problem,as it is like an xml,so they are not coming in the blog

  5. max says:

    @raghab: post your question on RichFaces forum, they will be able to help you.

Leave a Comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.