Create dynamic code on a JSF with ADF Faces

Hi,
the next is just sample, nothing to production system, but if I can do the sample I can do something to production system.
Fine.
let's suppose that I want to create a html link
in run-time over a JSF page with ADF Faces component.
I can do that, I did using javascript and Custom tag,
but the html link is placed out of the body of the page instead of put it over the place that I put it in development-time
so, now my question is:
how I can generate dynamic code using ADF FACES component commandButton or any others.
any suggestion??
P.D. if you need more info ask me.

Hello Jeanne.
You are right, I used <f:verbatim> element to wrap all my non-JSF elements and it work. :)
so good so far.
but, dynamic code mean generate code in this case HTML in run-time.
That is to say: write code HTML just in time I invoke a page.
That is posible through Custom Tags.
You create a Custom Tags this tag generate HTML code after to process any Business Logic. then you put the tag in the page that you want to use it
someting like this:
<afh:rowLayout halign="center">
<afh:cellFormat halign="center">
<ESE-utilities:populateMenu/>
</afh:cellFormat>
</afh:rowLayout>
the just above bold line is my Custom Tag that generate HTML code
and not work.
but, if I replace the tag directly using HTML code in the page, for example:
<afh:rowLayout halign="center">
<afh:cellFormat halign="center">
<f:verbatim>
prueba
</f:verbatim>
</afh:cellFormat>
</afh:rowLayout>
it work
so, now my new question is:
¿How can I use a Custom Tagthat generate HTML code, and that code have been written inside of my body page?
Thanks in advantage for your reply.
Mauricio

Similar Messages

  • JDEV 10.1.3: Using "Create" binding on BC view object with ADF Faces Table

    Hello,
    I am trying to get this to work, but to no avail:
    I've got a very simple page (ADF Faces - JSPX) created by dragging an iterator from the data control pallete on to my page and picking "ADF Table..." as my chose to create. This creates a table on my page that allows me to edit each row in place. Very nice.
    Now, I dragged the create operation for that iterator on to the page. What I had hoped to see is that when I click "Create," a new blank row appears in my table (well, at least a row that is blank except for any default values specified in the EO/VO and my overriden create() method).
    However, this doesn't happen. The page submits and refreshes, but no blank row shows up. I initially tried setting the Create button to do partial submit and setting the partialtriggers for the table to include the Create button, to no avail. I also tried it without the partial submit with the same results.
    So:
    1). Should this work, or is this behavior a bug.?
    2). If not, is there a different/better way of doing it?
    Regards,
    John

    G'day John
    I think I can give you a hint of what is occuring... I'm still trying to work out what is happening exactly.
    In JDev 10.1.2 UIX, when the user invoked the create action, they would see the blank record added to the underlying table. Under 10.1.3 Faces the functionality is somewhat different.
    When you the user clicks on the create action a blank record is created but not shown in the table control. To prove the blank record is there try this:
    1) Build an ADF Input Form based on the same VO iterator
    2) In your JSF navigation, create a navigation case between the existing page and the new page, and another back again,
    3) In the existing page, map the Create button's action attribute to navigate to the ADF Input Form
    4) In the ADF Input Form, map the Submit button's action attribute to navigate to the ADF Table page.
    Now when you run your app, notice when you create a new record in the ADF Table which automatically takes you to the ADF Input Form, note the blank record, and the details you enter into the record here and submit, are then visible in the ADF Table on the return.
    This is a long way of proving that the new record is in the table. It's just you can't see it.
    I have a theory which I'm trawling through the newly updated documentation to verify. This issues goes back to the VO createRow vs insertRow method calls that have been documented by Steve Muench a couple of times. I'm guessing the table control is now smarter and doesn't show createRow records, only insertRow records.
    Read one of Steve's posts here regards the createRow vs insertRow method calls:
    http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html
    If I find anymore info I'll endeavour to post it.
    Meanwhile this of course doesn't help you if you actually want to show the blank row in the ADF Table editable control, but I'd thought I'd give you an idea of what's happening behind the scenes.
    Hope this helps.
    CM.

  • Creating an HGRID with ADF Faces

    Is there any sample code to build HGRID with ADF faces?
    -SM

    see treeTable in the demo zip which contains a demo war available for download here:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html

  • Generate input text fields dynamically on clicking a image with adf??

    Is it possible to generate input text fields dynamically on clicking a image with adf??
    The functionality to add and remove text field from UI with ADF??

    Yes, you can dynamically add components to a page.
    [url http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html]Here is an example - it demonstrates with ICE Faces components, but the concept is the same for any type of component, including ADF
    John

  • "Developing Smart Web UIs with Ajax, JSF, and ADF Faces" example

    I'm trying to get this example (http://www.oracle.com/technology/pub/articles/cioroianu_jsfajax.html) to work within JDeveloper, during compilation I'm getting an error:
    C:\jptest\view\public_html\msgIndexResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\jptest\view\public_html\helloNameResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\view\public_html\ajaxCtrl.jsp
    Error(6): tags:response is not a registered tag in that namespace.
    Has anyone attempted at this example and ran into the same problem?
    Thanks
    -Wes

    There is no such document for (1) because we are in the process of delivering design time support for ADF BC integration with ADF Faces, as you mentioned.
    Therefore, you could either continue with ADF UIX, ADFm, ADF BC for the time being, or else try out ADF Faces with session scope Managed Beans. In either case, you'll want to convert this later on, when JDev 10.1.3 completes its support for ADF Faces / ADF BC drag-and-drop integration.
    Kind Regards.

  • Difficulty with ADF Faces/ADF Essentials and Glassfish

    Hi all,
    I've got a web application written with ADF Faces, and it runs just fine within jDeveloper 11.1.2.3 but when I deploy it to Glassfish 3.1.2 (with ADF Essentials installed) something curious happens.
    My application has no difficulty performing database reads, but when it tried to write to the database and commit, it fails.
    I've seen only a couple of other people with this problem, and none of them seem to have found a solution - so I'm assuming it's something stupid that I'm doing or misunderstanding.
    Here is the log file:
    [#|2013-11-10T11:45:17.601-0500|WARNING|glassfish3.1.2|oracle.adf.controller.faces.lifecycle.Utils|_ThreadID=79;_ThreadName=Thread-2;|ADF: Adding the following JSF error message: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
      at oracle.jbo.server.BaseSQLBuilderImpl.isSQLRecoverableException(BaseSQLBuilderImpl.java:4575)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3380)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
      at app.AppModuleImpl.commitOperation(AppModuleImpl.java:50)
      at com.methods.lrc.view.VendorBean.createPaymentReceived(VendorBean.java:509)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
      at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
      at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at com.methods.lrc.view.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:42)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:724)
    Here is the method where it fails:
        public String createPaymentReceived() {
            AppModuleImpl appModule = this.getAppModule();
            ViewObjectImpl paymentReceivedVOI = appModule.getPaymentsReceivedView3();
            Row paymentRow = paymentReceivedVOI.createRow();
            paymentRow.setAttribute("CheckNumber", prCheckNumber);
            paymentRow.setAttribute("PaymAmount", totalSelectedValue);
            paymentRow.setAttribute("PaymentComment", prComment);
            paymentRow.setAttribute("PaymentDate", prPaymentDate);
            paymentRow.setAttribute("PaymentType", prPaymentType);
            paymentRow.setAttribute("TrackId", prTrackId);
            appModule.commitOperation();
            DBSequence paymentsReceivedId = (DBSequence)paymentRow.getAttribute("PaymentsReceivedId");
            Iterator selectionIt = unpaidPaymentItemsTable.getSelectedRowKeys().iterator();
            while (selectionIt.hasNext()) {
                Object rowKey = selectionIt.next();
                unpaidPaymentItemsTable.setRowKey(rowKey);
                int index = unpaidPaymentItemsTable.getRowIndex();
                JUCtrlHierNodeBinding row = (JUCtrlHierNodeBinding)unpaidPaymentItemsTable.getRowData(index);
                Row selectedRow = row.getRow();
                selectedRow.setAttribute("PaymentsReceivedId", paymentsReceivedId.getSequenceNumber());
                selectedRow.setAttribute("PaymentDate", prPaymentDate);
            appModule.commitOperation();
            prCheckNumber = null;
            totalSelectedValue = 0;
            prComment = null;
            prPaymentDate = new Date();
            prTrackId = null;
            prPaymentType = "K";
            refreshTableIterator("VendorPaymentItemsView1Iterator");
            refreshTableIterator("VendorPaymentsReceived1Iterator");
            return null;
    it fails on the second appModule.commitOperation() (which I've bolded)
    if anyone can give a clue to what I'm misunderstanding I'd really appreciate it.  I'm sure that if I had the course for BaseSQLBuilderImpl.java and/or DBTransactionImpl it would be easier to see what the actual error was - unfortunately java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception doesn't tell me much of anything.
    Thanks so much to anyone who's got the time/knowledge to help.
    Bob

    That doesn't seem to make any difference.  It works just fine within jDeveloper, but as soon as I deploy it, I can no longer write to the database.
    A few more details that seem relevant - it's not only this method that fails.  Even on screens which were designed without any backing code (where I used the wizards to create my forms and commit buttons) the same exact thing happens.
    I've also replicated this behavior in Tomcat.
    Part of what is happening is that something is throwing a NoClassDefFoundError, which is caught by a catch (Throwable thEx) clause within DBTransactionImpl.  This passes the Error to a method (isSQLRecoverableException) within the BaseSQLBuilderImpl class.  The problem is that this method takes only Exceptions for arguments, and NoClassDefFoundError is not a subclass of Exception (only of Throwable.)
    It seems obvious to me that there's somewhere a jar missing, but I cannot find it without knowing which class was not found.

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • Hi, I want to open dialog window with ADF Faces

    Hi, I want to open dialog window with ADF Faces when commandButton pressed, but the window opended at same window, not opened new window.
    my command button is follow,
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    windowHeight="200"
    windowWidth="300"/>
    I am waiting your help....

    Remove the partialSubmit attribute from the declaration of your command button. Therefore, the code you posted should be:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> NOT:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    partialSubmit="true"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Aggregating table - how to solve this with ADF Faces

    Hello.
    I am trying to solve something that would typically be really simple. However, now i' using ADF faces which is new to me and i'm stuck.
    I want to show a table of rows with aggregated numbers (department in example below) and then "open up" any row by clicking on it to display the numbers that make up the aggregate (the guys in the helpdesk department in the example below).
    Something like this:
    DEPARTMENT SALARIES
    +Sales                  1.234.567
    +Warehouse         3.425.553
    -Helpdesk 655.000
    Joe 155.000
    Jill 300.001
    Burt 199.999
    +Personnel           546.225
    +Management     9.646.383
    And to make things more complicated, some of the aggregate rows in my real life example don't have any underlying rows. They just have the total. Can anyone give me hint about how to do this with an ADF Faces-control? I need to show management this can be solved quick and simple with ADF Faces, so i can convince them that it is the way we should be working in the future.
    Edited by: GoodCoffee on Jun 2, 2009 4:15 AM. Trying to indent the three rows under "Helpdesk"

    Hi,
    if you use ADF BC as the business Service then you can create a transient attribute (one that does not ave a database column ) and compute the total. Using JDeveloper 11g, you can use a Groovy expression. The below example calculates the Overall Salary paid by an department. The transient attribute is defined on the Department Entity Object
    XML View
    <Attribute
        Name="SumSalary"
        ColumnName="SUMSALARY"
        SQLType="NUMERIC"
        Type="java.lang.Long"
        ColumnType="NUMBER"
        IsQueriable="false"
        IsPersistent="false">
        <TransientExpression><![CDATA[Employees1.sum("Salary")]]></TransientExpression>
      </Attribute>The Employees1.sum("Salary") string is the Groovy expression that you need to add for the attribute. You select the created transient attribute in the EO editor and press the pencil icon. Then you select "Expression" as the value type and add the string.
    See: http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
    Frank

  • [ANN] JSF and ADF Faces Q&A online session today

    Join us for an online discussion and ask your questions about JSF and ADF Faces. Today (Thu) at 10:00am PST (California time).
    http://www.oracle.com/technology/tech/java/newsletter/seminars.html

    Great here are a few IF there is time:
    1. How round trips will JSF and ADF Faces take upon initial page load? In other words, does the initial page load come with data already populated? This makes a difference for those of us who have data heavy pages with lots of lag. Currently with ADF - UIX it seems as though the page is loaded and then round trips are taken to populate the data in the page.
    2. Is a JSF and ADF faces project in future versions of JDeveloper more easily/efficiently source controlled than current ADF/UIX projects?
    3. What is the extent of the involvement of the struts framework in JSF and ADF Faces?
    Thanks very much Shay.
    -brian

  • Anyone using facelets with ADF Faces and myfaces implementation?

    There is a Howto document for using facelets with ADF Faces, but it assumes you're using Sun's RI. I'd like to use the Apache myfaces implementation of JSF with ADF and facelets, but I keep getting a NoSuchElementException thrown when the pages are accessed.
    Here's the error and stack trace:
    09:15:18,790 INFO [STDOUT] Jan 19, 2006 9:15:18 AM com.sun.facelets.FaceletViewHandler handleRenderException
    SEVERE: Error Rendering View
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:426)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:520)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:450)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    09:15:18,790 INFO [STDOUT] Jan 19, 2006 9:15:18 AM com.sun.facelets.FaceletViewHandler handleRenderException
    SEVERE: Took Type: java.io.PrintWriter
    I followed Adam Winer's instructions for incorporating ADF with facelets (using Sun's RI) and this works fine. But when I try to swap out the Sun RI for the Apache myfaces 1.1.1 implementation I get the exception.
    Here's the info from my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Facelets</display-name>
    <description>Facelets StarterKit</description>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext*.xml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.REFRESH_PERIOD</param-name>
    <param-value>2</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
         <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
              <param-value>false</param-value>
         </context-param>
         <context-param>
              <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
         </context-param>
         <filter>
         <filter-name>adfFaces</filter-name>
         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
         </filter>
    <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
         <init-param>
         <param-name>maxFileSize</param-name>
         <param-value>20m</param-value>
         </init-param>
         </filter>
         <filter-mapping>
         <filter-name>adfFaces</filter-name>
         <servlet-name>faces</servlet-name>
         </filter-mapping>
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
         <listener>
              <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
         </listener>
    <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <listener>
    <listener-class>net.sf.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
         <!-- resource loader servlet -->
         <servlet>
         <servlet-name>resources</servlet-name>
         <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
         </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
         <servlet-mapping>
         <servlet-name>faces</servlet-name>
         <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
         <servlet-name>resources</servlet-name>
         <url-pattern>/adf/*</url-pattern>
         </servlet-mapping>
    </web-app>
    And in my faces-config.xml, I have set it to use the oracle.adf.core render kit:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <!-- from project setup -->
    <application>
    <!-- Use the ADF RenderKit -->
    <default-render-kit-id>
    oracle.adf.core
    </default-render-kit-id>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
         <managed-bean-name>keyTable</managed-bean-name>
         <managed-bean-class>example.KeyInfoNodeData</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    It doesn't seem to matter whether I use <jsp:root xmlns..> tags or <html xmlns ..> tags or whether I use the facelet ui tags or not. I've tried it with several of the ADF components. I always get the pretty facelets exception at the bottom of the page after the ADF component displays.
    Am I missing something? Has anyone gotten these three (ADF w/ myfaces impl and facelets) to work together properly?

    Hi,
    It is supposed to work fine and is working okay, in general, for me. I was setting up a test app yesterday and logged the steps in my blog (http://www.jroller.com/page/mjdenham). I think I logged everything.
    Regards
    Martin

  • JavaScript Prototype with ADF Faces

    Hello.
    How can I integrated the prototype javascript library into a project with ADF Faces?

    Hi again.
    I have a lot of problems using javascript into a ADF Faces.
    Now I am trying to use Event handles. I need to use it becase I want to separate the javascript code.
    I put this code into a file.js
    function sayHello()
         alert('Hello');
    window.onload = function()
         document.getElementById("click").onclick = sayHello;
    I have no answer. I am looking into de HTML generated and I found this:
    <body id="body1" onload="_checkLoad(event)"
    if I remove the "_checkLoad(event)" it works but I can't remove that.

  • How to use JavaScript Calendar with ADF Faces ?

    Hi All,
    Our application is running under limited bandwidth so that we want to use clientside/javascript calendar instead of the ADF Faces calendar (server side).
    I already have the javascript that will pop-up calendar selection dialog when invoked.
    Using JSP, this is working perfectly, BUT I don't know how to integrate this Javascript calendar with ADF Faces form.
    How can I do that ?
    Attached below is the JSP that works with script :
    <f:view>
    <html>
    <head>
    <script language="JavaScript" src="ts_picker.js">
    </script>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Calendar</title>
    </head>
    <body>
    <form name="tstest">
    <input type="Text" name="timestamp" value="">
    <img src="cal.gif" width="16" height="16" border="0" alt="Click here to get the date">
    </form>
    <h:form>
    </h:form>
    </body>
    </html>
    </f:view>

    Hi,
    ADF Faces does not provide a method that allows you to call JavaScript on the client. This may change in upcoming versions
    Frank

  • Jdev11g: How to use a Ord.image data type with ADF Faces 11g

    Where to find an example about Ord.image data type with ADF Faces 11g preview3

    Hi,
    such a sample doesn't yet exist.
    Frank
    Btw.: The Jdeveloper 11 forum is JDeveloper and OC4J 11g Technology Preview

  • Can i make master dietail tabel with ADF faces ea15?????

    Can i make master dietail tabel with ADF faces ea15,
    we supose withe the HR simple between employees tabel master and department tabel deitail with PK department_id from employees tabel.

    yes, but we don't have demos yet. In the jdeveloper 10.1.3 production release this will be automatically supported with drag and drop.

Maybe you are looking for

  • How to do it in JSP

    Hi all Just calling only one method I get the data as follows. E004010001E1B520 E004010001E1B520 E004010001E1B520 E004010001E1B643 E004010001E1B678 E004010001E1B678 What I wanna do it that this value(E004010001E1B520) appears three times, I wanna pri

  • Transfering .csv file from SAP to NON-SAP using FTP connection

    Dear All, I am able to place the .CSV file successfully to other system using FTP connection, but when i open the file I could see the gaps between each record. I mean 1st line with the 1st record and 2nd line having a GAP and 3rd line with the 2nd r

  • Can't seem to eliminate top margin of page

    Page is here: http://www.innerkids.net/tgf-odg2/ The wrapper is an outer table Relevant CSS us: <style type="text/css"> <!-- body { margin-top: 0; .contentcell { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify

  • Reg. csv file upload

    Hi, In my source file i have a single product name as "a,b". But when i try to upload, it is not happening and throwing error. Please can anyone help me? Thanks, Madhu

  • Display blob file with oracle forms

    I need to display an image file with oracle forms. can any body tell me how to do this ? Thanks