MyFaces not rendering, ADF faces IS rendering

I'm installing my app on the websphere application server, Version 6.1 After having issues of both adf and myfaces not working, I came accross this link which helped me somewhat. http://wiki.apache.org/myfaces/Websphere_Installation .
By "not working" I mean that my jsp would have <h:commandLink>'s and <af:commandButton/> however the html was never actually generated. (You could view the pages source and the resulting html page was blank).
After following those instructions, ADF components are correctly rendered, and the html works. However, I can not use any <h:> or <h:> components.
Keep in mind, every single part of this used to work while using Tomcat (I think it was 5.5, not 6).
faces-config-app.xml (our replacement for faces-config).
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
     <!-- ************ Application wide settings **************** -->
     <application>
          <!-- Spring resolve allows access to spring managed beans from <managed-bean> tags -->
          <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
          <!-- Local setup -->
          <locale-config>
               <default-locale>en</default-locale>
               <supported-locale>en</supported-locale>
          </locale-config>
          <!-- Message bundle base name -->
          <message-bundle>messages</message-bundle>
          <!-- Use the ADF Faces render kit -->
          <default-render-kit-id>oracle.adf.core</default-render-kit-id>
     </application>
     <lifecycle>
            <phase-listener id="responseHeaderController">com.unyric.cias.cm.web.util.HttpResponseHeaderController</phase-listener>
     </lifecycle>
</faces-config>web.xml (Yes there is a lot of extra things in there such as application context params, but I wanted to paste the whole thing. Please bear with me).
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
     <display-name>CIAS Case Management Web</display-name>
     <context-param>
          <description>JSF state setting: Keep state of views on client</description>
         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
         <param-value>client</param-value>
     </context-param>
     <context-param>
          <description>JSF configuration files</description>
         <param-name>javax.faces.CONFIG_FILES</param-name>
         <!-- faces-config.xml contains applicaiton level configuration
               faces-config-nav.xml contains screen flow configuration
               faces-config-beans.xml contains managed bean definitions -->
         <param-value>/WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-nav.xml,/WEB-INF/faces-config-beans.xml</param-value>
     </context-param>
     <context-param>
          <description>Spring configuration files</description>
          <param-name>contextConfigLocation</param-name>
          <!-- presentationContext.xml contains presentation tier object configuration
                     applicationContext.xml contains Service & Dao object configuration as well as transaction demarcation
                     securityContext.xml contains Acegi Security configuration
                     hibernate.cfg.xml contains Hibernate specific configuration -->
            <param-value>/WEB-INF/presentationContext.xml classpath*:spring/applicationContext.xml classpath*:spring/validationContext.xml classpath*:spring/securityContext.xml classpath*:spring/hibernate.cfg.xml</param-value>
     </context-param>
     <context-param>
          <description>Validates JSF configuration files on startup</description>
         <param-name>org.apache.myfaces.validate</param-name>
         <param-value>true</param-value>
        </context-param>  
     <context-param>
          <description>Timmer Setting for Case Queue screen</description>
             <param-name>pollingTimer</param-name>
             <!-- Units are milliseconds -->
             <param-value>60000</param-value>
     </context-param>
     <context-param>
          <description>Maximum number of rows shown in tables.</description>
             <param-name>tableRowsPerPage</param-name>
             <param-value>25</param-value>
     </context-param>
     <servlet>
          <description>JSF controller</description>
             <servlet-name>FacesServlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
     </servlet>
     <!-- Requests handled by JSF -->      
     <servlet-mapping>
           <servlet-name>FacesServlet</servlet-name>
            <url-pattern>*.do</url-pattern>
     </servlet-mapping>
     <servlet>
            <description>Serves up ADF Faces resources</description>
            <servlet-name>AdfResourceServlet</servlet-name>
            <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
     </servlet>
     <servlet-mapping>
         <servlet-name>AdfResourceServlet</servlet-name>
         <url-pattern>/adf/*</url-pattern>
     </servlet-mapping>
     <listener>
          <description>Initializes Spring on application startup.</description>
          <display-name>Spring context loader</display-name>
          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
     <filter>
          <description>Enables Acegi Security framework integration. Acegi is used to secure services.
          Standard J2EE is used to secure web requests.</description>
          <filter-name>AcegiFilterChainProxy</filter-name>
          <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
          <init-param>
               <param-name>targetClass</param-name>
               <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
          </init-param>
     </filter>
     <filter-mapping>
          <filter-name>AcegiFilterChainProxy</filter-name>
          <servlet-name>FacesServlet</servlet-name>
     </filter-mapping>
     <filter>
            <description>Pre-processes requests to enable MyFaces extensions</description>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
         <init-param>
         <!-- Set the size limit for uploaded files.
           Format: 10 - 10 bytes
                   10k - 10 KB
                   10m - 10 MB
                   1g - 1 GB
           -->
               <param-name>uploadMaxFileSize</param-name>
                <param-value>6m</param-value>
         </init-param>
         <init-param>
               <param-name>uploadThresholdSize</param-name>
                <param-value>100k</param-value>
         </init-param>        
     </filter>
     <!-- MyFaces extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
       <filter-mapping>
            <filter-name>MyFacesExtensionsFilter</filter-name>
         <servlet-name>FacesServlet</servlet-name>
     </filter-mapping>
     <!-- MyFaces extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
     <filter-mapping>
         <filter-name>MyFacesExtensionsFilter</filter-name>
         <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
     </filter-mapping>
     <filter>
          <description>Pre-processes requests to enable ADF Faces functionality</description>
          <filter-name>AdfFacesFilter</filter-name>
          <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
     </filter>
       <filter-mapping>
            <filter-name>AdfFacesFilter</filter-name>
         <servlet-name>FacesServlet</servlet-name>
     </filter-mapping>
     <!-- Sitemesh Template Filter --> 
     <filter>
          <filter-name>sitemesh</filter-name>
          <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
     </filter>
     <filter-mapping>
          <filter-name>sitemesh</filter-name>
          <url-pattern>/*</url-pattern>
     </filter-mapping>     
     <!-- Keep Hibernate sessions open until request completes. This allows lazy loading
          of data in all tiers. -->
     <filter>
          <filter-name>OpenSessionInViewFilter</filter-name>
          <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
          <init-param>
               <param-name>sessionFactoryBeanName</param-name>
               <param-value>ciasSessionFactory</param-value>
          </init-param>
          <init-param>
               <param-name>singleSession</param-name>
               <param-value>false</param-value>
          </init-param>
     </filter>
     <filter-mapping>
          <filter-name>OpenSessionInViewFilter</filter-name>
          <servlet-name>FacesServlet</servlet-name>
     </filter-mapping>
     <!-- The application automatically sends requests at timed intervals. This causes
                the standard J2EE session to be refreshed at the timed intervals and thus it will
                never timeout. This filter is used to distinguish between user prompted and
                automatic requests. -->
     <filter>
          <filter-name>SessionTimeout Filter</filter-name>
          <filter-class>com.unyric.cias.cm.web.filter.SessionTimeoutFilter</filter-class>
          <init-param>
               <!-- URL to be displayed after session timeout -->
               <param-name>redirectUrl</param-name>
               <param-value>timeOut.jsp</param-value>
          </init-param>
          <init-param>
               <param-name>sessionTimeout</param-name>
               <!-- Units are in minutes -->
               <param-value>20</param-value>
          </init-param>
     </filter>
     <filter-mapping>
          <filter-name>SessionTimeout Filter</filter-name>
          <url-pattern>/secure/*</url-pattern>
     </filter-mapping>
     <!-- Session Timeout (in minutes)
          We are essentially disabling container session
          handling in favor of SessionTimout Filter -->
       <session-config>
            <session-timeout>99</session-timeout>
       </session-config>
       <!-- Security Configuration -->
       <security-constraint>
            <web-resource-collection>
                 <web-resource-name>FacesServlet security</web-resource-name>
                 <url-pattern>*.do</url-pattern>
                 <!-- No <http-method> tag implies all methods -->
            </web-resource-collection>
            <web-resource-collection>
                 <web-resource-name>View security</web-resource-name>
                 <url-pattern>/secure/*</url-pattern>
                 <!-- No <http-method> tag implies all methods -->
            </web-resource-collection>
            <auth-constraint>
                 <description>Allow any authenticated user</description>
                 <role-name>*</role-name>
            </auth-constraint>
      </security-constraint>
       <login-config>
            <auth-method>BASIC</auth-method>
            <realm-name>CIAS-CM</realm-name>
       </login-config>
       <security-role>
            <!-- Roles recognized by Case Management. -->
            <!-- EXACT NAMES MUST BE COORDINATED WITH CHOICEPOINT -->
             <role-name>case</role-name>
     </security-role>
     <welcome-file-list>
          <welcome-file>index.jsp</welcome-file>
     </welcome-file-list>
     <!--  CIAS CM Database -->
     <resource-ref>
          <res-ref-name>jdbc/cias</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
     <!--  CIAS Error Handling   -->
       <error-page>
             <error-code>500</error-code>
             <location>/secure/errorPage.jsp</location>
       </error-page>
       <error-page>
          <exception-type>javax.faces.FacesException</exception-type>
          <location>/secure/errorPage.jsp</location>
       </error-page>     
</web-app>Does anyone have any suggestions? Telling websphere to load the web-inf\lib directory before the AppServer\lib directory seems to have somewhat worked, but not completely.
On a side note, if I have a page such as (ignoring the extra h, f and t declarations)
<%@ taglib prefix="h"uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@ taglib prefix="af" uri="http://xmlns.oracle.com/adf/faces" %>
<f:view>
     <af:document>
          <af:form>
               <af:outputText value="hello2"/>
               <af:commandLink id="button" action="#{exploreCaseListAction.promptPersonalQueue}" text="Login"/>
          </af:form>
     </af:document>
</f:view>When I click on the commandLink button, I receive an error that states
java.lang.ClassCastException: org.apache.xalan.processor.TransformerFactoryImpl incompatible with javax.xml.transform.TransformerFactory
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at com.ibm.ws.jsp.translator.visitor.validator.PageDataImpl._getInputStream(PageDataImpl.java:125)
at com.ibm.ws.jsp.translator.visitor.validator.PageDataImpl.getInputStream(PageDataImpl.java:117)
at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:156)
at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)
at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateTagLib(ValidateVisitor.java:988)
at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspRootStart(ValidateVisitor.java:467)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:138)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)
at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:181)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:83)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:349)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:317)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:226)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:131)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
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.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at com.unyric.cias.cm.web.filter.ThreadContextSessionIntegrationFilter.doFilter(ThreadContextSessionIntegrationFilter.java:46)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at com.unyric.cias.cm.web.filter.CiasIntegrationFilter.doFilter(CiasIntegrationFilter.java:112)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)I believe they are related, though I can't 100% say for sure. Any thoughts?

I'm having the same problem, did you get any luck with this ?
Thanks

Similar Messages

  • Validation messages in JSF (when not using ADF faces)

    I've spent some time with JDeveloper 11 and would like to use it on an upcoming project. I have to target IE 6, so I won't be able to take advantage of ADF Faces. Instead I'd like to use the ADF Business Components with a standard JSF interface so it can be used by people still running IE 6.
    I've created a Business Component from a database table and can bind a JSF HTML Creation Form by dragging the appropriate view from the AppModule in the Data Controls pane. However, when I attempt to submit the page without all the fields being valid I get the following validation error message:
    j_id__ctru2:j_id__ctru6: Validation Error: Value is required. j_id__ctru2:j_id__ctru6: Validation Error: Value is required.
    I've tried making this more descriptive, but editing the error message in the Validation Rules section of the Business Component has no effect. What's the best way to convey a meaningful validation message to the user when not using ADF Faces?
    Also - I'm still very new to JDeveloper. Since I won't be able to rely on my users having Internet Explorer 7, would you recommend I stay with JDeveloper 10? The examples and documentation I've seen so far for JDeveloper 11 appear heavily biased towards using ADF Faces so I'm starting to wonder how much support is there for using plain old JSF.
    Thanks for your time!

    Hi,
    if you are completely new to this then I suggest to use JDeveloper 10.1.3 and ADF Faces in there. Its good to use with IE6 as well. Currently we do have more tutorials available for this release than for 11, which for this reason is a better choice for someone new to this
    Frank

  • JDeveloper Visual Editor not rendering ADF Faces

    Hi guys, thanks for read my post.
    I'm working on a MVC application, and using ADF Faces in view. I did any changes, editing my jsf pages sources.
    Now JDeveloper doesn't show the design view of no one jsf pages.
    I followed the steps enumerated by Didier Laurent in:
    http://blogs.oracle.com/Didier/2006/11/22
    (thanks Didier), but it didn't resolve the trouble.
    When i run jdev.exe instead jdevW.exe I watch the following lines:
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    But I can't see the error cause,
    Have you seen this problem before?
    Thanks in advance

    Hi again, thanks for your reply Shay. I had followed this steps to, but I don't reach to get the misconfiguration or error in my faces pages for showing design time messages in log. Log is empty and if I run JDeveloper from jdev.bin I don't see more than some lines I sent before.
    Thanks

  • ADF Faces: Changing "rendered" property in PPR: JDev 10.1.3

    Hello all,
    I have an ADF Faces page that has an af:CommandButton on it. The rendered property of the button is set to an EL expression that references the model (ADF BC). When the page is submitted (via an af:CommandButton with PartialPage=true), the rest of the page refreshes properly to reflect the changed model state, but the command button with the conditional rendered property is not disappearing as expected (the button is initially rendered=true). I remember reading recently about a similar issue if the button is initially not visible, and I'm not sure if this is related.
    Interestingly, if I click on the button (which should no longer be visible after the PPR event), it does nothing - so it appears to be merely a visual problem. I have also tried setting the disabled property to an EL expression that is the opposite of the rendered property, and the button does not change to be disabled, either.
    Any thoughts? At this point, it looks like a bug/feature.
    Kind regards,
    John
    Should I be able to do this?

    John,
    if you wrap the button in a panel (e.g. buttonpanel) and set the PPR to this panel, does it work ?
    Frank

  • ADF Faces: how to extend one of the faces components

    Hi all,
    I am thinking of extending the built-in ADF Faces CommandMenuItem component (to work around a bug that was filed). The only thing that I think I need to do is to add an additional property - I don't believe that I will need to add any additional behavior to the tag.
    Can anyone comment on (high level) the steps that I would need to go through? I'd like to
    a). Add the property
    b). Make sure the property shows up in the JDev property inspector
    c). Inherit everything else from CoreCommandMenuItem.
    I've looked at the source code (from the Apache guys), and this doesn't look too hard. I don't want to re-compile the whole Apache drop, just create a new component as described above, but I've no idea really where to start.
    Any insights appreciated,
    John

    Hello John,
    I don't know how possible it will be. It depend on what kind of property you want to add. Here are the general indications to acheive this.
    1) Make a custom component class extending CommandMenuItem class and add an additional property.
    2) Extends the commandMenuItem tag clas with your own
    3) override the method public void setProperties(javax.faces.component.UIComponent component)
    you just have to call the parent first which is the specification behavior anyway, so:
    public void setProperties(UIComponent component) {
    super.setProperties(component);
    // Cast the component to your component class and set your additional property on it
    4) The hard part... This is where I'm unsure of the procedure, but I would say that you'll have to extends ADF Faces's renderer for commandMenuItem and find a way to push the property in it if it has to be sent to the client. This seem really annoying to do. One way to do it would be to wrap the ResponseWriter so you can intercept what the parent renderer encodes and insert your property in the right spot. That strategy requires an additional (probably intern) class extending ResponseWriter. Then you would have to do something like this:
    FacesContext context = FacesContext.getCurrentInstance();
    ResponseWriter initial = context.getResponseWriter();
    context.setResponseWriter(new MyWrapperWriter(initial));
    super.encodeBegin(context, component);
    context.setResponseWriter(initial);
    The Wrapper would have to override all methods and delegate the call to the wrapped instance. When calling startElement(String) you would add a call to writeAttribute for your own property.
    5) For showing the property in the property editor panel you must fill a faces-config.xml file with the <component> tag. Since that one does not allow inheritance (which is really annoying imho) you'll have to copy most of the properties from adf faces' faces-config.xml file.
    6) Fill the tld for your new tag
    7) JAR the whole thing
    8) Edit your tag library from Tool in the menu I think (not on a computer with JDev installed atm so cannot be sure). Add your library that you just created. If faces.config.xml and the .tld are well made JDev will figure prety much everything on its own. You will now have a new choice in the dropdown menu of the component palette for your custom library.
    I hope I was decently clear.
    Regards,
    Simon Lessard

  • Displaying BLOB image by using ADF Faces

    Hi all,
    I digged the forum but couldn't find any satisfied answer about displaying BLOB images by using ADF Faces.
    I have insterted POJO object to Oracle database but couldn't find any way to display blob (in java byte [] ) data in POJO.
    I have read the POJO object from database which contains two field; one of them is id field and other is BLOB data which holds GIF or JPG image and I want to display this image another page which contains also other fields / records ...
    thanks for your answers
    regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This thread at Sun : http://forum.java.sun.com/thread.jspa?threadID=513804&messageID=2445090
    talks about two options for creating a graphicImage jsf tag. (img tag)
    1. Make the img tag url refer to a servlet (instead of a static image file)
    2. Embed the image into the tag as inline base64 encoded data.
    2a. Use an <Object> tag with inline data.
    1. Looks a bit complex for a simple problem.
    2 and 2a don't work with some browsers.
    - And I've not yet figured out how to hook into the ADF Faces table-rendering logic to get it to add my image column. My table binds to a collection DataControl, [which in turn retrieves from a findAllItems call on a session facade, which uses my domain model, and wraps up access to a TopLink pesistence layer]. The framework just ignores my byte[] attribute when creating the jsf table from the DataControl. All string, int etc. attributes get represented correctly in the jsf table output.

  • Weblogic Portal 10.3.5 using JSF 1.2 portlets with ADF faces

    We are developing Portal site using Weblogic Portal 10.3.5 with JSF portlet 1.2 and ADF faces (ADF Application runtime 11.1.1.5 ). But the JSF portlets not supporting ADF faces. Please let me know how we use ADF faces in JSF portlet 1.2 in Weblogic Portal.

    Hi Murthy,
    We did a detailed analysis.
    (1) How do we add ADF taskflows, JSF in to weblogic portal desktop/pages? Do we create portlet out of JSF, and display on desktop/page? If this is the case, what about ADf task flows?
    --> Taskflows can be deployed as WSRP2.0 portlets. Note 2 options are there JSF page as portlet or taskflow itself as portlets.
    (2) How do we integrate weblogic user profiles and UUP (unified user profiles) with ADF and JSF?
    --> ADF Security can use Weblogic Server realm as the security provider. Entitlements in WLP will have to be provided based on Weblogic Server roles. In case you are using external LDAP then both can be integrated withe external LDAP
    (3) Can anybody shed some light which this better?
    (a) weblogic portal with JPF (Java page flows), NetUI --Legacy approach
    Pros:
    -Easy Development
    -Well tested integrated
    Cons:
    -Future support
    -Enhancements may not be available
    -Not really portable or standards based
    (b) weblogic portal with ADF, JSF?
    Pros:
    -If your on Oracle stack then great
    -Standards based
    Cons:
    -JSF Portlet bridge issues
    -ADF Faces does not work on IE6!
    Well what we are going for is JSR 286, Trinidad components (Supports IE6), JSF.
    Difficult choice.
    Venkat

  • ADF Faces: Dynamically enabling / disabling client validation

    Hi Frank,
    Im using JDeveloper 11.1.1.2.0 version. I want to disable the client side validation for some condition. I have read related information from Frank blog .
    But In that frank used adf-faces-config.xml file for the following configuration.
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
    <skin-family>oracle</skin-family>
    <client-validation-disabled>true</client-validation-disabled>
    </adf-faces-config>
    But in my application, I could not find adf-faces-config.xml file. I dont know where to configure please provide me the information.
    Regards,
    Felix

    Hi,
    in JDeveloper 11g this no longer is an option. To disable client validation you set immediate=true on the UI component, which youalso can do dynamically. Howerver, ensure you refresh the component after changing the immediate property state.
    Frank

  • How much memory and CPU requirement to deploy  ADF Faces application ?

    Hi All,
    Is there any formula or docs to help me to determine how much memory and CPU requirement for IAS server, to deploy ADF Faces application ?
    How much memory / CPU GHz required per 1 user ?
    We plan to develope web based ERP application using ADF Faces and ADF BC.
    Pleasssee.. give me any aclue.. I need it so badly..
    Thank you for your help,
    xtanto

    xtanto,
    there is no formular for this. Note that it is not only ADF Faces but th emodel layer in particular that adds to this requirement.
    Frank

  • Panel Page in ADF Faces using Facelets not rendering correctly

    Hi, I am attempting to integrate facelets into a web app built using adf faces and am running into a problem with the panel page component. I have integrated facelets and adf faces without any problems by adding relevant jars (jsf-facelets and adf-facelets) to the project and specifying alternate facelets view handler in web.xml.
    However, when I try to render any component inside <af:document> or <af:html> tags, all the font style in components seems to be lost ( all the text and input fields turn large and ugly!).
    I tried to leave out the <af:document> tag and put the <f:view> inside some vanilla html instead, but then panelPage component dosen't render properly and I get following message on top of page :
    "Skip navigation elements to page contents"
    So seem to be in a bit of a catch 22. By the way, this all works fine if I don't use facelets (remove the facelets view handler from web.xml and page renders correctly).
    Does anyone have any ideas or examples of panelPage rendering correctly with facelets or an alternative to using adf faces html tags that will allow panelpage to be displayed?
    The following is the code from a simple test jspx page :
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    <f:view>
    <af:document>
    <af:form>
    <af:panelPage title="Title 1">
    <af:panelHorizontal>
    <af:panelGroup layout="vertical">
    <af:outputLabel value="Username"/>
    <af:inputText id="lo_username" value="" columns="20"/>
    <af:objectSpacer width="1" height="10"/>
    <af:outputLabel value="Password"/>
    <af:inputText id="lo_password" secret="true" value="" columns="20"/>
    <af:objectSpacer width="1" height="15" />
    <af:panelHorizontal>
    <af:objectSpacer width="50" height="1"/>
    <af:commandButton id="lo_loginButton" text="Login"/>
    </af:panelHorizontal>
    </af:panelGroup>
    <af:objectSpacer width="50" height="1"/>
    <af:panelGroup layout="vertical">
    <af:outputLabel value="Please use your windows account username"/>
    <af:outputLabel value="and password to logon to the system"/>
    <af:objectSpacer width="1" height="50"/>
    </af:panelGroup>
    </af:panelHorizontal>
    </af:panelPage>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

    The problem was the <jsp:root> tag. Removed this tag and modified <af:document> to the following so that namespaces are declared :
    <af:document xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    Page now renders properly using facelets.
    Message was edited by:
    mjc

  • ADF Faces components are not rendered in Jdeveloper visual editor

    Hi!
    I'm using Jdeveloper 1013 Developer Preview. I found that the components of ADF Faces EA16 are not shown on the visual editor in Jdeveloper, but the ADF Faces EA15 components are shown. I'm just wondering if this is normal, and there is anything that can be done to fix this?
    Meen

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

  • Rendering problem ADF Faces OC4J

    Hello to everybody , I was trying to install ADF Faces with the new Jdeveloper , but we I run the demo, I don't get anything. I followed all the instructions of
    http://www.oracle.com/technology/products/jdev/howtos/10g/adfjsf/how-to-adf-faces-10gjdev.htm
    This is the log of OC4J
    07/08/2005 03:44:06 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    ADVERTENCIA: Could not find renderer for CoreOutputText[OutputTextFacesBean, id=text1], rendererType = oracle.adf.Text

    Hi,
    this one worked for me
    <h:form binding="#{backing_untitled1.form1}" id="form1">
    <af:commandLink text="Click me"
    binding="#{backing_untitled1.commandLink1}"
    id="commandLink1" partialSubmit="true"
    action="#{backing_untitled1.commandLink1_action}"/>
    <af:outputText value="Message"
    binding="#{backing_untitled1.outputText1}"
    id="outputText1" partialTriggers="commandLink1"/>
    </h:form>
    The action called sets a new value to the output text
    public String commandLink1_action()
    // Add event code here...
    this.getOutputText1().setValue("Hello");
    return null;
    Frank

  • ADF Faces : partial page rendering in f:subview

    hi
    Please consider this blog post, "ADF Faces: How-to issue a PPR event from a f:subview and how-to PPR of subviews" :
    http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
    In this post, Frank Nimphius writes : "... PPR from a containing page to the subview - unfortunately - only works for the whole subview, which means that the included page is getting refreshed. Because the f:subview component does not support PR, you need to work with a wrapping ADF Faces container, like af:panelGroup ...".
    But, it looks like such partial page rendering in a subview can be done without a specific "wrapping ADF Faces container" like this ...
            <h:form id="firstPPRPageFormID">
              <af:panelPage title="firstPPRPage">
                <af:panelHeader text="components on firstPPRPage">
                  <af:panelForm>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
                      <af:outputText value="#{dateUtil.currentDateAsString}"
                                     partialTriggers="firstSubviewID:firstSubviewCButton"/>
                    </af:panelLabelAndMessage>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
                      <af:outputText value="#{dateUtil.currentDateAsString}"/>
                    </af:panelLabelAndMessage>
                    <f:facet name="footer">
                      <af:commandButton text="firstPPRPage button"
                                        id="firstPPRPageCButton"
                                        partialSubmit="true"/>
                    </f:facet>
                  </af:panelForm>
                </af:panelHeader>
                <f:subview id="firstSubviewID">
                  <jsp:include page="/firstSubview.jspx" flush="true"/>
                </f:subview>
              </af:panelPage>
            </h:form>... and where firstSubview.jspx contains something like this ...
      <af:panelHeader text="components on firstSubview">
        <af:panelForm>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
            <af:outputText value="#{dateUtil.currentDateAsString}"
                           partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
          </af:panelLabelAndMessage>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
            <af:outputText value="#{dateUtil.currentDateAsString}"/>
          </af:panelLabelAndMessage>
          <f:facet name="footer">
            <af:commandButton text="firstSubview button" id="firstSubviewCButton"
                              partialSubmit="true"/>
          </f:facet>
        </af:panelForm>
      </af:panelHeader>Note the value ":firstPPRPageFormID:firstPPRPageCButton" for the partialTriggers attribute.
    see http://verveja.footsteps.be/~verveja/files/oracle/PartialPageRenderingInSubview-v0.01.zip (check README.txt)
    questions:
    (1) Why exactly does this approach seem to work?
    (2) Because of question (1), what could be potential issues with this approach?
    regards
    Jan Vervecken

    Jan,
    good job ! I actually never thought of reversing what I said about PPR'ing a component from a subview.
    Actually
    partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
    works because the leading ":" makes ADF Faces to start the component search from the root container. Note that if you use af:form instead of h:form, the trigger is
    partialTriggers=":firstPPRPageCButton"/>
    I'll update my blog
    Frank

  • ADF Faces - Panel Accordion rendering issue

    Hi, I am trying to follow this tutorial about adf faces:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_2.html
    but when I click on the detail items in the accordion component, the objects inside desappears and I could see a strange rendering behavior with the rest of the objects.
    No errors are shown in the console. I tested it in chrome, ie8 and firefox with the same result.
    Software used: jdeveloper 11.1.1.6.0, weblogic 11gR1 on win7.
    Any ideas?

    You are aware that the sample is for jdev 11.1.2.x, so this may well be the reason why you see this behavior.
    Timo

  • ADF Faces, BC and JDeveloper 10g: Rendering Dynamic ViewObjects at runtime

    I am trying to make a 10g version of Shay's example (http://www.youtube.com/watch?v=TwIKt7e4vEw).
    JSP code:
    +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"+
    +"http://www.w3.org/TR/html4/loose.dtd">+
    +<%@ page contentType="text/html;charset=windows-1252"%>+
    +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>+
    +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>+
    +<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>+
    +<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>+
    +<f:view>+
    +<afh:html>+
    +<afh:head title="runTest">+
    +<meta http-equiv="Content-Type"+
    content="text/html; charset=windows-1252"/>
    +</afh:head>+
    +<afh:body>+
    +<af:messages/>+
    +<af:form>+
    +<af:table value="#{bindings.DynamicVo.collectionModel}" var="row"+
    +rows="#{bindings.DynamicVo.rangeSize}"+
    +first="#{bindings.DynamicVo.rangeStart}"+
    +emptyText="#{bindings.DynamicVo.viewable ? \'No rows yet.\' : \'Access Denied.\'}"+
    +partialTriggers="make">+
    +<af:column sortProperty="Dummy" sortable="false"+
    +headerText="#{bindings.DynamicVo.labels.Dummy}">+
    +<af:outputText value="#{row.Dummy}"/>+
    +</af:column>+
    +</af:table>+
    +<af:commandButton actionListener="#{bindings.makeVo.execute}"+
    +text="makeVo" disabled="#{!bindings.makeVo.enabled}"+
    +id="make"/>+
    +</af:form>+
    +</afh:body>+
    +</afh:html>+
    +</f:view>+
    *PageDef:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
    +version="10.1.3.42.70" id="runTestPageDef"+
    +Package="view.pageDefs">+
    +<parameters/>+
    +<executables>+
    +<iterator id="DynamicVoIterator" RangeSize="10" Binds="DynamicVo"+
    +DataControl="AppModuleDataControl"/>+
    +</executables>+
    +<bindings>+
    +<table id="DynamicVo" IterBinding="DynamicVoIterator">+
    +<AttrNames>+
    +<Item Value="Dummy"/>+
    +</AttrNames>+
    +</table>+
    +<methodAction id="makeVo" InstanceName="AppModuleDataControl.dataProvider"+
    +DataControl="AppModuleDataControl" MethodName="makeVo"+
    +RequiresUpdateModel="true" Action="999"+
    +IsViewObjectMethod="false"/>+
    +</bindings>+
    +</pageDefinition>+
    *Application Module Implementation:*
    +package model;+
    +import model.common.AppModule;+
    +import oracle.jbo.ViewObject;+
    +import oracle.jbo.server.ApplicationModuleImpl;+
    +// ---------------------------------------------------------------------+
    +// --- File generated by Oracle ADF Business Components Design Time.+
    +// --- Custom code may be added to this class.+
    +// --- Warning: Do not modify method signatures of generated methods.+
    +// ---------------------------------------------------------------------+
    +public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {+
    +/**This is the default constructor (do not remove)+
    +*/+
    +public AppModuleImpl() {+
    +}+
    +public void makeVo(){+
    +System.out.println("make vo");+
    +ViewObject vo = this.findViewObject("DynamicVO");+
    +if(vo==null){+
    +System.out.println("vo is null");+
    +}+
    +vo.remove();+
    +System.out.println("Vo removed");+
    +vo = createViewObjectFromQueryStmt("DynamicVo", "SELECT deptno from dept" );+
    +System.out.println("Vo created");+
    +vo.executeQuery();+
    +System.out.println("Vo estimated row count"+vo.getEstimatedRowCount());+
    +}+
    +/**Container's getter for DynamicVo+
    +*/+
    +public DynamicVoImpl getDynamicVo() {+
    +return (DynamicVoImpl)findViewObject("DynamicVo");+
    +}+
    +/**Sample main for debugging Business Components code using the tester.+
    +*/+
    +public static void main(String[] args) {+
    +launchTester("model", /* package name */+
    +"AppModuleLocal" /* Configuration Name */);+
    +}+
    +}+
    *Runtime before clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/1.jpg
    *Runtime after clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/2.jpg
    *Console*
    +1/11/09 11:26:44 make vo+
    +11/11/09 11:26:44 Vo removed+
    +11/11/09 11:26:44 Vo created+
    +11/11/09 11:26:44 Vo estimated row count7+
    *Error:*
    JBO-25003: Object DynamicVo of type View Object not found
    JBO-25003: Object DynamicVo of type View Object not found
    Will this work with 10g? If so, has anyone tried and succeeded? Any advice is appreciated.
    thanks,
    wes

    the example is in 11g and makes use adf dynamic forms.
    I donĀ“t know if you can make this in 10g

Maybe you are looking for

  • Ipod sync error when syncing on new computer

    I tried to sync my ipod to my new computer and when i connected it i clicked transfer my apps. This resulted in an error, and now it cannot sync to the new computer, and it wiped out all my apps, including the ones I paid for. Can anyone help?

  • ITunes 11.3.1 update and Apple TV problems

    Since updating iTunes the other day I cant play Photos or stream video through my Apple TV v3. Current firmware on both devices. Used to work okay. No changes made to router or firmware etc. Everything else works as before. Apple TV will however find

  • Problem with periodic settlement rule

    Hello everybody. We are working with SAP ECC 6.0, in a poultry industry which produces egg for consumption. We have defined for address the production costs, a periodic Settlement Rule, considering the percentage of egg production by type (A, B, C, J

  • SP ASR9000 Policing

    HIi, I am trying to design a policing strategy/implementation for circuits we provide as a Service Provider, be it internet circuits or EoMPLS circuits (in the future I will have the requirement to do the same for VPLS and L3 IPVPN circuits). All of

  • Mod_dsame_so is garbled

    We are tring to install iplanet Policy Agent Pack 1.1 on our Solaris 8 box. we get the following message when we try to start the web server: Syntax error on line 1 of /etc/opt/SUNWam/conf/APACHE/_opt_IBMHTTPD_conf/dsame.conf: API module structure `d