ADF FACES showOneTabs and selectOrderShuttle can't cowork

I'm new to ADF FACES. My ADF FACES is EA10.
The code excerpt from EA10's demo works fine when:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:afh="http://xmlns.oracle.com/adf/faces/EA10/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/EA10" >
<jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
<f:view>
<afh:html>
<afh:head title="SelectOrderShuttle Demo"/>
<afh:body>
<af:form>
<af:selectOrderShuttle id="shuttle2"
leadingHeader="Available values:"
trailingHeader="Selected values:"
valueChangeListener="#{list.valueChanged}"
value="#{list.objectList}">
<af:selectItem label="First" value="foo"/>
<af:selectItem label="Second" value="bar"/>
<af:selectItem label="Third" value="baz"/>
</af:selectOrderShuttle>
</af:form>
</afh:body>
</afh:html>
</f:view>
</jsp:root>
But not working when:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:afh="http://xmlns.oracle.com/adf/faces/EA10/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/EA10" >
<jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
<f:view>
<afh:html>
<afh:head title="SelectOrderShuttle Demo"/>
<afh:body>
<af:form>
<af:showOneTabs>
<af:showDetailItem text="Text">
<af:selectOrderShuttle id="shuttle2"
leadingHeader="Available values:"
trailingHeader="Selected values:"
valueChangeListener="#{list.valueChanged}"
value="#{list.objectList}">
<af:selectItem label="First" value="foo"/>
<af:selectItem label="Second" value="bar"/>
<af:selectItem label="Third" value="baz"/>
</af:selectOrderShuttle>
</af:showDetailItem>
</af:showOneTabs>
</af:form>
</afh:body>
</afh:html>
</f:view>
</jsp:root>
Could someone help?

The bug is in showOneTabs, selectOrderShuttle or both?
And when will EA12 be release?
Thanks in advance.

Similar Messages

  • Problem in implements ADF Faces: Detecting and handling user session expiry

    Hello everybody
    I´m trying to implement a method to handle user session expiry as explained by frank nimphius in his blog.
    http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/
    I have implemented the class bellow and add the filters in web.xml. However when I add the JavaServer Faces Servlet to sign the filter, my hole application get nuts. I try to publish the applicatoin in the OAS and it seems that it already starts expired.
    Someone konw what I´m doing wrong?
    I use the filter
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>adf.sample.ApplicationSessionExpiryFilter</filter-class>
    <init-param>
    <param-name>SessionTimeoutRedirect</param-name>
    <param-value>SessionExpired.jspx</param-value>
    </init-param>
    </filter>
    then I add
    XML:
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    package adf.sample;
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    this is the class
    public class ApplicationSessionExpiryFilter implements Filter {
    private FilterConfig _filterConfig = null;
    public void init(FilterConfig filterConfig) throws ServletException {
    _filterConfig = filterConfig;
    public void destroy() {
    _filterConfig = null;
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession = ((HttpServletRequest)request).getSession().getId();
    boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
    // if the requested session is null then this is the first application
    // request and "false" is acceptable
    if (!sessionOk && requestedSession != null){
    // the session has expired or renewed. Redirect request
    ((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
    else{
    chain.doFilter(request, response);
    I'm really having trouble controlling user sessions. if someone know where I can get materials to learn how to implements session in Jdev ADF + BC, I´m very grateful.
    Thank you Marnie

    The class works fine.. the issue is when I add the this code into web.xml
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    bellow the web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>userinterface.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>view.managedBean.ApplicationSessionExpiryFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name> ==> the problem occurs when I try to add this code
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </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>1</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/pain</mime-type>
    </mime-mapping>
    </web-app>
    By the way, how can I post code on the forum properly?

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • I just downloaded face time and I can hear the othe person just fine but they cannot hear me. But when I play music they can hear music. what is the problem and gow do i fix it?

    i just downloaded face time and I can hear the othe person just fine but they cannot hear me. But when I play music they can hear music. what is the problem and gow do i fix it?

    Test your microphone in the Sound preference pane.

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

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

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

  • JBO-35007 in Portletized ADF Faces Page and alternative scenarios

    Hi all,
    I've started a new thread to address one of the problems referred to here Issues with Faces -> Portlet Bridge and ADF Faces
    In short, the issue arises when portletizing an existing ADF Faces page that uses an ADF BC bound af:Table on the page. I've got a very simple ADF Faces page that has an af:Table on it bound to the employees table in the Oracle HR schema. The af:Table allows sorting and has an af:selectTableOne in it's selection facet which contains an af:commandButton. The app works fine when run as a JSF page.
    However, when I use the JSF-Portlet bridge to publish the page as a portlet (following all of the steps in the Web Center Developer's guide, including changing the state_saving_method to "server"), and placing the portlet on a ADF Faces page in a different project, I can consistently create JBO-35007 errors by:
    * Sorting the data in the portlet by clicking the column header
    * Selecting a different row and pressing the af:commandButton
    Clearly, the current row of the iterator is not being saved properly. I can (of course) "fix" this behavior by setting EnableTokenValidation to "false" in the page definition of the ADF Faces page that has been portletized, but this has obvious side effects.
    Should this behavior work as I am trying to implement it? Perhaps it doesn't make sense to "select" an item in a portlet like this (what am I going to do, as the parent application doesn't have access to the selected row information).
    I can, however, think of a good use case:
    User is using a web-store type application to browse items and add them to his shopping cart. Off to the side, we've got a portlet that shows recently purchased items for the user. User clicks item in that portlet (or selects and hits submit - as in my non-working example, above) and then the main web store application navigates to that item in the "main" section. How could I implement something like this? Any navigation case in the portlet is not exposed to the main application. Perhaps there is a different model by which to do this.... I cannot use a PDK event-type approach (this limits my use of Faces to create portlets), so I'm in a bind.
    Thoughts and discussion much appreciated,
    John

    Peter,
    This should be so simple to re-create; here's my project: http://download.yousendit.com/F017E4D457FFA7F3
    It uses the HR sample schema from a stock 10gr2 database. Be sure to set up the ADF BC connection in the model project, build and deploy the portlets, then try running TestPage.jspx in the UserInterface project. You can play around with the pagedef in the Portlet project to see the JBO-35007 error - right now, EnableTokenValidation is set to false - you can change it to true to see the error.
    John

  • ADF Faces - showOneTab PPR problem in Internet Explorer

    Hoping someone has some insight into this that may help. This is causing us a lot of problems for us and could end up causing us to drop ADF faces from our project.
    Basically we are using af:showOneTab in our application and the first time we change tabs and every other time after that, the progress bar in IE basically runs forever and we have problems with afh:script tags that set the focus to the desired input field. We get a Javascript error that the element doesn't exist (it does, checked with a DOM explorer), or its not ready (may not be because of the progress bar) or isn't visible (it is).
    So after a lot of debugging in our application I just went back to the adf demo war file and the showOneTab component demo page in there shows exactly the same behavior. Firefox 1.5.0.7 does not have this problem.
    Here are the relevent versions of everything:
    ADF faces standalone jars, version 10.1.3.0.4 from the main ADF faces page download.
    JSF 1.1_01 RI
    Websphere 6.0 App Server
    Internet Explorer version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
    JDK 1.4 - required because of WAS 6.0
    Thanks!
    Steve

    I did find a workaround to this problem. I think its pretty ugly though. I had to add the following to the page:
    <!-- This code is necessary to prevent the IE progress bar runs forever problem. -->
    <f:verbatim>
         <iframe height="1px" marginheight="0px" marginwidth="0px" id="garbageFrame" name="garbageFrame" width="1px" style="visibility:hidden; position:absolute; top:-200px">
         </iframe>
    </f:verbatim>
    <afh:script id="iframeUpdate"
         text="window.garbageFrame.document.write('');
         window.garbageFrame.close()"/>
    <!-- End of code for IE progress bar problem. -->     
    Then I add the iframeUpdate script as a partial Target in my tab disclosure listener:
         UIComponent c = (UIComponent)de.getComponent();
         UIComponent target = c.findComponent(":iframeUpdate");
         AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
         if(target != null) {
              adfContext.addPartialTarget(target);
    Just thought I'd follow up as I remember others having the progress bar run forever in IE as well.
    Steve

  • ADF FACES: processValidators and ValidatorException bug

    Using EA15.
    Unless I'm misunderstanding how UIComponent.processValidators works, you should just throw a ValidatorException to signal a problem.
    However, in trying just that, the ADF FACES framework is treating the exception as a SEVERE error instead of treating it as a validation failure.
    I have constructed a simple extension to PanelPage so I can invoke my own validation routine, like this:
    * Internal class to provide a validation hook for our forms
    public static class ValidatingCorePanelPage extends CorePanelPage {
    public void processValidators(FacesContext ctx) {
    super.processValidators(ctx);
    // Dispatch the validation to the current form
    FormBean.dispatchFormValidation(ctx);
    dispatchFormValidation will invoke a validation method on the proper backing bean, in which code similar to the following is used:
    String spokeWith = (String)getCompSpokeWith().getLocalValue();
    String callStatus = (String)getCompFinalCallStatus().getLocalValue();
    System.out.println("SPOKEWITH='" + spokeWith + "'");
    System.out.println("CALLSTATUS='" + callStatus + "'");
    // We require a value in "spoke with" if the call status is anything other than
    // "left message"
    boolean isMessageStatus = !StringUtils.isEmpty(callStatus) && StringUtils.contains(callStatus.toLowerCase(),"message");
    if( !isMessageStatus && StringUtils.isEmpty(spokeWith)) {
    // register the error message
    FacesMessage fmsg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incomplete Data",
    "'Spoke with' may not be empty");
    // Add the message to the specific
    // component that is missing data.
    getFacesContext().addMessage("spokewith", fmsg);
    throw new ValidatorException(fmsg);
    However, when this executes (and results in a ValidatorException), I get the following output in my log file:
    05/05/20 15:51:44 <<<< PHASE: RESTORE_VIEW 1
    05/05/20 15:51:44 >>>> PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 <<<< PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 >>>> PHASE: PROCESS_VALIDATIONS 3
    May 20, 2005 3:51:44 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    SEVERE: Incomplete Data
    javax.faces.validator.ValidatorException: Incomplete Data
         at com.fhm.mwb.ui.backing.OfficeCallForm.validateForm(OfficeCallForm.java:256)
         at com.fhm.mwb.ui.backing.FormBean.dispatchFormValidation(FormBean.java:588)
         at com.fhm.mwb.ui.SharedComponents$ValidatingCorePanelPage.processValidators(SharedComponents.java:337)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java)
    And the lifecycle stops dead!
    How is this supposed to work? How are you supposed to report a validation exception from within processValidators?
    This seems to be a bug in ADF FACES.

    <af:forEach> does not support <f:> or <h:> tags; this unfortunate restriction is documented in the <af:forEach> release notes. It's not a bug - it's a fact of life until we can get our technique integrated into the core JSF or JSP specifications.

  • How do I add ADF Faces Core and ADF Faces Html to the component palette?

    I have an already made jspx page which I wish to work further on but I can´t choose ADF components from the component palette.
    in my older version I added these two lines to the <jsp:root> element when I wanted to make ADF components available.
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    but in Jdeveloper 11g preview 3 these two lines seem to have no effect.
    I tried to see what other jspx pages that contained ADF components in 11g had that my page didn´t and found out that they had the line
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    but when I add this line instead of the other two lines and press install JSP tag library Jdeveloper freezes completely. Can anyone help me get ADF components show up in the component palette in Jdeveloper 11g preview 3?
    Message was edited by:
    AtlanticViking

    Hello,
    Jdeveloper 11g uses Trinidad not ADF Faces 10g, to add it, uses the following:
    1. Double-click your project to access project properties;
    2. Select JSP Tag Libraries;
    3. Click Add;
    4. Trinidad Component 11-m3
    Regards,
    ~ Simon

  • ADF Faces Components and HTML/JSP Pages

    We would like to create HTML/JSP pages and include some of the ADF Faces Components; ie: date picker, radio buttons, etc.
    When we develop this type of page, upon running in the embedded OC4J, the HTML is processed first and then the ADF Faces Components are processed. In the design panel/editor, everything is in the correct sequence. Upon running in the OC4J, it doesn't matter where in the code we place the ADF Faces Components, these ADF Faces Components always appear at the end of the other HTML and JSF Faces components in the displayed page.
    How can we mix the two technologies? ADF Faces alone is not flexible enough for our needs. We want to use the JSP:include tag for reusable code which works fine in a HTML/JSP page, but not in a ADF Faces PanelPage or PanelBorder or anything similar.
    We're running the EA17 version of the tag library.
    Can we mix the technologies? What are we missing? Is this an issue with the embedded OC4J? Will it make a difference if we develop JSP pages as pure JSP or the JSPX option?
    Thank you.
    Message was edited by:
    [email protected]

    The following tag lib allowed me to mix HTML and JSF tags (not sure about other JSP tags though). Hope this helps:
    http://jsftutorials.net/htmLib/
    Chris

  • ADF-Faces table and mass data

    Hello Oracle,
    we consider to use ADF-Faces with Spring and TopLink or Hibernate that supports all important commercial databases.
    We need a solution for selecting mass data and show them using a ADF-Faces component.
    ADF-Faces table looks great and is fine for for some hundred datasets. But we have customers who could do a select over 80.000 or more datasets and it cannot be the solution to load them completly in collection-model in memory.
    Do you have a solution or do you plan somthing? A JSF data table component for mass data (e.g. load from database on every "next or "previous" click)?
    Regards
    Florian

    I'm pretty new to ADF Faces etc. but I know the ADF Table component supports paging. If you're using ADF Business Components as the persistence framework it supports paging out of the box giving you exactly what you're looking for.
    If you're using EJBs or Toplink I think you have to write your own paging interface but I don't know this for sure.
    Corey
    Message was edited by:
    cpuffalt
    Message was edited by:
    cpuffalt

  • ADF Faces: PPR and Dialog framework

    Hi All,
    I know that there have been some navigation-related issues reported with 10.1.3 and the dialog framework, so if this is a bug.....
    Anyway, I have an ADF Faces page that displays some data (from ADF View Object) in an af:Table. I have an "Edit Record" button and a "Create Record" button in the appropriate facets of the table. The 2 buttons use a dialog: navigation case (useWindow=true) to open a pop-up window with a record displayed for editing. Each of the buttons also has partialSubmit=true with an appropriate ID set on the button.
    Now, I am trying to get the table to refresh upon return from the dialog. After much experimentation, I have found that setting the partialTriggers property on the af:OutputText components that are inside the af:Table->af:Column will cause an existing row to refresh upon return from the edit button. However, I cannot get a new row to show up inside of the table upon return from the create button. I have tried setting partial triggers on the af:OutputText, af:Column, af:Table, etc all the way up to the top-level af:Page to no avail. I have also tried refreshing the iterator binding in the dialog return, to no avail. If I completely refresh the page (see sample code below), the record does show up, but it does cause other undesirable side effects (screen scrolls to the top, af:showDetailHeader's re-set their state, etc).
    Any pointers are appreciated...
    Here is the code behind my create button:
      public String performCreateCheck()
        DCBindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateNewCheck");
        Object result = operationBinding.execute();
        // Stuff snipped - the CreateNewCheck binding does a "CreateInsert" on my VO
        return "dialog:EditCheck";
      }Here is the code that refreshes the page (causes the new row to appear):
      protected void refreshCurrentPage()
        FacesContext context = FacesContext.getCurrentInstance();
        String currentView = context.getViewRoot().getViewId();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot x = vh.createView(context, currentView);
        x.setViewId(currentView);
        context.setViewRoot(x);
      }Kind regards,
    John

    Found this: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#81
    on Steve M's blog. His example uses exactly the same method that I do. However, It would be nice to get this working "properly" with PPR instead of refreshing the whole page. Here are what I see as the drawbacks to the "refresh the whole page" method:
    1). The page will scroll up to the top. If the page is bigger than a screenful, this is an annoyance.
    2). Any af:showDetailHeader's will have their disclosed property reset (unless you implement some method of saving their state). This is an issue for me, as the af:Table is inside of a normally un-disclosed af:showDetailHeader
    3). If any component anywhere puts something into the faces messages (e.g. "Record saved"), it will be lost when the page is refreshed.
    Any ideas on how to get this working with PPR?
    Regards,
    John

  • ADF Faces: processTrain and Action

    Hi,
    I have followed ADF User's guide and SRDemo guide and SRDemo code to create processTrain.
    The model is based on outcomes defined in faces-config.xml so we can say that Action of commandMenuItem component is rather static - it just takes String from faces-config.xml.
    But I need to have an Action in one step of process train, and the outcome is conditional - if something happens in code of Backing Bean the outcome is "xyz" and if something else, the outcome will be "abc".
    Is that possible?
    thanks,
    Branislav

    Hi,
    you can use EL in the faces-config.xml file to determine the string. However, this is evaluated when the bean used for the train is evaluated first time. So the condition should not change after loading the page
    Frank

  • ADF FACES: ServletException and socket write error

    Using EA17.
    I have (an unfortunately) very complex page that uses a lot of partialTriggers to control components that render based on the state of other components. There are probably a dozen or so components that come and go. There are also a lot of panelGroup components to hold all the optional components and many of the controlling components are autoSubmit radio buttons. There is virtually no code (logic) in my backing bean. All the control work is being done in the .jspx page.
    The exception below occurs after changing a couple of values that make components appear/disappear.
    For starters, what would cause a socket write error from the servlet?
    I know that this is a fairly vague request, but trying to produce a simple test case to reproduce this will be pretty difficult. So, I'm wondering if anyone has seen anything like this? Or has any suggestions on what to poke at??
    Thanks.
    P.S. And worst of all - it's not consistent. I can go through the same series of value/page updates and it will work one time and not the next. :-(
    P.P.S. This error does not occur using Firefox as the browser. This does happen on IE 6. Unfortunately, that's the browser I have to use for internal applications. Maybe this additional information (that it appears to be browser related) will help track down the problem.
    05/07/30 15:47:43 origRenderView failed!
    05/07/30 15:47:43 javax.faces.FacesException: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
    05/07/30 15:47:43      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:146)
    05/07/30 15:47:43      at com.fhm.mwb.ui.view.FHMViewHandler.renderView(FHMViewHandler.java:159)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    05/07/30 15:47:43      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    05/07/30 15:47:43      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:310)
    05/07/30 15:47:43      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:183)
    05/07/30 15:47:43      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:670)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:869)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
    05/07/30 15:47:43      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
    05/07/30 15:47:43      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
    05/07/30 15:47:43      at java.lang.Thread.run(Thread.java:534)
    05/07/30 15:47:43 Caused by: javax.servlet.ServletException: Connection reset by peer: socket write error
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:753)
    05/07/30 15:47:43      at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:700)
    05/07/30 15:47:43      at qaFollowup2e_jspx._jspService(qaFollowup.jspx:232)
    05/07/30 15:47:43      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:343)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:543)
    05/07/30 15:47:43      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:441)
    05/07/30 15:47:43      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    05/07/30 15:47:43      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
    05/07/30 15:47:43      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:672)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:300)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:36)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:207)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JAccessController.doPrivilegedWithException(OC4JAccessController.java:186)
    05/07/30 15:47:43      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:85)
    05/07/30 15:47:43      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
    05/07/30 15:47:43      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    05/07/30 15:47:43      ... 20 more

    Thanks for the information on this.
    What I can't understand is why the first request hasn't finished. I specifically tried waiting several seconds between clicking on various components. From all visual cues (from IE) the previous request has completed and the screen has redrawn. So, the requests shouldn't be overlapping. Is there possibly something happening with the ADF javascript that could be making this happen?
    When the error occurs, the page fails to update properly (i.e., the components that should now be visible due to a change in a radio button selection are not rendered). This leaves the application in an inconsistent state and the page can be filled out improperly by the end user.
    I know that's a long winded way of saying "it doesn't seem innocuous, since the application state gets messed up because of the error."
    Let me know if there's anything I can do to work around this.
    Thanks Adam.

  • I downloaded Face Time and now can't use it because upgraded to OS Lion.

    Is there a new Face Time I can download? Since I upgraded to OSC Lion it won't work. I want to use it.
    thanks
    pat

    Have you gone to the app store to see if there is an update?  Have you tried clicking on Software Update to see if the system offers an update?

Maybe you are looking for