"Errors on page" with simple JSF page

Hi
I wrote a very simple JSF page as shown below. It works as is with MyFaces. Now I tried to make it work with Sun RI as well.
Here's the problem: The page appears perfectly fine (it shows two columns of links). Only one single link works, though: the first one in the left column.
When I click on that first link, the action handler method ("userClick") is called and executed fine.
But when I click on any other link, the method is not called at all. All I get is an "error on page" message in the browser status bar. No log message on the command line or log file.
Am I doing something wrong? With MyFaces it works fine.
===============================
Here's the page:
===============================
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
     <f:loadBundle basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle" var="bundle" />
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     <html>
          <head>
               <title><h:outputText value="#{bundle.menu_frame}" /></title>
               <link rel="stylesheet" href="style.css">
          </head>     
          <body>
               <h:panelGrid border="1" columns="2" columnClasses="td">
                    <h:dataTable value="#{MenuBackingBean.menuTabItems}" border="0" var="menuTabItem" >
                         <h:column>
                              <h:form>
                                   <h:commandLink action="#{MenuBackingBean.userClick}" >
                                        <h:outputText value="#{menuTabItem.itemName}" />
                                        <f:param name="itemID" value="#{menuTabItem.itemID}" />
                                   </h:commandLink>
                              </h:form>
                         </h:column>
                    </h:dataTable>
                    <h:dataTable value="#{MenuBackingBean.menuItems}" border="0" var="menuItem" >
                         <h:column>
                              <h:form>
                                   <h:commandLink action="#{MenuBackingBean.userClick}" >
                                        <h:outputText value="#{menuItem.itemName}" />
                                        <f:param name="itemID" value="#{menuItem.itemID}" />
                                   </h:commandLink>
                              </h:form>
                         </h:column>
                    </h:dataTable>
               </h:panelGrid>
          </body>
     </html>
</f:view>
==================================
Here's the faces-config
==================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config >
     <application>
          <locale-config>
               <default-locale>en</default-locale>
               <supported-locale>en</supported-locale>
               <supported-locale>de</supported-locale>
          </locale-config>
          <message-bundle>ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle</message-bundle>
     </application>
     <managed-bean>
          <managed-bean-name>DetailsBackingBean</managed-bean-name>
          <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.DetailsBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <managed-bean>
          <managed-bean-name>MenuBackingBean</managed-bean-name>
          <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.MenuBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <managed-bean>
          <managed-bean-name>ContentBackingBean</managed-bean-name>
          <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.ContentBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <navigation-rule>
          <from-view-id>/menu.jsp</from-view-id>
          <navigation-case>
               <from-outcome>showDetails</from-outcome>
               <to-view-id>/details.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
               <from-outcome>menu</from-outcome>
               <to-view-id>/menu.jsp</to-view-id>
          </navigation-case>
     </navigation-rule>
     <navigation-rule>
          <from-view-id>/details.jsp</from-view-id>
          <navigation-case>
               <from-outcome>showMenu</from-outcome>
               <to-view-id>/menu.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
               <from-outcome>showContent</from-outcome>
               <to-view-id>/content.jsp</to-view-id>
          </navigation-case>
     </navigation-rule>
     <navigation-rule>
          <from-view-id>/content.jsp</from-view-id>
          <navigation-case>
               <from-outcome>showMenu</from-outcome>
               <to-view-id>/menu.jsp</to-view-id>
          </navigation-case>
     </navigation-rule>
</faces-config>
=======================================
I don't think I need to show the backing bean with the userClick() method since the error is that this method is not even called (I added a system.out.println() to this method - which is never executed)
So the problem must be before
BTW I am using Sun RI 1.1.01 as shipped with the MyEclipseIDE extensions.
Thanks a lot for your very much appreciated help
scrut

The problem is that you have two forms. Put a single form.

Similar Messages

  • Including a JSP page into a JSF page

    Hi !!
    I have read some posts here about <f:subwview>. There says to use:
    <f:subview>
       <jsp:include page="somepage.jsp"/>
    </f:subview>But it does not work.
    How can i include a jsp page into a JSF page?
    Thanks !!!

    Hi,
    Replace <jsp:include page="somepage.jsp">
    with <%@ include file="datasetView.jspf" %>
    See thread: http://forum.java.sun.com/thread.jspa?messageID=3413354&#3413354

  • How do I pass input values from a html page to a jsf page

    hi,
    In my project,for front view we have used html pages.how can I get input values from that html page into my jsf page.for back end purpose we have used EJB3.0
    how can I write jsf managed bean for accessing these entities.we have used session facade design pattern and the IDE is netbeans5.5.
    pls,help me,very urgent
    thanx in advance

    Simplest way is to rewrite html page into jsf page.
    You can use session bean in your managed bean like this:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class ManagedBean {
    private Context  ctx;
    private Object res;
    // session bean interface
    private Service service;
              public ManagedBean() {
                try{
                     ctx = new InitialContext();
                     res = ctx.lookup("Service");
                     service = (Service) res;
               catch(Exeption e){
    }Message was edited by:
    m00dy

  • Replace the standard page with the customised page.

    how to Replace the standard page with the customised page.?

    Hi,
    I am not cleared with your requirement. However u can try this:
    Check if your standard page is attached with some function.
    You can then create a new custom function, attach that with the same responsibility as that of standard one. Thus u can access your custom page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error in running a simple JSF app developed in Jdeveloper over weblogic

    I have a developed a simple JSF application using Jdeveloper 11g.
    To this application i have added a webservice proxy which generates the proxy client which communicates with the peoplesoft webservice.
    when i run the standalone proxy class, it is able to connect to the webservice and get the required data.
    But as i deploy the whole JSF application (where the managed bean calls a method in the client) in Integrated weblogic server, i get an XMLStreamReaderException.
    To debug this issue i deployed the war file in apache-tomcat6.0.26 with all the reqquired libraries in the Lib folder, it actually worked , my jsf application was able to get the data from the webservice.
    This makes me think that there is some problem in the way Jdeveloper is packaging the application.I have added all the lib & jar through "libraries &classpath" setting on project properties.But i am sure there is some problem in this process.
    I just need some help in understanding how to package an application,how to make sure all lib & jar are included in the war file??
    Any help is appreciated.
    The error i get in the weblogic is
    com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    avax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227
    thanks in advance
    Ash

    HI
    First of all, how do you concluded that you're dealing with packaging problem?? It seems problem is in response from web service. The toolkit you have is not able to parse the soap response. Tomcat solves problem probably because of the different jars he has for web service client.
    In either way, i have personally experienced problems with JD packaging (11g). The WAR created by JD was working well in embedded WLS shipped with JD, but when deployed to production WLS 10.3.1, i got a "IO exception; premature end of file". The only solution was to create a WAR by ant.
    Here is ANT sample script for building java classes, packaging into war, deploying to WLS (for this last one, you need to reference external jar):
    <target name="build">
    <!-- compile -->
    <javac debug="true" debuglevel="${debuglevel}" source="${source_version}" target="${target_version}" destdir="${output.dir}">
    <src path="${src.location}"/>
    </javac>
    </target>
         <target name="war" depends="build">
    <delete file="${target_war_file}"/>
    <war destfile="${target_war_file}" webxml="src/WEB-INF/web.xml" manifest="/src/META-INF/MANIFEST.MF" update="true">
    <classes dir="${output.dir}"/>
    <lib dir="${build_libs.location}">
    <include name="**/*.jar"/>
    </lib>
    <!-- include important jsf files files -->
    <zipfileset dir="${path.to.conf.folder}" prefix="WEB-INF">
    <include name="adfc-config.xml"/>
    <include name="trinidad-config.xml"/>
    <include name="web.xml"/>
    <include name="weblogic.xml"/>
    </zipfileset>
    </war>
    </target>
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="c:/oracle/wlserver_10.3/server/lib/weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="deploy">
    <wldeploy action="deploy" verbose="true" upload="true" remote="true" debug="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}"
    targets="${wls.targets}" securitymodel="CustomRoles" source="${target_war_file}" nostage="false"/>
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" verbose="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}" targets="${wls.targets}" failonerror="false"/>
    </target>
    <!--     properties for deploy
         wls.targets=DefaultServer
         wls.user=weblogic
         wls.password=weblogic1
         wls.app.name=myapp
         wls.admin.url=t3://127.0.0.1:7101
         -->
    Regards

  • Import multiple Word docs to multiple pages with same master page?

    Hi, I should start by saying I have no scripting experience.  However, I am wondering if there is a simple script available for the following issue:
    I have set up a master page with three linked text boxes. Right now, I use Cmd+D to select a word file, and then Shift+click in the first box to place the text on the page. But I have 125 pages that are exactly the same layout, just different Word files to be imported. I could repeat this process 125 times, but I am wondering if there is a way to tell InDesign to create 125 pages using Master Page X and import one file for each?
    I am using InDesign CS5 v 7.0.4 on Mac OSX Snow Leopard v 10.6.7
    Thank in advance for any help you can offer,
    NW

    I was able to import the word documents as long as there was only one text frame on the master page. However, when I created multiple text frames (the text in the word document needs to flow from frame 1 to frame 2), it always imported into frame 2 and skipped frame 1. In case it is helpful to understand what I mean, I attach two screenshots. The first (sans text) is the master page, and the second is Page 1 after running the script. I added the labels Frame 1 and Frame 2 to Page 1, not the Master, because otherwise the text gets imported into the frame with the words "Frame 2". I suspect I have to label the frames in InDesign and then add something to the script that says insert into the Frame 1, but I'm not sure how to do that.
    It wasn't clear from your narrative in June that the text frames were linked, and that the text needed to flow between frames.
    The script, as implemented, only overrides one text frame, (textFrames[0],  which is the top-most text frame in the stacking order), and then places the text in it. Clearly that's not correct for your scenario.
    You mention 3 frames but only mention flowing between 2 frames.
    Anyhow, it sounds like you want the script to override all 3 text frames, and then to place in the first textframe.
    The first is easy, the question is really what should happen when there are more than 3 text frames -- should it override all text frames, or only some. You could specify which ones with a Script Label, or you could do something more clever. For the moment, let's just override all text frames.
    Then you have to specify which one to place into. You could just select the frame you want and Arrange > Bring To Front. Or we could specify frames[2], which should be the 3rd-from-the-top (after frames[0] and frames[1]). I'll do the latter, but feel free to keep the script the same and do the former:
    var
        d=app.activeDocument,
        p=d.pages,
        i, frames;
    for (i=0; i<p.length; i++) {
        frames = p[i].appliedMaster.textFrames.everyItem().override(p[i]);
        frames[2].place(new File("/path/to/page"+p[i].name+".doc"));

  • Loading page animation while JSF page is being loaded

    JSF 2.1
    Mojarra 2.1.7
    JBoss 7.1.1
    The backing bean on my JSF page(s) are view-scoped, and during the initial request, the backing bean's @PostConstructor method may take some time to return as it is calling external systems that are outside of my control. Thus, during the RENDER_RESPONSE phase of the initial request to the JSF page, it may take, on average, 3 to 5 seconds to return ( sometimes longer than that .... which again, is outside of my control ). While this is happening, the page rendered is of course blank as the response has not been written yet.
    Naturally, I am thinking of a way to show an animated loading image.
    1) I have seen suggestions of using a4j:status and a4j:region, but these are only valid for Ajax requests, while what I need is something that I can use during the initial request ( not a post back ), of a JSF lifecycle.
    2) Suggestions of using two HTML divs... one DIV shows the animated image while the other DIV wraps the real content, but is initially hidden. Then use window.onload() to swap the style of the two DIVs so that the DIV wrapping the real content becomes visible while the DIV wrapping the animated image becomes hidden.
    But then again ... these DIVs will NOT be written to the response yet as I am still in RENDER_RESPONSE phase.
    The only thing that I can think of is to:
    3) Create another page whose sole purpose is to show the animated image, then somehow immediately forward the request to the real page. The animated image on the first page will hopefully continue animating until the final page is rendered.
    What have you guys done ?

    jmsjr wrote:
    gimbal2 wrote:
    3(alt)) show a view which displays the animation and then triggers the long-loading page to be requested (no forward). The long-loading page does not generate any response until there really is something to show, to keep the animation view visible.
    This was the simplest solution by far .. although there are some quirks to be deal with when using IE.As usual :/ It remains a questionable product no matter how many times they reinvent the wheel.

  • Need to restrict the form into one page with out second page in SAP Script

    Hello Friends,
    I have a query in SAP script form, I had created one form for confirmation request for FI, i had copied the standard form F130_CONFIRM_01 and made the changes as per the requirements and checked in f.17 which was perfect. I had removed all the lines except wherever the changes i had made in the form.
    Here iam getting one problem, when iam printing the confirmation request it should give me in one page but here iam getting two pages of which one page iam getting the complete information and the second page iam getting the empty page.
    It should not give the second page. i also checked by giving the condition if &page& eq 1  but no difference iam getting two pages.
    Pl. let me know how to solve this problem since this is very very emergency issue.

    Hi Mark,
                  If i am not wrong is this Tcode for customer/vendor balance confirmation? In the standard script that u mentioned, the first page id the letter, and the second page contains the balance sheet.You would not be able to restrict the blank pages from coming, coz there are in all three scripts configured for the TCode F.17, so the blank pages are bound to come, even if the conditions for pages are maintained. I have faced similar problems in my development too....
    Thanks & Regards
    Nayan
    SAP Consulatant.
    Reward with points if useful

  • Is there any way to to have the "Home" icon open a new tab instead of replacing the current page with the home page?

    I would prefer that the "Home" icon on the Navigation Toolbar open a new tab instead of replacing the current tab with the home page. Is there any way to accomplish this?
    Thank you.

    If you middle-click on the home icon it will open a new tab containing the home page.

  • Loading another jsf page from current jsf page

    Hello,
    I would like to add a button and then write logic to load another jsf page when the button is pressed
    Any sample code can be referenced?
    Thanks

    This is well documented in http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_navigate.htm
    Timo

  • Two Master pages with two design pages

    Hi All;
    I need a help in the below scenario;
    - I have two Master pages wid different header title and other information which I required for two different body pages.
    I need to assign the 1st master page with all content of first page data (both design pages will display table data).
    so the first page display should start with 1st master page  and 1st body and after finishing the content of first table..
    2nd master and body page starts with the content of 2nd table..
    The issue is I am getting one extra page when I am checking design pages
    Please let me know your valuable suggestion.. Helpful answer will be highly appreciated !!!
    Regards
    Devraj
    Edited by: Dev on Aug 20, 2010 4:36 PM

    HI Otto,
    I am also facing similar problem,
    I too hv 2 master pages and 2 body pages respectively.
    first master page assigned to first body page
    and second master page assigned to second body page.
    But still i am able to view one extra body page in my design view.
    Kindly help.

  • Printing blank page with every printed page

    I have a C7280 printer, and it has been working fine.  However, it now sends out one blank page for every printed page.  any ideas on why this is happening and how to fix it? 
    thanks.

    HI,
    You might try using this print diagnostic utility to see if it helps solve your problem.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-82717-1&lc=en&dlc=en&cc=us&...=
    There are several solutions within the utility that fixes several printer issues.
    Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
    I am employed by HP

  • How do I replace my index (Home) page with a new page?

    My iWeb site has a "Home" page as it's default index page. I renamed the page "Home4" and created a new "Home" page in hopes that the new page would become the default page. Nope, it still goes to "Home4".
    Next, I tried deleting Home4, now I just get an error message when trying to go to the site.
    I should mention that I deleted the Home4 page through the MobilMe website, not in iWeb. I see that there is an index.html file in the site directory which I "assume" is a redirect to what iWeb considers to be the "Default" page. But, I see no way to edit or even view the contents of the index.html page.
    How do I create/replace an index page?
    Message was edited by: GoldwingTX

    Bonjour
    Your new home page need to be the first one at the top of the sidebar of iWeb.
    Publish
    iWeb will build a new index.html which redirects to the new home page
    Safari > menu bar > Safari > Clear the cache of your browser before visit your website

  • I am trying to use the embed tag - to embed an html page with in a page embed src="page.html" /

    <pre><nowiki><!DOCTYPE HTML>
    <html>
    <body>
    <embed src="page.html" />
    </body>
    </html></nowiki></pre>

    The <embed> tag works in Windows IE 9, and Opera, Now! But not in Firefox yet. Whats up with that? I guess we will see who is going to be left behind.

  • How change default hom page with my application page

    Default home page is open with link http://localhost:8080/apex/ .
    I need to type http://localhost for open open my application .
    Thanks,

    Another option since Oracle10g XE does not come with Apache, you can replace the License page (index.htm) with this HTML code to automatically route you from http://localhost to http://localhost/apex/
    <HTML>
    <HEAD><META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://localhost/apex/">
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    You do this by replacing the index.htm found in the base directory when you ftp to the XE database. Also, to change the port from port 8080 to port 80 run
    SQL> exec dbms_xdb.sethttpport(80);

Maybe you are looking for

  • Using external drive between PC and mac

    My mp3 files are all in an external drive used on a windows computer, connected by USB. If I were to get a mac, would I be able to copy those files into the hard drive of the mac?

  • Packages in 9i

    I am getting the following error while importing a DMP file exported using 9.02 to 9.0.1.1.1 and the import fails. import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set export client uses EE8MSWIN1250 character set (possible cha

  • Workshop 8.1 sp2 bug?

    The following codes works fine in sp1. But it failed because the userManagerControl was null in sp2. In order to get the code work again, I have to comment the session.invalidate(); codes. If a session exists there, it has to be invalidated to avoid

  • Updated a shared photo stream

    After sharing a photo stream with a non-iOS user and then I add new photos to the same shared stream, do the individuals I am sharing with get another email to inform them of the new photos that were added to the shared photo stream?

  • Indesign CS6 Training

    I am looking for anyone around Knoxville area that would be willing to do one-to-one Indesign CS6 training. I have the book and the CD but still need some extra assistance. I would also be willing to do online (via video).