Menu tabs in adf faces on jdeveloper 10.1.3.5

Hi,
I am new to jdeveloper and I am looking for a sample code for menu tabs without binding the tabs to menu model.
I went through the ADF development guide but it has example only with menu model.
Can somebody provide me with an example for menu tabs?
Thanks,
Bablu

You mean something like this?
http://www.oracle.com/technology/products/jdev/tips/muench/1013srdemo/index.html

Similar Messages

  • ADF Faces & BC JDeveloper 10.1.3.4: af:menuTab in multiple rows.

    Hi all,
    We have a dynamic menu design in our application that is defined within the faces-config.xml file. The menu tabes are rendered in a single row, are there any ways to split these tabs into multiple rows (as more are necessary)?
    <f:facet name="menu1">
    <af:menuTabs var="menuTab" id="menuTabs11" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTab.label}"
    id="commandMenuItem11"
    action="#{menuTab.doAction}"
    disabled="#{CRDBMenuBean.isEnabledFlag}"
    selected="#{menuItem.isSelected=='true'?true:false}"
    actionListener="#{CRDBMenuBean.menuItemActionListener}"/>
    </f:facet>
    </af:menuTabs>
    </f:facet>
    thanks,
    Wes
    Edited by: Wes Fang on Jul 24, 2009 10:25 AM

    Fixed. This is a similar problem to:
    JDeveloper 10.1.3.4,ADF Faces & BC: InputText PPR Problem

  • Creating Tabs in ADF faces

    Hi,
    We want to use ADF faces, jsp with Jdeveloper 10.1.3
    The front end application needs to have tabs. Is there any example or documentation that can help us achieve that.
    Thanks

    Check out the SRDemo application for and the ADF Developer Guide.
    Specifically you might be interested to learn more about the ADF Faces panel page component:
    http://download.oracle.com/docs/html/B25947_01/web_getstarted004.htm#CHDIABDE

  • ADF Faces & BC, JDeveloper 10.1.3.4: Editable af:table question

    Hi all,
    I have a dialog which pops up with an af:table inside, the table is bound to a viewobject which is used to create multiple rows which upon clicking a save button, these records will go into the db. My problem is that lets say I have 3 rows that are created (via programmatic CreateInsert on the AM), when I use the UI to modify a attribute value on the first row, the same value is copied to the rest of the 2 rows.
    See image of UI below:
    [http://i108.photobucket.com/albums/n23/zeoneozero/beforesave.gif]
    I do not wish to use a radio button next to the rows as I want the user to freely edit which ever field directly without clicking around too much. Should I be setting the autosubmit to true and a valuechange listener to set the current row?
    Many thanks,
    Wes
    Edited by: Wes Fang on Mar 13, 2009 8:36 AM

    Fixed. This is a similar problem to:
    JDeveloper 10.1.3.4,ADF Faces & BC: InputText PPR Problem

  • ADF-Faces and JDeveloper 11

    I have an application that already done and running, the JSPs of this application almost generated with JHeadStart,
    the components are ADF-Faces components with the ADF-Faces implementation of the release 10.1.3.3 of Jdeveloper.
    I'd like to find a way to migrate this application to new JDeveloper 11.
    so the tables becomes not fixed width and height columns, and also to be possible to use the new features in JDEV 11

    Saeed,
    this is really a JHeadstart Forum question (JHeadstart
    There is no JHeadstart 11g available yet.
    Migration should not be done without proper JHeadstart support.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

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

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

  • Adf faces jar  for jdeveloper 10g

    Hi,
    i m using jdeveloper 10, i want to use adf (af componant) in my jsf page, so i need adf jar, but i m not able to download them from
    "How To Use ADF Faces With JDeveloper 10g" kindly help me how i can download these jar, so that i can use them in my code

    Trinidad is a JavaServer Faces component library that is a subproject of Apache MyFaces. (It was formerly known as ADF Faces.)
    Refer http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

  • OBE : ADF Faces in Model project

    hi
    The tutorial "Examining ADF Business Components New Features"
    at http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html
    says, in its "Create a New Application and Project" section, to "... set the project name to Model, and in the Project Technologies tab, shuttle ADF Faces into the Selected pane ..."
    The screenshot ADFFacesInModelProject.png shows how both ADF Business Components and ADF Faces are part of the Model project.
    - (q1) Why would it be a good idea to have both ADF Business Components and ADF Faces in the same JDeveloper project?
    many thanks
    Jan Vervecken

    The screenshot ADFFacesInModelProject.png shows how both ADF Business Components and ADF Faces are part of the Model project.Can't see any valid reason why. For what the article is trying to do , there isn't any valid reason to add Faces libs to the model project.
    Not that there's a technical limitation to this - but looks like a mistake (also causes deployment issues).
    - (q1) Why would it be a good idea to have both ADF Business Components and ADF Faces in the same JDeveloper project?if it's some ugly throaway test code.
    Not in production code anyway.

  • WebLogic & ADF Faces 11

    Hi All
    Can I deploy my applications using Oracle ADF Faces from JDeveloper 11g TP4 on WebLogic?

    Haven't tried it yet, but Shay Shmeltzer from the JDev team blogged about JDev, ADF, and WebLogic:
    http://blogs.oracle.com/shay/2008/07/what_can_jdeveloper_do_with_we.html

  • Where can I download adf-faces-ea13.zip

    I have been reading:
    Using MyFaces with Oracle JDeveloper 10g (10.1.3) Preview
    http://www.oracle.com/technology/products/jdev/101/howtos/myfaces/index.html
    and
    How To Use ADF Faces With JDeveloper 10g
    http://www.oracle.com/technology/products/jdev/howtos/10g/adfjsf/how-to-adf-faces-10gjdev.htm
    but unfortunately I cannot find a place that I can download the file mentioned adf-faces-ea13.zip in these 2 article.
    Any help?
    Ming Man

    Thanks Frank,
    I have JDeveloper 10.1.3.3 with me, just that I want to learn more from those tutorial. Those articles should get updated if they can no longer be used, right?
    Regards,
    Ming Man

  • ADF Faces ea11 Include Menu Tabs

    Is including menutabs currently supported in ADF Faces (ea11)? I've been trying something like the following to split my menutabs in an include file:
    <af:panelPage title="Title" binding="#{bb.panelPage1}">
    <f:subview id="includeTabs">
    <c:import url="/includes/includeTabs.jsp"/>
    </f:subview>
    </af:panelPage>
    With includeTabs.jsp as:
    <f:facet name="tabs">
    <af:menuTabs binding="#{bb.menuTabs1}">
    <af:commandLink text="Tab1"
    binding="#{bb.commandLink1}"
    />
    <af:commandLink text="Tab2"
    binding="#{bb.commandLink2}"/>
    </af:menuTabs>
    </f:facet>
    This doesn't include the includeTabs.jsp.
    Thanks

    Adam,
    Thanks again. The solution you recommended does work. However, in the JDeveloper editor it flags the "<f:subview id="includeTabs">" line with an error "subview not defined in parent f:facet". This could be something I'm doing wrong again. Thanks for your reply!
    This Works:
    <f:facet name="tabs">
    <f:subview id="includeTabs">
    <c:import url="/includes/includeTabs.jsp"/>
    </f:subview>
    </f:facet>

  • Suggestions needed for ADF Faces & JDeveloper 10.1.3.4 af:menu

    Hi all,
    We are running out space on our top level menu items and was curious if anyone has alternatives for a dynamic menu structure built using JDeveloper 10.1.3.4. Here is what our screen looks like:
    Any suggestions are much appreciated.
    Thanks,
    Wes

    Hi again Wes,
    If you want to keep using the ADF Faces menus... get a larger screen? :P
    Seriously, though, [url http://www.simplica.com/menu.htm]Simplica has an interesting-looking menu component that perhaps you could use (it looks much like the ADF Faces Rich Client menus). I've not tried the components, but have seen them - no idea if they would work "well" with ADF Faces.
    Best,
    John

  • ADF Faces 16 Components not displaying in Disign Tab

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

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

  • ADF Faces showDetailItem seems to "load" child elements twice on tab select

    Problem Summary:
    Child elements of showDetailItem are being loaded/executed twice. The parent of the showDetailItem is a showOneTab, and the child of showDetailItem is an af:objectImage, which calls a servlet I have written that outputs an image.
    The problem I am having is that when I click on a tab (showDetailItem) my servlet is called twice. It is as if the af:objectImage line of my JSP is executed twice.
    I have proven this with breakpoints in the servlet and printing a message to the console. The doGet() method of my servlet is called twice. Using breakpoints in the JSP I see the JSP is executed/read only once.
    Details:
    I am requesting help with this problem as I cannot solve it one my own. I have tried the following, but have had no success.
    1. Searched the web for a similar problem.
    2. Searched this forum for a similar problem.
    3. Consulted the ADF Developer Guide version 10.1.3.0
    4. Upgraded my version of JDeveloper to 10.1.3.2.0, which has ADF Faces (oracle.faces.dt) version 10.1.3.40.66.
    5. Debugging with print statements and stepping through JSP and servlet code.
    6. Created the simplest JSP possible that I could still produce the problem with.
    The Scenario:
    My goal is to use the ADF Faces showOneTab and showDetailItem tags to create two tabbed panels that will contain a blank tab (tab one) and an image (on tab 2).
    I have written a servlet, BrowserImage, which takes and ID as a parameter retrieves a BLOB from view object and then outputs a jpeg image to the browser. This is done by using the af:objectImage tag and specifying my servlet in the source parameter. The image is displayed fine, but I don't want the servlet to be called twice for performance reasons.
    Here is the simplest JSP that contains the problem.
    Note: I tried to simplify even more by calling the servlet in different ways (jsp:include etc..), but was unable to produce the problem. I think it is key that I call the servlet using an ADF Faces tag (af:objectImage).
    <!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/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ page import="javax.faces.context.FacesContext"%>
    <%@ page import="javax.faces.el.ValueBinding"%>
    <%@ page import="oracle.adf.model.BindingContext"%>
    <%@ page import="oracle.adf.model.binding.DCDataControl"%>
    <%@ page import="oracle.jbo.ApplicationModule"%>
        <%! FacesContext fc = FacesContext.getCurrentInstance(); %>
        <%! ValueBinding vb = fc.getApplication().createValueBinding("#{data}"); %>
        <%! BindingContext bc = (BindingContext)vb.getValue(fc); %>
        <%! DCDataControl dc = bc.findDataControl("AdSearchAppModuleDataControl"); %>
        <%! ApplicationModule am = (ApplicationModule)dc.getDataProvider();%>
        <% session.setAttribute("theAm", am); %>  
    <f:view>
      <afh:html>
        <afh:head title="showOneTest">
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
        </afh:head>
        <afh:body>
          <af:form>
            <af:showOneTab position="above">
              <af:showDetailItem text="showDetailItem 1">
              </af:showDetailItem>
              <af:showDetailItem text="showDetailItem 2">
                <af:objectImage source="/BrowserImage?imgId=1"/>
              </af:showDetailItem>
            </af:showOneTab>
          </af:form>
        </afh:body>
      </afh:html>
    </f:view>Note: The Java Script code included in the JSP is used to get an application module instance and pass it to my servlet in the session scope, so my servlet can access a view object, which contains the BLOB to output. I thought I should explain this as it may look confusing.
    Any help would be appreciated.
    Thanks,
    Mark

    I don't think adding a flag to my servlet will work. I left out some details in the original posting that will likely make the flag solution unusable.
    It is true that when I click on a tab that my servlet is called twice. My main goal is to ensure that the BrowserImage servlet only called when truly needed. The part I left out of the original posting is that if I click on a tab for the first time I can see my messages in the console indicating it was called twice.
    . BrowserImage severlet called (doGet)
    . BrowserImage servlet called (doGet)
    The key is if I click on the tab again I only see the message appear once.
    . BrowserImage severlet called (doGet)
    At first I thought this was the correct behavior, but I now feel this is wrong as I think the image is being cached locally on the client browser by ADF Faces, so the first call to BrowserImage is not made, but for some reason on the second "load" of the panel the BrowserImage servlet is called.
    To summarize the new details, I still think the showDetailItem is "loading" twice, but BrowserImage is only being called once, because the first loading used a locally cached image. This is my best guess, I did not prove this 100%. I did prove that the image is shown on the page before my servlet outputs it this made me start thinking about the client cache. Also I think it is an ADF Faces specific cache because if I use the "img" tag I don't think caching is used and the image is output by the call to my servlet. I don't want to use img for two reasons, 1 I would d like to use the client cache, 2 the img tag will not stay inside the showDetailItem, showDetail Item needs af: components as children it seems.
    So the reason I feel this problem can't be solved with a flag is because I think the image will be cached on the client side and if the showDetailItem is loaded twice it seems my servlet is called once, but it was not required to be called to render the image. I can't use the concept of checking for the servlet being called by the same session in very quick succession, because the real problem I am trying to solve is the servlet should not be called at all, if the client cache had been used.
    Perhaps there is a way for my servlet to determine if the client cache was used, but I have no idea how.
    I should also point out I am displaying images in a table instead of a showOneTab using the same servlet and technique and the client cache is always used correctly, the BrowserImage is only called if the image is not cached on the client. This is why I think this is a showOneTab problem.
    Sorry for leaving out these details, but I did not want to confuse the original posting with too much info. I figured if the tab was only loaded once, the cached image would be used and all would be good.
    Again if you can provide more help I really appreciate it.

  • JDeveloper 10g, ADF Faces & BC: setVar method on CoreTable is not working

    Hi all,
    I am in the process of creating a custom tag library for our organization. I seem to be having problems with the setVar method on the CoreTable component. I created a simple reproducible example using the scott/tiger schema. Within my tabletest.jsp, I have a af:table which was created via dragging from the datacontrol pallet. Next, I add my custom tag and set the same value attribute. When I run the page, #{row.Deptno} does not evaluate to anything! However, I know that the value is set properly due to the same number of rows appearing within my custom table tag.
    Suggestions are appreciated.
    thanks,
    Wes
    Here is the screen shot of my example:
    http://www.flickr.com/photos/54652784@N03/5062690216
    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" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://acme.customtag" prefix="customtag"%>
    <f:view>
    <afh:html>
    <afh:head title="tabletest">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <af:messages/>
    <h:form>
    <af:outputText value="below is the adf table"/>
    <af:table value="#{bindings.ViewObj1.collectionModel}" var="row">
    <af:column sortProperty="Deptno" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Deptno}">
    <af:outputText value="#{row.Deptno}"/>
    </af:column>
    <af:column sortProperty="Dname" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Dname}">
    <af:outputText value="#{row.Dname}"/>
    </af:column>
    </af:table>
    <af:objectSpacer width="10" height="50"/>
    <af:outputText value="Below is the custom table"/>
    </h:form>
    <customtag:customtable value="#{bindings.ViewObj1.collectionModel}"
    disabled="false"/>
    </afh:body>
    </afh:html>
    </f:view>
    CustomTable.java code:
    package customtag;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import oracle.adf.view.faces.component.core.data.CoreColumn;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    public class CustomTable extends UIComponentBase {
    public static final String COMPONENT_TYPE = "customtag.customtable";
    public static final String RENDERER_TYPE = null;
    private CoreTable table = new CoreTable();
    public CustomTable() {
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    Application apps = context.getApplication();
    table.setVar("row");
    Object value = getAttributes().get("value");
    CoreColumn column = new CoreColumn();
    CoreOutputText cout = new CoreOutputText();
    if (value != null) {
    table.setValue(value);
    ValueBinding rowValueBinding =
    apps.createValueBinding("#{row.Deptno}");
    Object rowValue = resolveExpression("#{row.Deptno}");
    if (rowValue != null) {
    System.out.println("rowValue is reconized. " + rowValue);
    cout.setValue(rowValue);
    } else if (rowValueBinding.getValue(context) != null) {
    System.out.println("rowValueBinding is reconized." +
    rowValueBinding.getValue(context));
    cout.setValueBinding("Value", rowValueBinding);
    } else {
    System.out.println("row is not reconized.");
    cout.setValue("this is a hard coded row attribute value");
    column.getChildren().add(cout);
    table.getChildren().add(column);
    table.encodeAll(context);
    public static Object resolveExpression(String expression) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding(expression);
    return bind.getValue(ctx);
    public boolean getRendersChildren() {
    return true;
    public String getFamily() {
    return COMPONENT_TYPE;
    }

    Hi,
    you don't mention a JDeveloper version. If you are not on a recent version, can you try one. If it reproduces, please provide steps required for a reproducible test case
    Frank

Maybe you are looking for