Java Parser 2 DOMSample not working properly

Hi
I downloaded the parser (v2) and am running the DOMSample.java
with the sample file empl.xml as the input. The program
successfully finds the tree and writes out the nodes correctly,
but it never finds the node values (I made sure that there is a
call to getNodeValue()). For example, The following
XML file:
<?xml version = "1.0"?>
<!DOCTYPE parent [
<!ELEMENT parent (child)>
<!ELEMENT child (#PCDATA)>
]>
<parent>
<child>Murthy</child>
</parent>
The getNodeValue() always returns null, even though the <child>
tag has a value.
What am I missing?
Thanks in advance
Murthy.
null

You have to get the TEXT children of an element and then use the
getNodeValue() method on the text nodes.
Oracle XML Team
James Lee (guest) wrote:
: How do u do that? when i tried to pass it into a text node, the
: runtime error says that there is a classcastexception.
: James
: Oracle XML Team wrote:
: : As per the W3C DOM spec, getNodeValue() of an element is
: always
: : null. You need to pass it the text node to get the actual
text.
: : Oracle XML Team
: : http://technet.oracle.com
: : Oracle Technology Network
: : Murthy Jarugumilli (guest) wrote:
: : : Hi
: : : I downloaded the parser (v2) and am running the
: DOMSample.java
: : : with the sample file empl.xml as the input. The program
: : : successfully finds the tree and writes out the nodes
: : correctly,
: : : but it never finds the node values (I made sure that there
: is
: : a
: : : call to getNodeValue()). For example, The following
: : : XML file:
: : : <?xml version = "1.0"?>
: : : <!DOCTYPE parent [
: : : <!ELEMENT parent (child)>
: : : <!ELEMENT child (#PCDATA)>
: : : ]>
: : : <parent>
: : : <child>Murthy</child>
: : : </parent>
: : : The getNodeValue() always returns null, even though the
: : <child>
: : : tag has a value.
: : : What am I missing?
: : : Thanks in advance
: : : Murthy.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null

Similar Messages

  • Java Script Code not working properly for visios in sharepoint 2013

    Hi all ,
                 I have few visios and I am using the visio web part to display and to redirect from one visio to other visio I am using the java script code through content editor web part . 
    In share point 2010 it's working fine , I was able to redirect to all the visios and code is working fine .
    In share point 2013 its not the same , Its not working properly . only for the first time the code is working fine . once it goes to next visio the code stops working . 
    For example if i click in visio A it gets redirect to Visio B and its stops working , it wont allow to do any other steps . 
    I have checked with the URL its correct , I am not able to find any error also .
    Indresh

    This will be likely caused by the Minimal Download Strategy not registering the Javascript on the page reload. You can turn off the MDS feature to test this.
    You can either turn off MDS in your site, or register your Javascript functions with MDS to ensure they are called. To do this, you'll need all of your code to be wrapped in a javascript file (Embed this on the page using a <script> tag and
    inside that file in a function, which you then register with MDS as follows (I usually do this in the first line of the javascript file):-
    RegisterModuleInit("/SiteAssets/YourJavaScriptFile.js", NameOfYourFunction);
    Regards
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • HT1338 java 7 will not work properly with Lion.  In military and need to access DTS.

    JAVA not working properly.  Tried all found recomended solutions. Java test shows that Java is blocked but it is enabled in Safari.

    apple has blocked it: http://thenextweb.com/apple/2013/01/31/for-the-second-time-this-month-apple-bloc ks-java-7-on-os-x-10-6-and-up-to-protect-mac-users/

  • Java plugin is not working properly

    I have FF 16.0.1 and Java plugin 7 u 9, this is not the java with security problems...
    http://web.psjaisd.us/auston.cron/ABCronPortal/GeoGebraMenu/Investigating%20Parent%20FunctionsUsing%20GeoGebraGeoGebra%20is%20graphing.htm
    loads very slowly or not at all, including the majority of the links on the page...this is a menu to multiple Java applets in GeoGebra. This page has a preload link which causes a problem. All links are java applets which until your security issues on Java were implements worked flawlessly and better than any other browser service...
    You are forcing me to us IE, which I despise!
    I cannot copy from crashing page...

    So, you are having problems with Java 7 update 9 in Firefox? You said "until your security issues on Java were implements worked flawlessly and better than any other browser service..." I don't know what you mean. Java security updates are from java.com (Oracle) not Mozilla.
    In case it helps, I downgraded from Java 7 to Java 6 awhile back for security reasons and I'm now running [http://java.com/en/download/manual_v6.jsp Java 6 Update 37], which is the latest Java 6 and has all current security patches. (I'll eventually switch back to Java 7 once Java 6 is no longer supported). Except for a few of the links loading slowly, I don't see any issues on the page you mentioned. Hopefully someone with Java 7 u9 will be along and test the links but you could try uninstalling Java 7 and installing Java 6. More on Java here:
    *http://kb.mozillazine.org/Java
    *[[Use the Java plugin to view interactive content on websites]]
    You also said, "I cannot copy from crashing page". Is Firefox crashing? Do you have any recent crash reports?
    #Enter about:crashes in the Firefox location bar (that's where you enter your website names) and press Enter. You should now see a list of submitted crash reports.
    #Copy the most recent 5 report IDs that you see in the crash report window and paste them into your forum response.
    More information and further troubleshooting steps can be found in the [[Firefox crashes]] article.
    Also, Firefox 16.0 is not the current version and is insecure. See http://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Unless you have reasons for using an older version despite the vulnerabilities, you should [[update Firefox to the latest version]], currently 17.0.1.

  • The connectivity between ABAP and JAVA system is not working properly.

    Hi,
    I have Installed ECC5.0 ABAP system and Netweaver JAVA system with different SID's in single box. While Installing JAVA systen I have selected UME as ABAP system and Installation was success. Once I restart MMC the JAVA server process thowing an rc -11113.
    I have pasted trace file for Server process. Please send me any suggestions ASAP.
    [Thr 4500] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
    [Thr 4500] JLaunchISetClusterId: set cluster id 31689350
    [Thr 4500] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
    [Thr 4500] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
    [Thr 4180] Thu Apr 19 12:06:29 2007
    [Thr 4180] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
    [Thr 4180] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
    [Thr 4180] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
    [Thr 4180] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
    [Thr 4748] Thu Apr 19 12:06:30 2007
    [Thr 4748] JLaunchIExitJava: exit hook is called (rc=-11113)
    [Thr 4748] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    Please see SAP Note 940893 , section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    [Thr 4748] JLaunchCloseProgram: good bye (exitcode=-11113)
    Thanks,
    Suraj

    Hi,
    It clearly says the problem is with virtual memory. SO you need to change your virtual memory settings using configtool.
    See the relevant note.940893
    Make changes in the VM parameters for Bootstarp, Dispatched and the server nodes. Your -Xms should be less than equal to -Xmx.
    Restart the cluster then.
    It should work.
    Do reward good points.

  • HT4623 I did the latest update to my i pad 2 and now Safari does not work properly . I get messages that the java script needs to be turned on which I did. How do I get this all back after this update?

    I did the latest update to my I pad 2 and lost Safari . I was instructed to switch the Java script on which I did but Safari is still not working properly . how do I get everything back after this software update.

    Try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • HT1338 i think my java is not working properly what do i do

    i think my java is not working properly what do i do

    Java 7 updated  for 10.7-10.8
    Released Feb 1, 2013,  fixes 50+ security flaws
    http://www.esecurityplanet.com/patches/oracle-responds-to-java-security-flaws-wi th-50-fixes.html
    Download and install
    https://www.java.com/en/download/faq/java_mac.xml
    For Java versions 6 and below OS X 10.5-10.6 machines
    Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature available under the Apple menu to check that you have the most up-to-date version of Java 6 for your Mac.
    https://www.java.com/en/download/faq/java_6.xml
    Java SE 6 End of Public Updates
    After February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. We highly recommend downloading and installing Java 7.
    If your considering upgrading OS X from 10.6.8 to 10.8 via AppStore to run Java 7
    Be forewarned no PowerPC based programs or driver software will run any longer.
    Check here BEFORE you upgrade OS X!
    http://roaringapps.com/apps:table
    Alternatives if you must run Java 7
    If Apple disabled Java 6 in 10.6, and you can't upgrade OS X to 10.8, then your pretty much done with Java in OS X because Oracle won't issue updates for Java 6 anymore.
    However you can install Windows 7 and continue to use Java 7+ there until support for Windows 7 ends in 2020.
    Windows in BootCamp or Virtual Machine?
    If your on 10.6, I very highly recommend the free Virtualbox for the virtual machine software as it gets updates, VMFusion and Parallels have moved on with only 10.7+

  • Jms is not working properly in clustered environment

    Hi all,
    i am using the application server oc4j 10.1.3.1.0 enterprise edition . my application is standalone application(thick client)
    we are using the jndi.properties as follows ...
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security,opmn:ormi://172.16.1.38:6006:deceval_group/Security
    java.naming.security.principal=oc4juser
    java.naming.security.credentials=oc4juser
    oracle.j2ee.rmi.loadBalance=lookup
    we have two application servers in cluster topology as u can see above we have used one instance from one application server and one from another.
    i have seen that for every instance there one jms server. at runtime it is taking one application servers services
    say opmn port 6005 but when the application is connecting to the another application server say opmn 6006
    here jms is not working properly when i send message
    As we have clustered environment message must be propagated all the applications who use above jndi.properties.
    if i keep use only one application server opmn say
    java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security
    then its is working excellently
    please can u provide any solution ASAP
    thanks in advance
    Manu

    Dear Aravindth
      (.*?) means -> Select all contents from where you start and end,
    For Ex. <month>(.*?)</month> then Select for start <month> and end last </month> tag.
    (?) Match zero or one occurrences. Equivalent to {0,1}.
    (*) Match zero or more occurrences. Equivalent to {0,}.
    (+) Match one or more occurrences. Equivalent to {1,}.
    (.) (Dot). Match any character except newline or another Unicode line terminator.
    (.*?) means -> Zero or more times Match any character except newline or another Unicode line terminator + Match zero or more occurrences. Equivalent to {0,}.+Match zero or one occurrences. Equivalent to {0,1}.
    Could you please refere the below cite :
    http://www.javascriptkit.com/jsref/regexp.shtml
    Thanks & Regards
    T.R.Harihara SudhaN

  • Java session is not working in browser sometimes

    Hi,
    In some PC, sometimes session is not working properly in browser.
    In JSP, I am creating the session like below
         session = request.getSession(true);
         session.putValue("loginid",login);
    But in next page, it is showing null value.
    I have checked the browser setting... cookies are enabled... everything is ok in browser setting..
    In our company, this issue is coming in some of PC not all in all the PC
    If we format the harddisk & again reinstall the OS, it starts working.
    Anyone can pls help me on this?. This is very urgent.
    Regards
    Selva

    As of Version 2.2 putValue(java.lang.String name,
    java.lang.Object value) has been deprecated.
    Use session.setAttribute("loginid",login) instead of putValue()

  • Ive just upgraded my late 2009 macbook, and things are not working properly. First of all, when I started the computer first time after installing Mountain Lion, some message advised me that some files were impossible to install.

    Ive just upgraded my late 2009 macbook, and things are not working properly. First of all, when I started the computer first time after installing Mountain Lion, some message advised me that some files were impossible to install. Once I wrote my password, and for now on, everytime I start the session, another window advise me that "Java SE 6" is missing, due that, the computer can't run some "CS5Service Manager". If I try to install it, the download ends with an error. If finally, you skip the istallation, you arrive to the dock, but the menu bar at the top of the screen doesn't show up.
    In addition, my trackpad doesn't works either. I can move the arrow but i can't click anywhere, probably because the option of clicking by touching is disabeled and I can't performance a regular click.
    I'll be very glad if someone know what the heck is happening with my computer. Anyway, I'm going to the genius bar next Saturday. Thx!

    We're sorry.
    We can't find the article you're looking for.
    Please return to the Apple Support homepage.
    Sigh.

  • Pick List Value Not Working Properly

    Hi Oracle Framework Gurus,
    I have a strange Issue in which one of my cusom page is working properly in Jdev and not working Properly when deployed in the apps instance.
    There are two custom pages with the same VO.
    What I do is have a picklist from one of the custom page and depending on the value of the picklist and I navigate to the other custom page.
    This is working properly in the JDev,But for some reasons it works properly in apps instance, when I try to run the first time(ie) when I run page A and pick 'X' from the picklist the Page 'B' is coming properly as per the controller code and when i pick 'Y' from the picklist in Page B, it is navigating to Page A as per the controller code.
    This works fine for the first time,But when i again select 'X' from the picklist the proper value from the Picklist is not getting selected and passed to the custom package and so I get wrong values in Page 'B'
    What could be the reason for it as it working fine in Jdev,I can navigate from Page A to Page B and Page B to Page A as many times possible.

    Hi Anand,
    Controller1 :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // Date testdate = (Date)sysdate.dateValue();
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag1") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag1");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession1");
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmployeePanelIB",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    System.out.println("strPersonId "+strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    //Serializable parameters[] = { strPersonId,sDate };
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The PersonId "+strPersonId);
    System.out.println("The Controller Date passed is IBUtil "+sDate);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "1";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag", flag);
    pageContext.putSessionValue("SDateSession", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpTestPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Controller 2:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession");
    Serializable param2[] = { strPersonId, SDate1 };
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpPanelPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    pageContext.putSessionValue("strPersonId", strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Controller Date passed is CBUtil "+sDate);
    System.out.println("The PersonId "+strPersonId);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "2";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag1", flag);
    pageContext.putSessionValue("SDateSession1", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpIBUtilPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Hi Above two are the controller codes forget the rest of the codes,Concentrate on the PFR code, Just want to know what I am doing is correct or not.
    First time when I select the Picklist value,the value gets passed as a parameter to the custom package and the page gets displayed properly and vice versa,But I am not able to do the same cycle again for some reasons.
    Please get back to me ASAP.
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on Oct 19, 2010 11:58 PM

  • Java script is not working while coming back to the page.

    Hi Experts,
    I am working in jdev 11.1.1.3.0 with ADF BC.
    I am callling javascript in my jsff, while this javascrip is invoking file download method. this java script i am inovking from another button action, because in some case i need to invoke popup and some case i need to invoke file download for this i have taken one button in that button i am invoking these 2 based on some condition. everything is working fine except if i move another jsff and come back to this jsff then the file download is not happening.
    can any one tell me what is the issue here.
    java script:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    java bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    Here my bean is in backing bean scope.
    can any one help what may be the issue here. or if you can tell me how to call file download method from backing that can be great help full to me.
    Edited by: user5802014 on Aug 27, 2010 1:52 PM

    Hi:
    So it's the "erks.addScript(context, "customHandler();");" may not work properly the next time coming back from another jsff.
    And very likely the statement of: var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1") in your javascript command gave you error. Are you sure that "pt1:pt_resion0:1:cb1" is valid all the time no matter how the page is rendered?
    Please mark my answer as 'Helpful' if it helps.
    Thanks,
    Alex

  • Undo,redo not working properly with JPopupMenu

    if i use JButton for undo ,redo it is working fine. but the same code is not
    working properly if i add it in JPopupMenu.
    what could be the problem.
    thanks

    what could be the problem.Your code is different or written incorrectly and since you didn't post any we can't help.
    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html]How to Use Actions
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Adobe Reader XI and Adobe Reader X Pro (Editable PDF Combobox Search is not working properly.)

    I have created Editable PDF using itext(5.3.0) in java. I have used Adobe Reader XI and Adobe Reader X Pro.  But in editable PDF combobox search is  not working properly.
    It's only search first character.

    My (admittedly old and slow) system did this too the first time I opened Reader 11, but it "unfroze" after about fifteen seconds, (an eternity in computing time, I know, but it did eventually open all the way) What you're seeing on the right is the "Tools" panel initializing. That's exactly where mine would freeze up on starting. Once it did finally open fully, I clicked the "Tools" link at the top to close the panel, and I opened and viewed a document that way, then closed reader. Now when I open Reader, the Tools panel doesn't initialize and it opens immediately.
    Reboot and before you open anything else, open Reader. When you open it, DO NOT try to do anything with it until it fully opens, don't click anything, don't try to switch to another app. Give it time to open fully, and then click the Tools link to close it. Then, open and view a document, and close it. Close Reader and reopen it. the Tools panel should remain closed and Reader should open fully immediately.

  • IGrid - SAP MII 12.1.8 SP 05 (build 36) - rendering not working properly.

    Hi,
    In the 12.1.8 SP 05, when the iGrid cell values set through the java script, the rendering part is not working.
    For example,
    The data set returned by iCommand has 25 rows.
    Java script sets the values in the iGrid from each row.
    The application was working well with 12.1.8 SP02. The same application is not working properly now.
    the error from the java script show this as java.lang.NullPointerException.
    For the same set of data, this error is occurring sometimes at the third row, sometimes in the middle and sometimes in the end.
    The java console is quite consistent. The same error occurs multiple times.
    I have given the error in the end.
    After the grid loaded, the script tries to set the cell values. some time only a single line has values and some time 4 to 5  lines has values for the same data set. The lines are not shown to the user. When he moves away from that page and comes back all the 25 lines are seen, mostly without values.
    Is anyone working with 12.1.8 SP05 patch? The Xacute Query string output size is 64K in the SP02. In SP04 and SP05 this issue is fixed. This needs to be implemented. But in SP 03, IGrid functionality is refactored.
    The SAP notes number: Note 1566572 - MII 12.1 SP08 Patch03 says,
    Re-factored iGrid to improve datatype handling
    Notes number for SP04:  Note 1581779 - MII 12.1 SP08 Patch04
    Notes number for SP05: Note 1586551 - MII 12.1 SP08 Patch05
    If you have upgraded into the latest version of 12.1, are you facing the similar problem?
    The java Console error:
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at com.sap.xmii.applet.grid.renderers.MultiLineRenderer.setValue(MultiLineRenderer.java:60)
         at com.sap.lhcommon.gui.table.TableMultiLineCellRenderer.getTableCellRendererComponent(TableMultiLineCellRenderer.java:129)
         at javax.swing.JTable.prepareRenderer(Unknown Source)
         at com.sap.lhcommon.gui.table.BaseTable.prepareRenderer(BaseTable.java:560)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
         at javax.swing.plaf.ComponentUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(Unknown Source)
         at com.sap.xmii.applet.grid.base.types.BaseGrid.paintComponent(BaseGrid.java:947)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Thanks and Regards,
    Kishore kumar P S

    Hi Jamie,
    SAP has proposed a solution not to check the word wrap in the Grid.
    The iCommand data call was happening with Creation event of iGrid.
    Now changed to FirstUpdateEvent. This works fine.
    Thanks and Regards,
    Kishore kumar P S
    problem resolved
    Edited by: kishore kumar on Jul 12, 2011 3:33 PM

Maybe you are looking for

  • Adobe CC 2014 Photoshop and AI Crashing

    Hi, So every time I open either ps cc 2014 or ai cc 2014 they just crash on me and I get the lengthy unexpected error message. I'm running mac osx 10.9.5 and have a few thrird party extensions that could be the culprit. The really strange and annoyin

  • Passing Variable back to batch script

    I need to pass the result of a sql script back to the calling batch script. How would I do this? This is what I have tried Batch Script return_code = 'sqlplus loginname/pass@database path/sqlscript.sql' echo $return_code sqlscript Declare v_locked va

  • Master page not picking up images associated in ISF file

    Hi I am using FM11. RH10 as part of TCS4. Last year I had created a master page and settings file (ISF). We are now revising it. Some of our styles have images associated with them (Style name > Format > Borders and Shading > Shading > Pattern). My w

  • Update Vault error message

    Aperture is not letting me update my vaults. I am receiving update vault error messages when trying to back up to Vaults. I have three backup Vaults on external firewire drives, formatted Mac HFS+ (not MS-DOS) and not partitioned. My Aperture library

  • Is Safari Bad?

    Why does my Safari crash frequently? Is it because the phone can't hand more than 2 tabs or is it just buggy?