6 Replies Latest reply on Sep 4, 2009 1:05 AM by kragoth

    execution time of commandbutton to show modalpanel

    ajanz
      i got a seam app with a4j:commandbuttons to show modalpanels

      one is defined like

      <a4j:commandButton action="#{Bean.action}" value="test"  reRender="dialog" ajaxSingle="true" limitToList="true"  requestDelay="0" bypassUpdates="true" oncomplete="Richfaces.showModalPanel('dialog')"/>



      normally it takes 0,1 sec to display the modal panel. but sometimes is takes 2 or even 20 seconds.


      the content of the modalpanel is quite simple. the getter methods all together are under one second

      any idea what the problem is?
        • 1. Re: execution time of commandbutton to show modalpanel

          Hi,
          has your dialog panel some data that changes? Otherwise, it would be better to remove


          reRender="dialog"
          


          because if you only want it to be displayed oncompleting and always display same data, there is no need in having it, and keep in mind that unnecessary rerenderization may cause delays.


          • 2. Re: execution time of commandbutton to show modalpanel
            ajanz

            unfortunately no...it displays different data, rerender is necessesary

            • 3. Re: execution time of commandbutton to show modalpanel
              kragoth

              What happens inside the action method?


              Maybe put some logging in the action method so you can see entry/exit times. (I realise that this method is most likely not the problem but, best to eliminate it).


              How reproducable is the problem? Can you get it to happen every 2nd 3rd etc time?


              Also put a


              <a4j:log />
              



              on your page and then open the ajax log with Ctrl+Shift+L and watch what happens. Maybe this will give you a clue.


              Are there other ajax calls happening on the same?


              Try take everything else off the page except 1 dialog and it's button. See if the bug still occurs.


              Basically, try diagnose where the problem is coming from so we can help you better.

              • 4. Re: execution time of commandbutton to show modalpanel
                ajanz
                my application is deployed as ear file. the bean is stateful and session scoped . may be  the problem comes from ejb configuration or something like that.

                the problem occurs arbitrary.

                when isolated, just button and modalpanel everything is ok

                the a4j:log

                debug[13:29:54,330]: Have Event [object Object] with properties: target: undefined, srcElement: [obj
                ect], type: click
                debug[13:29:54,342]: Query preparation for form 'selectactorfrm' requested
                debug[13:29:54,351]: Append text control selectactorfrm:selmember with value [] and value attribute
                []
                debug[13:29:54,360]: Append hidden control selectactorfrm:selectlistmember_selection with value [] a
                nd value attribute []
                debug[13:29:54,369]: Append hidden control selectactorfrm with value [selectactorfrm] and value attr
                ibute [selectactorfrm]
                debug[13:29:54,379]: Append hidden control autoScroll with value [] and value attribute []
                debug[13:29:54,387]: Append hidden control javax.faces.ViewState with value [j_id3] and value attrib
                ute [j_id3]
                debug[13:29:54,397]: parameter selectactorfrm:selectactorcancel with value selectactorfrm:selectacto
                rcancel
                debug[13:29:54,405]: Look up queue with default name
                debug[13:29:54,414]: NEW AJAX REQUEST !!! with form: selectactorfrm
                debug[13:29:54,426]: Start XmlHttpRequest
                debug[13:29:54,435]: Request state : 1
                debug[13:29:54,444]: QueryString: AJAXREQUEST=_viewRoot&selectactorfrm%3Aselmember=&selectactorfrm%3Aselectlistmember_selection=&selectactorfrm=selectactorfrm&autoScroll=&javax.faces.ViewState=j_id3&selectactorfrm%3Aselectactorcancel=selectactorfrm%3Aselectactorcancel&
                debug[13:29:55,126]: Request state : 2
                debug[13:29:55,137]: Request state : 3
                debug[13:29:55,146]: Request state : 4
                debug[13:29:55,155]: Request end with state 4
                debug[13:29:55,164]: Response  with content-type: text/xml;charset=UTF-8
                debug[13:29:55,174]: Full response content: <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><dl id="globalmessage" class="rich-messages message" style="display: none; margin-left:25px;width:955px;background-color:#FFFF99"><dt></dt></dl><span id="logoimage"><img id="image" src="images/logo_ekom21.jpg" style="float:right;margin-right:10px;margin-top:3px" /></span><span id="uploadform:j_id34" style="z-index:433"></span><dl id="j_id63" class="rich-messages" style="display: none; "><dt></dt></dl><span id="selectactorfrm:j_id120"></span><span id="tabledata:j_id149"></span><dl id="bearbeitenformaufgabe:errormsg" class="rich-messages" style="display: none; "><dt></dt></dl><meta name="Ajax-Update-Ids" content="globalmessage,logoimage,uploadform:j_id34,j_id63,selectactorfrm:j_id120,tabledata:j_id149,bearbeiten
                formaufgabe:errormsg" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id3" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
                debug[13:29:55,185]: Header Ajax-Expired not found, search in <meta>
                debug[13:29:55,194]: search for elements by name 'meta'  in element #document
                debug[13:29:55,205]: Find <meta name='Ajax-Update-Ids' content='globalmessage,logoimage,uploadform:j_id34,j_id63,selectactorfrm
                :j_id120,tabledata:j_id149,bearbeitenformaufgabe:errormsg'>
                debug[13:29:55,214]: Find <meta name='Ajax-Response' content='true'>
                debug[13:29:55,223]: Header Ajax-Update-Ids not found, search in <meta>
                debug[13:29:55,232]: search for elements by name 'meta'  in element #document
                debug[13:29:55,241]: Find <meta name='Ajax-Update-Ids' content='globalmessage,logoimage,uploadform:j_id34,j_id63,selectactorfrm
                :j_id120,tabledata:j_id149,bearbeitenformaufgabe:errormsg'>
                debug[13:29:55,250]: Update page by list of rendered areas from response globalmessage,logoimage,upl
                oadform:j_id34,j_id63,selectactorfrm:j_id120,tabledata:j_id149,bearbeitenformaufgabe:errormsg
                debug[13:29:55,259]: search for elements by name 'script'  in element #document
                debug[13:29:55,269]: search for elements by name 'link'  in element #document
                debug[13:29:55,278]: call selectSingleNode for id= org.ajax4jsf.queue_script
                debug[13:29:55,287]: Update page part from call parameter for ID globalmessage
                debug[13:29:55,295]: call selectSingleNode for id= globalmessage
                debug[13:29:55,305]: Replace content of node by outerHTML()
                debug[13:29:55,317]: search for elements by name 'script'  in element dl
                debug[13:29:55,325]: Scripts in updated part count : 0
                debug[13:29:55,334]: Update part of page for Id: globalmessage successful
                debug[13:29:55,342]: Update page part from call parameter for ID logoimage
                debug[13:29:55,351]: call selectSingleNode for id= logoimage
                debug[13:29:55,361]: Replace content of node by outerHTML()
                debug[13:29:55,370]: search for elements by name 'script'  in element span
                debug[13:29:55,378]: Scripts in updated part count : 0
                debug[13:29:55,387]: Update part of page for Id: logoimage successful
                debug[13:29:55,396]: Update page part from call parameter for ID uploadform:j_id34
                debug[13:29:55,404]: call selectSingleNode for id= uploadform:j_id34
                debug[13:29:55,414]: Replace content of node by outerHTML()
                debug[13:29:55,423]: search for elements by name 'script'  in element span
                debug[13:29:55,431]: Scripts in updated part count : 0
                debug[13:29:55,440]: Update part of page for Id: uploadform:j_id34 successful
                debug[13:29:55,449]: Update page part from call parameter for ID j_id63
                debug[13:29:55,458]: call selectSingleNode for id= j_id63
                debug[13:29:55,467]: Replace content of node by outerHTML()
                debug[13:29:55,477]: search for elements by name 'script'  in element dl
                debug[13:29:55,486]: Scripts in updated part count : 0
                debug[13:29:55,494]: Update part of page for Id: j_id63 successful
                debug[13:29:55,502]: Update page part from call parameter for ID selectactorfrm:j_id120
                debug[13:29:55,512]: call selectSingleNode for id= selectactorfrm:j_id120
                debug[13:29:55,521]: Replace content of node by outerHTML()
                debug[13:29:55,531]: search for elements by name 'script'  in element span
                debug[13:29:55,539]: Scripts in updated part count : 0
                debug[13:29:55,548]: Update part of page for Id: selectactorfrm:j_id120 successful
                debug[13:29:55,557]: Update page part from call parameter for ID tabledata:j_id149
                debug[13:29:55,566]: call selectSingleNode for id= tabledata:j_id149
                debug[13:29:55,575]: Replace content of node by outerHTML()
                debug[13:29:55,585]: search for elements by name 'script'  in element span
                debug[13:29:55,594]: Scripts in updated part count : 0
                debug[13:29:55,602]: Update part of page for Id: tabledata:j_id149 successful
                debug[13:29:55,611]: Update page part from call parameter for ID bearbeitenformaufgabe:errormsg
                debug[13:29:55,619]: call selectSingleNode for id= bearbeitenformaufgabe:errormsg
                debug[13:29:55,630]: Replace content of node by outerHTML()
                debug[13:29:55,638]: search for elements by name 'script'  in element dl
                debug[13:29:55,648]: Scripts in updated part count : 0
                debug[13:29:55,657]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                debug[13:29:55,667]: Processing updates finished, no oncomplete function to call
                debug[13:29:55,676]: Update part of page for Id: bearbeitenformaufgabe:errormsg successful
                debug[13:29:55,684]: call selectSingleNode for id= ajax-view-state
                debug[13:29:55,693]: Hidden JSF state fields:
                debug[13:29:55,703]: Namespace for hidden view-state input fields is undefined
                debug[13:29:55,712]: search for elements by name 'input'  in element span
                debug[13:29:55,722]: Replace value for inputs: 160 by new values: 1
                debug[13:29:55,731]: Input in response: javax.faces.ViewState
                debug[13:29:55,740]: Found same input on page with type: hidden
                debug[13:29:55,749]: Found same input on page with type: hidden
                debug[13:29:55,759]: Found same input on page with type: hidden
                debug[13:29:55,770]: Found same input on page with type: hidden
                debug[13:29:55,779]: Found same input on page with type: hidden
                debug[13:29:55,790]: Found same input on page with type: hidden
                debug[13:29:55,800]: Found same input on page with type: hidden
                debug[13:29:55,813]: Found same input on page with type: hidden
                debug[13:29:55,821]: search for elements by name 'INPUT'  in element span
                debug[13:29:55,831]: Replace value for inputs: 160 by new values: 0
                debug[13:29:55,840]: call selectSingleNode for id= _A4J.AJAX.focus
                debug[13:29:55,849]: No focus information in response
                debug[13:29:55,897]: Have Event [object Object] with properties: target: undefined, srcElement: [obj
                ect], type: click
                debug[13:29:55,909]: Query preparation for form 'masterform' requested
                debug[13:29:55,918]: Append hidden control masterform:hiddenwf with value [512701] and value attribu
                te [512701]
                debug[13:29:55,927]: Append hidden control masterform:tabcurrentworkflow with value [tabformular] an
                d value attribute [tabformular]
                debug[13:29:55,935]: Append text control masterform:INPUTTEXT_1 with value [weitergeleitet] and valu
                e attribute [weitergeleitet]
                debug[13:29:55,944]: Append text control masterform:INPUTTEXT_2 with value [ekom21] and value attrib
                ute [ekom21]
                debug[13:29:55,954]: Append text control masterform:INPUTTEXT_3 with value [30.06.2009 09:58:28] and
                value attribute [30.06.2009 09:58:28]
                debug[13:29:55,962]: Append text control masterform:INPUTTEXT_4 with value [Rolf Börner] and value attribute [Rolf Börner]
                debug[13:29:55,971]: Append text control masterform:INPUTCALENDAR_1InputDate with value [] and value
                attribute []
                debug[13:29:55,979]: Append hidden control masterform:INPUTCALENDAR_1InputCurrentDate with value [09
                /2009] and value attribute [09/2009]
                debug[13:29:55,988]: Append text control masterform:INPUTTEXT_5 with value [Rainer] and value attrib
                ute [Rainer]
                debug[13:29:55,997]: Append text control masterform:INPUTCALENDAR_2InputDate with value [03.09.2009]
                and value attribute [03.09.2009]
                debug[13:29:56,006]: Append hidden control masterform:INPUTCALENDAR_2InputCurrentDate with value [09
                /2009] and value attribute [09/2009]
                debug[13:29:56,014]: Append text control masterform:INPUTTEXT_6comboboxField with value [Rechnung] a
                nd value attribute [Rechnung]
                debug[13:29:56,023]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,032]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,040]: Append hidden control masterform:INPUTTEXT_6 with value [Rechnung] and value at
                tribute [Rechnung]
                debug[13:29:56,049]: Append text control masterform:INPUTTEXT_7 with value [12] and value attribute
                [12]
                debug[13:29:56,058]: Append text control masterform:INPUTTEXT_8 with value [121] and value attribute
                [121]
                debug[13:29:56,067]: Append text control masterform:INPUTTEXT_9comboboxField with value [Brutto] and
                value attribute [Brutto]
                debug[13:29:56,076]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,085]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,094]: Append hidden control masterform:INPUTTEXT_9 with value [Brutto] and value attr
                ibute [Brutto]
                debug[13:29:56,102]: Append text control masterform:INPUTTEXT_10 with value [] and value attribute [
                ]
                debug[13:29:56,111]: Append text control masterform:INPUTTEXT_11comboboxField with value [] and valu
                e attribute []
                debug[13:29:56,120]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,129]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,139]: Append hidden control masterform:INPUTTEXT_11 with value [] and value attribute
                []
                debug[13:29:56,147]: Append text control masterform:INPUTTEXT_12 with value [] and value attribute [
                ]
                debug[13:29:56,156]: Append text control masterform:INPUTTEXT_13 with value [] and value attribute [
                ]
                debug[13:29:56,164]: Append text control masterform:INPUTTEXT_14comboboxField with value [] and valu
                e attribute []
                debug[13:29:56,173]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,182]: Ignored text no-name control with value [] and value attribute []
                debug[13:29:56,191]: Append hidden control masterform:INPUTTEXT_14 with value [] and value attribute
                []
                debug[13:29:56,202]: Append text control masterform:INPUTCALENDAR_3InputDate with value [] and value
                attribute []
                debug[13:29:56,211]: Append hidden control masterform:INPUTCALENDAR_3InputCurrentDate with value [09
                /2009] and value attribute [09/2009]
                debug[13:29:56,220]: Append text control masterform:INPUTTEXT_15 with value [] and value attribute [
                ]
                debug[13:29:56,229]: Append text control masterform:INPUTCALENDAR_4InputDate with value [] and value
                attribute []
                debug[13:29:56,238]: Append hidden control masterform:INPUTCALENDAR_4InputCurrentDate with value [09
                /2009] and value attribute [09/2009]
                debug[13:29:56,246]: Append text control masterform:INPUTTEXT_16 with value [] and value attribute [
                ]
                debug[13:29:56,255]: Append text control masterform:INPUTCALENDAR_5InputDate with value [] and value
                attribute []
                debug[13:29:56,265]: Append hidden control masterform:INPUTCALENDAR_5InputCurrentDate with value [09
                /2009] and value attribute [09/2009]
                debug[13:29:56,273]: Append text control masterform:INPUTTEXT_17 with value [700005] and value attri
                bute [700005]
                debug[13:29:56,283]: Append text control masterform:INPUTTEXT_18 with value [DE196122856] and value
                attribute [DE196122856]
                debug[13:29:56,291]: Append text control masterform:INPUTTEXT_19 with value [] and value attribute [
                ]
                debug[13:29:56,300]: Append text control masterform:INPUTTEXT_20 with value [] and value attribute [
                ]
                debug[13:29:56,308]: Append text control masterform:INPUTTEXT_21 with value [354871] and value attri
                bute [354871]
                debug[13:29:56,319]: Append text control masterform:INPUTTEXT_22 with value [51191800] and value att
                ribute [51191800]
                debug[13:29:56,328]: Append text control masterform:INPUTTEXT_23 with value [Volksbank Schupbach] an
                d value attribute [Volksbank Schupbach]
                debug[13:29:56,337]: Append text control masterform:INPUTTEXT_24 with value [Weber, Susanne 35781 We
                ilburg] and value attribute [Weber, Susanne 35781 Weilburg]
                debug[13:29:56,346]: Append hidden control masterform:SUGGEST_1_selection with value [] and value at
                tribute []
                debug[13:29:56,355]: Append text control masterform:USERNAME_1 with value [Rolf Börner 01.09.2009] and value attribute [Rolf Börner 01.09.2009]
                debug[13:29:56,364]: Append text control masterform:USERNAME_2 with value [Rolf Börner 01.09.2009] and value attribute [Rolf Börner 01.09.2009]
                debug[13:29:56,372]: Append text control masterform:USERNAME_3 with value [Silvia 01.09.2009] and va
                lue attribute [Silvia 01.09.2009]
                debug[13:29:56,382]: Append hidden control masterform with value [masterform] and value attribute [m
                asterform]
                debug[13:29:56,391]: Append hidden control autoScroll with value [] and value attribute []
                debug[13:29:56,399]: Append hidden control javax.faces.ViewState with value [j_id3] and value attrib
                ute [j_id3]
                • 5. Re: execution time of commandbutton to show modalpanel
                  ajanz
                  second part

                  debug[13:29:56,408]: parameter ajaxSingle with value masterform:AJAXBUTTON_4
                  debug[13:29:56,416]: parameter masterform:AJAXBUTTON_4 with value masterform:AJAXBUTTON_4
                  debug[13:29:56,425]: Look up queue with name 'eventQueueClick'
                  debug[13:29:56,433]: Found view queue 'eventQueueClick'
                  debug[13:29:56,446]: Queue is empty now
                  debug[13:29:56,463]: New request added to queue 'eventQueueClick'. Queue similarityGroupingId change
                  d to masterform:AJAXBUTTON_4
                  debug[13:29:56,479]: Queue will wait 0ms before submit
                  debug[13:29:56,489]: Queue 'eventQueueClick' will submit request NOW
                  debug[13:29:56,500]: NEW AJAX REQUEST !!! with form: masterform
                  debug[13:29:56,518]: Start XmlHttpRequest
                  debug[13:29:56,535]: Request state : 1
                  debug[13:29:56,551]: QueryString: AJAXREQUEST=_viewRoot&masterform%3Ahiddenwf=512701&masterform%3Atabcurrentworkflow=tabformular&masterform%3AINPUTTEXT_1=weitergeleitet&masterform%3AINPUTTEXT_2=ekom21&masterform%3AINPUTTEXT_3=30.06.2009%2009%3A58%3A28&masterform%3AINPUTTEXT_4=Rolf%20B%C3%B6rner&masterform%3AINPUTCALENDAR_1InputDate=&masterform%3AINPUTCALENDAR_1InputCurrentDate=09%2F2009&masterform%3AINPUTTEXT_5=Rainer&masterform%3AINPUTCALENDAR_2InputDate=03.09.2009&masterform%3AINPUTCALENDAR_2InputCurrentDate=09%2F2009&masterform%3AINPUTTEXT_6comboboxField=Rechnung&masterform%3AINPUTTEXT_6=Rechnung&masterform%3AINPUTTEXT_7=12&masterform%3AINPUTTEXT_8=121&masterform%3AINPUTTEXT_9comboboxField=Brutto&masterform%3AINPUTTEXT_9=Brutto&masterform%3AINPUTTEXT_10=&masterform%3AINPUTTEXT_11comboboxField=&masterform%3AINPUTTEXT_11=&masterform%3AINPUTTEXT_12=&masterform%3AINPUTTEXT_13=&masterform%3AINPUTTEXT_14comboboxField=&masterform%3AINPUTTEXT_14=&masterform%3AINPUTCALENDAR_3InputDate=&masterform%3AINPUTCALENDAR_3InputCurrentDate=09%2F2009&masterform%3AINPUTTEXT_15=&masterform%3AINPUTCALENDAR_4InputDate=&masterform%3AINPUTCALENDAR_4InputCurrentDate=09%2F2009&masterform%3AINPUTTEXT_16=&masterform%3AINPUTCALENDAR_5InputDate=&masterform%3AINPUTCALENDAR_5InputCurrentDate=09%2F2009&masterform%3AINPUTTEXT_17=700005&masterform%3AINPUTTEXT_18=DE196122856&masterform%3AINPUTTEXT_19=&masterform%3AINPUTTEXT_20=&masterform%3AINPUTTEXT_21=354871&masterform%3AINPUTTEXT_22=51191800&masterform%3AINPUTTEXT_23=Volksbank%20Schupbach&masterform%3AINPUTTEXT_24=Weber%2C%20Susanne%2035781%20Weilburg&masterform%3ASUGGEST_1_selection=&masterform%3AUSERCHK_1=on&masterform%3AUSERNAME_1=Rolf%20B%C3%B6rner%2001.09.2009&masterform%3AUSERCHK_2=on&masterform%3AUSERNAME_2=Rolf%20B%C3%B6rner%2001.09.2009&masterform%3AUSERCHK_3=on&masterform%3AUSERNAME_3=Silvia%2001.09.2009&masterform%3Adoktable%3A1%3Aj_id239=on&masterform=masterform&autoScroll=&javax.faces.ViewState=j_id3&ajaxSingle=masterform%3AAJAXBUTTON_4&masterform%3AAJAXBUTTON_4=masterform%3AAJAXBUTTON_4&AJAX%3AEVENTS_COUNT=1&
                  debug[13:29:56,747]: Request state : 2
                  debug[13:29:56,759]: Request state : 3
                  debug[13:29:56,772]: Request state : 4
                  debug[13:29:56,780]: Request end with state 4
                  debug[13:29:56,789]: Response  with content-type: text/xml;charset=UTF-8
                  debug[13:29:56,798]: Full response content: <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><div id="weiterleitendlg" style="display: none;"><input autocomplete="off" id="weiterleitendlgOpenedState" name="weiterleitendlgOpenedState" type="hidden" /><div class="rich-modalpanel " id="weiterleitendlgContainer" style="position: absolute; display: none; z-index: 333; background-color: inherit;"><div class="rich-mpnl-mask-div-opaque rich-mpnl-mask-div" id="weiterleitendlgDiv" style="z-index: -1;"><button class="rich-mpnl-button" id="weiterleitendlgFirstHref"></button></div><div class="rich-mpnl_panel"><div class="rich-mp-container" id="weiterleitendlgCDiv" style="position: absolute; left: 0px; top: 0px; z-index: 9;"><div class="rich-mpnl-shadow" id="weiterleitendlgShadowDiv"></div><div class=" rich-mpnl-content" id="weiterleitendlgContentDiv"><table border="0" cellpadding="0" cellspacing="0" class="rich-mp-content-table" id="weiterleitendlgContentTable" style="width: 1px;height: 1px;"><tbody><tr style="height: 1%;"><td class="rich-mpnl-header-cell"><div class="rich-mpnl-text rich-mpnl-header " id="weiterleitendlgHeader" style="white-space: nowrap;">Workflow weiterleiten</div></td></tr><tr style="height: 99%"><td class="rich-mpnl-body" valign="top">
                  <script language="javascript" type="text/javascript">function textentered() {
                          var v = document.getElementById('selectactorfrm:selmember');
                          if (v.value.length &gt; 0) {                return true;    }       else return false;}</script>             
                                  <br /><form id="selectactorfrm" name="selectactorfrm" method="post" action="/flow/wfindex.seam"><span id="selectactorfrm:j_id120"></span><table>
                  <tbody><tr><td><label for="selectactorfrm:">Benutzer:</label></td>
                  <td><input id="selectactorfrm:selmember" type="text" name="selectactorfrm:selmember" value="" style="width:280px" /></td>
                  </tr><tr>
                  <td><div id="selectactorfrm:selectlistmember" class="rich-sb-common-container  " style="display:none; z-index: 339;width:270px;height:80px;;;"><div class="rich-sb-ext-decor-1"><div class="rich-sb-ext-decor-2" style=";; border-width: 1px  1px  1px  1px ;"><table border="0" cellpadding="0" cellspacing="1" class="rich-sb-ext-decor-3"><tbody><tr><td><div class="_suggestion_size_ rich-sb-overflow" style="width:266px;height:76px;"><table width="100%" id="selectactorfrm:selectlistmember:suggest" border="1" cellpadding="2"><tbody></tbody></table></div></td></tr></tbody></table></div></div><div class="rich-sb-shadow" style="opacity:0.4; filter:alpha(opacity=40);top: 4px; left: 4px; "></div></div><div id="selectactorfrm:selectlistmember_script" style="display:none;"><script type="text/javascript">Richfaces.onAvailable('selectactorfrm:selmember', function() { new RichFaces.Suggestion('selectactor
                  frm','selectactorfrm:selmember','selectactorfrm:selectlistmember',{'minChars':'1','height':'80','imp
                  licitEventsQueue':'selectactorfrm:selectlistmember','usingSuggestObjects':true,'width':'270','simila
                  rityGroupingId':'selectactorfrm:selectlistmember','parameters':{'ajaxSingle':'selectactorfrm:selectl
                  istmember','selectactorfrm:selectlistmember':'selectactorfrm:selectlistmember'} ,'zindex':338} );
                  });</script></div><iframe src="/flow/a4j/g/3_3_2.CR1org/richfaces/renderkit/html/images/spacer.gif.seam" id="selectactorfrm:selectlistmember_iframe" style="position:absolute;display:none;z-index:338;"></iframe><input type="hidden" autocomplete="off" id="selectactorfrm:selectlistmember_selection" name="selectactorfrm:selectlistmember_selection" /></td>
                  </tr></tbody></table>
                  <img alt="" class="rich-spacer " height="20" id="selectactorfrm:j_id125" src="/flow/a4j/g/3_3_2.CR1images/spacer.gif.seam" width="1" /><div id="selectactorfrm:j_id126" style="font-size: 0px;"><div class="rich-separator " style="background-image: url(/flow/a4j/g/3_3_2.CR1org.richfaces.renderkit.html.images.BevelSeparat
                  orImage/DATB/eAFjYGNgZWDo-P!!PwAIfQOR.seam); null;"></div></div><img alt="" class="rich-spacer " height="20" id="selectactorfrm:j_id127" src="/flow/a4j/g/3_3_2.CR1images/spacer.gif.seam" width="1" /><table class="rich-table " id="selectactorfrm:membertable" border="0" cellpadding="0" cellspacing="0" width="100%"><colgroup span="1"><col width="100%" /></colgroup><thead class="rich-table-thead"><tr class="rich-table-header  "><th class="rich-table-headercell " id="selectactorfrm:membertable:j_id1019" colspan="1" style="text-align:left;"><span class="toolbartext">Name</span></th></tr></thead><tbody id="selectactorfrm:membertable:tb"><tr class="rich-table-row rich-table-firstrow " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:0:j_id135
                  ','parameters':{'selectactorfrm:membertable:0:j_id135':'selectactorfrm:membertable:0:j_id135','membe
                  rname':'Bernd'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:0:j_id133"><span class="outputtext_read">Bernd</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:1:j_id135
                  ','parameters':{'selectactorfrm:membertable:1:j_id135':'selectactorfrm:membertable:1:j_id135','membe
                  rname':'Bruno'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:1:j_id133"><span class="outputtext_read">Bruno</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:2:j_id135
                  ','parameters':{'selectactorfrm:membertable:2:j_id135':'selectactorfrm:membertable:2:j_id135','membe
                  rname':'Fred'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:2:j_id133"><span class="outputtext_read">Fred</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:3:j_id135
                  ','parameters':{'selectactorfrm:membertable:3:j_id135':'selectactorfrm:membertable:3:j_id135','membe
                  rname':'Pascal'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:3:j_id133"><span class="outputtext_read">Pascal</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:4:j_id135
                  ','parameters':{'selectactorfrm:membertable:4:j_id135':'selectactorfrm:membertable:4:j_id135','membe
                  rname':'Patrick'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:4:j_id133"><span class="outputtext_read">Patrick</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:5:j_id135
                  ','parameters':{'membername':'Peter Schlönzke','selectactorfrm:membertable:5:j_id135':'selectactorfrm:membertable:5:j_id135'} ,'containerId':
                  'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:5:j_id133"><span class="outputtext_read">Peter Schlönzke</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:6:j_id135
                  ','parameters':{'membername':'Philipp Phelps','selectactorfrm:membertable:6:j_id135':'selectactorfrm
                  :membertable:6:j_id135'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:6:j_id133"><span class="outputtext_read">Philipp Phelps</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:7:j_id135
                  ','parameters':{'selectactorfrm:membertable:7:j_id135':'selectactorfrm:membertable:7:j_id135','membe
                  rname':'Rahel'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:7:j_id133"><span class="outputtext_read">Rahel</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:8:j_id135
                  ','parameters':{'selectactorfrm:membertable:8:j_id135':'selectactorfrm:membertable:8:j_id135','membe
                  rname':'Rainer'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:8:j_id133"><span class="outputtext_read">Rainer</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:9:j_id135
                  ','parameters':{'membername':'Rolf Börner','selectactorfrm:membertable:9:j_id135':'selectactorfrm:membertable:9:j_id135'} ,'containerId':
                  'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:9:j_id133"><span class="outputtext_read">Rolf Börner</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:10:j_id13
                  5','parameters':{'selectactorfrm:membertable:10:j_id135':'selectactorfrm:membertable:10:j_id135','me
                  mbername':'Silvia'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:10:j_id133"><span class="outputtext_read">Silvia</span></td></tr><tr class="rich-table-row " ondblclick="A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroupingId':'selectactorfrm:membertable:11:j_id13
                  5','parameters':{'membername':'Simon','selectactorfrm:membertable:11:j_id135':'selectactorfrm:member
                  table:11:j_id135'} ,'containerId':'selectactorfrm:j_id128'} )" onmouseover="this.style.backgroundColor='#F1F1F1'" onmouseout="this.style.backgroundColor='#FFFFFF'"><td class="rich-table-cell " id="selectactorfrm:membertable:11:j_id133"><span class="outputtext_read">Simon</span></td></tr></tbody></table><div class="rich-datascr " id="selectactorfrm:scroller1" style="width:100% " align="left"><table border="0" cellpadding="0" cellspacing="1" class="rich-dtascroller-table " id="selectactorfrm:scroller1_table" style="text-align:left"><tbody><tr><td class="rich-datascr-button-dsbld rich-datascr-button">««</td><td class="rich-datascr-button-dsbld rich-datascr-button">«</td><td class="rich-datascr-button-dsbld rich-datascr-button"></td><td class="rich-datascr-button-dsbld rich-datascr-button"></td><td class="rich-datascr-button-dsbld rich-datascr-button">»</td><td class="rich-datascr-button-dsbld rich-datascr-button">»»</td></tr></tbody></table><script type="text/javascript">new Richfaces.Datascroller('selectactorfrm:scroller1', function(event){A4J.AJAX.Submit('selectactorf
                  rm',event,{'ignoreDupResponses':true,'implicitEventsQueue':'selectactorfrm:scroller1','similarityGro
                  upingId':'selectactorfrm:scroller1','parameters':{'ajaxSingle':'selectactorfrm:scroller1','selectact
                  orfrm:scroller1':event.memo.page} ,'containerId':'selectactorfrm:j_id128'} ); return false;});</script></div><img alt="" class="rich-spacer " height="30" id="selectactorfrm:j_id137" src="/flow/a4j/g/3_3_2.CR1images/spacer.gif.seam" width="1" />
                              <br />Per Doppelklick auf einen Tabelleneintrag kann ein Eintrag selektiert werden.<div id="selectactorfrm:j_id140" style="font-size: 0px;"><div class="rich-separator " style="background-image: url(/flow/a4j/g/3_3_2.CR1org.richfaces.renderkit.html.images.BevelSeparat
                  orImage/DATB/eAFjYGNgZWDo-P!!PwAIfQOR.seam); null;"></div></div>
                                          <div><span class="rich-tool-tip " id="selectactorfrm:j_id142" style="z-index:99; "><span id="selectactorfrm:j_id142content">Workflow an Benutzer  weiterleiten</span><span id="selectactorfrm:j_id142script" style="display:none"><script type="text/javascript" id="scriptselectactorfrm:j_id142">
                  new ToolTip("selectactorfrm:j_id142","selectactorfrm:selectactorok",{'showEvent':'mouseover'} );
                  </script></span></span><input class="rich-button" id="selectactorfrm:selectactorok" name="selectactorfrm:selectactorok" onclick="A4J.AJAX.Submit('selectactorfrm',event,{'oncomplete':function(request,event,data){if ( document.getE
                  lementById('selectactorfrm:wmessages') ==null )Richfaces.hideModalPanel('weiterleitendlg');},'simila
                  rityGroupingId':'selectactorfrm:selectactorok','parameters':{'selectactorfrm:selectactorok':'selecta
                  ctorfrm:selectactorok'} ,'eventsQueue':'eventQueue'} );return false;" value="Weiterleiten" style="width:90px;float:left;" type="button" /><span class="rich-tool-tip " id="selectactorfrm:j_id144" style="z-index:99; "><span id="selectactorfrm:j_id144content">Worfklow nicht weiterleiten und Dialog schliessen.</span><span id="selectactorfrm:j_id144script" style="display:none"><script type="text/javascript" id="scriptselectactorfrm:j_id144">
                  new ToolTip("selectactorfrm:j_id144","selectactorfrm:selectactorcancel",{'showEvent':'mouseover'} );
                  </script></span></span><input class="rich-button" id="selectactorfrm:selectactorcancel" name="selectactorfrm:selectactorcancel" onclick="Richfaces.hideModalPanel('weiterleitendlg');A4J.AJAX.Submit('selectactorfrm',event,{'similarityGroup
                  ingId':'selectactorfrm:selectactorcancel','parameters':{'selectactorfrm:selectactorcancel':'selectac
                  torfrm:selectactorcancel'} } );return false;" value="Abbrechen" style="width:90px;float:right" type="button" />
                                          </div><input type="hidden" autocomplete="off" name="selectactorfrm" value="selectactorfrm" /><input type="hidden" autocomplete="off" name="autoScroll" value="" /><input type="hidden" autocomplete="off" name="selectactorfrm:_link_hidden_" value="" /><input type="hidden" autocomplete="off" name="selectactorfrm:j_idcl" value="" /><script type="text/javascript">function clear_selectactorfrm() {
                  _clearJSFFormParameters('selectactorfrm','',['selectactorfrm:_link_hidden_','selectactorfrm:j_idcl']
                  );
                  }function clearFormHiddenParams_selectactorfrm(){clear_selectactorfrm();}
                  function clearFormHiddenParams_selectactorfrm(){clear_selectactorfrm();}
                  clear_selectactorfrm();</script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id3" /></form></td></tr></tbody></table></div></div></div><div class="rich-mpnl-mask-div rich-mpnl-mask-div-transparent" id="weiterleitendlgCursorDiv" style="z-index: -200;"><button class="rich-mpnl-button" id="weiterleitendlgLastHref"></button></div><script type="text/javascript">new ModalPanel('weiterleitendlg',
                                                  {                                       width: -1,                                      height: -1,                                     minWidth: -1,                                   minHeight: -1,
                                                          resizeable: false,                                      moveable: true,                                 left: "auto",                                   top: "auto",
                                                          zindex: 333,onresize: '',onmove: '',onshow: '',onhide: '',onbeforeshow: '',onbeforehide: '',
                                                          domElementAttachment: "",                                                                       keepVisualState: false,
                                                          showWhenRendered: false,                                        selectBehavior: "disable",
                                                          autosized: true,
                                                          overlapEmbedObjects: true});</script></div><script type="text/javascript"></script></div><meta name="Ajax-Update-Ids" content="weiterleitendlg" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id3" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><span id="org.ajax4jsf.oncomplete">Richfaces.showModalPanel('weiterleitendlg')</span></body></html>
                  debug[13:29:56,810]: Header Ajax-Expired not found, search in <meta>
                  debug[13:29:56,824]: search for elements by name 'meta'  in element #document
                  debug[13:29:56,833]: Find <meta name='Ajax-Update-Ids' content='weiterleitendlg'>
                  debug[13:29:56,843]: Find <meta name='Ajax-Response' content='true'>
                  debug[13:29:56,852]: Header Ajax-Update-Ids not found, search in <meta>
                  debug[13:29:56,860]: search for elements by name 'meta'  in element #document
                  debug[13:29:56,869]: Find <meta name='Ajax-Update-Ids' content='weiterleitendlg'>
                  debug[13:29:56,877]: Update page by list of rendered areas from response weiterleitendlg
                  debug[13:29:56,886]: search for elements by name 'script'  in element #document
                  debug[13:29:56,897]: search for elements by name 'link'  in element #document
                  debug[13:29:56,906]: call selectSingleNode for id= org.ajax4jsf.queue_script
                  debug[13:29:56,914]: Update page part from call parameter for ID weiterleitendlg
                  debug[13:29:56,923]: call selectSingleNode for id= weiterleitendlg
                  debug[13:29:56,938]: Replace content of node by outerHTML()
                  debug[13:29:56,955]: search for elements by name 'script'  in element div
                  debug[13:29:56,963]: Scripts in updated part count : 8
                  debug[13:29:56,972]: Update part of page for Id: weiterleitendlg successful
                  debug[13:29:56,982]: call selectSingleNode for id= ajax-view-state
                  debug[13:29:56,991]: Hidden JSF state fields:
                  debug[13:29:56,999]: Namespace for hidden view-state input fields is undefined
                  debug[13:29:57,008]: search for elements by name 'input'  in element span
                  debug[13:29:57,017]: Replace value for inputs: 162 by new values: 1
                  debug[13:29:57,026]: Input in response: javax.faces.ViewState
                  debug[13:29:57,036]: Found same input on page with type: hidden
                  debug[13:29:57,046]: Found same input on page with type: hidden
                  debug[13:29:57,055]: Found same input on page with type: hidden
                  debug[13:29:57,064]: Found same input on page with type: hidden
                  debug[13:29:57,073]: Found same input on page with type: hidden
                  debug[13:29:57,085]: Found same input on page with type: hidden
                  debug[13:29:57,095]: Found same input on page with type: hidden
                  debug[13:29:57,107]: Found same input on page with type: hidden
                  debug[13:29:57,117]: search for elements by name 'INPUT'  in element span
                  debug[13:29:57,129]: Replace value for inputs: 162 by new values: 0
                  debug[13:29:57,139]: call selectSingleNode for id= _A4J.AJAX.focus
                  debug[13:29:57,147]: No focus information in response
                  debug[13:29:57,189]: Evaluate script replaced area in document:
                  function textentered() {
                          var v = document.getElementById('selectactorfrm:selmember');
                          if (v.value.length > 0) {            return true;    }       else return false;}
                  debug[13:29:57,203]: Script evaluation succeeded
                  debug[13:29:57,212]: Evaluate script replaced area in document: Richfaces.onAvailable('selectactorfr
                  m:selmember', function() { new RichFaces.Suggestion('selectactorfrm','selectactorfrm:selmember','sel
                  ectactorfrm:selectlistmember',{'minChars':'1','height':'80','implicitEventsQueue':'selectactorfrm:se
                  lectlistmember','usingSuggestObjects':true,'width':'270','similarityGroupingId':'selectactorfrm:sele
                  ctlistmember','parameters':{'ajaxSingle':'selectactorfrm:selectlistmember','selectactorfrm:selectlis
                  tmember':'selectactorfrm:selectlistmember'} ,'zindex':338} );
                  });
                  debug[13:29:57,227]: Script evaluation succeeded
                  debug[13:29:57,236]: Evaluate script replaced area in document: new Richfaces.Datascroller('selectac
                  torfrm:scroller1', function(event){A4J.AJAX.Submit('selectactorfrm',event,{'ignoreDupResponses':true
                  ,'implicitEventsQueue':'selectactorfrm:scroller1','similarityGroupingId':'selectactorfrm:scroller1',
                  'parameters':{'ajaxSingle':'selectactorfrm:scroller1','selectactorfrm:scroller1':event.memo.page} ,'
                  containerId':'selectactorfrm:j_id128'} ); return false;});
                  debug[13:29:57,249]: Script evaluation succeeded
                  debug[13:29:57,257]: Evaluate script replaced area in document:
                  new ToolTip("selectactorfrm:j_id142","selectactorfrm:selectactorok",{'showEvent':'mouseover'} );
                  debug[13:29:57,301]: Script evaluation succeeded
                  debug[13:29:57,313]: Evaluate script replaced area in document:
                  new ToolTip("selectactorfrm:j_id144","selectactorfrm:selectactorcancel",{'showEvent':'mouseover'} );
                  debug[13:29:57,360]: Script evaluation succeeded
                  debug[13:29:57,369]: Evaluate script replaced area in document: function clear_selectactorfrm() {
                  _clearJSFFormParameters('selectactorfrm','',['selectactorfrm:_link_hidden_','selectactorfrm:j_idcl']
                  );
                  }function clearFormHiddenParams_selectactorfrm(){clear_selectactorfrm();}
                  function clearFormHiddenParams_selectactorfrm(){clear_selectactorfrm();}
                  clear_selectactorfrm();
                  debug[13:29:57,381]: Script evaluation succeeded
                  debug[13:29:57,391]: Evaluate script replaced area in document: new ModalPanel('weiterleitendlg',
                                                  {                                       width: -1,                                      height: -1,                                     minWidth: -1,                                   minHeight: -1,
                                                          resizeable: false,                                      moveable: true,                                 left: "auto",                                   top: "auto",
                                                          zindex: 333,onresize: '',onmove: '',onshow: '',onhide: '',onbeforeshow: '',onbeforehide: '',
                                                          domElementAttachment: "",                                                                       keepVisualState: false,
                                                          showWhenRendered: false,                                        selectBehavior: "disable",
                                                          autosized: true,                                        overlapEmbedObjects: true});
                  debug[13:29:57,406]: Script evaluation succeeded
                  debug[13:29:57,415]: Evaluate script replaced area in document:
                  error[13:29:57,424]: . Error message: Ungültiges Argument.
                  debug[13:29:57,433]: call selectSingleNode for id= org.ajax4jsf.oncomplete
                  debug[13:29:57,442]: Call request oncomplete function after processing updates
                  debug[13:29:57,451]: After request: queue 'eventQueueClick'
                  debug[13:29:57,460]: There are 0 requests more in this queue
                  debug[13:29:57,468]: Queue is empty now
                  debug[13:29:57,601]: call selectSingleNode for id= _ajax:data 
                  • 6. Re: execution time of commandbutton to show modalpanel
                    kragoth

                    Well, we need to see the a4j:log as it is when the bug occurs. Looking at that log there were 2 ajax calls each of them lasting not much longer then 1 second.


                    Did you put logging in your action method to see the execution time of that method?


                    One happened as a result of selecting something in a list? (just guessing here from reading the log)


                    And the second from clicking on your button.


                    So, if we could see the log as it appears when your bug occurs maybe we can see where the time is being spent and then be able to start diagnosing what to look at.