ADF Faces & BC: How to mix JSF EL AND conditions

I'm trying to do something like the following on an executable defined within my pageDef:
RefreshCondition="#{processScope.editRecord==false} && ${ adfFacesContext.postback}"
What should be the proper syntax?
Many thanks,
Wes

Resolved.
Found the syntax in another post with a different topic.
Re: ADF Model : Refresh and RefreshCondition on methodIterator and invokeAc
RefreshCondition="#{ (processScope.editRecord) and (!adfFacesContext.postback) }"

Similar Messages

  • ADF Faces: is mixing JSF RI and ADF Faces tags supported?

    Hi,
    I'm looking at ADF Faces as a future possibility for our application that is currently based on JSF RI.
    When looking at the ADF Faces demo it strikes me that all pages are almost completely built up from ADF Faces tags.
    For instance
    af:form
    af:commandButton
    af:inputText
    are used instead of the equivalent core jsf tags f:form, f:commandButton and f:inputText
    I'm wondering if this is mandatory if we would like to use some ADF Faces components mixed within our existing application.
    In other words: are ADF Faces tags supported in the environment of conventional JSF tags? And mixing ADF Faces JSF components with JSF components by other vendors?
    Another thing that strikes me is that pages are constructed using ADF Faces tags for any and all markup content.
    I guess this is meant to support several different clients (normal browser applications, mobile clients, voice activation over telephone) using different renderers.
    In my experience abstracting markup this way inherently means loss of control over the exact markup that is sent to the client. This is not acceptable for all projects and customers.
    Is embedding ADF Faces tags within template HTML, within f:verbatim tags or not, supported?
    Regards,
    Joost de Vries

    You absolutely can mix JSF RI and ADF Faces tags. This is very much supported! You can swap in <h:form> and <h:commandButton> and <h:inputText>. Our versions support some features that the JSF tags do not, as described in our release notes.
    Your point about using tags to produce all markup is a very cogent one. For some projects, absolute control over HTML will be a necessary requirement, so we do support that style of development. But we believe strongly that the future does not lie in constant handcoding of HTML, but instead in building more powerful, flexible, and reusable components and assembling those into pages. This was one of the themes of a talk I gave with two coworkers at this past JavaOne.
    -- Adam Winer (JSF EG member and ADF Faces lead)

  • How to print the Terms and Condition page ine the sap-script

    Hi experts,
                             i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages)  i have called the hard coded text(i.e so10 text), but when i am displaying the output  data get printed in the first page but i am getting the second page heading on the top of  the terms and condiions page. In all the three pages i  have the same main window, if i  make change in any window i will affect all the other main  windows.  so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
    like this i have called in the MAIN WINDOW
    /E : LAST ( IN ALL THREE PAGES)
           INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
    IN THE TCODE SO10
    NEW PAGE TERMS.
    1) TERM MS AND CONDITONS  TEXT.................................................
    FIRST->NEXT, NEXT->NEXT,,   TERMS--->TERMS.

    Hi,
    1. Create a new page by Name : LAST
    2. Identify the text element which will be the last element in the form in the debug mode.
    Mostly Ex: SUM, TOTAL, LAST etc.,
    3. the page linking should be
    First --> Next
    Next --> Next
    4. In the Text element identified in the step 3.
    Write the following code
    /: NEW PAGE  LAST
    /: INCLUDE the standard text created for the terms and conditions in SO10
    Check the syntax for the command but the logic will be the same.
    It should resolve your problem.

  • Can i use ADF faces in Eclipse to develop JSF applications

    Hi,
    i have used Jdeveloper to develop JSF based application but for some reasons
    i need to run this application in Ecplise. Is there any possibility for that.

    Yes,
    you can run ADF Faces applications in Eclipse. However, if you use ADF for binding then this may be a bit more complicated
    Frank

  • ADF UIX "adf-faces-ea11" with "myfaces-1.0.7" and JBoss 3.2.5

    Hi,
    I tried to deploy adf-faces-ea11 on JBoss 3.2.5, using MyFaces as the JSF engine. The components render OK, but when I press the “af:commandButton” I encounter the following exception:
    If I press on “h:commandButton” I don’t have any problems. (I have attached the jsp page at the bottom of the post)
    javax.servlet.ServletException: Key UINodePropertyKey[validators,13] is a list key
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
    java.lang.IllegalArgumentException: Key UINodePropertyKey[validators,13] is a list key
         oracle.adf.view.faces.bean.FacesBeanImpl._checkNotListKey(FacesBeanImpl.java:403)
         oracle.adf.view.faces.bean.FacesBeanImpl.getValueBinding(FacesBeanImpl.java:83)
         oracle.adf.view.faces.component.UIXComponentBase.getValueBinding(UIXComponentBase.java:164)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:225)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printView(DebugUtils.java:160)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:152)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:132)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:127)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:67)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
    The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ 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/EA11/html" prefix="afh" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af" %>
    <f:view>
    <afh:html>
    <afh:head title="PanelList Demo"/>
    <afh:body>
    <h:form id="test1">
    <af:outputLabel value="Test Oracle"/>
    <!-- A chooseColor which uses the standard "default49" palette -->
    <af:chooseColor id="cp0"
    colorData="#{adfFacesContext.colorPalette.default49}"/>
    <af:selectInputDate id="d1" value="#{DateBean.date1}"
    label="Date picker"/>
    <af:commandButton text="Enter" action="#{DateBean.pressMe}"/>
    <h:commandButton value="Standard Button" action="#{DateBean.pressMe}"/>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>

    It looks like there's some debug tracing code in myfaces that you've enabled that is interacting poorly with ADF Faces. Specifically, ADF Faces is really unhappy when you even try to get a ValueBinding for something that doesn't support ValueBindings (like "validators").
    For now, I'd suggest that you lower the level of logging, at least for the net.sourceforge.myfaces.lifecycle package.

  • How to get the salesprice and condition for a customer / material / date

    Hi all,
    how can I get the correct price and condition for a customer / material / date ?
    I know this is possible using the BAPI_SALESORDER_SIMULATE, but this bapi is using to much ressources on the system.
    I'm trying to get the correct price and condition WITHOUT using that BAPI.
    Does anyone know how it is possible ? As said before : I have the customer, material and a date.
    thanks in advance for your help

    Hi
    You need it because it's possible to have a complex pricing procedure, and you can't do it with a simple select on a table. Think that you can have pricing requirements, formulas (ie: VOFM) and so on in your pricing procedure (tcode V/08).
    I hope this helps you
    Regards
    Eduardo

  • How to approve iCloud terms and conditions in iOS7?

    I just loaded iOS7 on my iPad 2, went through the set-up, and synched with my iMac as I always do. Then on using the iPad it keeps asking me to approve the iCloud terms and conditions. when I click on "view terms" it takes me to the Settings iCloud screen, where i can't view or accept terms. Meanwhile the iCloud features like mail are not working (though they are turned on in settings).
    Can anyone offer help? Thanks

    I had the same problem (repeated "accept iCloud terms and conditions") on my iPhone 4s when I upgraded to 7.0.3, but my iPhone 4 and the two iPads worked fine. There were two other problems that might be connected. One was a frequent request to sign into iCloud and the other was an "iCloud keychain error" when I tried to turn on the iCloud keychain in settings. The "Find My Friends" trick did not work.
    I was able to get some improvement by Restoring my iPhone from the iTunes backup (to my computer) created during the upgrade process. This allowed me to start the iPhone set-up process again. With this done I no longer was bothered by the frequent "accept..." and the frequent requests to sign into iCloud. I still have the "iCloud keychain error" problem.
    Now how do I fix that?

  • ADF Faces: RichTable - How to create a RichTable object

    Hi. How to create a RichTable object to put in a JSF page ? I need to make a method that receive a list of name of columns and a list of list of data. This code that I have writing don't work. What's my error?
            public RichTable getADFTable(
            List<String> lstCols, List< List<String> > lstLstData
            RichColumn adfCol = null;
            List<RichColumn> lstRichCols = new ArrayList<RichColumn>();
            int cont = 0;
            for( String col : lstCols ){
                adfCol = new RichColumn();
                adfCol.setDisplayIndex(cont++);
                adfCol.setHeaderText( col );
                adfCol.setMinimumWidth( "60" );
                lstRichCols.add( adfCol );
            int contCols = 0;
            RichOutputText text = null;
            RichTable AdfTab = new RichTable();
            for( List<String> lstData : lstLstData){
                for( String data : lstData ){
                    text = new RichOutputText();
                    text.setValue(data);
                    lstRichCols.get( contCols ).getChildren().add( text );
                    contCols++;
                contCols = 0;
            AdfTab.setRows(this.lstEntit.size());
            cont = 0;
            for( RichColumn col : lstRichCols ){
                AdfTab.getChildren().add( col );
            return AdfTab;
        }

    I was searching for an example and i found it but whit errors, finally i fixed and it works.
    You just have to generate the data from your webservices and "put" into this structure.
    The java file (Bean)
    package view;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import org.apache.myfaces.trinidad.model.CollectionModel;
    import org.apache.myfaces.trinidad.model.SortableModel;
    public class DynamicTable {
        private SortableModel model;
        private List<String> columnNames;
        public DynamicTable() {
            columnNames = new ArrayList<String>();
            columnNames.add("Col-1");
            columnNames.add("Col-2");
            generateColumnModel();
        public void generateColumnModel() {
            this.model = new SortableModel(createRows(columnNames));
        private List<Map> createRows(List<String> columnNames) {
            int i = 0;
            List<Map> mapListforRows = new ArrayList<Map>();
            for (String name : columnNames) {
                Map newRow = new HashMap();
                mapListforRows.add(newRow);
                for (String col : columnNames) {
                    newRow.put(col, "data");
            return mapListforRows;
        // Get table model
        public CollectionModel getCollectionModel() {
            return model;
        public void setColumnNames(List<String> columnNames) {
            this.columnNames = columnNames;
        public List<String> getColumnNames() {
            return columnNames;
    }The jspx file (page)
               <af:table varStatus="rowStat" summary="table"
                            value="#{pageFlowScope.DynamicTable.collectionModel}"
                            rows="#{pageFlowScope.DynamicTable.collectionModel.rowCount}"
                            rowSelection="none" contentDelivery="immediate"
                            var="row" rendered="true" id="t1">
                    <af:forEach items="#{pageFlowScope.DynamicTable.columnNames}"
                                var="name">
                      <af:column sortable="true" sortProperty="#{name}"
                                 rowHeader="unstyled" headerText="#{name}"
                                 inlineStyle="width:100px;" id="c1">
                        <af:activeOutputText value="#{row[name]}" id="aot1"/>
                      </af:column>
                    </af:forEach>
                  </af:table>

  • ADF Faces 10g: How to empty an af:table component?

    Hi,
    I am using JDeveloper/ADF 10.1.3.
    I have a page with 2 iterators on the same view (one always in search mode), a search form and a table for results. As there are a lot of rows in the view and I don't want to query it without search criteria to avoid getting all the results, I set the iterator's refresh property to ${adfFacesContext.postback==true}.
    I made a Search button binding the Execute action and a Reset button binding the Find action. Now, when I hit the Reset button, I also want to reset the table (the query results) to empty. How to do that? I could not find any method to empty the rowset, neither at table lavel, nor at iterator, nor at view.
    Thanks in advance for your replies.

    Hi,
    I don't have a declarative solution for you, but some possible solutions or ideas to do it.
    1. put a method in the application module end expose the method to the client (data control). This method can either remove all rows from the VO (call removeCurrentRowFromCollection() for each row currently in the VO but keep them in the DB).
    2. you can try to use executeEmptyRowSet() (I'm not sure it's available in 10.1.3) and hope that it removes all rows from the row set (the method is not documented, so I'm olny guessing it's function).
    3. execute your search with parameters you are sure they will not return any result. This can be done from a backing bean.
    Timo

  • ADF Faces Components:how to align af:panelBox with fields in af:panelForm?

    Hi,
    I have an af:panelForm component to which I added af:selectOneChoice and few af:inputText components. af:panelForm aligns all af:inputText fields properly with labels being right justified and the input fields left justified.I wanted to add af:panelBox at the end but don't know how to align it with the input fields.
    I wrapped the last input field and the af:panelBox inside af:panelBorder but this didn't help. I still get af:panelBox displayed at the extreme left hand side.
    I could put af:panelBox inside another af:panelForm but that does not work for me because af:panelBox happens to be target of a PPR, source of which is the af:selectOneChoice. Depending on the selected item of ad:selectOneChoice, I want to either show af:panelBox or hide it. So I had to include af:panelBox in the same af:panelForm that contains af:inputText so that both source and target of PPR are at the same level for PPR to work. I can also add af:objectSpacer before af:panelBox to get the alignment i am looking after but this again doesn't help because when window is restored or maximized, then the alignment gets lost. Any clue how to achieve that ?
    <af:panelForm>
    <af:selectOneChoice
    id="SelectOneChoice"
    autoSubmit="true"
    immediate="true"...>
    <af:forEach var="item"
    items="#{bindings.View_rIterator.allRowsInRange}">
    <af:selectItem value="#{item.id}"
    label="#{item.id}"/>
    </af:forEach>
    </af:selectOneChoice>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:inputText ..../>
    <af:panelBorder partialTriggers="SelectOneChoice">
         <af:inputText ..../>
    <af:panelBox text="Panel Box:"
    background="transparent" width="200">
    <af:panelHorizontal halign="center">
         <af:inputFile .../>
         <af:objectSpacer width="3"/>
              <af:commandButton .../>
         </af:panelHorizontal>
    <af:panelHorizontal halign="center">
    <af:objectImage ..."/>
    </af:panelHorizontal>
    <af:panelHorizontal halign="center">
    <af:panelButtonBar>
    <af:commandButton ..."/>
    </af:panelButtonBar>
    </af:panelHorizontal>
    </af:panelBox>
    </af:panelBorder>
    </af:panelForm>
    Please advice.
    Thanks

    Hi,
    did you try skinning ? Inline style CSS doesn't necessarily work for the whole component as it operates on the root DOM element, which in the case of a composite component isn't the individual facet
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    af|panelPage::about{
    height: 30%;
    Frank

  • ADF Faces Components: How to fix position of af:panelPage facets

    I have several jsp pages, each of which has af:panelPage component to which I included menuGlobal, appCopyright, appPrivacy, appAbout. What I don't like about those pages is that above-mentioned facets keep moving up and down depending on contents i add to the different jsps. For example, if jsp1 has more content than jsp2, then moving from jsp1 to jsp2 results in above facets moving up. I just hate that. I would like to have those facets have a fixed location at the bottom of any jsp page and not have their location changing as I switch between pages having different contents. One of many things I tried doing is wrapping the content of each jsp inside af:panelBorder and set a fixed height to the af:panelBorder. This works. However, I don't like to set af:panelBoder height to some fixed value because on different displays, user may end up having to scroll up and down to see entire jsp contents and I don't want scolling. So I tried using inlineStyle to set height of af:panelPage to percentage of screen height but this doesn't work either. I am stuck !!!
    Please help/advise!
    It looks like either i am dumb and dont know what I am doing or the flexibility i am seeking isn't supported.
    I am using JDeveloper (10.1.3.2).
    Thanks a lot in advance.
    Message was edited by:
    samsam

    Hi,
    did you try skinning ? Inline style CSS doesn't necessarily work for the whole component as it operates on the root DOM element, which in the case of a composite component isn't the individual facet
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    af|panelPage::about{
    height: 30%;
    Frank

  • ADF Faces & BC: How to perform dynamic navigation.

    Here is the setup:
    Page 1 allows the user to enter a id
    Page 2 and 3 is either a update or insert depending on the id.
    The logic to figure out the insert or update operation is within a method in the AM.
    I have bound this method on a button in Page 1, with the generated actionListener like the following:
    #{bindings.isNewRegistration.execute}
    This business method returns 2 possible String values that are mapped in the face-config.xml.
    <navigation-case>
    <from-action>#{bindings.isNewRegistration.execute}</from-action>
    <from-outcome>validIdSelected</from-outcome>
    <to-view-id>updatePage.jspx</to-view-id>
    </navigation-case>
    ...followed by insert navigation case
    The problem:
    The business method is appropriately invoked when the button is pressed with the correct return value, but the page does not forward to insert or update page.
    I appreciate the help in advance.
    -Z

    Zeoneozero,
    I think you need to use the "Action" and not "ActionListener" on the button. You can programatically look up and execute the operation binding for the isNewRegistration action and get the result via the execute method. Then, the navigation cases need static <from-action> values... something like this perhaps:
    <navigation-case>
    <from-outcome>update</from-outcome>
    <to-view-id>updatePage.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>insert</from-outcome>
    <to-view-id>insertPage.jspx</to-view-id>
    </navigation-case>and, in the backing bean...
    String myPressedButtonAction()
          OperationBinding b = getBindings().getOperationBinding("isNewRegistration");
          String result = (String) b.execute();
          return result;
    }Hope this helps...
    John

  • How to mix 4:3 and 16:9

    I have footage in both 4:3 and 16:9. I captured both on thier own format. Now I want to edit them and have the final movie in a 16:9 ratio.
    Both were recorded with standard definition cameras, how do i mix both fotage without affecting the picture quality and if possible avoid too much rendering time.
    What are the setting I need for the sequence?
    Thanks for all your help!

    Post in Final Cut Studio forum.
    4:3 footage needs to be enlarged to fill 16:9 frame size.

  • How to mix percent sizing and pixel sizing (height)?

    My Flex 4 MXML application that has mainly two components: first is a canvas that takes up as much as space as possible (100% - 30px), the other is some buttons and text input fields in the bottom that takes only 30 pixels.
    Is there an easy way to do this other than adding an event handler to listen to window resizing?

    Thank you. This is very similar to what I have right now - but
    apparently the canvas object goes out of bound. I realize this when I
    drag the buttom bar, the mouseup/down event also triggers my drag
    handler in canvas.
         <s:layout>
              <s:VerticalLayout/>
         </s:layout>
    <s:Group width="100%" height="100%">
         <flare:FlareVis id="fvis" backgroundColor="0xffffff" width="100%"
    height="100%">  -- this is a canvas object
         </flare:FlareVis>
         <s:VSlider id="zoomslider"
              height="160" x="14" y="14" value="50" valueInterval=".25" /> -
    visually this goes on top of the FlareVis object - but I have to place
    it outside the FlareVis. When I placed this as a child object in the
    FlareVis tag, the rendered Sprites in the canvas goes above VSlider
    and I can't drag the slider
    </s:Group>
    <mx:Form id="highlightForm"
         width="100%" height="27">
         <s:HGroup width="100%" height="100%" verticalAlign="middle">
              <s:SimpleText id="highlightSummary"></s:SimpleText>
         </s:HGroup>
    </mx:Form>
    Is there any other way to do this?

  • How do I accept terms and conditions on iPad 2 when iTunes downloading

    I need help. Every time I try to open iTunes on my iPad 2, I can't go past downloads- terms of conditions (a list of countries). I guess my qn is, where is the accept link? How do I get to download music etc?

    Quit iTunes completely and then restart your iPad. Go back to iTunes and see if it will work for you.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    BTW .... what I was asking was did you try tapping on the featured tab or any other tabs in iTunes?

Maybe you are looking for