Disable Backspace when in input text fields

Im trying to find a way to disable the keyboard backspace
button from going back a page in the site but allowing it to
function as a character delete when needed for typing in an input
text field of a form.
Strangely this problem only occurs for about a minute after
the page is opened....after that it then works correctly. You can
see what I mean by accessing the site's contact page
www.safetybusiness.co.uk
I have found two different sets of code to disable the
Backspace completely, but this then means it doesn't work at all
when wanting to delete in the text field.
Method 1:
<script type="text/javascript">
if (typeof window.event != 'undefined')
document.onkeydown = function()
if (event.srcElement.tagName.toUpperCase() != 'INPUT')
return (event.keyCode != 8);
else
document.onkeypress = function(e)
if (e.target.nodeName.toUpperCase() != 'INPUT')
return (e.keyCode != 8);
</script>
Method 2:
<script>
function checkShortcut()
if(event.keyCode==8 || event.keyCode==13)
return false;
</script>
<body onkeydown="return checkShortcut()">
Anyone know how I can overcome this?

The TextField class has a tab order property. You may want to
look into this. As for disabling the backspace key, you can grab
key presses from user input. I'm not 100% on this but you could use
Flash to test the key being pressed. If backspace is pressed, find
out the current object with focus (unsure of this part), if it's an
input box in flash, have flash handle it or if a text box doesn't
have focus, send it out to javascript to have it handle it.

Similar Messages

  • Getting Error when adding a Message Input Text field

    Hi
    Can someone help with this please. I'm not developing and not a OAF guy, but, an offshore team is and they are getting this error after they added Message Input Text field to the iProcurement Receiving page to capture additional information.
    What does this error mean?
    oracle.apps.fnd.framework.OAException: No data found for region (/oracle/apps/icx/por/rcv/webui/XXPAIcxPorRcvSrchPG.Tag_input).
    at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getDefaultValue(JRADWebBeanMetaData.java:480)
    at oracle.apps.fnd.framework.webui.OAWebBeanTextInputHelper.setMetaDataProperties(OAWebBeanTextInputHelper.java:92)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.setMetaDataProperties(OAMessageTextInputHelper.java:89)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.createWebBean(OAMessageTextInputHelper.java:61)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1263)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.addAkChildren(OAWebBeanTableHelper.java:182)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OATableHelper.setMetaDataProperties(OATableHelper.java:282)
    at oracle.apps.fnd.framework.webui.OATableHelper.createWebBean(OATableHelper.java:202)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.addAkChildren(OAQueryHelper.java:470)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.setMetaDataProperties(OAQueryHelper.java:344)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.createWebBean(OAQueryHelper.java:242)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:703)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:257)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:208)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1415)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:4374)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2131)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
    at oa_html._OA._jspService(_OA.java:88)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/icx/por/rcv/webui/XXPAIcxPorRcvSrchPG.Tag_input, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
    at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1374)
    at oracle.adf.mds.MElement.findElement(MElement.java:97)
    at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getDefaultValue(JRADWebBeanMetaData.java:477)
    at oracle.apps.fnd.framework.webui.OAWebBeanTextInputHelper.setMetaDataProperties(OAWebBeanTextInputHelper.java:92)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.setMetaDataProperties(OAMessageTextInputHelper.java:89)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.createWebBean(OAMessageTextInputHelper.java:61)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1263)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.addAkChildren(OAWebBeanTableHelper.java:182)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OATableHelper.setMetaDataProperties(OATableHelper.java:282)
    at oracle.apps.fnd.framework.webui.OATableHelper.createWebBean(OATableHelper.java:202)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.addAkChildren(OAQueryHelper.java:470)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.setMetaDataProperties(OAQueryHelper.java:344)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.createWebBean(OAQueryHelper.java:242)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:703)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:257)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:208)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1415)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:4374)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2131)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
    at oa_html._OA._jspService(_OA.java:88)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:534)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/icx/por/rcv/webui/XXPAIcxPorRcvSrchPG.Tag_input, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
    at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1374)
    at oracle.adf.mds.MElement.findElement(MElement.java:97)
    at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getDefaultValue(JRADWebBeanMetaData.java:477)
    at oracle.apps.fnd.framework.webui.OAWebBeanTextInputHelper.setMetaDataProperties(OAWebBeanTextInputHelper.java:92)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.setMetaDataProperties(OAMessageTextInputHelper.java:89)
    at oracle.apps.fnd.framework.webui.OAMessageTextInputHelper.createWebBean(OAMessageTextInputHelper.java:61)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1263)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.addAkChildren(OAWebBeanTableHelper.java:182)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OATableHelper.setMetaDataProperties(OATableHelper.java:282)
    at oracle.apps.fnd.framework.webui.OATableHelper.createWebBean(OATableHelper.java:202)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.addAkChildren(OAQueryHelper.java:470)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.setMetaDataProperties(OAQueryHelper.java:344)
    at oracle.apps.fnd.framework.webui.OAQueryHelper.createWebBean(OAQueryHelper.java:242)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1149)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:740)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:720)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:703)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:200)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:126)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:257)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:208)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1483)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1415)
    at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:1300)
    at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:4374)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2131)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
    at oa_html._OA._jspService(_OA.java:88)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:98)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:534)
    Thank you!

    You need to provide more details with respect to what you are doing step by steps.
    --Shiv                                                                                                                                                                                       

  • Changing the cursor position in an input text field and Removing leading numeric zeros

    Flash8 - AS2
    It's good to be back after all these years and thanks for the faithfull folks like kglad, Ned Murphy, Rothrock and all the others who give so much of themselves to make this forum a success!
    My Problem:
    I have an input text field that is named in the properties box as 'numberOfKids'.
    When the program is executed, and a delete or backspace is pressed the input textfield goes blank
    and any calculations that use 'numberOfKids' shows NaN.
    I have trapped the NaN and undefined so that a numeric 0 shows up instead of a blank.
    There are two problems:
    First problem:
      The cursor is to the left of the zero, so the first number inputted by the user is 10x larger than what they want.  0 becomes 10.
    Question:  How do I get the cursor to move to the right of the 0?
    Second Problem: 
      When I manually move the cursor to the right of the 0 and input a number, say 4, it shows up as 04.
    Question 2:  How do I delete the leading numeric zero in the input textfield?
    Thanks for the help.
    Here's the code I am using:
    calculateChildWeight = function () {
    if (isNaN(numberOfKids)) {
      numberOfKids = 0;
    if ((numberOfKids) == undefined) {
      numberOfKids = 0;
    if (numberOfKids>=0 && numberOfKids<=137) {
      numberOfKids = numberOfKids;
    } else {
      numberOfKids = 0;
    if (isNaN(adjustedChildWeight)) {
      adjustedChildWeight = 0;
    if ((adjustedChildWeight)=undefined) {
      adjustedChildWeight = 0;
    adjustedChildWeight = Number(numberOfKids*(-100));
    //numberOfKids.setSelection(numberOfKids.length, numberOfKids.length);
    //if (numberOfKids.length=2 && numberOfKids<10) {
      // remove the first character or leading zero
    //  numberOfKids = numberOfKids;

    Thanks Rothrock for being so  patient.
    I'm lost!
    I go back to a brand new flash file to try and implement the textfields as a stand alone test document.  I have lost the concept I think.
    I created on the stage of a blank .fla file  4 text fields, 2 input and 2 dynamic.  I gave them an instance name in the properties box.  I use this instance name.text to find the value of the field.  I use the parseInt to put that value into a numeric variable for calculation.  The results are put to the appropriate textfield.
    All seems to work except one of my input text fields.   I use the value of this field  to calculate:
    revisedValue = parseInt(numberOfKids.text);
    revisedValue = revisedValue*(-100);
    The problem now is that if the numberic '2' is inputted into numberOfKids, numberOfKids.text shows up as 200 and a trace shows up as '2NaN'.
    Flash is logical and consistant, I must conform to it but I'm in the dark.
    (( Concerning the forum:  If I click on helpful, which your posts have been in directing me, does that blank out the possibility of selecting the correct answer in the future???))

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • How can i validate current row input text field like required.

    Hi All,
    jdev 11.1.2.1.0
    in my use case i have drag drop one viewobject as a adf table. and in table i have also add one extra input text field which is not based on
    vo.
    now i want to validate current row input text field not null when i commit row.
    but when i using required property true. it worked for all row in table. problem is that i want only current row input text field validate not all
    thanks,
    Manish

    When the user tries commit the data by clicking on the button -- For that button, have the logic in the actionlistener method to check if the additional input field is NULL or NOT.
    If it is NULL, show an error message using FacesContext.addMessage() API.
    Thanks,
    Navaneeth

  • How to add comma and dollar sign that places automatically in input text field

    I have this ROI calculator which has several text input field
    on frame one with calculate and reset buttons. When a user enters
    numerical values in the text field, and jumping to the next field,
    I want the input text filed be updated with dollar sign and with
    comma.
    Next when they hit "ENTER" key or click "Calculate ROI"
    button, all the input text fields on frame 2 as a result of
    calculations be updated with dollar sign and comma. I also need
    that once the comma sign is assigned then it would not add any more
    even if user presses the button. Can someone help me in
    this?

    If you want to Set the Comma when you Switch to next Text
    Field
    Use onKillFocus / onSetFocus Functions.
    to restrict multiple comma, Before Adding comma use
    myText.text =
    myText.text.split(",").join("").split("$").join("");
    So this will give you the value without Comma and Dollar
    symbol, Now add the Comma and dollar.
    or you need to use a Flag for onChange Event.

  • How to insert a date picker input text field in a JSF Jsp page

    Hi,
    I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
    Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
    Could you pls shed some light on this issue and help me out.
    Thanks
    ~Siva(ji)

    <HTML>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
    var scrAvailc = 400;     //Change to your available screen width. You see in
    //this eBooks' middle frame, the frame width is
                                                                //equal to 410 . So whether your using frames or
                                                                //or a full 800 pixel screen, you must calculate
                                                                //your available screen width.
    var PopUpC = document.getElementById("pUpc");
    document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
    function cstmPup(objC,c){
    popUpC = document.getElementById("pUpc");
    popUpC.innerHTML = c.innerHTML
    popUpC.style.left = getPos(objC,"Left");
    var scrNeedc = getPos(objC,"Left") + pUpWidthc;
    if (scrNeedc > scrAvailc){
    //The number 10 below is an extra offset x value applied when the
    //definitional popup box positions beyond your screen width. You
    //can change this number to fine tune your "beyond screenwidth" positioning.
    var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
    popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
    popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
    popUpC.style.visibility = 'visible';
    fill();
    function fill()
         var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
    var d1=FirstDayOfWeek(7,2008);
    //40     
         for(i=1;i<noOfRows;i++)
              x=document.getElementById('myTable').insertRow(i);
              for(j=0;j<noOfCols;j++)
                   var y=x.insertCell(j);
                   if( ( i==1 && j<d1))
                   y.innerHTML="";
                   else if(day<=DaysInMonth(7,2008)){
                   y.innerHTML=day;
                   day++;
    //document.write(FirstDayOfWeek(7,2008));
    function FirstDayOfWeek(m,y)
    var i;
    var dow = 6;
    //document.write("Hello");
    for (i=1583; i<y; i++)
    dow += (LeapYear(i)) ? 2 : 1;
    for (i=1; i<m; i++)
    dow += DaysInMonth(i,y);
    return dow % 7;
    function DaysInMonth(m,y)
    // m is the month number (1,2,3,...12), y is the year number (four digits)
    switch (m)
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12: return 31;
    case 2: if (LeapYear(y))
    return 29;
    else
    return 28;
    default: return 30;
    function LeapYear(y)
    return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
    function getPos(objC,sPos){
    var iPos = 0;
    while (objC != null) {
    iPos += objC["offset" + sPos];
    objC = objC.offsetParent;}
    return iPos;
    function hPopUpc(){
    popUpC = document.getElementById("pUpc");
    popUpC.style.visibility = 'hidden';
    //-->
    </script>
    <BODY
    <button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
    <'div' id="pUpCstm" style="display:none;">
    <'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
    <hr size="1" style="border:1px solid black;">
         <div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
              <table border ="1" id="myTable">
                   <TR>
                        <TD> SUN </TD>
                        <TD> MON </TD>
                        <TD> TUE </TD>
                        <TD> WED </TD>
                        <TD> THU </TD>
                        <TD> FRI </TD>
                        <TD> SAT </TD>
                   </TR>
              </table>
         <br><br>
         </div>
         <br>
         <div>
    <button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
    </div>
    <?BODY
    </HTML>
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri

  • Input text field nested in movie clip?

    Hello,
    Is it possible to have an input text field inside a movie
    clip in Flash Lite 2? I've tried targeting it all different ways
    and it doesn't seem to work, so I just thought I'd check with
    someone who knows.
    Thanks for your help in advance!

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • Emailing data found in input text fields

    Hi,
    I have a simple form that users fill in various "input" text
    fields like "Name", "Email", etc... now all I want is when the
    click on the "send" button, it should automatically send an e-mail
    to "info@...".
    I got it to enter the proper recipient email address and
    subject but there's not content. What am I missing?
    Thanks,
    Phalconheart

    Thanks for the prompt reply.
    Just to clarify (programming is not my primary function...
    far from it)
    Yes, just opening the clients e-mail program and populating
    it with all the variable info he's selected is fine.
    so, in your code:
    url ="mailto:[email protected]?subject=Message
    Subject&body=First line of message.%0ASecond line." + "%0A" +
    "Third line.";
    1) what does the "%0A" do exactly?
    2) do I simply replace where you wrote "First Line of
    message" with the code "variables.item = itemChoice.text;"? and so
    on and so forth?
    Thanks,
    Pat

  • Calculations in input text fields

    Hello,
    I'm making an engineering game. Students need to input force
    equations and to check the equation is right it has to add up to
    zero. There are two input text fields, one the student sees with
    the force values expressed in letters like HA, VA, and MA, and one
    hidden field where the values are expressed as numbers. They also
    input operators as part of the equation. I need to make it so when
    they click a button to check if their equation is correct, the
    contents of the text field are calculated to see if the equation
    adds up to zero. I know you can express the contents as a number
    with say Number (this.my_hidden_text.text), but how do I get the
    operators in the equation, which are +, -, *, /, (, ), and ^ to
    mean something and do what they're supposed to?
    Any assistance would be most welcome.
    Thank you for your time,
    Beatie3

    Thank you for your quick response. Would you mind explaining
    more how to use the strings method to find the operators, please?
    It's a bit messy but my code currently looks like this:
    stop();
    //hide stuff
    this.tickb._visible = false;
    this.crossb._visible = false;
    //declare the variables
    var check1:Number = parseInt(display_secret.text);
    var display1 = "";
    var display_secret = "";
    //function for the calculation
    function onCalculate() {
    if(this.display_secret = 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    check02_btn.onRelease = function():Void {
    trace(display1);
    trace(check1);
    if(check1 == 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    //load external images
    pic04_container.loadMovie("fig_3_1a.gif");
    //takes you back to the previous scene
    back02_btn.onRelease = function() {
    gotoAndStop("Scene 2", 1);
    //Takes you home
    home02_btn.onRelease = function() {
    gotoAndStop("Scene 1", 1);
    //moves to the next scene
    next02_btn.onRelease = function() {
    gotoAndStop("Scene 3a", 1);
    //calculator buttons workings
    left_btn.onRelease = function() {
    display1 = display1+ "(";
    display_secret = display_secret + "(";
    plus_btn.onRelease = function() {
    display1 = display1+"+";
    display_secret = display_secret +"+";
    times_btn.onRelease = function() {
    display1 = display1+"*";
    display_secret = display_secret +"*";
    right_btn.onRelease = function() {
    display1 = display1+")";
    display_secret = display_secret +")";
    minus_btn.onRelease = function() {
    display1 = display1+"-";
    display_secret = display_secret +"-";
    peek_btn.onRelease = function() {
    display1 = display1+"^";
    display_secret = display_secret +"^";
    slash_btn.onRelease = function() {
    display1 = display1+"/";
    display_secret = display_secret +"/";
    ha_btn.onRelease = function() {
    display1 = display1+"HA";
    display_secret = display_secret +"108";
    va_btn.onRelease = function() {
    display1 = display1+"VA";
    display_secret = display_secret +"0";
    ma_btn.onRelease = function() {
    display1 = display1+"MA";
    display_secret = display_secret +"1296";
    c_btn.onRelease = function() {
    display1 = "";
    display_secret = "";
    vd_btn.onRelease = function() {
    display1 = display1+"VD";
    display_secret = display_secret +"0";
    w_btn.onRelease = function() {
    display1 = display1+"w";
    display_secret = display_secret +"12";
    a_btn.onRelease = function() {
    display1 = display1+"a";
    display_secret = display_secret +"18";
    b_btn.onRelease = function() {
    display1 = display1+"b";
    display_secret = display_secret +"9";
    thank you very much for your help,
    Beatie3

  • Re: INPUT TEXT FIELDS

    Hi,
    public void addInputTextListener(ActionEvent actionEvent)
    UIComponent button = (UIComponent)actionEvent.getSource();
    RichPanelGroupLayout pgl = (RichPanelGroupLayout)button.getParent();
    List<UIComponent> children = pgl.getChildren();
    RichInputText it = new RichInputText();
    it.setLabel("New IPT "+(children.size()+1));
    children.add(it);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pgl);
    I had got this code to generate input text field dynamically... i had got a reply from one of the user,the message which i m not able to access.
    this code is throwing an error saying that CANNOT FIND METHOD "getSource();"........... in the line 4. i'm using 11.1.1.5.0 jdev. Can someone help me out in resolving this.

    This seems to be more a Java issue, than anything related to WebCenter, correct?
    Question 1: you write that
    this code is throwing an error saying that CANNOT FIND METHOD "getSource();"Where does the error appear? In JDev when you try to compile? If so, that it simply tells you that the class ActionEvent does not contain a method "getSource()", which leads to
    Question 2: where does the class ActionEvent come from?
    If it is the standard java.awt.event.ActionEvent, it should contain it. I'd guess that you just linked the name ActionEvent to the class with the same name, but from a different package. (If so, fix the import section.)

  • HtmlText in input text field?

    Hi
    Is it possible to have input text fields respond to htmlText? I'm sure I've done it before.
    Although the following code displays the string correctly, there is no color formatting displayed:
    e.target.htmlText = noColour + "<font color='0x00FF00'>"+ colorText +"</font>";
    I've clicked the button in the field's properties (Flash Pro) to render as htmlText.
    Cheers for having a look.

    Never mind - I had the wrong syntax.
    Should be '#00FF00', not '0x00FF00' when it's within quotes.

  • Regarding Input text fields

    This is about fill in the blanks in flash 8 as2. In this i used input  text fields and three buttons.In first frame i used multiple input text  fields and a submit button. After filling all the blanks we click on  submit button then in the second frame we will show the result like if  the blank is correct it should change the color to green and if it is  wrong it should change to red.and in the frame i have check button when  we click on it will display all the answers. And when we click on  analyse button we have to display the answer which the user types and  the correct answers.
    And my problem is when we click on submit there is no difference in the blanks color all are in black only and i have assigned red to the wrong answer and green to the correct answer.
    and script on submit button is
    on (release) {
        gotoAndStop("Bl1");
        if ((_root.Bl.txt1 == "abc1") && (_root.Bl.txt2 == "abc2") && (_root.Bl.txt3 == "abc3") && (_root.Bl.txt4 == "abc4")) {
            _root.Bl.txt1.textColor = 0x006600;
            _root.Bl.txt2.textColor = 0x006600;
            _root.Bl.txt3.textColor = 0x006600;
            _root.Bl.txt4.textColor = 0x006600;
        } else {
            _root.Bl.txt1.textColor = 0xFF0000;
            _root.Bl.txt2.textColor = 0xFF0000;
            _root.Bl.txt3.textColor = 0xFF0000;
            _root.Bl.txt4.textColor = 0xFF0000;
    where "Bl" is the movie clip name and "txt1","txt2","txt3","txt4" are the var names for input text fields
    Please help........

    You are concatenating the conditions it will only work if all are true or  all are false
    on (release)
        gotoAndStop("Bl1");
        if (_root.Bl.txt1 == "abc1")
            _root.Bl.txt1.textColor = 0x006600;
        else
            _root.Bl.txt1.textColor = 0xFF0000;
        if (_root.Bl.txt2 == "abc2")
            _root.Bl.txt2.textColor = 0x006600;
        else
            _root.Bl.txt2.textColor = 0xFF0000;
        if (_root.Bl.txt3 == "abc3")
            _root.Bl.txt3.textColor = 0x006600;
        else
            _root.Bl.txt3.textColor = 0xFF0000;
        if (_root.Bl.txt4 == "abc4")
            _root.Bl.txt4.textColor = 0x006600;
        else
            _root.Bl.txt4.textColor = 0xFF0000;
    You can also run a for loop for optimizing the code further.
    www.darshanrane.com

  • Auto-tabbing between input text fields in AS3

    Hello-
    I am having some trouble figuring out how to work auto-tabbing between input text fields when a user inputs a character. I have a series of text boxes with maxChar set to 1, and when the user inputs a character, I would like it to auto-tab to the next one. I'm putting together a crossword-style banner ad so the auto-tabbing will help tremendously.  All the input text fields are instanced on the stage as input1, input2, etc; not called in from a custom class.  Also, I've been working with AS3 for about 2 weeks lol!
    thanks!

    Awesome, thank you, that works nicely! Now I need to figure out how to capture individual keyCodes for each input and then come up with a conditional to check for right or wrong answers. I have a "check your answers" button all set up. I think I am almost there, possibly a syntax hiccup for me. Any advice on how to do that would be appreciated.

  • Input text field problem

    I am VERY new at this...I'm following directions in "Hands On
    Training Flash 8 book...
    When creating an input text field the book instructs me to
    embed the font using the embed button that is in the Property
    Inspector...When I do this and test the movie there is no cursor in
    the text box and I am not allowed to type in it..
    If I do not embed the font then when I test the movie the
    input field works. I click on it and get a cursor and am able to
    enter information.
    Is the book I'm using wrong here or is there something I'm
    missing? Thank you.

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

Maybe you are looking for

  • Inclusive Free Goods without Item Generation

    Can anbody explain 'Inclusive Free Goods without Item Generation' with an example. Thanks in advance Sunit

  • Supplied word docs with upper case text

    I'm guessing this might be a bit of an old chestnut, but getting stumped on a quick way to eradicate this when clients supplying it - whacking stuff into the document with their caps locks on, and of course branding in the final output from InDesign

  • Recursive and loadable webdynpro tree

    Hi I was trying the "Constructing a Recursive and loadable webdynpro tree" example...I completed all the steps.But when I deployed it it trew an error 500   Internal Server Error Failed to process request. Please contact your system administrator. Co

  • Trouble with making slide show VCD or copying photos to CD

    I have saved approximately 200 photos and made a copy of the photos on a cd.  The problem is that some of the photos copied horizontally instead of in vertical format.....the photos where all properly showing on the PSE7 organizer...but about 13 copi

  • Restore or Delete messages in Mail from "Go To Folder"?

    I was trying to delete ALL my messages in my Mail app.  (I recieve emails from gmail).  I deleted all my messages in Gmail but when I went to delete them in Mail, an error occured and now when I launch Mail every single message (2551) opens and layer