Javascript4java MyFaces problem

Hi, I'm running MyFaces on WAS 5.1
I dropped the j4j jar into my WEB-INF/lib directory, and I get a message saying:
[8/27/04 11:43:15:958 CDT] 362c362c HtmlRenderKit W net.sourceforge.myfaces.renderkit.html.HtmlRenderKitImpl Unsupported component-family/renderer-type: javax.faces.Output/org.j4j.idProxy
Also, we're having a rendering issue with IE. The proxy tag renders the following output:
<span id="facilityCheckBox_" title="orgGeneral:contentinclude:contentForm:content:facilityCheckBox" />but IE wants a closing span tag. I'm not sure if this is a big deal to fix or not, but it would help us out.

can any one provide an example to implement tree view through JSF. I am new to JSF and has tried the sample that comes with JSF-1_1, but it is giving me the following error:
19:41:15,442 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: javax.faces.Output/Stylesheet
19:41:15,442 INFO [[first-jsp]] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /menu1.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: javax.faces.component.UIOutput,Id: _idJsp1]} (component-family=javax.faces.Output, renderer-type=Stylesheet)........
19:41:15,505 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: Graph/MenuBar
19:41:15,505 INFO [[first-jsp]] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /menu1.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: components.components.GraphComponent,Id: menu3]} (component-family=Graph, renderer-type=MenuBar)
19:41:15,505 WARN [UIComponentBase] No Renderer found for component {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /menu1.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: components.components.GraphComponent,Id: menu3]} (component-family=Graph, renderer-type=MenuBar)

Similar Messages

  • Issues with duplicate IDs - maybe a MyFaces problem but not sure

    I've been having a heap of trouble getting the DataScroller object working. It simply refuses to allow me to have facets. It works perfectly fine in the examples but not in my page. I'd really appreciate it if anyone can help me out. This thing has been bothering me for days.
    I'm new to JSF so any other hints about how I should write it would be nice for future reference. You know, things like "you should make sure these tags are before these ones" and that.
    The code that causes the error (messages.jsp):
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <f:view>
    <HTML>
    <HEAD><TITLE>Some thing</TITLE>
    <BODY>
    <CENTER>
        <h:panelGroup id="group">
            <h:panelGrid columns="1" id="grid">
            <t:dataTable id="messagedata"
                    var="message"
                    value="#{listMessage.messages}"
                    rows="10">
               <t:column>
                   <f:facet name="header">
                <h:outputText value="Time Transferred" />
                   </f:facet>
                   <h:outputText value="#{message.timeTransferred}" />
               </t:column>
               <t:column>
                   <f:facet name="header">
                <h:outputText value="Purpose" />
                   </f:facet>
                   <h:outputText value="#{message.actionPerformed}" />
               </t:column>
            </t:dataTable>
                <t:dataScroller id="scrollnice"
                        for="messagedata"
                        fastStep="10"
                        pageCountVar="pageCount"
                        pageIndexVar="pageIndex"
                        paginator="true"
                        paginatorMaxPages="9"
                        paginatorActiveColumnStyle="font-weight:bold;">
                    <f:facet name="first" >
                        <t:graphicImage id="theproblem" url="images/arrow-first.gif" border="1" />
                    </f:facet>
                </t:dataScroller>
            </h:panelGrid>
        </h:panelGroup>
    </CENTER>
    </BODY>
    </HTML>
    </f:view>and the error page:
    exception
    javax.servlet.ServletException: Client-id : theproblem is duplicated in the faces tree.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
    root cause
    java.lang.IllegalStateException: Client-id : theproblem is duplicated in the faces tree.
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
         org.apache.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:122)
         org.apache.jsp.messages_jsp._jspx_meth_f_view_0(org.apache.jsp.messages_jsp:132)
         org.apache.jsp.messages_jsp._jspService(org.apache.jsp.messages_jsp:81)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)Thanks in advance for any help.

    Emilio Corsetti wrote:
    Ben,
    That was the problem. The link is live now and you can see the poorly positioned spry menu in all its glory.
    Thanks,
    Emilio
    http://www.emiliocorsetti.com/publish/two_column.html
    You don't say what you want to change.
    If I were styling your menu I would have it vertically centered in the grey background. By adding the red coloured rule found in layout.css
    #menu (line  61)
    background-image:  url("../Images/Layout/nav_bg.jpg");
    background-repeat: repeat-x;
    background-position:  left top;
    width: 960px;
    height: 40px;
    padding-top: 10px; // or whatever suits
    I would also like to have the menu items spread evenly across the page by applying the style rule found in SpryMenuBarHorizontal.css
    ul.MenuBarHorizontal li
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         position: relative;
         cursor: pointer;
         width: 20%; // 5 items X 20% = 100%
         float: left;
    You may have to fiddle a bit more after this to get it exactly the way you want. Just start a new topic because this one has already been answered.
    Happy Sprying.
    Ben

  • Upload myfaces problem, file property is null

    Hi,
    to upload a file in JSF using myFaces i defined the following JSF:
    <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
    <h:form enctype="multipart/form-data">
    <t:inputFileUpload
    id="fileupload"
    value="#{businessCaseAspectBean.upFile}"
    storage="file"/>
    <h:commandButton value="Submit"
    action="#{businessCaseAspectBean.upload}" />
    </h:form>
    - I have defined the filter in web.xml
    <!-- Extensions Filter -->
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filt�er-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    The filter seems to be loaded correctly - jscookmenu working for
    example ...
    The Error:
    the form is submitted, #{businessCaseAspectBean.upload} Action called
    but the #{businessCaseAspectBean.upFile} is always null / the upfile
    Setter is never called...
    i'm just getting crazy with that issue - any ideas?
    Greets,
    Fabio.
    P.S. the bean have a session scope.

    Hi Giubat i'm tryng the example then you have post to me, so i've used Jbuilder 2006 IDE and jboss 3.2.7 AS.
    In my application i've added a folder with this libraries:
    tomahawk1.1.3.jar (myfaces-extensions.jar is old, and i don't have it)
    commons-collection.jar
    commons-digester.jar
    commons-beanutils.jar
    commons-logging.jar
    commons-fileupload1.1.jar
    I'm added a JBuilder folder named JSF, with this libraries:
    jsf-api.jar
    jsf-impl.jar
    I'm added a JBuilder folder named JSTL, with this libraries:
    jstl.jar
    standard.jar
    i'm cut and past from the example, the jsp page, the bean the web.xml and the faces-config.xml.
    But when my application is running (when i'm call the first page) i've this error:
    16:48:20,370 ERROR [Engine] StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
    java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)Z
         at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:110)
         at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)
         at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd(ExtensionsPhaseListener.java:86)
         at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)
         at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:458)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:307)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.josso.tc50.agent.SSOAgentValve.invoke(SSOAgentValve.java:289)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    Any ideas, Sorry for my english and thank for your attention and patience,
    Best regard, Fabio.

  • ADF , MyFaces problem

    Anyone help me on this, Please.
    I got an Error org.apache.myfaces.application.ApplicationImpl - Undefined component type oracle.adf.CoreCommandButton.
    Is there any web.xml that I can follow to make ADF work with Myfaces?
    Thanks

    You need to use at least MyFaces 1.0.8:
    http://incubator.apache.org/myfaces/downloads.html
    -- Adam Winer (ADF Faces)

  • Problems with combination of ADF Faces, Tomahawk, Facelets and MyFaces

    Hello,
    I am trying to combine all things named in the Subject and run into several problems:
    1. ADF Render Kit forces the Tomahawk Components to be rendered in a wrong way or stop there functionality.
    Example 1: The clickable parts of the t:dataScroller Tag can not be accessed because an empty a Tag will be rendered after the outputText.
    Example 2: The t:commandSortHeader Tag can be clicked but the table content will not be sorted anymore.
    The given examples works if i remove the default-render-kit-id element from the faces-config.xml
    2. The ad:table Tag runs into an ClassCastException, only when I put a simple example code snipped into my xhtml file.
    Code snipped:
    <af:table>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Firstname"/>
    </f:facet>
    </af:column>
    <af:column>
    <f:facet name="header">
    <h:outputText value="Lastname"/>
    </f:facet>
    </af:column>
    </af:table>
    The stack trace look like this:
    java.lang.ClassCastException at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer._renderRegularColumns(DesktopTableRenderer.java:1029)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:229)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:79)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:438)
         at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:232)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:255)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:159)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:521)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I followed all steps for the ADF installation and the suggested steps for using ADF with Facelets.
    Used versions:
    - Oracle ADF Faces 10.1.3 Early Access
    - myFaces 1.1.1
    - Facelets 1.1.1
    - oc4j 10.1.2.0.2
    Has somebody try to use these things together, too?
    Thanks,
    Carsten

    Hi,
    Inside our fusion applications(ADF/Webcenter) using combination of JSTL and ADF Faces is good practice or pitfal?
    To suggest a a rule of thumb: Try ADF Faces on-board functionality first before reaching out to JSTL. The difference between JSF in general and JSTL is that the JSTL expressions are evaluated at page compile time wheras JSF expressions are evaluated deferred. This difference may have an impact to PPR refreshes and the data rendering (which in many cases I assume you can fix by setting the ADF Faces component content delivery to immediate instead of deferred). On a training slight I flagged JSTL with a "heads up" alert because of this
    Frank

  • Problem in FIleUpload using myfaces-Tomhawk

    Hi,
    I am facing problem in implementing FileUpload.I am using Tomhawk and did everything as mentioned in the docs.I am getting the following error:
    java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException
         at org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.(MyfacesConfig.java:94)
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:282)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:126)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Any Help is appreciated

    For JSF 1.2 based frameworks you need el-api.jar and el-ri.jar.

  • Problem using myfaces on webLogic

    I run into the problem using myfaces on webLogic 9.1.
    That is... a managedBean's instance is created twice in one page.
    That page is consisted with one <h:inputText> and <h:commandButton>.
    After some tests, we found out that the problems happens in a JSP which has <h:inputText>...
    This problem didn't happen on Tomcat or JDeveloper.
    We tried with another application.
    And oh my goodness, it didn't happen.
    It worked collect with no problems at all.
    The difference between two application is,
    the former managedBean extends abstract class,
    and the latter doesn't.
    Pls help me.....

    It was a program bag rather than weblogic's problem.
    In the program, it deleted all the objects in the session scope.
    So, after JSF render the next JSP, it re-create a managed bean.
    But, I'm still wonder why the same things didn't happen in Tomcat.
    WebLogic put managed bean into the session soon after JSF
    creates it.
    On the otherhand, Tomcat does that after managedbean's action
    is completed???
    Considering the JSF specification, i think weblogic is right.
    Cos,JSF put all the components and related managed bean
    into session, in the rendering phase.
    Thanks for asking anyway.

  • Seriuos problem with myfaces

    I have a menu with item and subitem.
    If a click more that once in the same request on the links of menu, application starts to have an incorrect behaviour and everything can happen!
    Some menu items are lost, and if I go on application stop to answer to my requests and crash.
    I am using the last release of myfaces, so It shouldn't be so buggy!
    I am also using the option
    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
    </context-param>and links have immediate = "true".
    I read that if I pass to client saving method maybe things goes well, but I don't want to have large client page in the browsers.
    I think they should advise me about these big JSF problems.
    Now I develped an application with JSF and maybe I will passo to Struts now, it is not so pretty but it works.
    Some other people found this problems?

    I also had the exact same problem. It happens as soon as you start using the "immediate" property. I tried using the latest JSF RI (1.1) and it also made problems. As soon as I switched to: CLIENT all the problems gone . . .
    I advise you to use CLIENT in the mean time. Then, in the future switch to SERVER.

  • ADF - MyFaces, HttpUnit testing problem with Javascript.

    Dear all
    Does anybody know how to test ADF Faces. Any tool would be of interest to me although Opensource and Free Software is prefered?
    My task is to write a set of unit tests to test an Oracle ADF and Apache MyFaces application. I have attempted to use both Cactus and HttpUnit. However I am struggling with a simple test case which should simulate a login.
    The problem I have is that ADF Faces produces the following dynamic javascript file (I am guessing it is dynamic because I can not find this in either adf-faces-impl-10_1_3_0_4.jar or adf-faces-api-10_1_3_0_4.jar which are the two jars am implementing in my project.):
    Common10_1_3_0_4.js
    Which when parsed by js.jar (Rhino javascript engine) I get the following error:
    com.meterware.httpunit.ScriptException: Event 'submitForm('maincontent:loginForm',1, {source:'maincontent:submit'});return false;' failed: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "split" of undefined at
    com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException (JavaScript.java:202)
    (This file Common10_1_3_0_4.js is over 5000 lines long and so I do not want to post it as this posting is already quite long).
    Downloading the file directly after it has been built and modifying it and fixing the error by ensuring the split function is called on a strongly typed String variable, then commenting out from the web.xml below I tried the HttpUnit test again.
         <servlet>
              <servlet-name>resources</servlet-name>
              <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
         </servlet>
         <!-- servlet-mapping>
              <servlet-name>resources</servlet-name>
              <url-pattern>/adf/*</url-pattern>
         </servlet-mapping -->
    This time I get no error, but the original login page simply gets served again.
    login.jsp (which is called as login.jsf)
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <!-- Content -->
    <af:objectSeparator />
    <af:panelBox text="#{msg['login.info.loginHeader']}" width="100%" background="transparent">
         <af:form id="loginForm">
                   <af:objectSpacer height="10px" />
                   <af:panelGroup layout="vertical">
                        <af:panelForm labelWidth="5%">
                             <!--User Name-->
                             <af:panelLabelAndMessage for="username">
                                  <af:inputText label="User Name:"
                                       id="username"
                             columns="25"
                             required="yes"
                             secret="false"
                             value="#{userBean.userName}"
                             shortDesc="#{msg['global.user.userName']}" />
                             </af:panelLabelAndMessage>
                             <af:panelLabelAndMessage for="password">
                                  <af:inputText label="Password:"
                                       id="password"
                             columns="25"
                             required="yes"
                             secret="true"
                             value="#{userBean.password}"
                             shortDesc="#{msg['global.user.password']}" />
                             </af:panelLabelAndMessage>
                   <af:objectSpacer height="10px" />
                        <!--Login Button-->
                        <af:commandButton id="submit"
                                  textAndAccessKey="#{msg['global.button.login']}"
                                  action="#{userBean.login}" />
                        </af:panelForm>
                   </af:panelGroup>
         </af:form>
    </af:panelBox>
    TestCase LoginTest.java:
    package com.siemens.pse.wmstesting;
    import java.io.IOException;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import com.meterware.httpunit.GetMethodWebRequest;
    import com.meterware.httpunit.WebConversation;
    import com.meterware.httpunit.WebForm;
    import com.meterware.httpunit.WebLink;
    import com.meterware.httpunit.WebRequest;
    import com.meterware.httpunit.WebResponse;
    public class LoginTest extends TestCase {
         * The URL of the Login page for all login tests
         public static final String URL = new String( "http://localhost/WMS/pages/login.jsf" );
    public static void main( String args[] ) {
    junit.textui.TestRunner.run( suite() );
    public static TestSuite suite() {
    return new TestSuite( LoginTest.class );
    public LoginTest( String s ) {
    super( s );
    public void testGetLogin() throws Exception {
         response = new WebConversation( ).getResponse( request );
    // Test the result
    assertContains( response, "Login Management" );
    public void testLoginSuccess() throws Exception {
         response = new WebConversation( ).getResponse( request );
    WebForm form = response.getFormWithID( "maincontent:loginForm" );
    assertNotNull( "No form found with ID 'maincontent:loginForm'", form );
    form.setParameter( "maincontent:username", "admin" );
    form.setParameter( "maincontent:password", "pass" );
    WebLink submit = response.getLinkWithID("maincontent:submit");
    response = submit.click();
    System.out.println( response.getText());
    // Test the result
    assertContains( response, "Welcome to the Temperature Measurement System" );
    * Convenience function that asserts that a substring can be found in
    * the returned HTTP response body.
    * @param theResponse the response from the server side.
    * @param s the substring to look for
    public void assertContains( WebResponse response, String s ) {
         String target = new String("");
         try {
                   target = response.getText(); }
         catch (IOException e) {
              e.printStackTrace(); }
         if ( target.indexOf( s ) < 0 ) {
              // Error showing which string was NOT found
              fail( "Response did not contain the substring: [" + s + "]" );
    private WebRequest request = new GetMethodWebRequest( LoginTest.URL );
    private WebResponse response;
    }

    Dear All
    Well I found the solution to my testing requirements. HtmlUnit is able to deal with the dynamic Javascript that is generated by the ADF Faces application. The strange part is that HtmlUnit uses the Rhino Javascript engine just as HttpUnit and Cactus, however these two could not deal with the javascript whereas HtmlUnit could.
    I include a snippet of a test case that I wrote that now works.
    public void testLoginSuccess() throws Exception {
    final WebClient webClient = new WebClient( BrowserVersion.INTERNET_EXPLORER_6_0 );
    final URL url = new URL("http://localhost/WMS/pages/login.jsf");
    final HtmlPage page = (HtmlPage)webClient.getPage(url);
    // Get the form that we are dealing with and within that form,
    // find the submit button and the field that we want to change.
    final HtmlForm form = page.getFormByName("maincontent:loginForm");
    final HtmlTextInput usernameField = (HtmlTextInput) form.getInputByName("maincontent:username");
    final HtmlPasswordInput passwordField = (HtmlPasswordInput) form.getInputByName("maincontent assword");
    final ClickableElement button = (ClickableElement) form.getHtmlElementById("maincontent:submit");
    // Change the value of the text field
    usernameField.setValueAttribute("admin");
    passwordField.setValueAttribute("pass");
    // Get the submitted form
    final HtmlPage welcomePage = (HtmlPage) button.click();
    assertEquals( "Temperature Measurement System", welcomePage.getTitleText() );
    }

  • Problem in running TreeTable component with Myfaces

    Hi,
    I am trying to run treeTable component of adf with Myfaces.
    The tag is rendered but not functioning properly.
    It shows one level expanded as mentioned below :
    > H1 // H1 has 2 related records
    +> H2 // H2 has 3 related records
    +> H3 //H3 has 1 related record
    but when I click on H2 then It is not expanding.
    Please Help.
    Regards,
    Sachin

    The treeTable component is working.
    The problem is due bcoz of following code::
    <!-- <af:column>
    <f:facet name="header">
    <h:outputText value="Map Link"/>
    </f:facet>
    <h:outputText id="button" value="Map" onclick="showOnMap(this);" />
         <h:inputHidden id="primary-key" value="#{foo.assetId}"/>
    <h:inputHidden id="assetType" value="#{foo.assetType}"/>
    </af:column>
    -->
    when I comment the above mentioned column the page is rendered and treeTabel is working properly.
    Can anybody help why the above mentioned tags are doing problem?
    Regards,
    Sachin

  • Configure myfaces 1.2.7 problem on JDeveloper 11 and Weblogic 10.3 server

    Hi all,
    1st I'm not sure if that the right place or not to send this post(if not please accept my apologize)
    I'd like to use myfaces 1.2.7 implementation instead of the JSF Library provided by Jdeveloper 11
    That's the Jar files I used :-
    myfaces-api-1.2.7 ,
    myfaces-impl-1.2.7,
    commons-beanutils-1.7.0,
    commons-codec-1.3 ,
    commons-collections-3.2,
    commons-digester-1.8,
    commons-discovery-0.4,
    commons-el-1.0,
    commons-fileupload-1.0,
    commons-lang-2.1,
    commons-logging-1.1.1,
    commons-validator-1.3.1
    glassfish.jstl_1.2.0.1(JSTL 1.2 library of Jdeveloper)
    javax.servlet_1.0.0_2-5 ,javax.jsp_1.1.0.0_2-1,glassfish.el_2.1.0 (JSP runtime library of Jdevloper)
    weblogic-injection-provider
    and that's the web.xml file
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app 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"
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    and ofcourse I registered the taglib of myfaces implementation on Jdeveloper
    But I got the following Exception
    weblogic.application.ModuleException: Failed to load webapp: 'tstJSF-Project2-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    >
    <Jan 23, 2010 3:03:34 PM AST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'tstJSF'.>
    <Jan 23, 2010 3:03:34 PM AST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Failed to load webapp: 'tstJSF-Project2-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    what I have missed?where is the problem ? some jar files need to be added for the project or modified ,or there's some problem for the integration between Myfaces 1.2.7 and Jdeveloper 11???

    Looks like WLS can't find the FacesServlet java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlethave you checked if the jar containing the FacesServlet is deployed to the WLS?
    Timo

  • Uploading file problem in JSF using myfaces-extensions.jar.

    Dear All,
    I'm new to JSF and trying to upload files using myfaces-extensions-1.0.9.jar and commons-fileupload-1.2.1.jar.
    I have upload.jsp and result.jsp and a bean named MyBean.java. after press the submit button it should navigate to result.jsp and shows some info.
    My problem is that it successfully run but when submit its not working and remain same page.
    upload.jsp:
    {<%@page contentType="text/html" pageEncoding="windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <h:form id="MyForm" enctype="multipart/form-data" >
    <h:messages globalOnly="true" styleClass="message"/>
    <h:panelGrid columns="3" border="0" cellspacing="5">
    <h:outputLabel for="myFileId" value="File: "/>
    <x:inputFileUpload id="myFileId"
    value="#{myBean.myFile}"
    storage="file"
    required="true"/>
    <h:message for="myFileId"/>
    <h:outputLabel for="myParamId" value="Param: "/>
    <h:selectOneMenu id="myParamId"
    value="#{myBean.myParam}"
    required="true">
    <f:selectItem itemLabel="" itemValue=""/>
    <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    </h:selectOneMenu>
    <h:message for="myParamId"/>
    <h:outputText value=" "/>
    <h:commandButton id = "test" value="Submit"
    action="#{myBean.processMyFile}"/>
    <h:outputText value=" "/>
    </h:panelGrid>
    </h:form>
    </f:view>
    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>myBean</managed-bean-name>
    <managed-bean-class>
    com.devsphere.articles.jsfupload.MyBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/upload.jsp</from-view-id>
    <navigation-case>
    <from-outcome>OK</from-outcome>
    <to-view-id>/result.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    Can anybody there for help me whats the problem. I'm using netbeans 6.1 with bundled tomcat 6.0 and no error is shown.

    Hey All,
    I've got my solve. Now Its working.

  • MyFaces dataScroller has problems with checkboxes

    hi,
    i use the myfaces dataScroller on a dataTable which has some properties and one booleanCheckbox per row bound to a boolean-property of the data. The property is set to false by default.
    it could look like this:
    | [chbox] | name | address | city |
    whenever i have enough data for the dataScroller to split it to two (or more) pages and i select a checkbox it gets set on every page of the dataScroller that i view.
    so there seems to be no connection to the model when i skip through the pages. let's say i
    (1) select the checkbox of the top row on page 1
    (2) go to pages 2, 6 and 7
    --> the checkbox in the top rows of pages 1,2,6,7 are selected altough i never clicked them.
    i already searched for a solution, but the only thing i found was a thread by a guy having the same problem, but no follow-ups:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=654721
    please help me, this is really essential to my application.
    regards, jimbo

    hi again,
    i just migrated to myFaces 1.1.0 (from 1.0.9). the bug has been fixed in this release and now the checkboxes work as they are supposed to.
    jimbo

  • MyFaces "columns" and "commandLink" problem

    I am having an issue with the MyFaces implementation of the the JSF "dataTable" where I am using the MyFaces "columns" tag to generate columns from a List, inside each of these generated columns is a JSF commandLink. The issue I am having is that when a commandLink is pressed I get an actionEvent for every column generated under the "columns" tag not just for the one that was clicked.
    Am I just thinking about this wrong?
    How can I identify the single commandLink that was clicked?
    Here is a code sample:
    <t:dataTable rowClasses="MenuItemRow"   value="#Bean.dmMenu}"  var="link" first="0" rows="1">
         <t:columns value="#{Bean.listLinks}" var="link">
             <h:commandLink value="#{link.value}" actionListener="#{Handler.linkPressed}">
              </h:commandLink>
         </t:columns>
    </t:dataTable>Thanks for any help.

    Hi,
    I tried with the steps you have mentioned . i was not able to reproduce your problem
    I click still the link : server sendes back page1 instead of page3.It sends back the page 3 itself.
    regards
    MJ

  • Performance problems with MyFaces 1.1.3 in Weblogic 8.1SP3

    Hi,
              we developed a JSF based application using Apache <b>myFaces 1.1.3</b> and <b>Tomcat 5.0.27</b> as development container. The application works very well with excellent performance in tomcat. But when deployed to weblogic <b>8.1SP3</b> the performance gets really really poor. Just to give you an example: A pure navigation task between two JSP pages (<u>without any additional functionality</u>) takes <b>more than 6 seconds</b> - in tomcat this took a <b>split second</b>.
              Does anyone can figure out where this discrepancy may come from?
              Thanks for a hint ...
              Cheers,
              Chris

    Hi,
              see text below for some fragments of the BEA support answer to this problem:
              "Weblogic version 6.x and 7.x are not supporting JSF's. [...] The present Weblogic version 8.1 supports, but not all service pack. Only SP4 supports that too in the Weblogic WORKSHOP only, since this is Struts oriented Framework. [...] Weblogic 9.0 supports JSF(Java Server Faces)".
              So this problem has nothing to do with the implementation of myFaces ...
              Cheers,
              Chris

Maybe you are looking for

  • Sorting by date in table?

    I am new to using Spry Data Tables and I am having some problems. I need to sort a table by a few different feilds. All of them are working except for the date column. It will sort if I change the type to "script" but it does not sort in the right or

  • How to allow user to see salary button in assignment Window

    Dear, We wanted to dis-appear Salary button in assignment window; therefore we used task flow to visible or un-visible salary button and working fine but by clicking salary button showing error "Function not available for this responsibility. Change

  • SQL Expression Fields

    In crystal report 2008,I create a SQL Expression Fields,but how to write the SQL query in the formula workshop, Edited by: nylethx1 ye on Jul 23, 2008 9:48 AM

  • BBM & non BB APPS issue!!?!!?!!

    Hey, All fine. Well, when the validity period of subscribed category to BB service "BIS" expire, accessing APPS. that needs internet results failure accomplishments(opening, finishing) eventhough adjusting apps settings (if option is available in app

  • Add row in ADF table

    I'm trying to add a new row to ADF table. Here are my steps: 1. Create new entities from tables (New -> EJB -> Entities from Tables) 2. Create Session Bean (New -> EJB -> Session Bean) with all requested methods for earlier created entity 3. Create D