Problems by combinate JSF-Names with JavaScript (de.dev.user)

Hello again.
I have i new problem.
Overview:
1. Situation
2. Working code
3. Problem (reason for new idea)
4. New Idea
5. Problem (please help me !!)
[1]
The situation. I have one inputText and one selectOneMenu.
They are logicly combinated. Of this pair i have two.
If the user enters a errorcode in the inputText-field, the matching entry of the selectOneMenu have to be selected.
If the user select a entry of the selectOneMenu, the code have to be shown in the inputText.
Example:
inputText1 <-> selectOneMenu1
inputText2 <-> selectOneMenu2
[2]
For the moment i have realised this code (it works !!):
details.jsp:
<h:panelGrid columns="3">
<h:inputText binding="#{CbtdDetailsBean.itxtErrorCode1}" id="itxtErrorCode1" valueChangeListener="#{CbtdDetailsBean.itxtErrorCode1ValueChange}" onchange="submit()">
</h:inputText>
<h:selectOneMenu binding="#{CbtdDetailsBean.hsomErrorCode1}" id="hsomErrorCode1" valueChangeListener="#{CbtdDetailsBean.hsomErrorCode1ValueChange}" onchange="submit()" >
<f:selectItems binding="#{CbtdDetailsBean.uisiErrorCode1}" id="uisiErrorCode1" />
</h:selectOneMenu>
<h:outputText value="#{lgs.txtErrorCode}" />
<h:inputText binding="#{CbtdDetailsBean.itxtErrorCode2}" id="itxtErrorCode2" valueChangeListener="#{CbtdDetailsBean.itxtErrorCode2ValueChange}" onchange="submit()"  />
<h:selectOneMenu binding="#{CbtdDetailsBean.hsomErrorCode2}" id="hsomErrorCode2" valueChangeListener="#{CbtdDetailsBean.hsomErrorCode2ValueChange}" onchange="submit()">
<f:selectItems binding="#{CbtdDetailsBean.uisiErrorCode2}" id="uisiErrorCode2" />
</h:selectOneMenu>
</h:panelGrid>
CbtdDetailsBean.java:
private ArrayList getErrorCodeList()
  ArrayList errorCodeList = new ArrayList();
  errorCodeList.add(new SelectItem("1", "TestErrorCode1"));
  errorCodeList.add(new SelectItem("2", "TestErrorCode2"));
  errorCodeList.add(new SelectItem("3", "TestErrorCode3"));
  errorCodeList.add(new SelectItem("4", "TestErrorCode4"));
  errorCodeList.add(new SelectItem("5", "TestErrorCode5"));
  return errorCodeList;
// Value Change Listener (same for 2. group)
public void itxtErrorCode1ValueChange(ValueChangeEvent vce)
  this.hsomErrorCode1.setValue((String) vce.getNewValue());
public void hsomErrorCode1ValueChange(ValueChangeEvent vce)
  this.itxtErrorCode1.setValue((String) vce.getNewValue());
// Input Text ErrorCode 1 (same for 2. group)
private HtmlInputText itxtErrorCode1 = new HtmlInputText();
public HtmlInputText getItxtErrorCode1() { return itxtErrorCode1; }
public void setItxtErrorCode1(HtmlInputText itxtErrorCode1) { this.itxtErrorCode1 = itxtErrorCode1; }
// HtmlSelectOneMenu ErrorCode 1 (same for 2. group)
private HtmlSelectOneMenu hsomErrorCode1 = new HtmlSelectOneMenu();
public HtmlSelectOneMenu getHsomErrorCode1() { return hsomErrorCode1; }
public void setHsomErrorCode1(HtmlSelectOneMenu hsomErrorCode1) { this.hsomErrorCode1 = hsomErrorCode1; }
// UISelectItems (same for 2. group)
private UISelectItems uisiErrorCode1 = new UISelectItems();
public UISelectItems getUisiErrorCode1() { uisiErrorCode1.setValue(getErrorCodeList()); return uisiErrorCode1; }
public void setUisiErrorCode1(UISelectItems uisiErrorCode1) { this.uisiErrorCode1 = uisiErrorCode1; }-------------------------------------------------------------------------------------------------
[3]
Problem:
If the user changes the itxtErrorCode1-field, the hsomErrorCode1 will be updated by reload, but the hsomErrorCode1 also updates the itxtErrorCode1-field with the old value.
The second group is also updated. the itxtErrorCode2 has the value of hsomErrorCode2 (= 1) after entering itxtErrorCode1.
[4]
My new idea, where i need your help:
I think about a second way to update this fields. JavaScript !!
If this would work, i do not need to refresh the page.
The sourcecode i would like to user for this is implemented in the jsp-file:
<f:verbatim>
<script type="text/javascript">
<!--
  function SetControlByValue(cControl,sValue)
        cControl.value=sValue;
   function toUpper(obj)
        obj.value = obj.value.toUpperCase();
    // alert("document.frmDeviceDetails.hsomErrorCode2 = "+document.frmDeviceDetails.hsomErrorCode2);
-->
</script>
</f:verbatim>
<h:inputText binding="#{CbtdDetailsBean.itxtErrorCode1}" id="itxtErrorCode1" onchange="toUpper(this);SetControlByValue(document.frmDeviceDetails.hsomErrorCode1,this.value);" />
[5]
The new problem:
In the generated HTML-Code of itxtErrorCode1 and hsomErrorCode1 is:
<input id="body:frmDeviceDetails:itxtErrorCode1" name="body:frmDeviceDetails:itxtErrorCode1" type="text" ... >
<select id="body:frmDeviceDetails:hsomErrorCode1" name="body:frmDeviceDetails:hsomErrorCode1" ... >
How can i reference this "name" to javascript?
This Ideas does not work:
document.frmDeviceDetails.hsomErrorCode1
body:frmDeviceDetails:hsomErrorCode1
document.body:frmDeviceDetails:hsomErrorCode1
document.body.frmDeviceDetails.hsomErrorCode1
document.body.frmDeviceDetails.body.frmDeviceDetails.hsomErrorCode1
JavaScript seems to have a problem with ":". But this is part of the name!
Any Ideas?
p.s. please excuse my english, but i am from germany smile

I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
    var inputWidgets = document.getElementsByTagName("input");
    var targetInput;
    for(var i = 0; i < inputWidgets.length; i++)
       var inputId = inputWidgets.id;
if(inputId.indexOf("yourInputId") != -1)
targetInput = inputWidgets[i];
break;
It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

Similar Messages

  • Save each page of a multi-page document as a separate file using spawned file names with javascript

    Hello
    We are currently changing our hard-copy personnel files and converting them to pdf files.  We have scanned the entire file into one multi-page document.
    I am wanting to save each page (or groups of pages) as separate files.
    In order to facilitate this, I have duplicated field names--such as FirstName, LastName, EmpNo on each page.  This information should be static for the entire file.
    However--I also need information that will change for each individual "page" or document--such as TypeOfDoc, Date, etc.  I have used the Spawn fields using the overlay method on each of the pages in the document.  Then I went in and filled in the information for each page of the document--such as TypeOfDoc, DateOfDoc.
    Now I want to save each page of the document as a separate file using the field names as the file name.
    I first created an action that would split all the pages into separate files and save them into a folder.
    Then I want to save each file as a specific file name based on the information in the fields.
    My problem is obtaining the name of the spawned field name.  The rest of the field names I am not having a problem with.
    This is what I have so far to name the file.
    // Get the field value
    var oPage = this.pageNum;
    var fn = getField("P" + oPage + ".TEMPLATE.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    // Save the file
    myTrustedSpecialTaskFunc(this, fp);
    This code is also accompanied with folder level scripts.
    My problem is obtaining the name of the spawned fields using javascript.  Each document has several pages--so I would like to obtain the field name through script.
    I receive the following error.
    TypeError: getField("P" + oPage + ".TEMPLATE.DATE") is null
    I think this is due to the fact that I have extracted all the pages as individual files.
    If I were to do the above, but not extract the pages first--I do not know how to just save one page at a time.
    Please help.  This is a massive project, and if we have to save each file individually, it will take a lot of time.
    I am a beginner, so any assistance is appreciated.
    Thank you

    I am not understanding exactly where to put the curly brackets.  I have tried two different ways, and still get the same error.
    This is one way
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    {this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    The other is this
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    Thank you for your help.

  • Can I with Javascript force Chrome users to open a PDF with Acrobat

    I have built a document in InDesign and exported to an Interactive PDF. I originally had issues with acrobat highlighting interactive buttons with a blue box but was able to get around this with a couple simple JavaScript lines that disabled this feature then re-enabled on closing. You can view the thread with my resolution here:
    Button Highlight in Interactive PDF from InDesign CC
    Great but now I have another issue. If the user opens with Chrome and has not disabled "Chrome's" PDF viewer the above JavaScript is ignored or not functional. It there a way with JavaScript or some other method to force the PDF to be opened with Acrobat in Chrome?
    I Miss FLASH this project would have been 100 times easier with action script and consistent across browsers ... curse you Steve Jobs.

    You need to not just think about Chrome. There is
    - FireFox
    - Microsoft Reader (comes with Windows 8)
    - Preview (comes with Mac)
    - iPad native PDF viewe
    - Android native PDF viewer
    Anyone getting a computer or tablet today can read PDFs without getting Adobe Reader and you need to give them a pretty compelling reason for them to download Adobe Reader to do what (they believe that) they can already do. I think it's the death knell for PDF forms.

  • Problem in Applet while communicating with Javascript

    Hi,
    I’m facing a problem with applet. Applet calls JavaScript methods and vice versa. Applet works fine with JRE 5 to JRE 6 up to build no 1.6.0._7 but it fails with build no 1.6.0_10.
    The problem description is given below:
    After embedding applet in my HTML page using <OBJECT> tag, I’ve to check either any problem during applet’s execution, I want to get the error reason by calling my defined method getErrorReason() in applet that returns the error reason, I call the getErrorReason() against the applet’s object in JavaScript immediately after embed applet code in my HTML page, a JavaScript errors occurs and my applet fails to perform its execution.
    JavaScript error: Object does not support this property.
    The error points to the HTML page area where I’m calling getErrorReason() against applet object.
    The above JavaScript error occurs after the successful completion of Applet’s init(). I’m facing this problem only in JRE 6 build 1.6.0_10-b33.
    Please suggest me any solution.
    Thanks in advance.
    Regards,
    Israr Ahmed

    Hi Bharath,
    Even i got similar error and i tried deleting the below(Attaching the stack trace is always better way.)
    1) delete the folder ‘workspace’ or rename(including all files and subfolders) in the path D:\Documents and Settings\lzcr8r\Documents\SAP\workspace
    2) delete all .dtr/.dtc/.metadata directories in your personal folder (e.g. C:\Documents and Settings\lzcr8r).
    Restart the IDE once you are done with the above steps.
    Second part to increase the virtual mem
    1) RtClick on the Shortcut of NWDS -->Properties and in the Target put the below
    "C:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe" -vmargs -Xms512m -Xmx1536m  "C:\j2sdk1.4.2_08\bin\javaw.exe"
    2) You can also try  Creating a bat file with the complete path of your IDE and start your ide from the bat
       content in the bat eg: "C:\Program Files\netbeans-4.1\bin\netbeans.exe" -vmargs -Xms512m -Xmx1536m
    Here -Xms512m is the min JVM size and -Xmx1024m is the max JVM size.
    You can place this batch file anywhere and double click the batch file.
    It will automatically start your IDE
    3) if you are using Tomcat you can try creating an env variable and assign Value
    Variable Name:  CATALINA_OPTS
    Variable Value:  -server -Xmx800m
    please award points if usefull.
    Regards
    Souza
    Edited by: Souza Aluri on Apr 9, 2008 9:46 AM

  • Problem saving Reader extended PDF with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • Problem Sorting on Artist Name with numbers in title

    I just upgraded to iTunes 7.7 and when I sort by artist, all the artists with numbers in their name (3 doors down, 10,000 Maniacs) appear after the "Z's" at the very end of my library, I want them before the "A's" as the first block of songs in my library, can't firgure out how to do that, it was always that way in my previous iTune versions, but with the upgrade it changed by itself
    Can anyone help, I am sure this should be easy as I never had to do anything before to get this sorting behavior

    This was changed in version 7.3.
    See this -> iTunes 7.3: Changes in music sort order

  • JSF Bundled with Web Services Dev Pack

    Anyone else think it's kind stupid to force us to download the WSDP just to get JSF?

    I posted the same thing.
    I can't understand the rationalization.
    It's like bundling jdbc with jwsdp.
    It makes absolutely no sense to me.

  • Invoke servlet with javascript

    Hello.
    I need to invoke a servlet with javascript when the user clicks a button.
    Is there a way to invoke the servlet without submitting the page ?
    Thanks in advance.

    onchange="location.replace('ServletName');"

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

  • Problem with Javascript and opening a new page

    Hi,
    I'm developping a website with Java Server Faces.
    I've a problem with JavaScript.
    I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
    The new window, of course, needs some information of the other window, to show the right data.
    The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
    Here is my jsp-page of the first page (the one with the table):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
             <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
            <html>
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>- UCV-Period -</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                        <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                            style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                            <h:column binding="#{UcvPeriod.column1}" id="column1">
                                <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{UcvPeriod.column11}" id="column11">
                                <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                                </f:facet>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Here is my action, when someone clicks on the 'more-information-button':
    public String bthnDetails_action() {
       Object s = outputUcvPeriod.getValue();
       BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
       this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
       return "detail_ucvperiod";
    }Here is my constructor of the Detailspage.
        public Details() {
             this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
        }Here is the navigation part for this part of my faces-config.xml .
    <navigation-rule>
       <from-view-id>/UcvPeriod.jsp</from-view-id>
       <navigation-case>
           <from-outcome>detail_ucvperiod</from-outcome>
           <to-view-id>/UcvPeriod.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>Thx a lot....
    Anneke

    See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

  • Problem with JavaScript in URL iView

    Hi,
    I am facing a problem with javascript when i am trying to access my application through URL iView. In the javascript window.top is used to access the frames in the window. But the EP is not recognizing it as valid. what exctly the problem and please suggest me a solution.
    Ashok.

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

  • Problem with JavaScript in DPS

    Hello,
    i have little problem with one HTML page in DPS. We've created HTML form, which is formatting output with JavaScript and then passing to local mail client via mailto. It works nicely in Safari on desktop, it works in Safari on iPad BUT it don't work in DPS, when we use it as HTML content (frame on page where form is loaded). Unfortunately, there is no way how to learn what's wrong - on iPad it works, it's not working just in DPS (and it's not working in Viewer on desktop too).
    Anyone have any idea what to do?
    Script is fairly simple, it's my compilation of other works, because i'm not JS programmer, just i'm skilled with google-copy-paste... So there can be some VERY trivial error, but i don't know correct syntax...
    very simple version of this form, which is not working in DPS (but everywhere else), is here
    http://dl.optio.cz/mailtoExample.html
    Thanks for any help!

    Hello,
    when used in DPS browser, it's working (as part of HTMLresources.zip). I don't know if this will help, but here is small game, which works correctly in DPS in web overlay. when you move any red circle, it will let you send results via email. But this is too complicated for my minimal skills.
    http://dl.optio.cz/Hra_en/
    Anyway, thanks for help
    Martin

  • A problem determining the JNDI Name of a local EJB with WL 8.1

    Hi,
    I created a very simple local EJB and deployed it with Weblogic8.1. When I test
    it in the Weblogic server admin page, I got the following message:
    "The EJB MyLocal has not been tested successfully. There was a problem determining
    the JNDI Name of the given bean."
    Can anyone help figure out the problem?
    Thanks
    Henry

    Does the ejb have a target server specified?
    Does the Ejb have a Jndi binding as specified in the <local-jndi-name></local-jndi-name>
    element of weblogic-ejb-jar.xml?
    thanks,
    Deepak
    "Henry" <[email protected]> wrote:
    >
    >
    Hi,
    I created a very simple local EJB and deployed it with Weblogic8.1. When
    I test
    it in the Weblogic server admin page, I got the following message:
    "The EJB MyLocal has not been tested successfully. There was a problem
    determining
    the JNDI Name of the given bean."
    Can anyone help figure out the problem?
    Thanks
    Henry

  • Problem with iWeb after associating a personal domain name with my MobileMe

    I think I did this by the book. I associated my personal domain name with my MobileMe account, then changed the CName pointer at GoDaddy to MobileMe (MM), then went back to MM and hit 'Done'. iWeb now lists my MM account as 'My account name (personal domain name). It took a little while for the DNS pointer to propogate, but now I can go to a browser, type in my personal domain name, and MM delivers my iWeb website as I wanted it to, apparently from my domain, not web.me.com. The problem is, as soon as the DNS propogated, MM delivers my MM site OK, but iWeb can't find the files for it anymore. All my pages immediately went red (unpublished) when I tried to update the site, and any attempt to Publish gives me this error "iWeb couldn’t connect to MobileMe. Make sure your Internet connection works and try again." I'm cable connected to an ADSL router, and Airport connected to a cable router, and neither service has dropped out. I've rebooted, and retried, and the website is up under my own domain, so GoDaddy and MM both got it right. What did I do wrong? Thanks, someone... anyone?

    This is now sort of resolved, but not very satisfactorily. One of the trainers at my local Appple Store found an old support issue in the archives going back to 2008, which blamed security settings for update problems. Coincidental with associating MobileMe with my personal domain, I had checked the privacy box and added an ID and PW to the site. That was the problem, not the personal domain, that was preventing iWeb from finding my MM account. Uncheck that box and my site happily updates. Of course, now I have a site that I cannot make private. In this case, not a show-stopper, but disappointing. I have reported it as a bug in the latest version of iWeb. Thanks for your help.

  • Problem in JSP with JavaScripts, which works perfectly in TOMCAT

    The peice of code below works without any problem in tomcat, which assign some values from a form named "frmOffice" which is in another jsp. In 9iAS it seems the values are not found. Also it says 'error on page'. What could be the reason. Please respond as soon as possible. Thanks.
    <SCRIPT Language="JavaScript">
    function Opennewwindow(url,size)
    window.open (url,"Newwindow",size);
    function NewContact()
    var UserID =
    parent.parent.frmMenubar.document.frmOffice.UserID.value;
    var GroupID =
    parent.frmFolderHead.document.fomFolderHead.FolderID.value;
    var intDomainID =
    parent.parent.frmMenubar.document.frmOffice.DomainID.value;
    Opennewwindow('../../modules/contact/Contact_New.jsp?
    UserID='+UserID+'&GroupID='+GroupID+'&Email=&DomainID='+intDomainID,'scrollbars=1,width=680,height=190');
    </SCRIPT>

    Mr. Ahmed,
    Excuse-me by my bad english.
    I experienced the same problem when surrounded my scripts with comment caracters:
    <!--
    < SCRIPT ...
    -->
    If this is your case, simply uncomment it and the script will work fine.

Maybe you are looking for

  • Refreshing the fields in a view

    Hi Gurus, I have a requirement of refreshing the values of fields in custom assignment block when clicked on NEW tab in  WEB UI. If I open an existing campaign and then i click in NEW, then the values of custom fields are not getting refreshed. these

  • HOW TO RESTORE A DISABLED PHONE

    i recently locked my iphone and forgot password. I have disabled my phone and am away from home and can only access itunes from a different computer. Does anyone know how to restore iphone 4 from a new computer? When i plug in it gives me error messa

  • Creating New R3 Fields

    Hello Gurus,                   Regards.Got some characteristics like <b>Thickness,length,width,grade,color</b> referencing to the field "<b>atwrt"</b> in One of the ABAP reports.Now i need to know on whether I should go on to create Seperate Fields (

  • Required SAP IS OIL Material

    Hi Friends I require SAP IS OIL Material , Please help me in gettinbg the Material For TSW & TD. Thanks & Regards Tarakaram

  • Error 0x80070079: The semaphore timeout period has expired

    Whenever I try to copy large files over a wireless network (Laptop > Desktop) I get the following error:- Error 0x80070079: The semaphore timeout period has expired I've done a search on Google and have found that a number of other users are having t