1 2 Previous Next 19 Replies Latest reply on Jul 10, 2009 6:32 AM by Ilya Shaikovsky

    Important:: <a4j:jsFunction> manage bean method action is no

    Deb Dutta Novice

      In my application i am calling a4j:jsFunction by its name from a js method like

      function executeAction(){
      callMethod();
      }

      and the a4j:jsFunction is .....

      <a4j:jsFunction name="callMethod" oncomplete="alert('complete')"
      action="#{bean.getSelected}" reRender="panel1"/>


      and in bean

      public String getSelected() {

      System.out.println("In the method getSelected");

      return null;
      }

      While running,I can see oncomplete is executing and getting the oncomplete alert.
      But its not going to backing bean method.
      What may be the reason? please help...
      my richfaces version 3.3.1
      and my page is opend by window.open method , means its a popup page..

      thanx in advance

        • 2. Re: Important:: <a4j:jsFunction> manage bean method action i
          Nick Belaevski Master

          Hi,

          Please do the standard diagnostics first: add PhaseTracker and check that all 6 phases are executing, check if any faces messages were generated.

          • 3. Re: Important:: <a4j:jsFunction> manage bean method action i
            Deb Dutta Novice

            I am very new to it..could you please tell me how i can do that?
            Is anybody getting similar kind of problem??
            thanx for reply

            • 5. Re: Important:: <a4j:jsFunction> manage bean method action i
              Deb Dutta Novice

              while i am calling the a4j:function , in the console i am getting

              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RESTORE_VIEW 1
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RESTORE_VIEW 1
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE APPLY_REQUEST_VALUES 2
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER APPLY_REQUEST_VALUES 2
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE PROCESS_VALIDATIONS 3
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER PROCESS_VALIDATIONS 3
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE UPDATE_MODEL_VALUES 4
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER UPDATE_MODEL_VALUES 4
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE INVOKE_APPLICATION 5
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER INVOKE_APPLICATION 5
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker beforePhase
              INFO: BEFORE RENDER_RESPONSE 6
              Jul 4, 2009 11:34:49 AM org.exadel.jsf.PhaseTracker afterPhase
              INFO: AFTER RENDER_RESPONSE 6



              but till i am not able to go the backing bean method...

              please help why a4j:function is not getting called??
              is there any bug of a4j:function??

              • 6. Re: Important:: <a4j:jsFunction> manage bean method action i
                Nick Belaevski Master

                This can happen if "rendered" attribute for some of parent components holding a4j:jsFunction uses request/none scoped beans. So, try removing "rendered" from parent components and check.

                • 7. Re: Important:: <a4j:jsFunction> manage bean method action i
                  Deb Dutta Novice

                  i could not get what parent components exactly means..
                  in my case <a4j:function> is not a direct child of any one...do you mean in my page there is any problem with "rendered" attribute for any other component inside the same page?

                  • 8. Re: Important:: <a4j:jsFunction> manage bean method action i
                    Nick Belaevski Master

                    Parent components are all components to that a4j:jsFunction has child/grandchild relationship.

                    • 9. Re: Important:: <a4j:jsFunction> manage bean method action i
                      Deb Dutta Novice

                      If i use <a4j:commandButton> instade of <a4j:jsFunction> every thing working fine....its really strange!!!

                      • 10. Re: Important:: <a4j:jsFunction> manage bean method action i
                        Nick Belaevski Master

                        This means that "rendered" is not the case. How do you call executeAction()?

                        • 11. Re: Important:: <a4j:jsFunction> manage bean method action i
                          Deb Dutta Novice

                          executeAction() is a js method written by me will will execute on a key board event and from this method i am calling a4j:funtion by name..

                          • 12. Re: Important:: <a4j:jsFunction> manage bean method action i
                            Deb Dutta Novice

                            a4j:jsFunction is getting called as i can see the oncomplete alert , but only problem is i can't able to find why the manage bean method not getting called..!!!

                            • 13. Re: Important:: <a4j:jsFunction> manage bean method action i
                              Nick Belaevski Master

                              My guess is that something crucial wasn't submitted, that's why it isn't working. Can you please post full page code so that I'll try to reproduce the issue?

                              • 14. Re: Important:: <a4j:jsFunction> manage bean method action i
                                Deb Dutta Novice

                                My Template::

                                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                <html xmlns="http://www.w3.org/1999/xhtml"
                                 xmlns:ui="http://java.sun.com/jsf/facelets"
                                 xmlns:h="http://java.sun.com/jsf/html"
                                 xmlns:f="http://java.sun.com/jsf/core"
                                 xmlns:rich="http://richfaces.org/rich"
                                 xmlns:a4j="http://richfaces.org/a4j">
                                
                                <head>
                                
                                <link href="" rel="stylesheet"
                                 type="text/css" id="rswStylecss"/>
                                <link href="" rel="stylesheet"
                                 type="text/css" id="gridcss"/>
                                
                                
                                
                                <link id="contextRoot" title="${request.contextPath}"/>
                                <ui:insert name="pageHead">
                                
                                </ui:insert>
                                
                                
                                
                                </head>
                                
                                
                                <f:loadBundle basename="language/rsw_en" var="res" />
                                
                                
                                <f:view contentType="text/html" >
                                
                                 <body id="bodycontainer" onload="setOnLoadFlag()" >
                                
                                
                                <h:form id="PageForm" >
                                
                                <a4j:outputPanel id="statusPanel" ajaxRendered="true" >
                                <a4j:status id="commonstatus" onstart="startProgress()" onstop="stopProgress()" />
                                <h:graphicImage id="statusImage" value="/images/busystatus.gif" style="visibility:hidden" styleClass="statusImageStyle" />
                                
                                </a4j:outputPanel>
                                
                                <h:inputText id="ajaxProgressFlag"
                                 tabindex="-1" style="display:none">
                                </h:inputText>
                                
                                
                                <a4j:commandButton id="hiddenTabButton" ajaxSingle="true" tabindex="-1" style="display:none" >
                                </a4j:commandButton>
                                
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                 <tr>
                                 <td align="center">
                                
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                
                                
                                 <tr>
                                 <td valign="top" align="left"
                                 style="margin-top: 0px; text-align: center; text-align: left;">
                                
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                
                                 <!--
                                 <tr>
                                 <td valign="top" width="100%">
                                
                                
                                 <div class="pageTitleStyle">
                                 <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                 >
                                 <tr>
                                 <td width="100%" class="titleBar" ><ui:insert
                                 name="pageTitle">Page Title
                                 </ui:insert></td>
                                 </tr>
                                 </table>
                                
                                 </div>
                                 </td>
                                
                                 </tr>
                                 -->
                                
                                 <tr>
                                 <td valign="top" width="100%">
                                 <div id="pageMenuBar"><ui:insert name="menuBar">
                                
                                 </ui:insert></div>
                                 </td>
                                
                                 </tr>
                                 <tr>
                                 <td valign="top" width="100%">
                                 <div id="pageToolBar">
                                
                                
                                 <ui:insert name="toolBar">
                                
                                 </ui:insert>
                                
                                
                                
                                 </div>
                                 </td>
                                
                                 </tr>
                                
                                 <tr>
                                 <td valign="top" width="100%" class="pageBodyContainer">
                                 <div id="pageBody" style="padding-left: 3px;">
                                 <ui:insert name="pageBody">
                                 Page Body
                                 </ui:insert>
                                 </div>
                                 </td>
                                
                                 </tr>
                                 <tr>
                                 <td valign="bottom" width="100%">
                                 <div id="pageStatus">
                                 <ui:insert name="statusBar">
                                
                                 </ui:insert>
                                 </div>
                                 </td>
                                
                                 </tr>
                                
                                 </table>
                                
                                 </td>
                                 </tr>
                                 </table>
                                
                                 </td>
                                 </tr>
                                 </table>
                                 <a4j:commandButton id="hiddenStoreChange" tabindex="-1" style="display:none" >
                                 </a4j:commandButton>
                                 <h:inputText id="hiddenCheckChange" value="true"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 </h:form>
                                
                                
                                 </body>
                                
                                </f:view>
                                
                                </html>
                                
                                



                                The page code::

                                <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                                 xmlns:h="http://java.sun.com/jsf/html"
                                 xmlns:f="http://java.sun.com/jsf/core"
                                 xmlns:c="http://java.sun.com/jstl/core"
                                 xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                                 xmlns:rich="http://richfaces.org/rich"
                                 xmlns:a4j="http://richfaces.org/a4j"
                                 xmlns:ig="http://www.infragistics.com/faces/netadvantage"
                                 template="/templates/pageTemplate.xhtml">
                                 <ui:define name="pageHead">
                                 <a4j:outputPanel ajaxRendered="true">
                                 <title>#{winama9.CLA_KONST_42} </title>
                                 </a4j:outputPanel>
                                 <link href="" rel="stylesheet" type="text/css" id="WINAMA9css" />
                                
                                
                                
                                 <script type="text/javascript"
                                 src="${request.contextPath}/javascript/winama9.js">
                                 </script>
                                
                                 </ui:define>
                                 <ui:define name="pageTitle">
                                 <h:outputLabel value="#{winama9.CLA_KONST_42}" escape="false" />
                                 </ui:define>
                                 <ui:define name="menuBar">
                                 <ui:include src="/menubar/WINAMA9_MASKE_MENU.xhtml" />
                                 </ui:define>
                                 <ui:define name="toolBar">
                                 <ui:include src="/toolbar/WINAMA9_TOOLBAR.xhtml" />
                                 </ui:define>
                                 <ui:define name="pageBody">
                                
                                 <!-- main container table -->
                                
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0"
                                 style="background-color: #E8EFF5;height: 430px;">
                                 <tr>
                                 <td valign="top">
                                
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0"
                                 style="padding-top: 5px">
                                 <tr>
                                
                                 <td valign="top" class="legendAdjust" width="748px">
                                 <a4j:outputPanel
                                 id="topPanelID">
                                 <fieldset id="FR-KRITERIEN"
                                 class="FR-KRITERIEN #{winama9.FR_KRITERIEN_VISIBLE}">
                                 <legend class="legendStyle"> <h:outputLabel
                                 id="FR-KRITERIEN_LABEL" value="#{winama9.CLA_KONST_06}"
                                 title="#{winama9.CLA_KONST_06}" styleClass="legendTextStyle"
                                 escape="false" onmouseover="changeTitle(this)" /> </legend>
                                
                                 <table border="0" cellpadding="0" cellspacing="0" style="margin-top: 13">
                                 <tr style="height: 15px">
                                 <td valign="middle" style="display:none"><h:outputLabel style="display:none"
                                 id="LA-SUCHE-IN" value="#{winama9.CLA_KONST_07}"
                                 for="CM-SUCHE-IN_7105"
                                 styleClass="LA-SUCHE-IN labelStyle #{winama9.CM_SUCHE_IN_VISIBLE}"
                                 title="#{winama9.CLA_KONST_07}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 <td valign="middle" style="display:none">
                                
                                 <table border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top">
                                
                                 <h:selectOneListbox style="visibility:hidden"
                                 onmousedown="listInputFocus(this)"
                                 id="CM-SUCHE-IN_7105" size="1"
                                 value="#{winama9.CM_SUCHE_IN_VALUE_SELECTED}"
                                 maxlength="#{winama9.CM_SUCHE_IN_MAX_TEXT}"
                                 disabled="#{winama9.CM_SUCHE_IN_ENABLED}"
                                 styleClass="CM-SUCHE-IN_7105 comboStyle #{winama9.CM_SUCHE_IN_ENABLED_Style} #{winama9.CM_SUCHE_IN_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);gridLostFocus();"
                                 onblur="FELDSTEUERUNG(this)"
                                 onkeydown="setEnterAsTab(event)"
                                 tabindex="-1" onchange="comboValueChangeEvent('7105')"
                                 accesskey="#{winama9.CLA_KONST_07_key}">
                                 <f:selectItems value="#{winama9.CM_SUCHE_IN_VALUE}" />
                                 </h:selectOneListbox>
                                
                                 </td>
                                 <td valign="top"><h:graphicImage style="display:none"
                                 id="CM-SUCHE-IN_7105_refresh"
                                 styleClass="comboRefreshBtnStyle #{winama9.CM_SUCHE_IN_VISIBLE}"
                                 value="/images/#{winama9.CM_SUCHE_IN_ENABLED_IMAGE}"
                                 title="Refresh" tabindex="-1">
                                 <a4j:support event="onclick"
                                 action="#{winama9.CM_SUCHE_IN_VALUE_Refresh}"
                                 ajaxSingle="true" >
                                 </a4j:support>
                                 </h:graphicImage></td>
                                 </tr>
                                 </table>
                                
                                 </td>
                                 <td valign="top" width="132px">
                                 <a4j:outputPanel ajaxRendered="true">
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top" width="18px"><h:selectBooleanCheckbox
                                 id="CB-KUN_7115" value="#{winama9.CB_KUN_VALUE}"
                                 label="#{winama9.CB_KUN_VALUE}" disabled="#{winama9.CB_KUN_ENABLED}"
                                 styleClass="CB-KUN_7115 checkboxStyle #{winama9.CB_KUN_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);"
                                 onblur="FELDSTEUERUNG(this)"
                                 onclick="setHiddenFieldsOnCheckboxClick(this);"
                                 onkeydown="setEnterAsTab(event)" tabindex="-1" accesskey="">
                                 </h:selectBooleanCheckbox></td>
                                 <td valign="middle"><h:outputLabel
                                 id="CB-KUN_7115_LABEL" value="#{winama9.CLA_KONST_43}"
                                 styleClass="CB-KUN_7115_LABEL labelStyle #{winama9.CB_KUN_VISIBLE} #{winama9.CB_KUN_ENABLED_LabelStyle }"
                                 title="#{winama9.CLA_KONST_43}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 </tr>
                                 </table>
                                 </a4j:outputPanel>
                                 </td>
                                 <td valign="top" colspan="2">
                                 <a4j:outputPanel ajaxRendered="true">
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top" width="18px"><h:selectBooleanCheckbox
                                 id="CB-2K-SUCHE_7122" value="#{winama9.CB_2K_SUCHE_VALUE}"
                                 label="#{winama9.CB_2K_SUCHE_VALUE}"
                                 disabled="#{winama9.CB_2K_SUCHE_ENABLED}"
                                 styleClass="CB-2K-SUCHE_7122 checkboxStyle #{winama9.CB_2K_SUCHE_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);"
                                 onblur="FELDSTEUERUNG(this)"
                                 onclick="setHiddenFieldsOnCheckboxClick(this);"
                                 onkeydown="setEnterAsTab(event)" tabindex="-1" accesskey="">
                                 </h:selectBooleanCheckbox></td>
                                 <td valign="middle" ><h:outputLabel
                                 id="CB-2K-SUCHE_7122_LABEL" value="#{winama9.CLA_KONST_45}"
                                 styleClass="CB-2K-SUCHE_7122_LABEL labelStyle #{winama9.CB_2K_SUCHE_VISIBLE} #{winama9.CB_2K_SUCHE_ENABLED_LabelStyle }"
                                 title="#{winama9.CLA_KONST_45}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 </tr>
                                 </table>
                                 </a4j:outputPanel>
                                 </td>
                                
                                 <td valign="top">&#160;</td>
                                 </tr>
                                 <tr style="height: 26px; ">
                                 <td valign="middle" style="display:none"><h:outputLabel style="display:none"
                                 id="LA-SUCHE-TXT" value="#{winama9.CLA_KONST_62}"
                                 for="CM-SUCHE-TXT_7110"
                                 styleClass="LA-SUCHE-TXT labelStyle #{winama9.CM_SUCHE_TXT_VISIBLE} "
                                 title="#{winama9.CLA_KONST_62}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 <td valign="middle" style="display:none">
                                 <table border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top">
                                
                                 <rich:comboBox id="CM-SUCHE-TXT_7110" size="1" style="display:none"
                                 value="#{winama9.CM_SUCHE_TXT_VALUE_SELECTED}"
                                 maxlength="#{winama9.CM_SUCHE_TXT_MAX_TEXT}"
                                 disabled="#{winama9.CM_SUCHE_TXT_ENABLED}"
                                 styleClass="CM-SUCHE-TXT_7110 comboStyle #{winama9.CM_SUCHE_TXT_ENABLED_Style} #{winama9.CM_SUCHE_TXT_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);gridLostFocus(); "
                                 onblur="FELDSTEUERUNG(this)"
                                 onkeydown="setEnterAsTab(event);setToNextComboFocus(event)"
                                 tabindex="2" width="200px"
                                 accesskey="#{winama9.CLA_KONST_62_key}">
                                 <f:selectItems value="#{winama9.CM_SUCHE_TXT_VALUE}" />
                                 </rich:comboBox>
                                
                                 </td>
                                 <td valign="top" ><h:graphicImage style="display:none"
                                 id="CM-SUCHE-TXT_7110_refresh"
                                 styleClass="comboRefreshBtnStyle #{winama9.CM_SUCHE_TXT_VISIBLE}"
                                 value="/images/#{winama9.CM_SUCHE_TXT_ENABLED_IMAGE}"
                                 title="Refresh" tabindex="-1">
                                 <a4j:support event="onclick"
                                 action="#{winama9.CM_SUCHE_TXT_VALUE_Refresh}"
                                 ajaxSingle="true" >
                                 </a4j:support>
                                 </h:graphicImage></td>
                                 </tr>
                                 </table>
                                
                                 </td>
                                 <td valign="top" width="132px" >
                                 <a4j:outputPanel ajaxRendered="true">
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                                 <tr>
                                 <td valign="top" width="18px"><h:selectBooleanCheckbox
                                 id="CB-LIE_7120" value="#{winama9.CB_LIE_VALUE}"
                                 label="#{winama9.CB_LIE_VALUE}" disabled="#{winama9.CB_LIE_ENABLED}"
                                 styleClass="CB-LIE_7120 checkboxStyle #{winama9.CB_LIE_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);"
                                 onblur="FELDSTEUERUNG(this)"
                                 onclick="setHiddenFieldsOnCheckboxClick(this);"
                                 onkeydown="setEnterAsTab(event)" tabindex="-1" accesskey="">
                                 </h:selectBooleanCheckbox></td>
                                 <td valign="middle" ><h:outputLabel
                                 id="CB-LIE_7120_LABEL" value="#{winama9.CLA_KONST_44}"
                                 styleClass="CB-LIE_7120_LABEL labelStyle #{winama9.CB_LIE_VISIBLE} #{winama9.CB_LIE_ENABLED_LabelStyle }"
                                 title="#{winama9.CLA_KONST_44}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                
                                 </tr>
                                 </table>
                                 </a4j:outputPanel>
                                 </td>
                                 <td valign="top" width="54px"><h:outputLabel
                                 id="LA-KZ-FILTER" value="#{winama9.CLA_KONST_54}"
                                 for="CM-KZ-FILTER_7123"
                                 styleClass="LA-KZ-FILTER labelStyle #{winama9.CM_KZ_FILTER_VISIBLE}"
                                 title="#{winama9.CLA_KONST_54}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 <td valign="top" width="110px">
                                 <table width="110px" border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top"><a4j:outputPanel
                                 id="CM-KZ-FILTER_7123_Panel">
                                 <h:selectOneListbox id="CM-KZ-FILTER_7123" size="1"
                                 value="#{winama9.CM_KZ_FILTER_VALUE_SELECTED}"
                                 maxlength="#{winama9.CM_KZ_FILTER_MAX_TEXT}"
                                 disabled="#{winama9.CM_KZ_FILTER_ENABLED}"
                                 onmousedown="listInputFocus(this);"
                                 styleClass="CM-KZ-FILTER_7123 comboStyle #{winama9.CM_KZ_FILTER_ENABLED_Style} #{winama9.CM_KZ_FILTER_VISIBLE}"
                                 onfocus="FELDINIT(this);displayIDInStatusBar(this);gridLostFocus(); "
                                 onblur="FELDSTEUERUNG(this);"
                                 onkeydown="setEnterAsTab(event)"
                                 onchange="setHiddenFieldOnComboValueChange();" tabindex="-1"
                                 accesskey="#{winama9.CLA_KONST_54_key}">
                                 <f:selectItems value="#{winama9.CM_KZ_FILTER_VALUE}" />
                                 </h:selectOneListbox>
                                 </a4j:outputPanel></td>
                                 <td valign="top" width="20px"><h:graphicImage
                                 id="CM-KZ-FILTER_7123_refresh"
                                 styleClass="comboRefreshBtnStyle #{winama9.CM_KZ_FILTER_VISIBLE}"
                                 value="/images/#{winama9.CM_KZ_FILTER_ENABLED_IMAGE}"
                                 title="Refresh" tabindex="-1">
                                 <a4j:support event="onclick"
                                 action="#{winama9.CM_KZ_FILTER_VALUE_Refresh}"
                                 ajaxSingle="true" reRender="CM-KZ-FILTER_7123_Panel">
                                 </a4j:support>
                                 </h:graphicImage></td>
                                 </tr>
                                 </table>
                                
                                 </td>
                                 <td valign="top">&#160;</td>
                                 </tr>
                                 <tr style="display:none">
                                 <td valign="middle" ><h:outputLabel style="display:none"
                                 id="LA-SUCHE-MATCH" value="#{winama9.CLA_KONST_63}"
                                 for="CM-SUCHE-MATCH_7112"
                                 styleClass="LA-SUCHE-MATCH labelStyle #{winama9.CM_SUCHE_MATCH_VISIBLE}"
                                 title="#{winama9.CLA_KONST_63}" escape="false"
                                 onmouseover="changeTitle(this)" /></td>
                                 <td valign="middle" >
                                 <table border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td valign="top">
                                
                                 <rich:comboBox id="CM-SUCHE-MATCH_7112" size="1" style="display:none"
                                 value="#{winama9.CM_SUCHE_MATCH_VALUE_SELECTED}"
                                 maxlength="#{winama9.CM_SUCHE_MATCH_MAX_TEXT}"
                                 disabled="#{winama9.CM_SUCHE_MATCH_ENABLED}"
                                 styleClass="CM-SUCHE-MATCH_7112 comboStyle #{winama9.CM_SUCHE_MATCH_ENABLED_Style} #{winama9.CM_SUCHE_MATCH_VISIBLE}"
                                 width="200px"
                                 onfocus="gridLostFocus(); "
                                 tabindex="3"
                                 onkeydown="FELDSTEUERUNGWithKeyAction_WINAMA9('7112',event);"
                                 onblur=""
                                 >
                                 <f:selectItems value="#{winama9.CM_SUCHE_MATCH_VALUE}" />
                                 </rich:comboBox>
                                
                                 </td>
                                 <td valign="top" ><h:graphicImage style="display:none"
                                 id="CM-SUCHE-MATCH_7112_refresh"
                                 styleClass="comboRefreshBtnStyle #{winama9.CM_SUCHE_MATCH_VISIBLE}"
                                 value="/images/#{winama9.CM_SUCHE_MATCH_ENABLED_IMAGE}"
                                 title="Refresh" tabindex="-1">
                                 <a4j:support event="onclick"
                                 action="#{winama9.CM_SUCHE_MATCH_VALUE_Refresh}"
                                 ajaxSingle="true" >
                                 </a4j:support>
                                 </h:graphicImage></td>
                                 </tr>
                                 </table>
                                
                                 </td>
                                 <td valign="top">&#160;</td>
                                 <td valign="top">&#160;</td>
                                 <td valign="top">&#160;</td>
                                 <td valign="top">&#160;</td>
                                 </tr>
                                 </table>
                                 </fieldset>
                                </a4j:outputPanel>
                                 </td>
                                
                                
                                 </tr>
                                 <tr>
                                 <td valign="top" width="738px">
                                 <fieldset id="FR-AMA" class="FR-AMA fieldset" >
                                 <table border="0" cellpadding="0" cellspacing="0" >
                                 <tr style="height: 17px">
                                 <td valign="middle" width="726px">
                                 <div class="gridContainerDiv"><ui:include
                                 src="/grids/WINAMA9_GR_AMA_ZEILE.xhtml" /></div>
                                
                                 </td>
                                
                                 <td valign="top">&#160;</td>
                                 </tr>
                                 </table>
                                 </fieldset>
                                
                                
                                 </td>
                                
                                 </tr>
                                
                                 </table>
                                
                                 </td>
                                 </tr>
                                 </table>
                                
                                 <!--end of main container table -->
                                 <h:graphicImage id="hiddenButton" value="" style="display:none;">
                                 <a4j:support event="onclick"
                                 reRender="msgpanel,GR_AMA_7130,GR_AMA_7130,CM-SUCHE-TXT_7110,CM-SUCHE-MATCH_7112"
                                 action="#{winama9.onExitMethod}"
                                 oncomplete="showMsgPanelModified();refreshGrid();focusOnGrid();">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                
                                 <h:graphicImage id="hiddenKeyBoardEventButton" value=""
                                 style="display:none;">
                                 <a4j:support event="onclick" action="#{winama9.handleKeyBoardEvents}"
                                 reRender="msgpanel,toolBarPanel,topPanelID"
                                 oncomplete="showMsgPanelModified();restoreFocus();">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <h:inputText id="hiddenPgName" value="#{clearobject.pageName}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:commandButton id="hiddenCloseButton"
                                 action="#{clearobject.clearBeanObject}" tabindex="-1"
                                 style="display:none">
                                 </h:commandButton>
                                
                                 <h:inputText id="EVENT-TYPE" value="#{winama9.EVENT_TYPE}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="EVENT-CONTROL-ID" value="#{winama9.EVENT_CONTROL_ID}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="EVENT-ACTION" value="#{winama9.EVENT_ACTION}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="ACCEPT-CONTROL" value="#{winama9.ACCEPT_CONTROL}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="CONTROL-VALUE" value="#{winama9.CONTROL_VALUE}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="CONTROL-ID" value="#{winama9.CONTROL_ID}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="KEY-STATUS" value="#{winama9.KEY_STATUS}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="hiddenParamListValue"
                                 value="#{winama9.hiddenParamListValue}" tabindex="-1"
                                 style="display:none">
                                 </h:inputText>
                                
                                 <h:inputText id="TAB-NUMBER" value="#{winama9.TAB_NUMBER}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                 <h:graphicImage id="hiddenValueChangeEventButton" value=""
                                 style="display:none;">
                                 <a4j:support event="onclick"
                                 action="#{winama9.handleValueChangeEvents}" reRender="toolBarPanel"
                                 oncomplete="restoreFocus();">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <h:inputText id="hiddenRestoreFocusFieldId" value=""
                                 style="display:none;"></h:inputText>
                                
                                 <h:graphicImage id="hiddenComboValueChangeEventButton" value=""
                                 style="display:none;">
                                 <a4j:support event="onclick"
                                 action="#{winama9.handleValueChangeEvents}" reRender="toolBarPanel">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <h:inputText id="hiddenRestorePreviousFocusFieldId" value=""
                                 style="display:none;"></h:inputText>
                                
                                 <h:graphicImage id="hiddenFieldInitButton" value=""
                                 style="display:none;">
                                 <a4j:support event="onclick" action="#{winama9.onFieldInitAction}"
                                 oncomplete="showMsgPanelModified();resetFieldStyle();"
                                 reRender="toolBarPanel,msgpanel">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <h:graphicImage id="hiddenButtonRadio" value="" style="display:none;">
                                 <a4j:support event="onclick" reRender="toolBarPanel,topPanelID"
                                 action="#{winama9.onRadioClickAction}" oncomplete="restoreFocus();">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <a4j:commandButton id="hiddenRenderButton" ajaxSingle="true"
                                 reRender="topPanelID" oncomplete="restoreFocus();"
                                 style="display:none" tabindex="-1">
                                 </a4j:commandButton>
                                
                                 <h:graphicImage id="hiddenTabClickEventButton" value=""
                                 style="display:none;">
                                 <a4j:support event="onclick" action="#{winama9.handleTabClickEvent}"
                                 oncomplete="restoreFocus();">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                 <a4j:outputPanel id="openWindowPanel">
                                 <h:inputText id="openWindowName" value="#{winama9.openWindowName}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                 <h:inputText id="openWindowBeanName"
                                 value="#{winama9.openWindowBeanName}" tabindex="-1"
                                 style="display:none">
                                 </h:inputText>
                                 </a4j:outputPanel>
                                
                                 <h:graphicImage id="hiddenRenderValueButton" style="display:none"
                                 tabindex="-1">
                                 <a4j:support event="onclick" action="#{winama9.clearBean}"
                                 ajaxSingle="true">
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                
                                
                                <h:inputText id="gridFocusId" value="0" tabindex=""
                                 style="display:none">
                                </h:inputText>
                                
                                <a4j:outputPanel ajaxRendered="true">
                                <h:inputText id="prevBGColor" value="#{winama9.prevRowBgColor}" tabindex=""
                                style="display:none">
                                </h:inputText>
                                <h:inputText id="prevFRRowColor" value="#{winama9.prevRowForeColor}" tabindex=""
                                style="display:none">
                                </h:inputText>
                                </a4j:outputPanel>
                                
                                <h:inputText id="rowColor" value="" tabindex=""
                                style="display:none">
                                </h:inputText>
                                <h:inputText id="foreColor" value="" tabindex=""
                                style="display:none">
                                </h:inputText>
                                
                                
                                 <a4j:outputPanel id="ServerStatusPanel">
                                 <h:inputText id="ServerFlag" value="#{winama9.serverFlag}"
                                 tabindex="-1" style="display:none">
                                 </h:inputText>
                                 </a4j:outputPanel>
                                
                                
                                 <!-- It must be the Last Field -->
                                 <h:inputText id="hiddenFieldForFirstTimeFlag"
                                 value="#{winama9.firstTimeFlag}" tabindex="-1" style="display:none">
                                 </h:inputText>
                                
                                
                                
                                 <a4j:commandButton id="hiddenSubmit" value="" style="display:none" tabindex="-1" reRender="contextGrid,GR_AMA_7130,msgpanel" oncomplete="showMsgPanelModified();">
                                 </a4j:commandButton>
                                
                                
                                
                                
                                
                                 </ui:define>
                                
                                
                                </ui:composition>
                                
                                



                                The included grid page code

                                <fieldset xmlns:f="http://java.sun.com/jsf/core"
                                 xmlns:c="http://java.sun.com/jstl/core"
                                 xmlns:h="http://java.sun.com/jsf/html"
                                 xmlns:a4j="http://richfaces.org/a4j"
                                 xmlns:rich="http://richfaces.org/rich"
                                
                                 style="width: 100%; border: 0px;padding:0px">
                                
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                
                                 <tr>
                                 <td>
                                
                                 <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                 <tr>
                                 <td>
                                
                                 </td>
                                 <td>
                                
                                 <a4j:outputPanel ajaxRendered="true">
                                 <h:outputText id="selectedrowGR_AMA_7130"
                                 styleClass="labelStyle"
                                
                                 value="#{winama9.rowSelectedGR_AMA_7130}" />
                                
                                
                                 <h:outputLabel styleClass="labelStyle"
                                 value=" total #{winama9.arraySizeGR_AMA_7130} records" />
                                
                                
                                 </a4j:outputPanel>
                                
                                
                                
                                
                                
                                 </td>
                                 <td></td>
                                 <td align="right"><a4j:outputPanel ajaxRendered="true">
                                 <rich:datascroller id="tableScrollarGR_AMA_7130"
                                
                                 align="right"
                                 for="GR_AMA_7130" pageIndexVar="pageIndex" pagesVar="pages"
                                 page="#{winama9.pagesvalueGR_AMA_7130}">
                                 <f:facet name="pages">
                                 <h:outputText value="#{pageIndex} / #{pages}"
                                 style="display:none">
                                 </h:outputText>
                                
                                 <h:panelGroup>
                                
                                 <h:inputText id="pagesTextGR_AMA_7130" value="#{winama9.pagesvalueGR_AMA_7130}" style="width:20px" styleClass="inputFieldStyle rightAlignField"
                                 onchange="#{rich:component('tableScrollarGR_AMA_7130')}.switchToPage(this.value)">
                                 </h:inputText>
                                
                                 <h:outputText id="textPagesGR_AMA_7130" style="font-size: 8pt;font-family: Arial" value=" of #{pages}" />
                                 </h:panelGroup>
                                
                                
                                
                                 </f:facet>
                                 </rich:datascroller>
                                 </a4j:outputPanel>
                                
                                 <a4j:commandButton id="setTablePageGR_AMA_7130" style="display:none"
                                 oncomplete="document.getElementById('PageForm:renderScrollerGR_AMA_7130').click()"
                                 reRender="tableScrollarGR_AMA_7130,GR_AMA_7130,contextGridGR_AMA_7130" /> <a4j:commandButton
                                 id="renderExtenderGridGR_AMA_7130" style="display:none"
                                 reRender="tableScrollarGR_AMA_7130,GR_AMA_7130,contextGridGR_AMA_7130" /> <a4j:commandButton
                                 id="renderScrollerGR_AMA_7130" style="display:none"
                                 reRender="tableScrollarGR_AMA_7130,pagingPanelGR_AMA_7130" />
                                
                                
                                 </td>
                                
                                
                                 </tr>
                                 </table>
                                
                                 </td>
                                 </tr>
                                 <tr height="335px">
                                 <td width="718px" height="335px">
                                
                                 <div style="height: 335px;width: 718px; overflow-x: auto; overflow-y: hidden; ">
                                
                                 <a4j:region>
                                 <a4j:outputPanel id="contextMenuPanelGR_AMA_7130" ajaxRendered="true">
                                 <rich:contextMenu
                                 id="contextGridGR_AMA_7130" event="oncontextmenu"
                                 attachTo="GR_AMA_7130" submitMode="ajax">
                                
                                 <rich:menuItem value="#{winama9.CLA_KONST_20}" reRender="openWindowPanel"
                                 action="#{winama9.containerInformation}"
                                 oncomplete="showNewWindowBySize(771,500);"></rich:menuItem>
                                 <rich:menuItem value="#{winama9.CLA_KONST_21}" reRender="openWindowPanel"
                                 action="#{winama9.infoText}"
                                 oncomplete="showNewWindow();"></rich:menuItem>
                                 <rich:menuSeparator />
                                 <rich:menuItem value="#{winama9.CLA_KONST_22}" reRender="contextGridGR_AMA_7130"
                                
                                 ></rich:menuItem>
                                
                                </rich:contextMenu>
                                 </a4j:outputPanel>
                                 <rich:extendedDataTable binding="#{winama9.GR_AMA_7130}"
                                 value="#{winama9.GR_AMA_7130_List}" var="DATA_ROW" id="GR_AMA_7130" onRowClick="onrowselect(this.id);selectionRow('selectedrowGR_AMA_7130','${rowNumber+1}');"
                                 rowClasses="tablerow1" selectedClass="tselectedRow" onRowDblClick="closeSearchAndPassValueGR_AMA_7130()"
                                 reRender="tableScrollarGR_AMA_7130,pagingPanelGR_AMA_7130,pagesTextGR_AMA_7130,contextGridGR_AMA_7130" rows="13" height="325px"
                                 width="2200px" sortMode="single" selectionMode="multi" tableState="#{winama9.winama9GR_AMA_7130Profile}"
                                 selection="#{winama9.selectionGR_AMA_7130}"
                                 onselectionchange="onkeypressGR_AMA_7130(event);"
                                 rowKeyVar="rowNumber"
                                 >
                                
                                 <rich:column id="GR_AMA_NR" label="#{winama9.GR_WINAMA_UEB_LINE_01}"
                                 style="#{DATA_ROW.backgroundColor};#{DATA_ROW.foreGroundColor}"
                                 filterMethod="#{winama9.filterMethodGR_AMA_NR}" width="130px"
                                 sortBy="#{DATA_ROW.GR_AMA_NR}" sortable="true">
                                 <f:facet name="header">
                                
                                 <h:outputText id="hdr-GR_AMA_NR" tabindex="4" style="text-align:center;"
                                 value="#{winama9.GR_WINAMA_UEB_LINE_01}"
                                 />
                                 </f:facet>
                                 <f:facet name="filter">
                                 <h:inputText styleClass="textStyleFilter"
                                 value="#{winama9.filterGR_AMA_NR}">
                                 <a4j:support event="onchange" reRender="GR_AMA_7130 , tableScrollarGR_AMA_7130,contextGridGR_AMA_7130"
                                 oncomplete="onchangescroller('GR_AMA_7130')" />
                                 </h:inputText>
                                 </f:facet>
                                
                                 <h:outputText id="col-GR_AMA_NR" styleClass="rowColorStyle"
                                 value="#{DATA_ROW.GR_AMA_NR}" title="#{DATA_ROW.GR_AMA_NR}" />
                                
                                 </rich:column>
                                
                                 <rich:column id="GR_AMA_GEB" label="#{winama9.GR_WINAMA_UEB_LINE_02}" width="200px"
                                 style="#{DATA_ROW.backgroundColor};#{DATA_ROW.foreGroundColor}" rendered="#{winama9.WINAMA9_COL_2}"
                                 filterMethod="#{winama9.filterMethodGR_AMA_GEB}"
                                 sortBy="#{DATA_ROW.GR_AMA_GEB}" sortable="true">
                                 <f:facet name="header">
                                
                                 <h:outputText id="hdr-GR_AMA_GEB" tabindex="5" value="#{winama9.GR_WINAMA_UEB_LINE_02}"
                                 />
                                 </f:facet>
                                 <f:facet name="filter">
                                 <h:inputText styleClass="textStyleFilter"
                                 value="#{winama9.filterGR_AMA_GEB}">
                                 <a4j:support event="onchange" reRender="GR_AMA_7130 , tableScrollarGR_AMA_7130,contextGridGR_AMA_7130"
                                 oncomplete="onchangescroller('GR_AMA_7130')" />
                                 </h:inputText>
                                 </f:facet>
                                
                                
                                 <h:outputText id="col-GR_AMA_GEB" styleClass="rowColorStyle"
                                 value="#{DATA_ROW.GR_AMA_GEB}" title="#{DATA_ROW.GR_AMA_GEB}" />
                                
                                 </rich:column>
                                
                                
                                 </rich:extendedDataTable>
                                </a4j:region>
                                
                                 <a4j:jsFunction name="closeSearchAndPassValueGR_AMA_7130" action="#{winama9.getSelectedGR_AMA_7130}" oncomplete="self.close();"/>
                                 <a4j:commandButton id="selectAndCloseGR_AMA_7130" action="#{winama9.getSelectedGR_AMA_7130}" oncomplete="self.close();" style="display:none" tabindex="-1"/>
                                
                                 <a4j:jsFunction name="selectAllInGridGR_AMA_7130" action="#{winama9.selectAllGR_AMA_7130}" reRender="GR_AMA_7130"
                                 />
                                 <a4j:jsFunction name="setRowNumberOnKeyDownGR_AMA_7130"
                                 action="#{winama9.getSelectedGR_AMA_7130}" reRender="contextMenuPanelGR_AMA_7130,contextGridGR_AMA_7130"/>
                                 <a4j:jsFunction name="gridClickGR_AMA_7130" reRender="GR_AMA_7130,contextMenuPanelGR_AMA_7130,contextGridGR_AMA_7130"/>
                                
                                
                                 <a4j:jsFunction name="setRowAsSelectedGR_AMA_7130" action="#{winama9.selectOnSpaceBarGR_AMA_7130}" reRender="GR_AMA_7130"/>
                                 <h:graphicImage id="contextImgGR_AMA_7130" value="" style="display:none;">
                                 <rich:componentControl event="onclick" for="contextGridGR_AMA_7130"
                                 operation="show">
                                
                                 </rich:componentControl>
                                 </h:graphicImage>
                                
                                 </div>
                                 <a4j:outputPanel ajaxRendered="true">
                                 <!--
                                 <h:inputText id="selectedRowNumber"
                                 value="#{winama9.selectedRowNumber}" tabindex="-1"
                                 style="display:none"/>
                                
                                 <h:inputText id="rowDataNumber" value="#{winama9.selectedRowNo}"
                                 tabindex="-1" style="display:none" />
                                 -->
                                 </a4j:outputPanel> <h:graphicImage id="fetchRecord" value="" style="display:none;">
                                 <a4j:support event="onclick" oncomplete="window.close();">
                                
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                
                                 <h:graphicImage id="hiddenMenuSubmit" value="" tabindex="-1"
                                 style="display:none;">
                                 <a4j:support event="onclick" oncomplete="gridClickGR_AMA_7130()"
                                 reRender="GR_AMA_7130,contextMenuPanelGR_AMA_7130,contextGridGR_AMA_7130" >
                                 </a4j:support>
                                 </h:graphicImage>
                                
                                
                                
                                
                                 </td>
                                 </tr>
                                </table>
                                </fieldset>
                                
                                



                                I am posting the full page source except some css and js include...to make it easy if there is any problem with the stucture..

                                Now from this source , in the grid page

                                onRowDblClick="closeSearchAndPassValueGR_AMA_7130()" is calling
                                and the <a4j:function> is
                                <a4j:jsFunction name="closeSearchAndPassValueGR_AMA_7130" action="#{winama9.getSelectedGR_AMA_7130}" oncomplete="self.close();"/>


                                here the backing bean method "getSelectedGR_AMA_7130" is not getting called.

                                I coud't able to post the bean as its a huge code. you can try with just a sample bean.


                                1 2 Previous Next