ShowDetailItem reshuffling

Hi,
We have a JHeadstart adf faces application. On one page we have organized the data in different regions, using a showOneTab and five showDetailItems. These showDetailItems are bound on a backing bean, so that the same tab is selected when we scroll through the records.
The funny thins is that when we select a tab and switch to another record, the same tab is still selected, but first tab (called details) is moved to the end of the line of tabs and stays there 'forever'.
Anybody an explanation and maybe a solution?
Ciao
Aino

Look at the sample for skinning for PanelAccordion
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/panelAccordion.jspx
This would help to identify the various style classes for PanelAccordion and use it according to your use case.
Thanks,
Navaneeth

Similar Messages

  • Visible attribute does not work for af:showDetailItem using EL

    I cannot get the visible attribute to work using EL and ppr.
    Here is a simple test. I have a jspx with a button (cb1) that toggles a boolean (tab1visible) in a Backing Bean. The af:panelTabbed and af:showDetailItem have partialTriggers="cb1".
    The af:showDetailItem has visible="#{TabTestBk.tab1visible}" and the EL is also set in the title so that I can see how it's set.
    When I press the button (cb1) the visibility of the tab does not change but the title does.
    Any help would be greatly appreciated!
    Here is the code:
    ------------------------- JSPX -----------------------------------------------------
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document>
    <af:form>
    <af:spacer height="10"/>
    <af:commandButton text="Toggle Tab 1 - visible = #{TabTestBk.tab1visible}" binding="#{TabTestBk.cb1}"
    id="cb1"
    actionListener="#{TabTestBk.toggleTab1AL}"/>
    <af:spacer height="20"/>
    <af:panelTabbed id="detailNavPane" partialTriggers="cb1">
         <af:showDetailItem id="tab1" visible="#{TabTestBk.tab1visible}" text="Tab 1 visible = #{TabTestBk.tab1visible}" partialTriggers="cb1">
                                  <af:outputText value="Tab 1 Content"/>
    </af:showDetailItem>
    <af:showDetailItem id="tab2" text="Tab 2">
                                  <af:outputText value="Tab 2 Content"/>
    </af:showDetailItem>
    <af:showDetailItem id="tab3" text="Tab 3">
                                  <af:outputText value="Tab 3 Content"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    ------------------------- BACKING BEAN -----------------------------------------------------
    package com.riscs.ui.backing.jsp.claim;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    public class TabTestBk {
    private RichCommandButton cb1;
    private boolean tab1visible = true;
         public void toggleTab1AL(ActionEvent event) {
              setTab1visible(!tab1visible);
         public void setTab1visible(boolean tab1visible) {
              this.tab1visible = tab1visible;
         public boolean isTab1visible() {
              return tab1visible;
    public void setCb1(RichCommandButton cb1) {
    this.cb1 = cb1;
    public RichCommandButton getCb1() {
    return cb1;
    Thanks!
    Matt
    Edited by: Matt Cannon IBI on Apr 3, 2010 2:45 PM
    Edited by: Matt Cannon IBI on Apr 5, 2010 12:20 AM

    Hi Frank,
    Thanks for the reply! When providing the simple example I left partialSubmit="true" off by mistake... I put it on and still does not work...
    Thanks,
    Matt

  • Undisclosed showDetailItem - af:dropTarget

    I'm using Jdev 11g R1.
    I'm unable to drop a row from an af:table to an undisclosed af:showDetailItem. If the af:showDetailItem is disclosed, it is OK. I have 8 showDetailItems in an af:panelAccordion and I want to be able to drop a row from af:table on to any of these showDetailItems.
    I tried it as follows:
    I created a af:toolbar under toolbar facet of my showDetailItem.
    Added af:dropTarget under this button.
    Tried dragging and dropping the collection onto the button just created.
    This is only working when the showDetailItem is disclosed (i.e. expanded). If the showDetailItem is not disclosed, I don't even see the button.
    Is there a way to do this?
    Thanks,
    Jagadish.
    Edited by: jaggu_otn on Oct 20, 2009 5:38 PM

    Hi,
    I eventually tested this and it does not do a drop when you drag and drop to the header but only if you move it over the toolbar buttons. This said, the behavior in the accordion is consistent in that you can only drag and drop to the active panel
    Frank

  • Change color of the showDetailItem in panelTabbed in 11G

    Dear All,
    I have to change the color of showDetailItem in panelTabbed from gray to dark blue. But when I am trying to set the color from style the color of whole panel gets changed. I want to change the color of of the tab only.
    Please help its Urgent.
    Thanks in advance.

    I was having this same problem, and found another issue with the scroll bar coloring. The ScrollBar.thumb UI property cannot use a color that has a reduced alpha value.
    I wanted the JList hightlight and JScrollBar thumb to be a lighter version of the background color, but I found that the color.brighter() method returns a color that does not necessarily match the original color very well. For example, if you call it multiple times, the resulting color can be completely different. If I constructed a new color by lowing the alpha value of the original color (using the code below), the JList highlights were perfect, but the JScrollBar thumb had a large black "blob" in the middle of it.
    Color c = this.getBackground();  //"this" refers to a JPanel
    Color cb = new Color(c.getRed(),c.getGreen(),c.getBlue(),50);  //alpha value of 50The only way to get rid of the black "blob" on the JScrollBar thumb, is to use the following line of code where you set this property:
    UIManager.put("ScrollBar.thumb", new ColorUIResource(cb));Unfortunately, the ColorUIResource object does not appear to support altering the alpha value, so it strips it away, leaving you with the darker version of the color (completely negating your efforts to lighten the color).
    Does anyone know how to resolve this issue?

  • Af:panelaccordion with dynamic number of af:showDetailItem (af:iterator)

    Hi,
    Jdev 11.1.1.2.0.
    We need a panel accordion displaying a master-detail relation.
    The af:showDetailItem displays the text of the master table.
    To create a af:showDetailItem for each master record I want to use af:iterator but this seems to be an invalid child of af:panelAccordion (af:foreach works).
    (can't drag af:iterator as child of af:panelaccordion).
    I edited the JSPX code manually to replace af:foreach by af:iterator.
    Here the part of the code:
            <af:panelAccordion id="pa1" discloseMany="true">
              <af:iterator var="varDept" id="i1"
                           value="#{bindings.DeptView1.collectionModel}">
                <af:showDetailItem text="#{varDept.Dname}" id="sdi1"
                                   inflexibleHeight="70" flex="1"
                                   stretchChildren="first" disclosed="true"
                                   disclosedTransient="true">
                  <af:table value="#{varDept.children}" var="row"
                            rows="#{bindings.EmpView2.rangeSize}"
                            rowBandingInterval="0"
                            selectedRowKeys="#{bindings.EmpView2.collectionModel.selectedRow}"
                            rowSelection="single" id="t1"
                            contentDelivery="immediate">
                    <af:column sortProperty="Empno" sortable="true"
                               headerText="#{bindings.EmpView2.hints.Empno.label}"
                               id="c5">
                      <af:inputText value="#{row.bindings.Empno.inputValue}"
                                    label="#{bindings.EmpView2.hints.Empno.label}"
                                    required="#{bindings.EmpView2.hints.Empno.mandatory}"
                                    columns="#{bindings.EmpView2.hints.Empno.displayWidth}"
                                    maximumLength="#{bindings.EmpView2.hints.Empno.precision}"
                                    shortDesc="#{bindings.EmpView2.hints.Empno.tooltip}"
                                    id="it4">
                        <f:validator binding="#{row.bindings.Empno.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.EmpView2.hints.Empno.format}"/>
                      </af:inputText>
    ...In my first test my example also works with af:iterator even there are errors thrown at design time.
    Question:
    ======
    1) Is af:iterator really not a valid child of af:panelAccordion or is this just a bug of Jdev IDE?
    (Doc of af:panelAccordion says following: http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_panelAccordion.html
    ....Typically you would put one or more showDetailItem components inside of the panelAccordion but you may also alternatively place a facetRef, group, iterator, or switcher inside of the panelAccordion .....
    2) What are the limitations when I use af:forEach instead of af:iterator?
    regards
    Peter

    Hi,
    try af:forEach. The example below works for me
      <f:view>
        <af:document>
          <af:messages/>
          <af:form>
            <af:panelStretchLayout>
              <f:facet name="bottom"/>
              <f:facet name="center">
              <af:panelAccordion>
                <af:forEach items="#{bindings.LocationsView1.children}"
                            var="locationNode">
                  <af:showDetailItem text="#{locationNode.City}">
                      <af:panelGroupLayout layout="scroll">
                        <af:forEach items="#{locationNode.children}"
                                    var="departmentsNode">
                          <af:panelBox text="#{departmentsNode.DepartmentName}">
                            <f:facet name="toolbar"/>
                            <af:panelGroupLayout halign="center"
                                                 rendered="#{departmentsNode.children !=null}">
                              <af:table var="row" columnBandingInterval="0"
                                        rowBandingInterval="1"
                                        value="#{departmentsNode.children}">
                                <af:column sortable="false" headerText="Firstname">
                                  <af:outputText value="#{row.FirstName}"/>
                                </af:column>
                                <af:column sortable="false" headerText="Lastname">
                                  <af:outputText value="#{row.LastName}"/>
                                </af:column>
                                <af:column sortable="false" headerText="Mail">
                                  <af:outputText value="#{row.Mail}"/>
                                </af:column>
                                <af:column sortable="false" headerText="Hiredate">
                                  <af:outputText value="#{row.HireDate}"/>
                                </af:column>
                                <af:column sortable="false" headerText="Salary">
                                  <af:outputText value="#{row.Salary}"/>
                                </af:column>
                              </af:table>
                            </af:panelGroupLayout>
                          </af:panelBox>
                        </af:forEach>
                      </af:panelGroupLayout>
                    </af:showDetailItem>
                </af:forEach>
                </af:panelAccordion>
              </f:facet>
              <f:facet name="top"/>
              <f:facet name="start"/>
              <f:facet name="end"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>Frank

  • JDeveloper 10.1.3.2.0 - How to see content of showDetailItem in Design View

    Hello,
    I am new to use the JDeveloper to create JSF Applications and I learn with the tutorials.
    So I have a question:
    I want to find out: How to see the content of the second or third showOneTab component in the WYSIWYG Design View of a page.jspx?
    For example, I am orientating the tutorial: "Introduction to ADF Faces/Trinidad Using JDeveloper" (http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm)
    Page: table.jspx
    There is the showOneTab "Single Row Select" and "Multi Row Select" and I see only the content of "Single Row Select".
    How can I see the content the table2 of "Multi Row Select".
    I have created the table of "Single Row Select" and can see only this one.
    The download of that example show me in the View of structur the component table2, but not in DesignView.
    Can you help me?
    best regards
    Joachim

    Hello Frank,
    many thanks for your answer. It try it and it works!
    For completion, I think the argument "disclosed" of the component "af:ShowDetailItem" with "default" setting is "false".
    So if I will editing one tab in WYSIWYG editor, I set only this tab disclosed = true.
    All others to "false". When my edit is completed, I set only the first tab to "true" and all other "false", because I want to start with the first tab by first request.
    I look again into the "help". Hopefull in answer:
    Which effect has this argument by deployment?
    There is only the desciption: "whether or not to disclose the children This attribute is not supported on the following agent types: pda, phone, voice."
    I think this is for me irrelevant. My application have to support only a client like a personal computer.
    Which effect has this argument by deployment?
    Or is this only for the WYSIWYG editor?
    Joachim

  • 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.

  • Enable showDetailItem on RowSelect of table present in a region

    I m new in adf and want to enable showDetailItem on RowSelect of a table present in a region.that region is also placed in another showDetailItem. i have done in partialtrigger of showDetailItem r1:t1.but its not working.Any Idea ?

    Hi,
    refreshing the region alone doesn't do anything with the showDetail item therein. When you PPR the region then the region is refreshed and the data in the region is synchronized (if the task flow inthe region uses a shared data control). What exactly do you mean with "enable showDetailItem" - disclose? The showDetailItem component in the region, what is it contained in (tab, accordion ?). Please provide more details on the use case.
    Frank

  • Deactivating region (taskflow) when changing showDetailItem in panelTabbed

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

  • HOW CHANGE SHOWDETAILITEM HEADER STYLE

    Hi guys,
    sorry for my english. I'm working with jdeveloper 11.1.1.5.0 and using jspx page to create an ADF application. The question is: I have a af:panelTabbed and can I change the style of the af:showDetailItem header (when it is disclosed and not)? For example I wont that all the headers have squared corner and have red background when are discolsed and black background when not.
    Thanks!!!

    No reason to shout!
    This can be done by skinning the panelTab and showDetailItem. Best you get yourself the skin editor (http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html) and read hte doc http://www.oracle.com/technetwork/developer-tools/adf/learnmore/august2011-otn-harvest-457288.pdf and http://docs.oracle.com/cd/E28280_01/web.1111/b31973/af_skin.htm#ADFUI11807
    and http://docs.oracle.com/cd/E38186_01/user.111240/e17456/toc.htm. Some more info http://www.oracle.com/technetwork/issue-archive/2011/11-nov/o61adf-512006.html
    Timo

  • Deleting a ShowDetailItem at runtime from PanelAccordion ???

    Hi,
    I am trying to customize the panel accordion functionality like add, delete ShowDetial items at runtime to Panel accordion.
    All the operations are done programatically.
    I am able to Add Show detail item at runtime.
    Facing problem while deletion. My implementation is like this:
    I have a button in showDetailItem of PanelAccordion. On click of button i want o remove that ShowDetailItem. So i added a SelectionListener to button like this:
                RichCommandButton delButton = new RichCommandButton();
                delButton.setText("Delete");
                MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { });
                delButton.setActionExpression(delEx);From method deleteShowDetailItem, I need reference of that particular SelectDetaiItem where button is located. How to get that?
    and one more:
    How to open particular ShowDetailItem in PanelAccordion Programatically at runtime. For example. I am adding a showdetailitem at runtime, i want remaining all to be closed and new one to be opened. How to do that?
    Thanks
    Thoom
    Edited by: Thoom on Sep 10, 2011 12:38 PM

    Hi Timo,
    Thanks for reply. Yes i udnerstand the Structure of UI components.
    There is a small confusion in the code i have written
    Actually i am adding showDetailItem (with Delete Button) to PanelAccordion programatically in a loop.
    So when i click on delete button i am calling method:
    RichCommandButton delButton = new RichCommandButton();
                delButton.setText("Delete");
                MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { });
                delButton.setActionExpression(delEx);In above code i am unable to pass any event parameter to "deleteShowDetailItem" catch the Delete Button reference, so that i can get its Parent ShowDetailItem.
    I am kind of struck over here. I tried to pass some arguments like:
    MethodExpression delEx =
                    adfUtils.resloveMethod("#{pageFlowScope.contactsBean.deleteShowDetailItem}",
                                  Object.class, new Class[] { ActionEvent.class });
                delButton.setActionExpression(delEx);Unable to pass any action event with above code. It say invalid number of arguments.
    Thanks
    Thoom

  • How to add ShowDetailItem to PanelAccordion at runtime (Programatically)?

    Hi,
    I am creating a PanelAccordion in a popup programatically.
    I have add & delete CommandButtons in popup, using which i am trying to add and delete ShowDetailItem from PanelAccordian.
    I tried to call a ActionListener on CommandButton to add showDetailItem to Accordion at runtime. But its not working.
    This is how i am trying to implement:
    RichPanelAccordion contactsContainer = new RichPanelAccordion();
    public void BuildUI(){
            RichPanelGroupLayout parentContainer = new RichPanelGroupLayout();
           // Adding button
            RichCommandButton addContact = new RichCommandButton();
            addContact.setText("Add Contact");
            MethodExpression addEx =
              adfUtils.resloveMethod("#{pageFlowScope.contactsBean.addNewContact}",
                            Object.class, new Class[] { });
            addContact.setActionExpression(addEx);
            // Adding Accordion
            RichPanelAccordion contactsContainer = new RichPanelAccordion();
            contactsContainer.setId("contactsContainer");
            parentContainer.getChildren().add(addContact);
            parentContainer.getChildren().add(addContact);
        public void addNewContact() {
          RichShowDetailItem contact = new RichShowDetailItem();
          contact.setText("New Contact");
          contactsContainer.getChildren().add(contact);
          System.out.println("::: Add Contact :::" +  contactsContainer.getChildren().size());
          RequestContext.getCurrentInstance().addPartialTarget(contactsContainer);
        }While creation of PanelAccordion, i added couple of ShowDetailItems to it.
    After calling addNewContactMethod, its not getting updated with new one.
    I tried to get the children of panel accordion while adding. It is showing zero. To access this PanelAccordion in outside, i initialized panelAccordion globally. I think thats y its showing children zero.
    How to achieve this requirement? Looking for some ideas.
    Thanks in Advance.
    Thoom..

    Hi Thoom,
    First of all, debug your code, and try to pay attention if each request you're doing is creating a new RichPanelAccordion (watching the id of instance). If yes, verify your MB scope (pageFlowScope is better) and test your instance before add:
    public RichPanelAccordion  getContactsContainer(){
    if (contactsContainer  == null)
    contactsContainer = new RichPanelAccordion();
    return  contactsContainer  ;
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can we jump to different page in af:showDetailItem within af:showOneTab

    Hi,
    My requirement is to have multiple tabs in a page (not using the menu1, menu2, or menu3 facet). Each tab is doing different functionality, so each tab could span multiple pages.
    I am trying to use af:showOneTab with af:showDetailItem to implement this, but it seems that with af:showOneTab, all tabs are part of the same page, so I am facing a problem. I am hoping that there is an "action" property in the af:showDetailItem component that I can use to go to different page.
    For example, I have 2 tabs: Employee, Department.
    Employee | Department
    When user reaches the first page, we are disclosing Employee tab by default. Within this tab, we are showing all employees in an ADF table with a link to "Create New Employee" which I wire to a new JSFX page. So in this new page, I am copying the same af:showOneTab with 2 af:showDetailItems from the same page.
    After we are done with the creation, if user clicks the Employee tab, we should go back to the first JSFX page which shows all employees in ADF table. But it does not do that, it stays in the second page (create new employee page). Then I realize that it's because there is no "action" property in af:showDetailItem.
    Can af:showOneTab / af:showDetailItem be used to achieve this? Or is there another tab container component that I should use?
    Thanks for the help.

    Hi,
    this is more a usecase for a template than the use of tabs. Tabs are not made for this. You could use subviews, but then the pages are added at runtime to the parent page
    Frank

  • Close icon display for a Tab(ShowdetailItem)

    Hi,
    I am using the PanelTab with multiple ShowDetailItems. I am giving the close icon provision for the showdetail item. But the close icon is coming only in mouse over.
    I need to display the close always(ShowDetailItem).
    Reg,
    Brahma B

    There is a tutorial for JScrollPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
    It came to my mind that JSplitPane is not using JScrollPane for the two components you add. So perhaps the solution would be to "wrap" both your components to their own JScrollPane before you add them to the split pane.
    Then for those scroll panes I would probably use:
    JScrollPane.setColumnHeaderView(myXCloseButtonInAPanel)
    or
    JScrollPane.setCorner(upperRightCorner, myXCloseButton)
    I don't know if that will work, or how it will look like now that you use the scroll pane's scrollbars instead of the split pane's scroll bar. You have to experiment with it. The scroll pane's should be able to resize themself to fit in the split panes areas when you move the divider, and maybe that's not so easy to do. Otherwise you will end up with both a scrollbar from the split pane and a scroll bar from the scroll pane.. yuck.
    Maybe someone else has a better solution?

  • How to specify height dynamically for each showDetailItem

    Hi,
    I'm using JDeveloper 11.1.1.6 version.
    I have the following requirement:
    I have a create page with one <af:region>.
    The <af:region> displays a page with <af:PanelTabbed> component having 4 <af:showdetailItem> components.
    For each tab I would like to specify the height dynamically based on the content of the tab.
    Any pointers would be helpful.
    Thanks
    Ravi

    Hi,
    actually its the parent component (panelTab) that determines the size
    To quote from http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_showDetailItem.html
    Geometry Management
    This component should never have any width or height specified in its inlineStyle because it will always gets its dimensions from its ancestor component.
    Frank

Maybe you are looking for

  • AVerMedia MiniCard Hybrid ATSC ----- Correct Driver File Needed

    I have  the HP Compaq 8200 Elite Ultra-slim PC ant the AverMedia ATSC TV Tuner Card. HP TV Tuner Kit   Hp Part number  613990-001 The tuner card is......Hp Part number 48246-001 My Question is....  What is the latest and correct driver for this card?

  • Hi! I've just backed up from iCloud and missed photo. Why?

    Hi! I've just backed up from iCloud and missed photo. Why?

  • Anybody successfully created a Pie-chart?

    I have tried with all the default options and keep getting an "x"( the one that's shown by browser when it can't find an image file). I understand the fact that Pie-Charts are still in Beta. But at least they should work to have a successful look at

  • DynDNS or No-IP service with Server?

    I just received my Mac mini Snow Leopard Server and I am contemplating also being able to access the server from outside the house as well as from inside. If I use No-IP or DynDNS service, will this work? Or should I purchase a static IP address from

  • Local variable versus 'properity value'

    Hi, can anybody explain me the (dis-)advantages of using 'properity:value' instead of using a local variable when I want to read (write) a control at a second location. Thanks for any input Urs Bögli