8 Replies Latest reply on Mar 29, 2007 12:01 PM by Krishna Chaitanya

    A4J Command Button Response Issue

    Krishna Chaitanya Newbie

      Hi Friends,

      I had an issue with the a4j:commandButton in Tomcat Server(5.0). Actually the button is working initially i.e if the same button is clicked more than 7 or more times. The A4J Responce is not being generated and server is getting hanged. But the Same functionality is working on Websphere Application Server.

      Could any one suggest any solution related to this issue. I would be very grateful to you.

        • 1. Re: A4J Command Button Response Issue
          Igor Shabalov Apprentice

          Hard to tell from your description what is going on. It can be anything starting from database deadlock. Try to see full tread dump in Tomcat if it hungs and see what threads are doing.

          • 2. Re: A4J Command Button Response Issue
            Krishna Chaitanya Newbie

            HI

            Thanks for ur response

            in the beginig i also thought in the same way that's y i kept a single System.out.println("xxxx)
            in my function which means my backend function will have single System.out.println("xxxx) nothing more than

            • 3. Re: A4J Command Button Response Issue
              Krishna Chaitanya Newbie

              let me put my code


              My JSP Page

              <%-- jsf:pagecode language="java" location="/JavaSource/pagecode/MudIntervalProductsEdit.java" --%><%-- /jsf:pagecode --%>
              <%-- tpl:insert page="/mainTemplate.jtpl" --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
              
              <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
              <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
              <%@page buffer="200kb" autoFlush="true"%>
              <HTML>
              <HEAD>
              <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
              <%@taglib uri="/WEB-INF/singlerowselect.tld" prefix="c"%>
              <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
              <f:loadBundle basename="com.Newparkdf.mudpit.resources.MessageResources"
               var="messages" />
              <f:loadBundle basename="com.Newparkdf.mudpit.resources.Registration"
               var="registration" />
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
               pageEncoding="ISO-8859-1"%>
              <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
              <META name="GENERATOR" content="IBM Software Development Platform">
              <META http-equiv="Content-Style-Type" content="text/css">
              <LINK href="/MudPIT/theme/Master.css" rel="stylesheet" type="text/css">
              <LINK href="/MudPIT/theme/stylesheet.css" rel="stylesheet"
               type="text/css">
              
              <SCRIPT language="JavaScript" src="theme/js/maintemplate.js"></SCRIPT>
              <SCRIPT language="JavaScript" src="theme/js/calculations.js"></SCRIPT>
              <SCRIPT language="JavaScript" src="theme/js/validations.js"></SCRIPT>
              <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"
               SRC="theme/js/ajaxcaller.js"></SCRIPT>
              <%-- tpl:put name="headarea" --%>
              
              <SCRIPT>
              <!--
              // newFunction
              function newFunction() {
              }
              
              function function_2(thisObj, thisEvent) {
               if (thisObj.value == 2) //Drilling Maintenance Volume
               {
               disableDrillingVolume();
               }
               else //Build Starting Volume
               {
               disableBuildVolume();
               }
              }
              
              function fun_2(thisObj, thisEvent)
              {
               var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal)&& decimalVal >= 0)
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value = Math.round(decimalVal);
               if((parseInt(replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value,",",""))) > (parseInt(replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value,",",""))))
               {
               alert ('${messages.UM_TVD_MEASURED_DEPTH}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].select();
               return false;
               }
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}.${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].select();
               return false;
               }
              }
              
              function fun_3(thisObj, thisEvent) {
              var str = thisObj.name;
              var MyArray = str.split(":");
              var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal) && decimalVal >= 0)
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value = Math.round(decimalVal);
               if((parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value) != 0) && (parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value) != 0))
               {
               var bottom=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               var top=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value;
               bottom=replaceAll(bottom,",","");
               top=replaceAll(top,",","");
               if((parseInt(bottom)) < (parseInt(top)))
               {
               alert ('${messages.UM_CASING_BOTTOM_TOP}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].select();
               return false;
               }
               }}
               else
               {
               alert('${messages.UM_NUMERIC_VAL}.${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].select();
               return false;
               }
              }
              function fun_5(thisObj, thisEvent) {
              //use 'thisObj' to refer directly to this component instead of keyword 'this'
              //use 'thisEvent' to refer to the event generated instead of keyword 'event'
              
               var str = thisObj.name;
               var MyArray = str.split(":");
               var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:"+MyArray[1]].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal)&& decimalVal >= 0)
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:"+MyArray[1]].value = Math.round(decimalVal);
              
               var bottom=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].value;
               var top=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               bottom=replaceAll(bottom,",","");
               top=replaceAll(top,",","");
               if((parseInt(bottom)) > (parseInt(top)))
               {
               alert ('${messages.UM_TVD_MEASURED_DEPTH}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].select();
              
              
               }
              
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}.${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:"+MyArray[1]].select();
               return false;
               }
              }
              function setDecimal(thisObj, thisEvent)
              {
              var str = thisObj.name;
              var MyArray = str.split(":");
              var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:"+MyArray[1]].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal))
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:"+MyArray[1]].value = Math.round(decimalVal);
               }
              
              }
              
              function setMUDTVDTOPZERO1(thisObj, thisEvent)
              {
              var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value;
              decimalVal = replaceAll(decimalVal,",","");
              if(!isNaN(decimalVal) && decimalVal >= 0)
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value = 0;
               getCalculatedValue(thisObj, 'volume');
               return true;
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}.${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].select();
               return false;
               }
              
              }
              
              function setMUDTVDTOP_TMDTOP1(thisObj, thisEvent) {
               if(parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value) == 0)
               {
               var tvdtop = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value;
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value = Math.round(tvdtop);
               }
              }
              
              function setMUDTVDBOTTOMZERO1(thisObj, thisEvent)
              {
              var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
              decimalVal = replaceAll(decimalVal,",","");
              if(!isNaN(decimalVal))
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].value = 0;
               getCalculatedValue(thisObj, 'volume');
               return true;
               }
              
              }
              function setMUDTMDBOTTOM_TVDBOTTOM1(thisObj, thisEvent) {
               if(parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].value) == 0)
               {
               var tmdbottom = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text37"].value = Math.round(tmdbottom);
               }
              }
              
              
              function checkAllFields()
              {
              if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text13"].disabled == false)//main if loop begin
              {
              var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal))
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value = Math.round(decimalVal);
               if((parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value) != 0) || (parseInt(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value) != 0))
               {
               var bottom=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value;
               var top=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value;
               bottom=replaceAll(bottom,",","");
               top=replaceAll(top,",","");
               if((parseInt(bottom)) < (parseInt(top)))
               {
               alert('${messages.UM_CASING_BOTTOM_TOP}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].select();
               return false;
               }
               }
               }
               var decimalVal = document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value;
               decimalVal = replaceAll(decimalVal,",","");
               if(!isNaN(decimalVal))
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value = Math.round(decimalVal);
               if((parseInt(replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].value,",",""))) > (parseInt(replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value,",",""))))
               {
               alert ('${messages.UM_TVD_MEASURED_DEPTH}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].select();
               return false;
               }
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text35"].select();
               return false;
               }
              
               if((document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text36"].value== 0)&&(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].value == 0))
               {
               alert('${messages.UM_CHECK_TVD_TOP} \n ${messages.UM_CHECK_TVD_BOTTOM}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text34"].select();
               return false;
               }
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text13"].value <= 0)
               {
               alert('${messages.UM_HOLEVOL_COMPLETED}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text13"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text13"].select();
               return false;
               }
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text25"].value <= 0)
               {
               alert('${messages.UM_RETAIN_CUTTING_COMPLETE}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text25"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text25"].select();
               return false;
               }
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text46"].value <= 0)
               {
               alert('${messages.UM_DRILL_SOLID_COMPLETE}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text46"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text46"].select();
               return false;
               }
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text47"].value <= 0)
               {
               alert('${messages.UM_LOW_GRAVITY_COMPLETE}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text47"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text46"].select();
               return false;
               }
               var holeVolume = replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text15"].value,",","");
               holeVolume = trimString(holeVolume);
               if(holeVolume == '')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text15"].value = 0;
               }
               else if(holeVolume < 0)
               {
               alert('${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text15"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text15"].select();
               return false;
               }
               var drillDays = replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text48"].value,",","");
               drillDays = trimString(drillDays);
               if(drillDays == '')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text48"].value = 0;
               }else if(drillDays < 0)
               {
               alert('${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text48"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text48"].select();
               return false;
               }
               var nondrillDays = replaceAll(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:textNon"].value,",","");
               nondrillDays = trimString(nondrillDays);
               if(nondrillDays == '')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:textNon"].value = 0;
               }else if(nondrillDays < 0)
               {
               alert('${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:textNon"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:textNon"].select();
               return false;
               }
              
              
              }//main if loop end
              
              if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text7"].value <= 0)
               {
               alert('${messages.UM_MUDWEIGHT_COMPLETE}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text7"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text7"].select();
               return false;
               }
              if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text22"].value < 0)
               {
               alert('${messages.UM_VALUE_GREATER_ZERO}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text22"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:text22"].select();
               return false;
               }
              
              }
              
              function disableDrillingVolume()
              {
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text7'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text7'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text22'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text22'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text34'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text34'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text35'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text35'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text36'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text36'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text37'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text37'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text13'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text13'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text15'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text15'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text25'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text25'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text46'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text46'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text47'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text47'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text48'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text48'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:textNon'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:textNon'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text10'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text10'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text27'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text27'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text54'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text54'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].value=0;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text56'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text56'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text57'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text57'].disabled = false;
              }
              
              function disableBuildVolume()
              {
              
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text34'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text34'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text35'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text35'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text36'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text36'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text37'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text37'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text13'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text13'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text15'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text15'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text25'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text25'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text46'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text46'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text47'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text47'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text48'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text48'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:textNon'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:textNon'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text27'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text27'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text54'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text54'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].style.backgroundColor="#FFFFFF"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text55'].disabled = false;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text56'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text56'].disabled = true;
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text57'].style.backgroundColor="#DDDDDD"
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text57'].disabled = true;
              
              }
              function changeOfCon(thisObj, thisEvent) {
               var str = thisObj.name;
               var MyArray = str.split(":");
               if(!isNaN(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].value))
               {
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].value=='')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].value="0";
               }
               //document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text77"].value=0; //price
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value=0;
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value=0;
               getCalculatedValue(thisObj, 'itemQuantityEdit');
               funCal(thisObj,thisEvent);
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].select();
               return false;
               }
              }
              
              function changeOfProduct(thisObj, thisEvent) {
               var str=thisObj.name;
               var MyArray = str.split(":");
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].value=0.00;
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value=0;
               //document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text77"].value=0; //price
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value=0;
              
               getCalculatedValue(thisObj, 'priceEdit');
               funCal(thisObj,thisEvent);
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text49"].value=0.00;
               //alert(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text66"].value);
              }
              
              function changeOfQty(thisObj, thisEvent) {
              var str=thisObj.name;
              var MyArray = str.split(":");
              if(!isNaN(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value))
              {
               if(document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value=='')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value="0";
               }
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text79"].value=0.00;
               //document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value=0;
               getCalculatedValue(thisObj, 'itemConcenEdit');
               funCal(thisObj,thisEvent);
               }
               else
               {
               alert('${messages.UM_NUMERIC_VAL}');
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].focus();
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].select();
               return false;
               }
              }
              
              function chgOfDisc(thisObj,thisEvent)
              {
              var str=thisObj.name;
              var MyArray = str.split(":");
              var discount=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value;
              if(isNaN(discount))
              {
              alert('${messages.UM_NUMERIC_VAL}');
              document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].focus();
              document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].select();
              return false;
              }
               if(discount=='')
               {
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value=0;
               funCal(thisObj,thisEvent);
               }
               else
               {
               funCal(thisObj,thisEvent);
               }
              }
              function funCal(thisObj,thisEvent)
              {
              
              var str=thisObj.name;
              var MyArray = str.split(":");
              var price=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text77"].value;
              var Qty=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text75"].value;
              var discount=document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text73"].value;
              
              if(price=='')
              {
               price="0";
               document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text77"].value="0";
               }
              else
               price =parseFloat(replaceAll(price,",",""));
              if (Qty =='')
               Qty="0";
              else
               Qty=parseFloat(replaceAll(Qty,",",""));
              if (discount=='')
               discount="0";
              else
               discount=parseFloat(replaceAll(discount,",",""));
              var discountPrice=price*(1-(discount)/100);
              var disp=RoundToNdp(discountPrice,2);
              document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text49"].value=disp;
               //#{varintervalProductsList.ITEMLISTPRICE * (1-(varintervalProductsList.ITEMDISCOUNT)/100)};
               var calPrice=(Qty*price)*(1-(discount)/100);
              document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+MyArray[2]+":text66"].value=RoundToNdp(calPrice, 2);
              //#{(varintervalProductsList.ITEMPROGRAMQUANTITY * varintervalProductsList.ITEMLISTPRICE)*(1-(varintervalProductsList.ITEMDISCOUNT)/100)}"
              var temp=0;
              var temp1=0;
               for(i=0;i<100;i++)
               {
               try
               {
               temp1= document.forms['frmMudIntervalProducts']["frmMudIntervalProducts:table2:"+i+":text66"].value;
               //alert(replaceAll(temp1,",",""));
               temp=temp+parseFloat(replaceAll(temp1,",",""));
               }catch(e){break;}
               }
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text57'].value=RoundToNdp(temp, 2);
              
              }
              
              function RoundToNdp(X, N) { var T = Math.pow(10, N)
               return Math.round(X*T)/T }
              
              
              function itext13(thisObj,thisEvent,id)
              {
              var check=document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:'+id].value;
              check=replaceAll(check,",","");
              if(isNaN(check))
              {
              alert('${messages.UM_NUMERIC_VAL}');
              document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:'+id].select();
              return false;
              }
              else
              {
              getCalculatedValue(this,'volume');
              }
              }
              
              function func_22(thisObj, thisEvent) {
              
              var pitvolume=document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].value;
              pitvolume=replaceAll(pitvolume,",","");
              
              if(!isNaN(pitvolume))
              {
              document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].value=Math.round(pitvolume);
              }
              else
              {
               alert('${messages.UM_NUMERIC_VAL}');
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].focus();
               document.forms['frmMudIntervalProducts']['frmMudIntervalProducts:text19'].select();
              }
              }
              
              -->
              </SCRIPT>
               <TITLE>MudPIT -- All Wells -- Programs Edit -- Mud Interval Products
               -- Edit</TITLE>
               <%-- /tpl:put --%>
              <%
              String expireDays = null;
              String appType = null;
              int daysLeft = 90;
              boolean showImage = false;
              try
              {
               if(session.getAttribute("env")!=null)
               {
               appType=session.getAttribute("env").toString();
               }
               expireDays = session.getAttribute("RemainingDays").toString();
               daysLeft = Integer.parseInt(expireDays);
              }
              catch (Exception e){}
              if (daysLeft <=20)
              {
               showImage = true;
              }
              
              String pathName = "no";
              
               try {
               if (session.getAttribute("docpath").toString() != null)
               {
               pathName = session.getAttribute("docpath").toString();
               session.removeAttribute("docpath");
               }
              
               } catch (Exception e) {
               }
              
               %>
              <SCRIPT>
              var path = "<%= pathName%>";
              
               if (path != "no")
               {
               window.open(path, '_blank','toolbar=no, width=750, height=600, resizable=1, scrollbars=1');
               }
              </SCRIPT>
              </HEAD>
              <f:view>
               <BODY style="margin:0px; padding:0px">
               <hx:scriptCollector id="template_scriptCollector1" preRender="#{pc_MainTemplate.onPageLoadBegin}">
              
               <TABLE border="0" width="100%" height="100%" cellspacing="0"
               cellpadding="0">
              
               <TBODY>
               <TR>
              
               <TD height="69" width="100%" valign="top" align="left" colspan="2"
               style='background-image: url("img/np_home_top_back.gif"); background-repeat: repeat-x'>
               <TABLE border="0" height="69" width="100%" cellspacing="0"
               cellpadding="0">
               <TBODY>
              
               <tr>
               <TD width="10%"> </TD>
               <TD width="70%" align="right" rowspan="3" valign="top"><hx:graphicImageEx
               style="margin-left:8px;" styleClass="graphicImageEx"
               id="template_imageEx1" value="img/np_top_home_left.gif"
               width="200" height="73" hspace="0" border="0" vspace="0"
               align="left"></hx:graphicImageEx> <hx:graphicImageEx
               styleClass="graphicImageEx" id="template_imageEx2"
               value="img/np_top_home_right.gif" hspace="0" vspace="0"
               border="0" align="left"></hx:graphicImageEx></TD>
              
               <TD valign="top" align="right">
               <a
               href="http:\\localhost:8080\documents\MudPIT 4.1 - User Manual.doc" target="blank">
              
               <hx:graphicImageEx styleClass="graphicImageEx"
               id="helpimageEx" value="img/help.gif" align="top">
               </hx:graphicImageEx></a>
               </TD>
              
               </tr>
              
               <TR>
               <TD width="10%"> </TD>
              
               <TD width="20%" align="right" colspan="1" valign="top">
               <h:outputText styleClass="outputText" id="text1"
               value="#{pc_MainTemplate.utils.today}">
               <f:convertDateTime type="date" dateStyle="full" />
               </h:outputText></TD>
               </TR>
              
               <TR>
               <TD width="10%"> 
               </TD>
               <TD width="20%" align="right" valign="top" colspan="1">
               <a href="releaseNotes.txt" target="blank" style="outputText">About
               Release</a>
               <BR>
               <%String deployment = null;
               try {
               if (session.getAttribute("deploymentType").toString() != null) {
               deployment = session.getAttribute("deploymentType")
               .toString();
               }
               } catch (Exception e) {
               }
               if (deployment.equalsIgnoreCase("ASP")) {%>
               <hx:graphicImageEx
               styleClass="graphicImageEx" value="/img/corporate_edition.png" align="top" hspace="0"
               border="0" vspace="0" id="corporateImg"></hx:graphicImageEx> <%} else {%> <hx:graphicImageEx
               styleClass="graphicImageEx" value="/img/engineering_edition.png" align="top" hspace="0"
               border="0" vspace="0" id="engineeringImg"></hx:graphicImageEx> <%}%></TD>
              
               </tr>
               </TBODY>
               </TABLE>
              
               </TD>
               </TR>
              
               <TR>
               <TD height="5" width="100%" valign="top" align="left" colspan="2"
               BACKGROUND="img/dddddd_pixel.gif"></TD>
               </TR>
              
               <TR>
               <TD height="500" width="780" valign="top" align="left">
               <TABLE width="100%" height="100%" border="0" cellspacing="0"
               cellpadding="0">
               <TBODY>
               <TR>
               <TD width="209" height="100%" align="left" valign="top"
               background="img/bgWhite.gif">
               <TABLE width="209" height="100%" border="0" cellspacing="0"
               cellpadding="0">
               <TBODY>
               <TR>
               <TD height="34" width="209" align="left" valign="top" nowrap
               style='background-image: url("img/TPL_Nav_Top_Upper.gif"); background-repeat: no-repeat;'> </TD>
               </TR>
              
               <TR>
               <TD height="10" align="left" valign="top" nowrap
               style="padding:0px; padding-left:8px; background-image: url('img/TPL_Nav_Top_Middle.gif'); background-repeat: repeat-y;'">
              
               <!-- start menu table --> <h:form id="menuForm">
               <TABLE width="70%" height="100%" border="0" cellspacing="5"
               cellpadding="2" bgcolor="#dddddd" align="center">
               <TR >
               <TD align="center" onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff" >
               <h:commandLink styleClass="buttonText" id="clAllWells"
               action="#{pc_MainTemplate.doClAllWellsAction}">
               <h:outputText id="textm1" styleClass="buttonText"
               value="#{messages.CB_ALLWELLS}">
               </h:outputText>
               </h:commandLink></TD>
               </TR>
              
               <TR >
               <TD align="center" onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff" >
               <h:commandLink styleClass="buttonText" id="clPrograms"
               action="#{pc_MainTemplate.doClProgramsAction}" style="">
               <h:outputText id="programtextm1" styleClass="buttonText"
               value="#{messages.CB_PROGRAMS}">
               </h:outputText>
               </h:commandLink></TD>
               </TR>
               <TR >
               <TD align="center" onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff" >
               <h:commandLink styleClass="buttonText" id="clWellDetails"
               action="#{pc_MainTemplate.doClWellDetailsAction}">
               <h:outputText id="wellDetailstextm1" styleClass="buttonText"
               value="#{messages.CB_WELL_DETAILS}">
               </h:outputText>
               </h:commandLink></TD>
               </TR>
              
               <TR >
               <TD align="center"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clDataEntry"
               action="#{pc_MainTemplate.doClDataEntryAction}" style="">
               <h:outputText id="textm2" styleClass="buttonText"
               value="#{messages.CB_DATAENTRY}">
               </h:outputText>
               </h:commandLink></TD>
              
               </TR>
               <TR ><TD align="center"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clReports"
               action="#{pc_MainTemplate.doClReportsAction}" style="">
               <h:outputText id="textm3" styleClass="buttonText"
               value="#{messages.CB_REPORTS}">
               </h:outputText>
               </h:commandLink></TD>
              
               </TR >
               <TR ><TD align="center"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clPriceListMainTemp"
               action="#{pc_MainTemplate.doclPriceListMainTemp}"
               style="">
               <h:outputText id="priceListtextm3"
               styleClass="buttonText" value="#{messages.OT_PRICELIST}">
               </h:outputText>
               </h:commandLink></TD>
               </TR >
               <TR >
               <TD align="center"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clMaintenance"
               action="#{pc_MainTemplate.doClMaintenanceAction}">
               <h:outputText id="textm4" styleClass="buttonText"
               value="#{messages.CB_MAINTENANCE}">
               </h:outputText>
               </h:commandLink></TD>
              
               </TR>
               <!-- <TR>
               <TD width="20%" align="center" style="cursor: hand"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clUtilities"
               action="#{pc_MainTemplate.doClUtilitiesAction}">
               <h:outputText id="textm5" styleClass="buttonText"
               value="#{messages.CB_UTILITIES}">
               </h:outputText>
               </h:commandLink></TD>
               </TR>-->
              
               <TR><TD align="center"
               onmouseover="this.className='bckgroundon'"
               onmouseout="this.className='bckgroundoff'"
               class="bckgroundoff"><h:commandLink
               styleClass="buttonText" id="clLogout"
               action="#{pc_MainTemplate.doClLogoutAction}">
               <h:outputText id="textm6" styleClass="buttonText"
               value="#{messages.CB_LOGOUT}">
               </h:outputText>
               </h:commandLink></TD>
              
               </TR>
               </TABLE>
               </h:form> <!-- end menu table --></TD>
               </TR>
               <TR>
               <TD height="16" align="left" valign="top" nowrap
               style='background-image: url("img/TPL_Nav_Top_Bottom.gif"); background-repeat: no-repeat;'> </TD>
               </TR>
              
               <TR>
               <TD height="34" align="center" valign="top" nowrap
               style="background-image: url('img/TPL_Nav_Middle_MiddleA.gif'); background-repeat: no-repeat;">
               <BR>
               <h:outputText styleClass="outputText" id="helpdeskNo"
               value="#{messages.MT_SIDENAV_OT_HELPDESK_NUMBER}"
               style="color: white;font-size: 8pt; font-weight: bold; text-align: center"></h:outputText><BR>
               <h:outputText styleClass="outputText" id="helpdeskNo1"
               value="#{messages.MT_SIDENAV_OT_HELPDESK_NUMBER1}"
               style="color: white;font-size: 8pt; font-weight: bold; text-align: center"></h:outputText>
               <!--
               <TABLE cellspacing="0" border="0" cellpadding="0">
               <TR>
               <TD colspan="3"> </TD>
               <TR>
               <TR>
               <TD>   <hx:graphicImageEx
               styleClass="graphicImageEx" id="imageEx1"
               value="img/search_left.gif" width="21" height="20"
               hspace="0" vspace="0" border="0"></hx:graphicImageEx></TD>
               <TD class="search-box"><h:inputText id="txtSearch"
               value="Search" onclick="return func_1(this, event);"
               size="15" styleClass="inputTextSearch"></h:inputText></TD>
               <TD valign="top"><hx:graphicImageEx styleClass="graphicImageEx"
               id="imageEx2" value="img/search_right.gif" width="30"
               height="20" hspace="0" vspace="0" border="0"></hx:graphicImageEx>
               </TD>
               </TR>
               </TABLE>
               -->
               </TD>
               </TR>
               <TR>
               <TD height="16" align="left" valign="top" nowrap
               style='background-image: url("img/TPL_Nav_Top_MiddleB.gif"); background-repeat: no-repeat;'>
                </TD>
               </TR>
              
              
               <TR>
               <TD height="100%" width="209" align="left" valign="top"
               nowrap
               style='padding:0px; padding-left:4px; padding-top:4px; background-image: url("img/TPL_Nav_Bottom_Middle.gif"); background-repeat: repeat-y;'>
               <TABLE width="176" border="0" cellpadding="0" cellspacing="2">
               <TBODY>
               <TR>
               <TD style="width: 176px"><hx:outputLinkEx
               styleClass="outputLinkEx" id="templateLinkEx2"
               value="registration.jsp">
               <h:outputText id="templateText2" styleClass="FontBlue1"
               value="#{messages.MT_SIDENAV_OT_REGISTER}"></h:outputText>
               </hx:outputLinkEx></TD>
               </TR>
               <TR>
               <TD
               style="width: 176px; height: 1px; background-color: #3f5899"><IMG
               height="1" src="img/dot.gif" width="100%" alt=""></TD>
               </TR>
               <TR>
               <TD style="width: 176px">
               <%if(appType.equalsIgnoreCase("prod"))
               {
               %>
               <hx:outputLinkEx
               styleClass="outputLinkEx"
               value="mailto:helpdesk@newparkdf.com?subject=MudPIT 4.1"
               id="templateLinkEx3">
               <h:outputText id="templateText3" styleClass="FontBlue1"
               value="#{messages.MT_SIDENAV_OT_CONTACTUS}"></h:outputText>
               </hx:outputLinkEx>
               <% } else {%>
               <hx:outputLinkEx
               styleClass="outputLinkEx"
               value="mailto:kabbireddy@miraclesoft.com?subject=MudPIT 4.1"
               id="templateLinkEx3a">
               <h:outputText id="templateText3a" styleClass="FontBlue1"
               value="#{messages.MT_SIDENAV_OT_CONTACTUS}"></h:outputText>
               </hx:outputLinkEx>
               <% }%>
               </TD>
               </TR>
               <TR>
               <TD
               style="width: 176px; height: 1px; background-color: #3f5899"><IMG
               height="1" src="img/dot.gif" width="100%" alt=""></TD>
               </TR>
               <TR>
               <TD style="width: 176px; font-size: 10px;"><%if (showImage) {
              
               %> <hx:graphicImageEx styleClass="graphicImageEx" id="imageEx400"
               value="img/menu/expiry_warning.gif"></hx:graphicImageEx><BR>
               <FONT color="red">      <%="License Valid Days: " + (daysLeft - 1)%>
               </FONT> <%}
              
               %></TD>
               </TR>
               </TBODY>
               </TABLE>
               </TD>
               </TR>
               <TR>
               <TD height="100%" width="209" align="center" valign="bottom"
               nowrap
               style='padding:0px; padding-left:4px; padding-top:4px; background-image: url("img/TPL_Nav_Bottom_Middle.gif"); background-repeat: repeat-y;'>
               <hx:graphicImageEx styleClass="graphicImageEx" id="imageEx9"
               value="img/menu/mudpit.gif"></hx:graphicImageEx></TD>
               </TR>
               </TBODY>
               </TABLE>
               </TD>
               <TD height="600" width="100%" align="center"
               style='background-image: url("img/bgWhite.gif"); background-repeat: repeat;'>
               <a4j:outputPanel ajaxRendered="true" id="TEMPLATEmsg1">
               <h:outputText styleClass="message"
               value="#{messages.VALIDATION_ERROR_MSG}"
               rendered="#{! empty facesContext.maximumSeverity}" />
               </a4j:outputPanel>
               <TABLE align="right">
               <TBODY>
               <TR>
               <TD nowrap align="right"><a4j:status>
               <f:facet name="start">
               <h:panelGroup>
               <h:panelGrid columns="2">
               <h:graphicImage value="/img/processing_request.gif" />
               <h:graphicImage value="/img/stampa.gif" />
               </h:panelGrid>
               </h:panelGroup>
               </f:facet>
               </a4j:status></TD>
               </TR>
               </TBODY>
               </TABLE>
               <%-- tpl:put name="content_1" --%>
               <hx:scriptCollector id="scriptCollector1">
               <h:form styleClass="form" id="frmMudIntervalProducts">
               <TABLE width="100%" height="2%" border="0" cellpadding="0"
               cellspacing="0">
               <TBODY>
               <TR>
               <TD height="2%" colspan="6"><hx:outputLinkEx
               styleClass="outputLinkEx" value="home.jsp" id="linkEx1">
               <h:outputText id="awOtHome" styleClass="outputText"
               value="#{messages.BREADCRUMBS_OT_HOME}"></h:outputText>
               </hx:outputLinkEx> <h:outputText styleClass="outputText"
               id="awOtArrow" value="#{messages.BREADCRUMBS_OT_ARROW}"></h:outputText>
               <hx:outputLinkEx styleClass="outputLinkEx"
               value="allWells.jsp" id="linkEx21">
               <h:outputText styleClass="outputText" id="awOtAllWells"
               value="#{messages.BREADCRUMBS_OT_AllWELLS}"></h:outputText>
               </hx:outputLinkEx> <h:outputText styleClass="outputText"
               id="awOtArrow1" value="#{messages.BREADCRUMBS_OT_ARROW}"></h:outputText>
               <hx:outputLinkEx styleClass="outputLinkEx"
               value="allWellsProgramsEdit.jsp" id="linkEx31">
               <h:outputText styleClass="outputText" id="awOtArrow2"
               value="#{messages.BREADCRUMBS_OT_AW_PROGRAMS_EDIT}"></h:outputText>
               </hx:outputLinkEx> <h:outputText styleClass="outputText"
               id="awOtArrow3" value="#{messages.BREADCRUMBS_OT_ARROW}"></h:outputText>
               <h:outputText styleClass="outputText" id="awOtArrow4"
               value="#{messages.BREADCRUMBS_OT_AW_PROGRAMS_EDIT_MUDINTERVAL_PRODUCTS_EDIT}"></h:outputText>
               <h:outputText styleClass="outputText" id="awOtArrow13"
               value="#{messages.BREADCRUMBS_OT_ARROW}"></h:outputText>
               <h:outputText styleClass="outputTextProgramName"
               id="programName"
               value="#{pc_DuplicateAProgram.utils.programName}"></h:outputText>
               <BR>
               <hr size=1>
               </TR>
               </TBODY>
               </TABLE>
               <TABLE width="770" height="80%" border="0" cellpadding="4"
               cellspacing="0" align="right" class="tableMain">
               <!--<TABLE width="770" height="70%" border="0" cellpadding="4" cellspacing="0" align="right" background="img/dddddd_pixel.gif" >-->
               <TBODY>
               <tr>
              
               <TH align="center" class="tdHeader" height="25"
               width="100%"><h:outputLabel styleClass="outputLabel"
               id="label101" for="text007">
               <h:outputText id="text007" styleClass="outputTextHeader"
               value="#{messages.BREADCRUMBS_OT_AW_PROGRAMS_EDIT_MUDINTERVAL_PRODUCTS_EDIT}"></h:outputText>
               </h:outputLabel></TH>
              
               </tr>
              
               <TR>
               <TD WIDTH="100%" height="100%" valign="top">
               <TABLE width="100%" cellpadding="0" cellspacing="0"
               border="0" align="center">
               <TBODY>
               <TR>
               <TD width="30%" valign="top">
               <TABLE width="100%" cellpadding="0" cellspacing="0"
               border="0" align="center">
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="lbCasingInterval" for="otCasingInterval">
               <h:outputText id="otCasingInterval"
               styleClass="outputTextLabel"
               value="#{messages.OT_CASINGINTERVAL}"
               style="font-weight: bold"></h:outputText>
               </h:outputLabel></TD>
              
               <TD><h:outputText styleClass="outputText" id="text3"
               value="#{pc_MudIntervalProductsEdit.utils.casingDesc}"></h:outputText>
               </TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label2" for="text4">
               <h:outputText id="text4"
               styleClass="outputTextLabel"
               value="#{messages.OT_FLUIDTYPE}"></h:outputText>
               </h:outputLabel></TD>
              
               <TD><h:selectOneMenu styleClass="selectOneMenu"
               id="menu1"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDFLUIDTYPEID}"
               style="font-family: Arial; font-size: 7pt; width: 100px">
               <f:selectItems
               value="#{pc_MudIntervalProductsEdit.fluidTypeList}" />
               </h:selectOneMenu></TD>
               </TR>
               <TR>
               <TD></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label3" for="text6">
               <h:outputText id="text6"
               styleClass="outputTextLabel"
               value="#{messages.OT_MUDWEIGHT} *"></h:outputText>
               </h:outputLabel></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text7"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUD_MW}"
               required="true"
               onchange="getCalculatedValue(this, 'volume');" alt="DenL" converter ="dUnits">
              
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label9" for="text16">
               <h:outputText id="text16" styleClass="outputText"
               value="#{messages.OT_PPG}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message1" for="text7"></h:message></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label13" for="text21">
               <h:outputText id="text21"
               styleClass="outputTextLabel"
               value="#{messages.OT_CHLORIDES}"></h:outputText>
               </h:outputLabel></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text22"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDCHLORIDES}">
               <f:convertNumber locale="en" />
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label14" for="text23">
               <h:outputText id="text23" styleClass="outputText"
               value="#{messages.OT_MGL}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message8" for="text22"></h:message></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label19" for="text30">
               <h:outputText id="text30"
               styleClass="outputTextLabel"
               value="#{messages.OT_TMDTOP}"></h:outputText>
               </h:outputLabel></TD>
              
               <TD><h:inputText styleClass="inputTextMedium"
               id="text34"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDTMDTOP}"
               onchange="return setMUDTVDTOPZERO1(this, event);"
               onblur="return setDecimal(this,event)" alt="Dep" converter ="iUnits">
              
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label23" for="text38">
               <h:outputText id="text38" styleClass="outputText"
               value="#{messages.OT_FT}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message9" for="text34"></h:message></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label20" for="text31">
               <h:outputText id="text31"
               styleClass="outputTextLabel"
               value="#{messages.OT_TVDTOP}"></h:outputText>
               </h:outputLabel></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text35"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDTVDTOP}"
               onchange="return fun_2(this, event);"
               onfocus="return setMUDTVDTOP_TMDTOP1(this, event)" alt="Dep" converter ="iUnits">
              
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label24" for="text39">
               <h:outputText id="text39" styleClass="outputText"
               value="#{messages.OT_FT}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message10" for="text35"></h:message></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label21" for="text32">
               <h:outputText id="text32"
               styleClass="outputTextLabel"
               value="#{messages.OT_TMDBOTTOM}"></h:outputText>
               </h:outputLabel></TD>
              
               <TD><h:inputText styleClass="inputTextMedium"
               id="text36"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDTMDBOTTOM}"
               onblur="return fun_3(this, event);"
               onchange="return setMUDTVDBOTTOMZERO1(this, event);"
               required="true" alt="Dep" converter ="iUnits">
              
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label25" for="text40">
               <h:outputText id="text40" styleClass="outputText"
               value="#{messages.OT_FT}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message2" for="text36"></h:message></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label22" for="text33">
               <h:outputText id="text33"
               styleClass="outputTextLabel"
               value="#{messages.OT_TVDBOTTOM}"></h:outputText>
               </h:outputLabel></TD>
              
               <TD><h:inputText styleClass="inputTextMedium"
               id="text37"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDTVDBOTTOM}"
               required="true" onchange="return fun_5(this, event);"
               onfocus="setMUDTMDBOTTOM_TVDBOTTOM1(this, event)" alt="Dep" converter ="iUnits">
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label26" for="text41">
               <h:outputText id="text41" styleClass="outputText"
               value="#{messages.OT_FT}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message3" for="text37"></h:message></TD>
               </TR>
               </TABLE>
               </TD>
               <TD width="40%" valign="bottom">
               <TABLE width="100%" cellpadding="0" cellspacing="0"
               border="0" align="center">
               <TR>
               <TD colspan="3" nowrap
               background="img/eeeeee_pixel.gif"><h:selectOneRadio
               disabledClass="selectOneRadio_Disabled"
               styleClass="selectOneRadio" id="radio1"
               onfocus="function_2(this, event);"
               value="#{pc_MudIntervalProductsEdit.selectVolume}">
               <f:selectItem itemValue="1"
               itemLabel="#{messages.OT_BSV}" />
               <f:selectItem itemValue="2"
               itemLabel="#{messages.OT_DMV}" />
               </h:selectOneRadio></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD></TD>
               <TD></TD>
               <TD></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label7" for="text12">
               <h:outputText id="text12"
               styleClass="outputTextLabel"
               value="#{messages.OT_HOLESIZE}*"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text13"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDHOLESIZE}"
               required="true"
               onchange="return itext13(this,event,'text13');" alt="Dia" converter ="dUnits">
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label4" for="text8">
               <h:outputText id="text8" styleClass="outputText"
               value="#{messages.OT_IN}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message4" for="text13"></h:message></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label8" for="text14">
               <h:outputText id="text14"
               styleClass="outputTextLabel"
               value="#{messages.OT_WASHOUT1}"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text15"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDENLARGEMENTFACTOR}"
               onchange="return itext13(this,event,'text15');">
               <f:convertNumber locale="en" />
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label10" for="text17">
               <h:outputText id="text17" styleClass="outputText"
               value="#{messages.OT_PERCENTAGE1}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message11" for="text15"></h:message></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label15" for="text24">
               <h:outputText id="text24"
               styleClass="outputTextLabel"
               value="#{messages.OT_MUDRETAINEDANDCUTTINGS} *"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text25"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDRETAINEDONCUTTINGS}"
               required="true">
               <f:convertNumber locale="en" />
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label16" for="text26">
               <h:outputText id="text26" styleClass="outputText"
               value="#{messages.OT_PERCENTAGE1}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message5" for="text25"></h:message></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label27" for="text42">
               <h:outputText id="text42"
               styleClass="outputTextLabel"
               value="#{messages.OT_SOLIDSREMOVALEFF} *"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text46"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDDRILLSOLIDSINDISCHARGE}"
               required="true"
               onchange="return itext13(this,event,'text46');">
               <f:convertNumber locale="en" />
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label31" for="text50">
               <h:outputText id="text50" styleClass="outputText"
               value="#{messages.OT_PERCENTAGE1}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message6" for="text46"></h:message></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label28" for="text43">
               <h:outputText id="text43"
               styleClass="outputTextLabel"
               value="#{messages.OT_LOWGRAVITYSOLIDS} *"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text47"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUD_LGS}"
               required="true"
               onchange="return itext13(this,event,'text47');">
               <f:convertNumber locale="en" />
               <f:validateDoubleRange minimum="0.0"></f:validateDoubleRange>
               </h:inputText><h:outputLabel
               styleClass="outputLabel" id="label32" for="text51">
               <h:outputText id="text51" styleClass="outputText"
               value="#{messages.OT_PERCENTAGE1}"></h:outputText>
               </h:outputLabel><h:message styleClass="message"
               id="message7" for="text47"></h:message></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label29" for="text44">
               <h:outputText id="text44"
               styleClass="outputTextLabel"
               value="#{messages.OT_DRILLDAYS}"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="text48"
               value="#{pc_MudIntervalProductsEdit.mudIntervalRecord.MUDINTERVALDRILLDAYS}">
               <f:convertNumber locale="en" />
               </h:inputText><h:message styleClass="message"
               id="message13" for="text48"></h:message><h:outputLabel
               styleClass="outputLabel" id="label33" for="text52">
               <h:outputText id="text52" styleClass="outputText"
               value="#{messages.OT_DAYS1}"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               </TR>
               <TR>
               <TD><h:outputLabel styleClass="outputLabel"
               id="label30" for="text45">
               <h:outputText id="text45"
               styleClass="outputTextLabel"
               value="#{messages.OT_NONDRILLDAYS}"></h:outputText>
               </h:outputLabel></TD>
               <TD></TD>
               <TD><h:inputText styleClass="inputTextMedium"
               id="textNon"
              


              • 4. Re: A4J Command Button Response Issue
                Igor Shabalov Apprentice

                Wow. Big page.

                Try to use
                <a4j:outputPanel ajaxRendered="true">
                <h:messages/>
                </a4j:outputPanel>

                and

                <a4j:log hotkey="M"/>

                You may have some validation errors etc.
                Use CTRL+SHIFT+M to activate log panel.

                • 5. Re: A4J Command Button Response Issue
                  Krishna Chaitanya Newbie

                  HI

                  Even i am not able to see the log when the response is hanged..it is displaying a blank page.. when i click Ctrl+Shift+M

                  can u plz suggest me any other ideas

                  Krishna

                  • 6. Re: A4J Command Button Response Issue
                    Mikael Andersson Master

                    Try invoking an ajax request "after" the log window is displayed, that works fine for me.

                    • 7. Re: A4J Command Button Response Issue
                      Ilya Shaikovsky Master

                      Yes, calling window after request - must show its as blank..

                      Also you may use popup="false" to place the log just on a page..

                      • 8. Re: A4J Command Button Response Issue
                        Krishna Chaitanya Newbie

                        Hi

                        Thank's for ur response...

                        problem is with my backend jsf code...i have fixed it

                        now the issue is closed for me

                        thank's for sparing your time on my issue

                        Krishna