ADF Faces & BC 10.1.3.4: Barcode Printing & ADF version of WebUtil?

Hi all,
Our existing application is built with Oracle Forms/Reports 9i which also uses Oracle WebUtil 10g because we need to print bar code labels. Our oracle forms appilcation invokes "Host" commands which allows it to print directly to the server's printer ports, this is accomplished by invoking WebUtil functionality which somehow bypasses(probably not the correct term to use) the jvm security sandbox. We need to have a similar barcode printing functionality on our ADF Faces/BC application however I'm not aware of the existence of "ADF WebUtil" which can be configured to allow access to printer ports.
Here is some code snipets for the 9i Forms application for printing (which is done through Internet Explore Browser)
CLIENT_TEXT_IO.PUT_LINE(myPrinter, output_str);
If lineType = 'B' Then vertStartTemp := vertStartTemp + vertBStep;
Else vertStartTemp := vertStartTemp + vertAStep;
End If;
End Loop;
/* last line */
output_str := 'P1'||chr(13)||chr(10);
CLIENT_TEXT_IO.PUT_LINE(myPrinter, output_str);
CLIENT_TEXT_IO.FCLOSE(myPrinter);
EXCEPTION
WHEN OTHERS THEN
CLIENT_TEXT_IO.FCLOSE(myPrinter);
message(sqlerrm );
Raise Form_Trigger_Failure;
END;
Here is some java code which uses the awt library (only works locally due to jvm secuirty sandbox)
public void testZebraBarCode(ActionEvent actionEvent) {
//called from a commandButton action listner. will fail upon deployment to server because its trying to access native resouces.
try {
PrintService psZebra = null;
PrinterJob printJob = PrinterJob.getPrinterJob();
if (printJob.printDialog()) {
psZebra = printJob.getPrintService();
DocPrintJob job = psZebra.createPrintJob();
String s =
// Set Reference Point
// Clear Image Buffer
// Print direction (from Bottom of buffer)
// Set label Length and gap
"R0,0\n" + "N\n" + "ZB\n" + "Q122,16\n" +
"A160,2,0,3,1,1,N,\"DATA: CARUGATE\"\n" +
"B160,30,0,1A,2,7,50,N,\"612041600021580109\"\n" +
"A160,92,0,1,1,1,N,\"AIA AGRICOLA IT.ALIMENT.S - 594679/VR\"\n" +
"P1\n";
byte[] by = s.getBytes();
DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
// MIME type = "application/octet-stream",
// print data representation class name = "[B" (byte array).
            Doc doc = new SimpleDoc(by, flavor, null);
            job.print(doc, null);
        } catch (PrintException e) {
e.printStackTrace();
Can anyone point me to the proper direction on how to accomplish this task?
Thanks,
Wes

Hi,
if you build a web application then you have to integrate a Swing based Applet to the web age to access the local client. You can't with native web means
Frank

Similar Messages

  • ADF Faces + hardware device in the client side.( adf swing  or adf java fx)

    We are using adf+swing in desktop app.
    We like ADF Faces but we need interations with Hardware device in the client side: scan reader, web cam, bar code reader, finger prints reader …
    How to do that’s in the adf faces web environment ( what about with sandbox security) how to obtain in the adf faces web page in the client side de video streams.
    In the future adf will be use Java FX?
    Thanks
    Juan Carlos Llanes

    Hi,
    see sample 71 http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    You can use ActiveX plugins or JavaApplet to access the client system. To reach out of the sandbox, it will require a certificate
    In the future adf will be use Java FX?
    No.

  • 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

  • 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 Dependent list boxes in an editable table

    Hi,
    I'm working with JDeveloper 10.1.3.1.0.
    I saw the topic "How to build dependent list boxes with ADF II" on F. Nimphius' Blogbuster.
    There it is shown how to handle dependent list boxes in an ADF Faces form. I tried this for an editable table but it doesn't work correctly: If there is more than one row in the resultset of the table, both dependent list boxes have the same content in all the rows though the content in the database is different.
    Can anyone help me?
    Thanks.

    Ok - I will try.
    I built the listboxes like it is described in "ADF Faces: How to built dependent lists boxes with ADF and ADF Faces Part II", Frank Nimphius' Blogbuster July, 2006.
    This is the full code of my ManagedBean:
    package asdb.view.backing;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.OperationBinding;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.binding.BindingContainer;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
    public class AktMitFktEdit {
    private BindingContainer bindings;
    public AktMitFktEdit() {
    public void kategorieWechsel(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bc = this.getBindings();
    DCIteratorBinding kategorienIter = (DCIteratorBinding)
    bc.get("OrganKategIterator1");
    Row rw =
    kategorienIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    String kategorie = (String)rw.getAttribute("Kategorie");
    OperationBinding opBindingOrganeLovIter = (OperationBinding)bc.get("ExecuteWithParams");
    opBindingOrganeLovIter.getParamsMap().put("kategorieParam",kategorie);
    opBindingOrganeLovIter.execute();
    public void setBindings(BindingContainer bindings)
    this.bindings = bindings;
    public BindingContainer getBindings() {
    return bindings;
    It works fine, when the user only want to update existing rows. But if he had inserted a new row and afterwards want to update existing rows, the listboxes don't show the correct contents. No error messages are displayed.

  • ADF Faces 16 Components not displaying in Disign Tab

    I am trying to create a page with the ADF Faces Table component. When I add the component to the page it tells me to restart JDeveloper (as expected). When I restart JDev the page shows up blank in the designer tab. The source tab seems to have all the code.
    Also, when I run the project the page does display with the header text but without the table.
    Any ideas on how to get the components to show in the designer?

    btw, here is the jsp code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA16"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA16/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html binding="#{backing_JSFCustomerUwq.html1}">
    <afh:head title="JSFCustomerUwq"
    binding="#{backing_JSFCustomerUwq.head1}">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <style type="text/css">
    body {
    background-color: #ffffff;
    </style>
    </afh:head>
    <afh:body binding="#{backing_JSFCustomerUwq.body1}">
    <link href="css/blaf.css" rel="stylesheet" media="screen"/>
    <h2>
    My Delinquent Customer Work List
    </h2>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    <af:table binding="#{backing_JSFCustomerUwq.table1}" banding="Row"
    bandingInterval="2" rows="5"
    value="#{CustomerUwqBean.customers}" var="DelCustomers"/>
    </p>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>

  • ADF FACES: jdeveloper hangs on opening a .jspx file

    I may not have had this file open since updating to EA13, but I'm not positive. Upon trying to open the file (code below), jdeveloper hangs. It sucks down roughly 50% of the CPU and the memory footprint slowly grows (about 3 MB per minute). As of now, I've tried restarting jdeveloper and then opening the file, but the behavior is the same. I have let it run for nearly 15 minutes and it is still hung (to the point that the display is not redrawn when a window, such as the task manager, is closed after obscuring part of the jdeveloper window).
    I'm running jdev version 10.1.3.0.2.223
    ADF Faces EA13
    On windows 2003 Server
    Here's the code:
    <?xml version='1.0' encoding='iso-8859-1'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA13"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA13/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <f:view>
    <afh:html>
    <afh:head title="Case Details">
    <!--<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>-->
    <title>
    Case Details
    </title>
    </afh:head>
    <afh:script source="js/mwb_gecko.js" rendered="#{clientInfo.gecko}"/>
    <afh:script source="js/mwb.js"/>
    <afh:body>
    <af:form>
    <af:panelPage title="Case Details">
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <f:facet name="brandingApp">
    <af:panelGroup>
    <af:outputFormatted value="MedCierge Workbench" styleClass="OraHeader"/>
    <af:objectImage source="/images/pbs.gif"/>
    </af:panelGroup>
    </f:facet>
    <f:facet name="brandingAppContextual">
    <af:outputFormatted value="Flagship Healthcare Management, Inc."
    styleUsage="inContextBranding"/>
    </f:facet>
    <f:facet name="menuGlobal">
    <af:menuButtons>
    <af:commandMenuItem text="Home" action="agenthome"/>
    <af:commandMenuItem text="Logout" action="logout"/>
    <af:commandMenuItem text="Help" action="help"/>
    </af:menuButtons>
    </f:facet>
    <f:facet name="infoUser">
    <af:outputText value="Logged in as #{sessionScope.agentName}"
    styleClass="OraPageStampText"/>
    </f:facet>
    <f:facet name="actions">
    <af:panelButtonBar>
    <af:commandButton id="ReturnButton"
    textAndAccessKey="&amp;Return to #{pageFlowScope.caseReturnName}"
    action="#{nav.returnFromFlow}"/>
    </af:panelButtonBar>
    </f:facet>
    <f:facet name="appCopyright">
    <af:outputText value="copyright facet"/>
    </f:facet>
    <f:facet name="appPrivacy">
    <af:commandLink text="privacy facet" action="action.none" />
    </f:facet>
    <f:facet name="appAbout">
    <af:commandLink text="about facet" action="action.none" />
    </f:facet>
    <af:panelGroup type="vertical">
    <af:panelForm labelWidth="5%">
    <af:panelLabelAndMessage label="Owner:">
    <af:outputText value="#{pageFlowScope.case.owningAgentId}"
    styleClass="OraFieldText"/>
    <af:outputFormatted value=" &lt;b>[You own this case]&lt;/b>"
    styleClass="OraFieldText"
    rendered="#{pageFlowScope.case.owningAgentId == sessionScope.agentId}"/>
    <af:outputFormatted value=" &lt;b>[You do not own this case]&lt;/b>"
    styleClass="OraFieldText"
    rendered="#{pageFlowScope.case.owningAgentId != sessionScope.agentId}"/>
    </af:panelLabelAndMessage>
    <af:inputText label="Case ID:" value="#{pageFlowScope.case.id}" columns="10"
    readOnly="true" shortDesc="Unique ID for this case"/>
    <af:inputText value="#{pageFlowScope.case.serviceType}" label="Service Type:"
    columns="10" readOnly="true"
    shortDesc="Service requested: 'referral' or 'emergency'"/>
    <af:inputText value="#{pageFlowScope.case.openDate}" label="Opened:"
    columns="10" readOnly="true" shortDesc="Date this case was opened">
    <f:convertDateTime pattern="MM/dd/yy HH:mm"/>
    </af:inputText>
    <af:inputText value="#{pageFlowScope.case.closeDate}" label="Closed:"
    columns="10" readOnly="true" shortDesc="Date this case was closed"
    inlineStyle="{color: red}"
    rendered="#{!(empty pageFlowScope.case.closeDate)}">
    <f:convertDateTime pattern="MM/dd/yy HH:mm"/>
    </af:inputText>
    <af:inputText value="#{pageFlowScope.case.primaryRequest}" label="Primary Request:"
    columns="80" readOnly="true"
    shortDesc="Short summary of the member's request"/>
    <af:inputText value="#{pageFlowScope.case.appointmentPreferences}"
    label="Appt. Preferences:" columns="80" readOnly="true"
    shortDesc="Member's preferences on appointment times"/>
    <af:inputText value="#{pageFlowScope.case.callbackData}" label="Call Back Data:"
    columns="40" readOnly="true"
    shortDesc="Phone/email to use for calling member back"/>
    </af:panelForm>
    <af:panelGroup type="vertical">
    <af:forEach items="#{pageFlowScope.case.activitiesByDate}" var="act">
    <af:objectSpacer height="10" width="0"/>
    <af:objectSeparator/>
    <af:outputFormatted value="&lt;b>#{act.date}&lt;/b>" inlineStyle="{background-color:#cccc99}"/>
    <af:objectSpacer height="5" width="1"/>
    <af:panelGroup type="horizontal">
    <af:panelForm>
    <af:inputText label="ID:" value="#{act.id}" readOnly="true"/>
    <af:inputText label="Type:" value="#{act.type}" readOnly="true"/>
    <af:inputText label="MedCierge:" value="#{act.agentId}" readOnly="true"/>
    </af:panelForm>
    <af:objectSpacer width="5" height="1"/>
    <af:inputText rows="4" readOnly="true" columns="80" value="#{act.notes}"/>
    </af:panelGroup>
    <!-- Output data specific to Inbound Call activities -->
    <af:objectSpacer height="10" width=""/>
    <af:panelGroup rendered="#{act.type=='ibcall'}">
    <af:commandButton text="Show Call Details" action="dialog:showCall"
    partialSubmit="true" rendered="#{!(empty act.call)}"
    windowHeight="500" windowWidth="750">
    <af:setActionListener from="#{act.call}"
    to="#{pageFlowScope.call}"/>
    </af:commandButton>
    </af:panelGroup>
    <!-- Output data specific to Inbound Email activities -->
    <af:panelGroup rendered="#{act.type=='ibemail'}">
    <af:outputText value="Inbound email #{act.type}"/>
    </af:panelGroup>
    <!-- Output data specific to Outbound Call activities -->
    <af:panelGroup rendered="#{act.type=='obcall'}">
    <af:outputText value="Outbound Call #{act.type}"/>
    </af:panelGroup>
    <!-- Output data specific to Outbound Email activities -->
    <af:panelGroup rendered="#{act.type=='obemail'}">
    <af:outputText value="Outbound email #{act.type}"/>
    </af:panelGroup>
    </af:forEach>
    </af:panelGroup>
    </af:panelGroup>
    </af:panelPage>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>

    Helo there,
    I am having exactly the same problem, everytime I include af:forEach tag inside the af:selectOneChoice for example, preview of JSP is not shown and whole developer hangs, in task manager I can see 100% CPU occupation by JDeveloper.
    But the code itself is ok, if I run the page while editor is in Source mode Page is properly shown in browser, but when I change editor mode to Design it hangs.
    I am using Faces EA17 and JDeveloper 10.1.3
    Does anybody else face the same issue?
    ferdo

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

  • Where is adf-faces-demo.war?

    Hi everyone,
    Does anyone know where I can find and download adf-faces-demo.war that was mentioned in the following page
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_ademowar%7Ehtml/
    I read the Jdev documentation and still don't get the idea how af:progressIndicator work with af:poll and my long running process. I have a button on a jsp that runs a long process via calling of stored procedure. As this DB process usually takes long time to complete, the middle tier will be time-out before it. How can I use progressIndicator and poll to keep user notified and keep the session active ?

    Hi Bonnie,
    You can download it from this page:
    http://www.oracle.com/technology/products/jdev/howtos/10g/adfjsf/how-to-adf-faces-10gjdev.htm
    Under the heading 'Creating an "ADF Faces " Library and registering the ADF Faces tag libraries', point 1) Download the adf-faces-ea10.zip from here. Unzip this file to a separate directory such as d:\adffaces. This directory will contain the subdirectories docs, lib, and src, and the adf-faces-demo.zip. The lib directory will contain the required jar files and tld (tag library descriptors) files for JDeveloper to work with ADF Faces.
    Hope this help.
    Regards.

  • How to  we  use Tiles Framework  with ADF Faces  ?

    Hello Every body,
    Can anyone tell me whether We mix Tiles framework of Struts, and ADF Faces Framework?
    I 've found that we can mix JSF and Tiles, but can we use ADF Faces and Tiles together?
    Waiting for your answer!
    Thanking you ,
    Samba.

    Dear Experts,
    Please help me !
    As I could not get enough help from you masters,
    I set out to do on my own, hoping that at some time you would come to my rescue.
    I designed a simple jspx page SiteLayout.jspx whose code is given below:
    <?xml version='1.0' encoding='UTF-8'?>
    <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:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>SiteLayout</title>
    </head>
    <body>
    <h:form binding="#{backing_SiteLayout.form1}" id="form1">
    <af:table id="PageLayout" width="100%" >
    <!-- <tiles:getAsString name="title" /> -->
    <f:subview id="siteview">
    <tiles:insert definition="siteLayoutDef">
    <af:table id="headertable" width="100%">
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="header">
    <tiles:insert attribute="header"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="topview">
    <tiles:insert attribute="topmenu"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="navigationview">
    <tiles:insert attribute="navigationbar"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="30%">
    <f:subview id="leftview">
    <tiles:insert attribute="leftmenu"/>
    </f:subview>
    </td>
    <td width="70%">
    <f:subview id="contentview">
    </f:subview>
    <tiles:insert attribute="content"/>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="footerview">
    <tiles:insert attribute="footer"/>
    </f:subview>
    </td>
    </tr>
    </af:table>
    </tiles:insert>
    </f:subview>
    </af:table>
    </h:form></body>
    </html>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_SiteLayout-->
    </jsp:root>
    My SiteLayout.jspx defines the layout of the pages on my Web application.
    My Home page is this:
    <?xml version='1.0' encoding='UTF-8'?>
    <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:afc="http://xmlns.oracle.com/adf/faces/webcache"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
    xmlns:graph="/webapp/graph.tld"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Home</title>
    </head>
    <body>
    <!-- <tiles:getAsString name="title" ignore="true" /> -->
    <h:form binding="#{backing_Home.form1}" id="form1">
    <tiles:insert definition="siteLayoutDef" flush="false">
    <tiles:put name="header" value="/Header.jspx" />
    <tiles:put name="footer" value="/Footer.jspx" />
    <tiles:put name="leftmenu" value="/LeftMenu.jspx" />
    <tiles:put name="content" value="/Content.jspx" />
    <tiles:put name="header" value="/TopMenu.jspx" />
    <tiles:put name="footer" value="/NavigationBar.jspx" />
    </tiles:insert>
    </h:form>
    </body>
    </html>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Home-->
    </jsp:root>
    My <tiles-defs> page is this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name="tiles-defs"/>
    <definition name="siteLayoutDef" path="/SiteLayout.jspx">
    <!--<put name="title" value="SiteBean.getQuoteofDay()" /> -->
    <put name="header" value="/header.jspx" />
    <put name="footer" value="/footer.jspx" />
    <put name="content" value=""/>
    <put name="topmenu" value="/TopMenu.jspx"/>
    <put name= "leftmenu" value="/LeftMenu.jspx"/>
    <put name="navigationbar" value="/NavigationBar.jspx"/>
    </definition>
    </tiles-definitions>
    My Web.xml is this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <!-- Tiles ViewHandler config file -->      
    <context-param>      
    <description>Tiles configuration      
    definition files and a listener need to be defined.      
    the listener will initialize JspTilesViewHandlerImpl with tiles definitions.      
    </description>
    <param-name>tiles-definitions</param-name>      
    <param-value>/WEB-INF/tiles-defs.xml</param-value>      
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml, /WEB-INF/tiles-defs.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jspx</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
    <param-value>
    org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
    </param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <servlet>
    <servlet-name>Tiles Servlet</servlet-name>
    <servlet-class>
    org.apache.struts.tiles.TilesServlet
    </servlet-class>
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <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>
    </web-app>
    The Error I'm getting is :
    IllegalStateException :No ADFRenderingContext;
    What happened?
    Where did I go wrong?
    could you please help me?
    Thanking you in advance,
    Waiting for your response,
    Samba.
    Message was edited by:
    saasira
    Message was edited by:
    saasira
    Message was edited by:
    saasira

  • Oracle.adf.faces.STATE compressed?

    Dear all,
    i have a question about how adf faces saving its view sate.
    in jsf (1.1_02), i can specify a context-parameter com.sun.faces.COMPRESS_STATE=false to avoid compressing the state information.
    adf faces seem store the view info in a hidden form field "oracle.adf.faces.STATE"
    is there any similar parameter in adf faces?
    or adf faces don't compress the state info?
    thank you.

    Jonas,
    It works if I include the following:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The source is now:
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA8" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <f:view>
    <af:outputText value="hello ADF Faces!"/>
    </f:view>
    </body>
    </html>
    Did I feel out something in my library entry?
    Thanks.

  • Questions for ADF Faces

    I have been following this forum for about a year now and thought I should raise some questions regarding current ADF Faces state.
    With the recent donation to Apache, is Oracle going to continue roll out enhancements and is there going to be an ADF.Next?
    A good place to demonstrate commitment is by having a dedicated ADF Faces and BC forum (preferable built using it too!).
    There are several third party vendors that offer key JSF based UI components (AJAX based table, input, menus, drag and drop, etc.. ), are there any plans to incorporate these into the ADF Faces component library?
    Finally, has anyone deployed ADF based application in production? If you have a success story you would like to share, I have a case of beer with your name on it. Shoot me a hello at [email protected] See you at OOW.
    -Wes

    Oracle is still developing ADF Faces - but now we are doing it together with Apache on the trinidad project.
    In addition Oracle is building an AJAX based rendering kit on top of the components - you can see a demo of these new components if you'll check the replay of Thomas's Kurian keynote at this year's Javaone.
    http://webcast-west.sun.com/ramgen/archives/06D00627/06D00627_03_300.rm
    If you want an ADF Faces forum - you can use the apache forum.
    We rather keep a unified forum for all things related to JDeveloper and ADF, since there are many questions that cross the boundries between topics, and since it makes it easier for us to only need to monitor a single forum.
    And yes there are ADF Faces based applications out there in production, and some of them are even on the Internet.
    https://wwws.gen.lacapitale.com/CoteWebAuto/faces/pages/webepIntr.jspx
    and
    http://at.sparinvest.com/sparinvest/faces/portal/home/start.jsp
    For example.

  • ADF FACES:Creating custom component on top of adf

    My UI requiement is sth like
    Name : xxxxxxx
    Description : xxxxxxxxx
    Search : cccccc
    This UI i want to create as a custom tag and use it across our project.
    We need to include this utiltiy in JSP Tag libraries so that it appears in
    the compoent palette.
    WE have done the same thing using pure JSF and it is working fine.
    But we need to leverage ADF classes.. so that we can get the same look and
    feel and we simply set our proprties and renering part will come from ADF faces.
    In my main component class I have written the code sth like
    public void encodeChildren(FacesContext context)throws IOException {
    RenderKit rk = context.getRenderKit();
    CoreInputText buton = new CoreInputText();
    buton.setValue("my text");
    buton.setRendered(true);
    rk.getRenderer("myFamily", getRendererType()).encodeBegin(context, buton);
    After doing this I run my test.jsp and no output is produced.
    So can you let us know the correct way for doing this.
    This is a high priority requirement for US.if anybody can pls help asap..
    Thanks
    Ravi

    Hi All,
    I was able to get this code to run and wanted to share with you the corrections
    ================== HelloUIComp.java ==============
    package view.components.msg;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.core.CoreForm;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.layout.CorePanelForm;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.adf.view.faces.component.core.output.CoreMessage;
    import oracle.adf.view.faces.component.core.output.CoreMessages;
    public class HelloUIComp extends UIComponentBase {
    private CoreCommandButton button;
    private CoreInputText intext;
    private CoreInputText description;
    private CorePanelForm panel;
    private CoreForm form;
    public static final String COMPONENT_TYPE = "com.mycompany..hello";
    // This will be a self-rendering component
    public static final String RENDERER_TYPE = null;
    public HelloUIComp() {
    FacesContext context = FacesContext.getCurrentInstance();
    Application apps = context.getApplication();
    UIViewRoot root = context.getViewRoot();
    panel = (CorePanelForm)apps.createComponent(CorePanelForm.COMPONENT_TYPE);
    panel.setId("errPanel");
    panel.setLabelWidth("35%");
    panel.setRows(7);
    getChildren().add(panel);
    form = (CoreForm)apps.createComponent(CoreForm.COMPONENT_TYPE);
    form.setId("errForm");
    panel.getChildren().add(form);
    intext = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    intext.setId("name");
    intext.setLabel("Name");
    intext.setRendered(true);
    intext.setRequired(true);
    form.getChildren().add(intext);
    description = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    description.setId("description");
    description.setLabel("description");
    description.setRendered(true);
    description.setRequired(true);
    description.setRows(3);
    form.getChildren().add(1, description);
    public boolean getRendersChildren() {
    return true;
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    panel.encodeAll(context);
    /* The below code can replace the encodeAll call
    panel.encodeBegin(context);
    if(panel.getRendersChildren()){
    panel.encodeChildren(context);
    panel.encodeEnd(context);
    public String getFamily() {
    return COMPONENT_TYPE;
    ==========================================================
    Notice, you don't need any setters/getters for this object.
    You will need the following tag file:
    ============= HelloUICompTag.java ========
    package view.components.msg;
    import javax.faces.webapp.UIComponentTag;
    public class HelloUICompTag extends UIComponentTag{
    public HelloUICompTag() {
    public String getComponentType() {
    return HelloUIComp.COMPONENT_TYPE;
    public String getRendererType() {
    // Self rendering components return null
    return HelloUIComp.RENDERER_TYPE; // should be null
    =========================================
    You will need to update your faces.config file with the following entry. Notice you do not need an entry under render kit.
    <component>
    <component-type>com.mycompany.hello</component-type>
    <component-class>view.components.msg.HelloUIComp</component-class>
    </component>
    Finally, you will need to create (or append to) a tag library
    ================== myTest.tld ====================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <taglib 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-jsptaglibrary_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>tests</display-name>
    <tlib-version>1.0</tlib-version>
    <short-name>tests</short-name>
    <uri>http://mycompany.mil/tests</uri>
    <tag>
    <name>hello</name>
    <tag-class>view.components.msg.HelloUICompTag</tag-class>
    <body-content>JSP</body-content>
    </tag>
    </taglib>
    =============================================
    Notice you don't need a custom renderer class. The component is self-redering.
    To use the component, create a myTest.jspx file like the following:
    ============ myTest.jspx ===============
    <?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:mebs="http://mycompany.com/tests">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html>
    <afh:head title="Testing Components">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <h:form>
    <af:panelPage title="My Component Test">
    <f:facet name="menu1"/>
    <f:facet name="menuGlobal"/>
    <f:facet name="branding"/>
    <f:facet name="brandingApp"/>
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <!--
    Well, this is a bad place to put our component
    This will render a <af:form> within the above <h:form>
    Should be placed outside the h:form or edit the component and remove the form
    -->
    <mebs:hello/>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    ===================================
    Hope this helps you.

  • ADF faces PanelPage component

    I want to install this but I am unable to find the way.
    How can I install this?
    I used wizard to generate this welcome page:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    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:adfp="http://xmlns.oracle.com/adf/faces/portlet"
    xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
    but then wizard left me in no man land. I have no idea which files to install, where and how? When I click JSP Tag libraries I do not see components like:
    ADF Faces Components
    ADF faces HTML
    Customizable Components Core

    Does anybody know what is the location of tag libraries referenced in this page?
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    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:adfp="http://xmlns.oracle.com/adf/faces/portlet"
    xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
    <jsp:text>
    <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ]]>
    </jsp:text>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Welcome</title>
    <link type="text/css" rel="stylesheet" href="css/jdeveloper.css"/>
    </head>
    <body><h:form></h:form></body>
    </html>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_WEBINF_pages_Welcome-->
    </jsp:root>

  • ADF Faces and MapViewer

    Hello,
    i'm investigating the possibility to write an ADF Faces MapViewer Client. I'm especially thinking of some Google Maps style navigation, e.g. panning by dragging the map.
    I'd like to use AJAX to prevent full page reloads, so if i drag the map only the map image is reloaded.
    Now the question are:
    1. How do i extend the ADF Faces Components with AJAX Scripts without breaking the ADF Faces PPR concept?
    2. Is it possible to trigger the reload of an ADF Faces component from my javascript?
    3. Is it possibe to extend the java classes for the components or the renderer with my own code?
    4. Has anyone already created an example that uses ADF Faces and MapViewer?
    Thanks for help,
    Dirk

    Hi,
    I just talk with our admin. The problem was server port 8080. Some of internet providers (also one of the biggest Polish) blocks this port. It's a reason - when I change internet connection to other everythig works OK. I thing it would be nice to change server port to default 80, if you want to make this application accessile for all.
    Kuba

Maybe you are looking for