Can't get JSF tags to execute in Visual Editor (JDeveloper 10.1.3.0.3.3412)

Hi,
I have searched this discussion forum for this problem and apparently I can't find any solution / tried a few but none works. I am feeling quite frustrated about this as on Manning's "JavaServer Faces in Action" online extension gave real examples in JDeveloper that looked so attractive, but in reality it doesn't work!
However, I could get 10.1.2 to associate with JSF by following online's howto's, but that would lose all the cool tools that come with 10.1.3 EA...
I would appreciate it if anyone can provide a clue as how to make JSF tags execute in the Visual Editor...

Hi shay,
I discover that the problem was with my JSF source. I was importing from a source file (WAR) that comes with the book "JavaServer Faces in Action", when I import the file and try to open, I get a few exceptions shown on the console window, and the JSF tags were all unexecuted.
And as I create a new JSF file on my own in JDeveloper, everything was fine...

Similar Messages

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

  • I removed cookies and now I can't get into Tagged. How do I undo this???

    I went to Tools, Options, Privacy, and removed all cookies. Now I can't get into Tagged. I don't know what I did different, because I have removed cookies before and this did not happen.

    Thank you so much! You're a genius! :-)

  • Can't get JSF sources from CVS

    I'm trying to download the correct version of JSF to debug a problem I'm having with JSF in Glassfish. I'm using GF v2 b41c, which states that it uses JSF cvs tag: JSF_1_2_GFINT_B17. (See http://wiki.java.net/bin/view/Projects/GlassFishSourcesBundle.)
    When I try to use CVS to get JSF, I get the following error msg:
    "User rickhoro doesn't have <VersionControl - Read> access to project javaserverfaces-sources"
    I'm using the following setup for CVS in NetBeans 5.5.1, but I get the same response with a CVS client.
    Access Method: pserver
    User: <my username>
    Host: cvs.dev.java.net
    Repository Path: /cvs
    Module: javaserverfaces-sources
    Branch: JSF_1_2_GFINT_B17
    Do I need to request access from somebody? I find this strange -- JSF is open source now, correct? Why isn't it available?
    Please help.

    Thanks for detailed info, but still no solution here.
    I downloaded the 1.2_04-p01-b10 source and added the src folders to the Sources tab of the Glassfish v2b41c server in NetBeans 5.5.1.
    I'm using Seam, so I put a breakpoint in SeamPhaseListener.beforePhase(). When I click on the LifecycleImpl.execute() or LifecycleImpl.phase() in the Call Stack tab (of NB) the program counter (ie. cursor) appears on the wrong line -- about 8 lines off from where it should be: (see the following)
                    while (listenersIterator.hasNext())  {
                        PhaseListener listener = listenersIterator.next();
                        if (phaseId.equals(listener.getPhaseId()) ||
                            PhaseId.ANY_PHASE.equals(listener.getPhaseId())) {
                            listener.beforePhase(event);   [SHOULD BE HERE]      
            catch (Exception e) {
                if (LOGGER.isLoggable(Level.WARNING)) {
                    LOGGER.warning("phase("
                                   + phaseId.toString()  [SHOWS UP HERE INSTEAD]
                                   + ','
                                   + context
                                   +
                                   ") threw exception: "
                                   + e
                                   + ' '
                                   + e.getMessage()
                                   +
                                   "\n"
                                   + Util.getStackTraceString(e));
                }I assume that these JSF sources do not match the binaries used by this Glassfish implementation. Is there any other reason I would be seeing this mismatch? Makes it pretty near impossible to debug the problem. Please, I would really appreciate further help here.
    Thanks very much,
    Rick

  • Can't get JSF to access managed bean methods from web page

    I'm using NetBeans 6.7.1 and Glassfish v2.1
    Having problems here can somebody please help? It is really
    frustrating because I have written apps like this before in fact I
    used one as a model to create an even simpler app and still can't get
    it to work. I ran it through the debugger and it stops in the
    constructor so it looks like the bean object is being created, but the
    setUid method and the testit method are not being entered when I click
    on the enter commandbutton. Can somebody PLEASE give me an idea as to
    what might be going on? I am totally stumped and this is holding up
    some important work I need to get done. Any help would be greatly
    appreciated:
    web.xml:
    - Show quoted text -
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>faces/welcomeJSF.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    faces-config.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <managed-bean>
    <managed-bean-name>testbean</managed-bean-name>
    <managed-bean-class>com.lingosys.quoteest.testbean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/go.jsp</from-view-id>
    <navigation-case>
    <from-outcome>correct</from-outcome>
    <to-view-id>/ok.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    go.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%--
    This file is an entry point for JavaServer Faces application.
    --%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>JSP Page</title>
    </head>
    <body>
    <f:view>
    <h1>JAS Generator</h1>
    <p/>
    <h:form id="testForm" enctype="multipart/form-data" >
    <p/>Both fields are required.
    <p/>Enter Test ID: <h:inputText id="pid"
    value="#{testbean.uid}" required="true"/>
    <p/><h:commandButton value="Enter"
    action="#{testbean.testit}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    testbean.java:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.lingosys.quoteest;
    * @author mphoenix
    public class testbean {
    private String uid;
    public testbean() {
    int x=0;
    public String getUid() {
    return uid;
    public void setUid(String uid) {
    this.uid = uid;
    public String testit() {
    return "correct";
    }

    MikePhoenix wrote:
    enctype="multipart/form-data"
    Why?
    Oh, in the future please post code in code blocks. Use the CODE button to get them. Use the Preview tab to see if anything went right.

  • Can't get JSF scriplet value.

    Hi all...
    I have a problem here when i'm applying EJB with JSF.
    Here is my code.
    EJB project
    package com.ejb;
    import javax.ejb.Remote;
    @Remote
    public interface daoCalculator {
         String getMessage();
    package com.ejb;
    import javax.ejb.Stateful;
    import com.ejb.daoCalculator;
    public @Stateful
    class daoCalculatorBean implements daoCalculator {
         public daoCalculatorBean() {
         public String getMessage() {
              if ((Math.random() * 10) > 5) {
                   return "Hello EJB World~!";
              } else
                   return "THis is not 0 !";
    _This is the JSF managed bean_
    package com.web;
    import javax.faces.event.ActionEvent;
    import com.ejb.*;
    import javax.ejb.*;
    * @author samuel
    public class intCalculator {
         @EJB (name="daoCalculatorBean/remote") private daoCalculator cart;
         String text;
         String text2;
         String text3;
         public intCalculator() {
         /*     try {
                   InitialContext ctx = new InitialContext();
                   cart = (daoCalculator) ctx.lookup("daoCalculatorBean/remote");
              } catch (Exception n) {
                   System.out.println(n);
         public String getText3() {
              return text3;
         public void setText3(String text3) {
              this.text3 = text3;
         public String getText2() {
              return text2;
         public void setText2(String text2) {
              this.text2 = text2;
         public String getText() {
              return text;
         public void setText(String text) {
              this.text = text;
         public void present(ActionEvent e) {
              text = cart.getMessage();
              text2 = cart.getMessage();
    }In my web-page(presentation layer), I'm able to get EJB function's value.
    But i can't use scriplet to retrieve "#{intCalculator.text3}".
    This is weird, because i can get this value if just apply Dynamic Web Project without EJB project.
    Did anyone face the same problem? Please kindly advice or share experience.
    Thanks in advance :)

    Hi...
    I think i shall explain my program.
    Actually I'm trying to implement JSF + EJB together.
    Initially, I just implement JSF and everything works fine. In managedBean (using session scope), i can create getter & setter with functions also and these items are retrievable in my JSP page with scirplet only ---> "#{managedBean.variableORfunction}"
    But this no longer happen with I implement EJB into it.
    here is the extra code for JSP side.
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <f:view>
         <h:panelGrid border="1" columns="2">
              <h:outputText value="1st"></h:outputText>
              <h:inputText value="#{intCalculator.text }"></h:inputText>
              <h:outputText value="2nd"></h:outputText>
              <h:inputText value="#{intCalculator.text2 }"></h:inputText>
              <h:outputText value="3rd"></h:outputText>
              <h:inputText value="#{intCalculator.text3}"></h:inputText>
         </h:panelGrid><h:form>
              <h:commandButton value="Press Me Pls~!" actionListener="#{intCalculator.present}"></h:commandButton>
              <h:commandButton value="Go Next Page~!" action="welcome"></h:commandButton>
         </h:form>
    </f:view>
    </body>
    </html>Usually if we implement only JSF, then intCalculator will be in the managed bean, text, text2, text3 will be in intCalculator with getter & setter. And in JSP page as above, we just need to place as above code. When the button "Press Me Pls~!" is trigger(press), then it shall redirect to the same page(because as above this button does not direct to any other page) and show the above text,text2 and text3 values right? (I mean if i just implement JSF only).
    Example:- if i type as below (ps: This is only with JSF)
    text = "Hello"
    text2 = "EJB"
    text3 = "JSF"
    then, it shall display in the textfields with the above values.(because it already store in intCalculator managedbean when button is pressed)
    But the problem occur when i implement EJB + JSF together. (ps: EJB + JSF)
    the managedBean seems like lost function. It couldn't store the value into the getter & setter in my managedBean.
    Fyi, I can call the function from sessionBean(EJB). (just try to prove that JNDI lookup is well done)
    I suspect the sessionBean(EJB) already created a sessionID and cause the managedBean session scope does not performing well. Is this possible? Is there any better approach for this solution?
    THanks for all of your time =D
    Do share experience if meet this kind of cases before. =D

  • How can I get Category, Tags info into new PC?

    Old PC (Vista) crashed - the most recent backup was a system backup - it was not a Catalog backup utilizing PhotoShop Elements 6.  However, I have a PSE 6 catalog backup done 6 months prior.  But, can I get the more recent info from a Catalog folder?
    On my new PC(Windows 7), loaded PSE 6, restored my 12,000 photos from the system backup file.  None of my category, tags are listed in the Pane on the right side in my Photo Browser.  Can I copy a catalog folder from the program files to bring those settings into my new PC? If so where do I copy it to?

    I want to know if I can utilize the program file
    that would be more current with category, tag settings; copy it into my PC and have PSE 6 utilize it for the settings?

  • Question:  Can I get collections/tags back?  Hard drive crashed - saved

    Help!
    My computer crashed but before it did I was able to back up all the photos in my Adobe Photoshop Album Starter Edition 3.2 to an external hard drive as well as to a disk.
    I now have a new computer, running Vista.
    I opened Adobe and all of my collections and tags are lost.  I have over 1000 photos and had them all tagged and in collections.  This is a huge loss.  Is there any way to get my tags and collections back?
    I'm just sick over this...........They are photos organized by family groups for a family reunion.
    The names and captions did show up.
    I'd appreciate any help I can get!
    Shari

    It is the users responsibility to maintain a backup of their files.
    If you have failed to keep a backup, that is not good.
    If the content is on your iDevice and it was purchased via iTunes, connect the device (DO NOT SYNC) then select File > Transfer Purchases.
    If the content is on the device but was not purchased via iTunes, you're out of luck mostly.  Do a google search, you can find utilities that will allow you to extract the content.
    If you are in the US and running iTunes 10.3 or later, there is an option to redownload previously purchased iTunes content.  To do this, in iTunes select Purchased, then at the bottom select Download Previously Purchased.  There are options for Music, Apps, and iBooks.  Select the "Not in My Library" option and download what you want.

  • Can I get html tag info through actionscript?

    Hi,
    I want to know if there is any way to get the html tag info
    through
    actionscript when the swf file is played in a web browser?
    for example, if the html snippet is:
    <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    src="my.swf" />
    can I get the 'name', 'id' attribute value of this html tag
    from my.swf
    through actionscript? or is there any other way? I know
    actionscript can
    call functions in the html page, but that cant' help me get
    the 'name',
    'id' attriubte value of the html tag.
    Any suggestion is highly appreciated, thanks in advance.

    Great! thanks, I will take a try of this.
    Gorka Ludlow wrote:
    > Use FlashVars:
    >
    > <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    > src="my.swf" FlashVars="id=99&name=xx" />
    >
    > This will make two variables available at the main
    timeline of your movie.
    >
    > Cheers,
    > Gorka
    > www.AquiGorka.com
    >
    >

  • Can't get FCKeditorAPI to load to validate HTML Editor contents

    I have an HTML Editor item on my page and wanted to quickly check the length of the text in the editor before submitting the page. It should be possible to get the contents of the HTML Editor using the FCKeditorAPI, but I can't get it to load. I'm doing this by putting basically this in the HTML header:
    <script type="text/javascript">
    function checkLength() {
    var oEditor = FCKeditorAPI.GetInstance('MY_EDITOR');
    alert(oEditor.GetXHTML.length);
    </script>
    Then calling the function when the Save button is clicked. I'm only geting "FCKeditorAPI is not defined" errors, however.

    Hi,
    I have the same problem, because I want to check the number of characters in the editor field before the values are stored.
    And when I tried to get the value of the fckeditor field with document.getElementById(XXX).value; I don`t get the actual value.
    So I have to get the value through the instance of the fckeditor.
    Thanks for your help,
    Tim

  • Custom taglib: tags not rendered in visual editor

    Hi!
    I have created a custom tag library with jsf tags. I have created one tag that extends the CoreSelectOneChoiceTag. When I drag this tag on a page, at runtime it works completely as desired.
    Only, in the visual editor the tag is invisible. With the tag library properties I have specified that the tags should be executed. In the source and structure windows the tags is visible (of course).
    What influences how a tag is rendered in the visual editor, and what content is rendered?
    Jeroen van Veldhuizen

    I know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
    Re: ADF Faces tutorial/code sample for data table?

  • JSF Page Template error in Visual Editor

    Hi!
    I've developed a jsp page template with an attribute called BackingBean. This attribute is a mypackage.view.BackingBeanTemplate class and it works perfectly when I open the template in visual editor.
    When I create a new JSF page using my jsf page template and fill attribute BackingBean with a class that extends mypackage.view.BackingBeanTemplate, the visual editor send me the following error in Messages - Log:
    WARNING: A problem was encountered executing the page. Using fallback rendering.
    javax.el.PropertyNotFoundException: The class 'oracle.adf.view.rich.component.fragment.UIXPageTemplate$AttrMap' does not have the property 'BackingBean'.
    When I run my jsf it works perfectly. Just in visual editor it doesn't render my page.
    Can I use only primitive types and wrappers (String, Boolean, Integer, etc) in jsf template pages?
    Anybody could help me?
    Thanks
    Gleber

    Hi,
    actually i used a template that references a type DCIteratorBinding using EL and this works fine. So there is no limitation in the type you pass as an argument. My assumption is that the IDE doesn't instantiate super classes, which is why the property is not found. Does the subclass call super() in its constructor? Anyway, feel free to file a bug
    Frank

  • Can't get jsf working on OC4J

    Hello,
    I have been trying to get the jsf examples to run OC4J 10g Preview 2. I deployed the jsf-cardemo war file, changed the application.xml and http-web-site.xml. I think the problem is with the taglibs for basic html and jsf core. In the web.xml, I added taglib tags to point them to web-inf/tld.
    I am getting error message java.lang.ClassCastException
    at chooseLocal2e_jsp._jspService(_chooseLocal_2e_jsp.java:51)
    SRC:/chooseLocale.jsp:50
    Line 50 of the file is f:loadBundle basename="carstore.bundles.Resources" var="bundle"
    Please help me get this working properly.
    Thanks
    Twanna

    U must create new project from existing source or from war file, and then delete from your WEB-INF/lib folder jsf-ri.jar and standard.jar and then include in project properties-->Library .. Add JSTL library in your project. You also can find example on address:
    http://otn.oracle.com/sample_code/products/jdev/10g/jsf/index.html
    Good luck!

  • Can't get standard tags to work

    Hi all!
    I just started to learn jsp and now try to study standard tags.
    I'm using jdk 1.4.2_01
    New tags 1.1 (from Apache) and Tomcat 5 beta.
    My problem is that <c:choose> <c:when> <c:if> and <c:otherwise> tag's bodies are always evaluated. Also <c:out> does not work if i use
    ${myvar} - only out.print(myvar) or <%= myvar /%> are working.
    Here my very simple jsp code:
    <%int randNumber = rand.nextInt(12);%>
    <c:set value="${randNumber}" var="randNumber" /> //I'm not yet sure     whether it's right
    Random is: (does not work)
    <c:out value="${randNumber}">
       ${randNumber}
      </c:out>
      <br>
      <hr>
    Test random:
      <c:if test="${randNumber>7}">
       Random is greater than 7.  //gets printed
       </c:if>
       <br>
      <hr>
       <c:choose>
       <c:when test="${randNumber>7}">
          <c:out>
          Random is greater than 7.//gets printed
          </c:out>
          (<%  out.println(randNumber); %>)<br>
       </c:when>
       <c:when test="${randNumber<7}">
       <c:out>
             Random is lesser than 7.//gets printed
       </c:out>     
           (<%  out.println(randNumber); %>)<br>
       </c:when>
       <c:otherwise>
       <c:out>
       The random is exactly 7.//gets printed
       </c:out>
       </c:otherwise>
       </c:choose>Here is output:
    Random is: (does not work) Test random: Random is greater than 7.
    Random is greater than 7. (6 )
    Random is lesser than 7. (6 )
    The random is exactly 7.
    Can anybody tell me what's the matter?? :-(

    I figured out most of it exept for how to set value in a map.
    <%
    Map map = new HashMap();
    map.put("Mon", "Monday");
    map.put("Tue", "Tuesday");
    map.put("Wed", "Tuesday");
    map.put("Thu", "Thursday");
    map.put("Fri", "Friday");
    map.put("Sat", "Saturday");
    map.put("Sun", "Sunday");
    %>
    //I can get value like this:
    <%= ((Map)pageContext.findAttribute("map")).get("Wed") %>
    //or like this
      <c:out value=" ${map.Wed}"/>
    //this does not work:
    <%--
      <c:set value="Wednesday" target="map" property="${map.Wed}" />
    --%>I looked everywhere but it supposed to be so self-evident that details are found nowhere.
    Please tell me how to do it, because I'm stuck here. I'm dumb.
    :-)

  • How can I get a hotspot to execute a command?

    I have created a set of hotspots on a map and would like to get them to execute the following when clicked:
    </select><input name="selMarket" type="hidden" value="2,3">
    Also, once clicked is there a way to visually indicate that the hotspot has been selected?
    Is this possible? if so how?

    Thank you for your suggestion but it when i modify the hotspot tag the values do not seem to be included in the query:
    <img src="images/BullseyeMap.gif" width="1125" height="518" border="0" usemap="#Map" />
    <map name="Map" id="Map">
    <area onclick="document.frmEmailExport.selMarket.value='2','3'" area shape="poly"  coords="67,498,524,501,516,471,522,455,513,448,500,444,505,436,511,429,512,421,511,411,52 1,402,547,390,547,385,546,375,545,366,536,360,533,354,529,351,531,343,535,335,540,330,534, 321,521,317,504,317,366,359,312,373,300,367,291,361,289,356,287,346,283,344,282,335,276,32 8,67,496,66,492,78,469,102,465" href="" >
    However, if I enter the <input name="selMarket" type="hidden" value="2,3"> anywhere above or below the hotspot the query will include the values. This, though,is not what I am trying to achieve. I would like to include the values only when the hotspot is clicked. I have tried including the area onclick statement at the beginning and the end of the tag with the same results. I have tried it with only 1 value to no avail. I am at a loss.

Maybe you are looking for

  • Error while deriving the currency from table

    i am getting the below error while simulating the payroll for india. Error while deriving the currency from table T001P & Error during Initialization of payroll. i am SAP HCM Trainee.. practicing at home.

  • Export to word/text file

    How to i export a html db report into .doc or .txt file. Once exported this file should be editable. Thanks a lot sudha.

  • Reports 6 - Print Formatting Issues

    If our default printer is 'HP Laser1' and we send a bitmap Reports 6 report to the previewer (where page 1 gets formatted so you can see it) and then change the printer from the previewer to 'Genicom Printer', page 1 will be formatted properly, but t

  • Anyconnect Secure Mobility Client on UC540

    Hi everybody, does anyone know if it´s possible to establish a connection with a Anyconnect Secure Mobility Client directly to an UC 540? I tried using a normal Cisco VPN Client from a Windows Desktop which works fine. Now I´m trying to connect a Ciu

  • IdeaPad S10-3 Linux Wake-up from stan-by problem

    can not get wake up my IdeaPad from Stand-by Bios v.37 Ubuntu 11.04, 11.10 all affected. Other versions same. Netbook goes to standby and after I press any button HDD and cooler starts but nothing else happen, screen remains off. I have waited severa