MyFaces vs. Sun RI

Hi all.
I'm a newbie in JSF tecnology and there's one thing that confuses me: What's the difference in between Sun RI and MyFaces?
As I've understood while studying the subject, these are just two different implementations of the JSF specification. I've also learned that MyFaces is more widely used and more "bugfree". (I don't know if those are opinions of impartial parties).
But what does this mean in practise? If I start learning and programming with one, how easy it is to change to another implementation? How easy it is to learn, and how easy it is to use the old code with new JSF implementation? And if I buy some book (I've thought of getting Core JavaServer Faces), does this bind me to either of the implementations?
I'm currently under the impression, that this shouldn't be a problem and the main concern is to learn to use the JSF specification itself. But as said, I'm not at all sure, if I've understood all correctly, so I'd like to hear some opinions about these questions. And I'd like to hear what implementation are you guys using and why.
Regards,
John

jsf is a JCP's specification....it is a emergent technology....
and there are so many products based on this specification...
the sun implementation is poor, it is a example ...
the most powerfull I know is the ADF faces, of oracle.
Thanks

Similar Messages

  • Which is better --- myfaces or sun reference implementation (jsf-ri)

    Wich of the two implementations for jsf is better. the open source implementation myfaces or sun reference implementation

    MyFaces of course ;-)
    Cheers,
    [email protected]

  • MyFaces Extension & Sun-RI

    Hi All,
    Anyone has successfully using myfaces extensions w/ Sun-RI?
    I tried to use MyFaces jscookMenu with Sun-RI and the menu rendered nicely,
    but it does not seem to fire actions.
    Thanks

    These days i tried the last version of Tomahawk 1.1.2
    with JSF Sun RI but it breaks my command links and
    javascript error occures. I replaced the Sun RI with
    myfaces and now they work. I have other problem now
    ... my custom validators don't work with myfaces.Thanks, this has worked for me. I don't know why it didn't work using the Sun RI and Tomahawk as described on the MyFaces website. It didn't seem to work with just the Sun RI either.

  • Deploying a JSF 1.2 webapp with an EJB 3.0

    Hi,
    I am trying to deploy an EAR file that consist of an EJB 3.0 stateless session bean and a mdb and JSF 1.2 and i get the following exception,
    Excepción: NoClassDefFoundError: Falta la clase: javax.el.ExpressionFactory Clase Dependiente: org.apache.myfaces.webapp.StartupServletContextListener Cargador: CustomerEAR.web.CustomerWeb:0.0.0 Origen de Código: /C:/oc4j/j2ee/home/applications/CustomerEAR/CustomerWeb/WEB-INF/lib/myfaces-impl-1.2.6.jar Configuración: WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\CustomerEAR\CustomerWeb\WEB-INF\lib La clase que falta no está disponible desde ningún origen de código o cargador del sistema.
    [10-ene-2010 17:20:43] Operation failed with error: Falta la clase: javax.el.ExpressionFactory Clase Dependiente: org.apache.myfaces.webapp.StartupServletContextListener Cargador: CustomerEAR.web.CustomerWeb:0.0.0 Origen de Código: /C:/oc4j/j2ee/home/applications/CustomerEAR/CustomerWeb/WEB-INF/lib/myfaces-impl-1.2.6.jar Configuración: WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\CustomerEAR\CustomerWeb\WEB-INF\lib La clase que falta no está disponible desde ningún origen de código o cargador del sistema.
    Even being into spanish I think is easy to understand. The EAR file is developed in Eclipse IDE so I have got the libraries for the JSF 1.2 that are in the build path
    instead of WEB-INF/lib. I am not sure if that is the problem. I have been googling and have not answer (a lot of opnions but no answer)
    So please, what is the problem?
    Best Regards,
    Jose

    Hi,
    I have changed the libraries from Apache MyFaces to Sun RI and now I get the following exception,
    oracle.oc4j.admin.internal.DeployerException: Error instantiate servlet classes
    10/02/13 17:57:30      at com.evermind.server.http.deployment.WARAnnotationParser.getServletClasses(WARAnnotationParser.java:157)
    10/02/13 17:57:30      at com.evermind.server.http.deployment.WARAnnotationParser.parseAnnotations(WARAnnotationParser.java:95)
    10/02/13 17:57:30      at com.evermind.server.http.HttpApplication.parseMetaData(HttpApplication.java:8765)
    10/02/13 17:57:30      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1262)
    10/02/13 17:57:30      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:848)
    10/02/13 17:57:30      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:435)
    10/02/13 17:57:30      at com.evermind.server.Application.getHttpApplication(Application.java:592)
    10/02/13 17:57:30      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2280)
    10/02/13 17:57:30      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:2199)
    10/02/13 17:57:30      at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1833)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:304)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:120)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:92)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:825)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:276)
    10/02/13 17:57:30      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:100)
    10/02/13 17:57:30      at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    10/02/13 17:57:30      at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    10/02/13 17:57:30      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    10/02/13 17:57:30      at java.lang.Thread.run(Thread.java:595)
    PLease help!!!
    Jose

  • JSF Portlet using IBM RAD 6.0 and tomahawk.jar

    I am trying to use the tomahawk Date tag in a JSR 168 Portlet using IBM's RAD 6.0 but am unable to make the date's calendar button show. Has anyone been able to successfully make this work? I have the filter
    defined and tag mported.
    I get the following messages in my server
    9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    [9/29/05 16:53:52:921 CDT] 298629dd OSEListenerDi E PLGN0021E: Servlet Request Processor E

    I encountered errorThere are countless kinds of errors on the world. Unfortunately you didn't mention which one you got. Can you please copypaste here the complete message and the stacktrace here? Errors are not to be ignored, they can certainly be helpful in finding the solution. You as developer should know that better.
    At least I can tell you that you can just mix component libraries with each other as long as you don't mix JSF implementations with each other. The IBM Faces Client Framework is just a component library and so is Tomahawk. But for example MyFaces and Sun RI are JSF implementations and cannot be mixed with each other.

  • JSF portlet: namingContainer - duplicate id error

    Hi Experts,
    I am developing a JSF portlets having only a click button. When I click the button, it throws duplicate id exception. If I don't use namingContainer tag, it runs well. Here is the JSP code and exception:
    JSP:
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix"%>
    <f:view>
         <netuix:namingContainer id="simpleJsfContainer">
              <h:outputText value="Simplest JSF Portlet" />
              <h:form>
                   <h:commandButton id="postbackButton" value="Click here" />
              </h:form>
         </netuix:namingContainer>
    </f:view>
    Exception
    opening /simplejsf/simpleJsf.faces.
    The source of this error is:
    java.lang.IllegalStateException: Client-id : simpleJsf_1 is duplicated in the faces tree. Component : simpleJsf_1, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /simplejsf/simpleJsf.jsp][Class: com.bea.portlet.adapter.faces.component.naming.NamingContainerComponent,Id: simpleJsf_1]}
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:350)
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:365)
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:305)
         at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)
         at jsp_servlet._simplejsf.__simplejsf._jsp__tag0(__simplejsf.java:133)
         at jsp_servlet._simplejsf.__simplejsf._jspService(__simplejsf.java:91)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.continueChainNoWrapper(PageFlowPageFilter.java:455)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:432)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.portlet.adapter.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:110)
         at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
         at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
         at org.apache.beehive.netui.pageflow.faces.internal.PageFlowViewHandler.renderView(PageFlowViewHandler.java:203)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
         at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
         at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:420)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._bighorn.__gridlayout._jspService(__gridlayout.java:219)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Could you please tell me what's the problem?
    Thanks
    Tridib
    Edited by: Tridib on 12-Feb-2010 08:48

    Alright. I found it! I changed JSF implementation from MyFaces to Sun Reference implementation 1.1 and it worked! For details about how to set sun implementation as JSF implementation in portal project refer to section 2.2 in [White Paper|http://blogs.oracle.com/tridib_samanta/weblogic-portal-jsf-whitepaper.pdf] .
    Edited by: Tridib on 16-Feb-2010 06:32

  • Random Behaviour of the Redirect JSP(URGENT)

    I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
    I did created in entry in provider.xml sas follows
    <pageParameterName>rs_next_page</pageParameterName>
    My JSP has sample code as follows
    <%@page contentType="text/html; charset=windows-1252"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    <form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
    <input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
    <input type="submit" value="Submit"/>
    </form>
    But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
    Could you please guide me what is best approach of redirecting to another JSP in Oracle portal
    I tried next_page ad hidden field but then it overwrite the another portlet next_page parameter.
    PLEASE GUIDE ME ASAP

    I've seen some weird errors when people mix MyFaces and Sun JAR's together (although I haven't seen this one earlier).
    First try removing the Sun JSF RI JAR's (jsf-api and jsf-impl) and see if it works. If not, then try replacing the h: components by t: components (Tomahawk), that is at least replacing h:dataTable and h:column by t:dataTable and t:column.

  • JSF Portlet w/o PageFlow?

    I've run through a tutorial on JSF with PageFlow (Beehive) and I just don't see the value of it. Native JSF is what suits my project the best. It seems like the JSF Portlet is assuming you're going to be using PageFlows, because it puts the PageFlowApplicationFactory in the faces-config.xml. Its easy enough to comment out and have JSF stuff working 'natively', but I was wondering if PageFlows are mandatory for JSF Portlets, and if not, why there isn't an option to 'turn off PageFlow' support from the JSF Portlet wizard? Should I expect any side effects if I don't use PageFlows with the JSF Portlet option?

    Alright. I found it! I changed JSF implementation from MyFaces to Sun Reference implementation 1.1 and it worked! For details about how to set sun implementation as JSF implementation in portal project refer to section 2.2 in [White Paper|http://blogs.oracle.com/tridib_samanta/weblogic-portal-jsf-whitepaper.pdf] .
    Edited by: Tridib on 16-Feb-2010 06:32

  • What JSF Implementation to choose??

    Hi everyone,
    I�m looking to JSF for 6 months and decided to use JSF in a new project, but after this 6 months of learning JSF I continue im doubt about what Implementation is better to use.
    For example, I started with SUN�s RI, but at a certain moment i see that the myfaces implementation has better components and the releases are more frequently. I look at the IBM implementation on WSAD 5.1.2 too (It�s the IDE that I prefer), but the main doubt is WHAT IS THE BETTER IMPLEMENTATION TO CHOOSE??? Does the Sun correct any bug that the myfaces or IBM or others don�t or vice-versa??
    I think this is a critical point to all users of JSF because we have many implementations and the teams envolved seems to be working on different products.
    My conclusion at this moment is to use the Sun RI with custom components of other implementations (MyFaces for instance), but DON�T change the implementation considerating that the Sun RI will be the recommended source of bug fixes and performance improviment.
    Does my decision is correct??? I�m in the right way??
    Thanks for the comments
    Rogerio Saulo

    You have not yet understood my posting on "you have to live with what comes with the application server" correctly: What I described is that J2EE 1.5 will make application servers to come with some JSF compliant implementation, so you don't need to bring your own with when deploying. Then, there is no more need to include myfaces or Sun RI in your WAR file. What I meant with "you have to live with" is that certainly every J2EE 1.5 compliant server comes with some 100% JSF compliant implementation, but since any software has bugs, that servers will have bugs too. Sure your WAR will run on ANY J2EE 1.5 compliant server without any adaptions or adjustments. That's the idea behind J2EE in core, and JSF in detail. But beeing compliant doesn't mean beeing bug free. Since you found out that Sun RI also myfaces both have bugs which you need to work around, this fact will not change with the movement of JSF from your WAR to the appserver: The problem of bugs will remain. You (as the application provider) cannot solve this. Sure you can try bringing your own JSF implementation with your WAR, but that idea means, to bring your own JDBC, JMS, JTA, EJB... implementations with your WAR, too. So that's why I wrote "you have to live with bugs".

  • JSSF  what you say about this security lib for JSF?

    JSSF - Java Server Security Faces it's framework for security layer. With JSP tags and pages/resource access control. Support MyFaces and Sun RI JSF
    http://sourceforge.net/projects/jssf/

    In bin package you can find file usage.txt (with
    simple instruction) and security.xml (example of
    configuration)
    do you upload or not?
    critics without reason bad practice :-)I haven't made any criticisms I've just asked for some information.
    >
    also in end of this file you found "planing tasks"
    where i add task for home page creation.I was referring to your home page on sourceforge (http://jssf.sourceforge.net/). I'm not really in the habit of downloading things before I can read about them.

  • Random behaviour of the dataTable

    Hi guys,
    I can't really find the error. I have a dataTable (code below). Sometimes it's mixing up the columns for no reason. Sometimes it just does not show one column but 2 times another column.
              <h:dataTable value="#{CompanySearchBean.companies}" id="resultTable"
                   var="company" style="width: 100%;" binding="#{CompanySearchBean.companytableData}"
                   columnClasses="resultLegalName, resultCity, resultCountry, resultTreeLevel, resultGuid">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Name"></h:outputText>
                        </f:facet>
                        <h:commandLink value="#{company.legalName}" action="#{CompanySearchBean.showDetails}">
                             <f:param value="#{CompanySearchBean.companytableData.rowIndex}" name="row" id="row"/>
                        </h:commandLink>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="City"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.mainPostal.city}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Country"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.mainPostal.country.description}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Family Tree Level"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.info.familyTreeLevel}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="GUID"></h:outputText>
                        </f:facet>
                        <h:outputText value="#{company.guid}"></h:outputText>
                   </h:column>                                                            
              </h:dataTable>

    I've seen some weird errors when people mix MyFaces and Sun JAR's together (although I haven't seen this one earlier).
    First try removing the Sun JSF RI JAR's (jsf-api and jsf-impl) and see if it works. If not, then try replacing the h: components by t: components (Tomahawk), that is at least replacing h:dataTable and h:column by t:dataTable and t:column.

  • Sun JSF 1.2 (RI) + MyFaces  project Tomahawk 1.1.3

    Hi Guys,
    I wondering if someone can help me out. I'm so lost...
    In general, I'm working in a new project using Tomcat 5.5.17 as Servlet container, NetBeans as IDE and Sun JSF 1.2 (RI) Framework. The combination of Tomcat and JFS 1.2 already is an issue that I believe can be solved using Servlets framework ( I hope so). For now I just crossing my fingers believing Apache Tomcat soon will be using JSP 2.1
    Like most projects always start simple and then grows bigger and complicated. Now I just so confusing when I trying to use custom components not found in the JSF 1.2 specification. I really like MyFaces Tomahawk and would like to use in my project as well, specially a few components: Calendar, Schedule and so on.
    Making the long history short, there you are my questions:
    1 - ) Is it possible to work with Sun JSF 1.2 (RI) + Tomahawk 1.1.3 project?. Using anly a few components of Tomahawk and not the entire MyFaces specificacion.
    2 - ) Where can I donwload MyFaces examples spefically using those Tomahawk components mentioned before ? I would like to deploy the examples application myself. In the web site (http://www.myfaces.org) mention two files in Installing and Running the examples:
    " Unpack the MyFaces examples archive myfaces-X.X.X-examples.zip (or myfaces-X.X.X-examples.tgz) to a directory of your choice. "......
    I have no clue where to find those two files. All I get is a link to and external site that show me the examples and offering services, but I have no option to download any examples file.
    Thanks in advance.

    Amittev,
    Thank you. I really appreciate your help. Now the examples are working just fine in my computer.
    By the way, I have another question for you considering your kindness taken your time to share your expertise.
    I'm facing a Tiles and Facelets dilema. Which framework do you recomend me to invest my time learning it??.
    Thanks again for your time and consideration.

  • Which JSF implementation to chooose - Sun's reference impl OR Apache MYFace

    Hi ,
    We are starting new UI development and would like to know,
    which JSF implementation to chooose - Sun's reference implementation OR Apache MYFaces and why ?
    Thanks

    I have had good luck using the MyFaces implementation. I switched from Sun's after running into a few too many exceptions with little explanation on where to look for the error.
    That said, I've since switched to using facelets so my view is created by xhtml files instead of JSPs. I cannot recommend this way of doing things highly enough!
    Regardless of which you choose, you can still use MyFaces tomahak components in your site - the date input is really fantastic!

  • Sun RI and MyFaces with JBoss AS

    Hi all,
    I am using JBoss AS and have a JSF application. By default, JBoss bundle MyFaces JSF with Jboss. I have everything working fine with MyFaces. However, I encounter problem when I tried to display the banding for dataTable using Oracle ADF. From my research, it seems ADF table's banding does not work with MyFaces so I want to test out using Sun RI JSF with Jboss. I remove MyFaces jar files and put Sun RI jar file in WEB_INF/lib directory and remove the line in web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    This is done following Jboss documentation. But when Tomcat starts up, it seems still look for org.apache.myfaces.webapp.StartupServletContextListener class and throw ClassNotFoundException (because I removed myfaces jars). Has anyone benn able switched to use Sun RI in JBoss AS version 4.0.5?
    Thanks a lot,
    LNgo

    Hello Raymond,
    I must say that I downloaded the JBoss Portal Binary and not the bundle JBoss AS + JBoss Portal, because I already had a JBoss AS working, so it was the best way to do it (as it is said in the JBossPortalReferenceGuide). I have both things (server and portal) in the same directory, but I don't know if maybe one of them should contain the other (I have seen that in the bundle, the portal directory contains the JBoss application server) When I downloaded the JBoss Portal and tried to deploy it by directing my web browser to http://localhost:8080/portal it did not work, so I decided to copy the jboss-portal.sar directory from the JBoss Portal to the deploy of my server. Maybe this was a mistake.
    But anyway I have seen that JBoss Portal 2.6 comes with the myfaces jars, and as JBoss AS 4.2 uses Sun RI by default, it is going to collapse anyway. Should I just remove these jars from the portal? As I told you before, I tried doing it and I got two errors of not found classes.
    Please, any help would be really appreciated, I am losing a lot of time with this bug, because the server keeps getting out of memory due to it.
    Thanks in advance.

  • Does MyFaces works well in Sun Application Server

    I want to use its upload component, but I found that the AS was not in the compatible list of MyFaces. Is there anyone who has tried MyFaces's upload component in the Sun Application Server? Does it works well? Please tell me. Thank you for your help.

    Thanks.
    I have added the myfaces-extension.jar to my project.
    And followed the instructions, I set the form enctype="multipart/form-data".
    And I have a single checkbox which binded to a bean's property, But after I have added the enctype attribute, the checkbox couldn't be checked. I clicked it and submit, it became unselected. What's the matter?
    Thank you

Maybe you are looking for

  • ERROR in MIRO : An exchange rate type is not defined for country IN

    Experts: When I try to enter the invoice received from the vendor, I am getting the following message. An exchange rate type is not defined for country IN Message no. FF802 Can anyone provide me a solution for this? Thanks, Vijai

  • Payload is not available in Proxy provider class

    Hi PI Gurus, I have developed interface Legacy -> PI - > ECC The payload flown from PI to ECC successfully and i am able too see the payload in Monitor. But the payload is not getting read and not available in INPUT table of Proxy provider class. The

  • How to save text in txt/xml file?

    Which application can I use to save nonformatted text (or xml) into a txt or xml file? TextEdit seems to apply all sorts of formatting. I can see this when I change the extension from rtf to txt or xml and open the file.

  • Where are proxy settings stored for JRE 6

    Where are the http proxy settings stored for JRE 6? I am trying to figure out how to centrally manage these settings for a large number of computers. I have heard about the deployment.properties file, however changing this file is not changing my pro

  • P2 720P files jerky after ingestion

    Panasonic HPX-500 P2 720P files play perfect in camera. When ingested into FCP via Camera's Firewire they become jerky with a constant 'studder step' and sounds trails by two seconds at end of clip. I have since rebooted camera and everything works f