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

Similar Messages

  • Undisclose showDetailItem instead of overflow icon

    Hello,
    Considering af:panelAccordion with many disclosed items. If too many items are disclosed, some of them are hidden under overflow arrow icon which isn't quite handy.
    I would like to undisclose the items that will be hidden under overflow.
    Is there any programmatic handler to tell if showDetailItem is actually visible or hidden?
    Thanks.
    ADF 11R2

    Hi,
    I would like to undisclose the items that will be hidden under overflow.
    You need to provide the UI space for this. So either add the accordion to a layout component that stretches or (as mentioned in previous post) add it to a panelGroupLayout with layout set to scroll so that you see a scroll bar
    Frank

  • 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

  • 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

  • How to make a group name appear as the group name and not "Undisclosed Reci

    About Group Names:
    I made a group of about 15 people. I named that group “BASEBALLERS." I have another group that I labeled ”BASKETBALLERS." When I want to send info that pertains to both, I type out each group name and they both appear in the “To:” field with those names I created.
    However, when I receive copies of this email, the group names BASEBALLERS and BASKETBALLERS gets changed to boring old ”Undisclosed Recipients.“
    Is it possible for everyone to receive my emails and see the two group names instead of ”Undisclosed recipients“?
    Thank you. According to the Help Menu in Mail, it should be possible. Or does it have to do with individual ISPs?
    -Lorna in Southern California
    http://web.mac.com/lorna6

    Hi DazFaz,
    true, but with an array with length of 1 rounding down
    prevents an index
    out of range error.
    In you original code you 'round down' by multiplying by the
    length of
    the array -1 while I round down with Math.floor (and multiply
    by the
    actual length of the array).
    Is there a difference in result?
    The code below can yield 1 while the array may just be 1 item
    long:
    var arrayLength:Number = 1;
    var rnd:Number = Math.random() * arrayLength;
    var rndV1 = Math.floor(rnd);// Rounds ONLY down to the
    nearest integer
    var rndV2 = Math.round(rnd);// rounds up OR down to the
    nearest integer
    trace(rnd + "\t" + rndV1 + "\t" + rndV2);
    so either decrement the length or floor the number. Same
    difference (No?)
    I love puzzels :)
    DazFaz wrote:
    > Hi Manno Bult.
    >
    > The problem with user Math.floor is that it only moves
    in one direction and
    > that is down to an integer.
    > With Math.round ir rounds off the number to the nearest
    integer.
    >
    > If you run the code I have modified from yours, you will
    see what I mean. You
    > will notice that rndV1 always stays at 0 yet rndV2 will
    deviate from 0 to 1.
    > Making it a more accurate way of finding a true random
    number.
    >
    > var rnd:Number = Math.random();
    > var rndV1 = Math.floor(rnd);// Rounds ONLY down to the
    nearest integer
    > var rndV2 = Math.round(rnd);// rounds up OR down to the
    nearest integer
    >
    > trace(rnd + "\t" + rndV1 + "\t" + rndV2);
    >
    Manno Bult
    [email protected]

  • 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

  • Autoscrolling in a DropTarget (Drag and Drop)

    I have implemented Drag and Drop using DropTargets and a DragSource And DragGestureListener.
    The DropTarget I have is a customized JComponent. How can I make the DropTarget autoscroll for Drag and Drop events??

    Have you tried adding a MouseMotionListener to the target component and checking to see if the mouse coordinates are near the edge of the viewable area?

  • Autoscrolling in the DropTarget (Drag and Drop)

    I have implemented Drag and Drop using DropTargets and a DragSource And DragGestureListener.
    The DropTarget I have is a customized JComponent. How can I make the DropTarget autoscroll for Drag and Drop events??

    Have you tried adding a MouseMotionListener to the target component and checking to see if the mouse coordinates are near the edge of the viewable area?

  • PannelAccordion disclosed-icon is not working in Skinning but Undisclosed-icon property is working

    Hi,
    i would like to show the panelAccordion tabs icon upperarrow for (undisclosed) and Downarrow for (disclosed).but it only works for undisclosed.can anyone help me to resolve this issue
    my css
    af|panelAccordion::disclosed-icon-style{
       content: url("../../accordion_arrow_down.png"); 
    Thanks

    Hi,
    I observed the same, Book Mark Button availabe on web report is not working but Book mark URL can be saved with the context menu -> bookmark.
    need to check the Web template for  Book Mark.
    Bookmark URL can be saved and that URL is used to go fastly to the requied navigation fastly, that is the use of Bookmark
    hope this helps
    Regards
    Daya Sagar

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

  • HT2623 How do I set up iCloud group contact lists with 'undisclosed recipients'?

    I have set up some icloud group contact lists (although not very easily as I had to re-input each contact into the group list as I didn't seem able to select it from my existing contact list and transfer it into the group).  Now I want to send e.mails to each group, but I want each contact address in the group to be private, so that the email says 'undisclosed recipients' as I see on other e.mails.  How does that work?  I had a practice bringing up the group name, but every e.mail show in the 'to' box...
    What do I need to do?

    Hi Mike,
    Go to your Applications folder and open Address Book > at the bottom of the left side click on the + sign to add a Group > name the group > click on All Contacts > in the Name column, drag one name at a time into the group you created on the left side > when you have all the names you want in there, close Address Book > when you want to email everyone in that group, simply open a New Message in Mail > in the To field, type in the name of the group you created > type your message > hit Send and the message will be sent to everyone in that group.

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

  • DropTarget check against all objects on the stage

    Hey all,
    Not sure the best way to do this.  I have a class we will call DropActivity, here is the code
    package com.activitycontrol
              import com.activitycontrol.DropCheck;
              public class DropActivity
                   // Constants:
                   // Public Properties:
                   // Private Properties:
                   private var _selectedClip:Object;
                        // Initialization:
                        public function DropActivity(/*selectedClip:Object*/)
                        // Public Methods:
                        public function set selectedClip(selectedClip:Object):void
                                  _selectedClip = selectedClip;
                        public function stopDraggingMe():void
                                       var dropCheck:DropCheck = new DropCheck();
                                       //dropCheck.checkAgainst = dropTarget.name; ///***********
                                       if (dropCheck.canBeDropped == true)
                                            _selectedClip.stopDrag();     
                        // Protected Methods:
    when the stopDraggingMe() method is called from another object (code shown below) I need to see all the objects on the stage to see what objects on the stage my currently selected movie clip is over and assign it to the dropCheck.checkAgainst method (that will be checked against an array to see if it can in fact be dropped, if so set the canBeDropped value to true and therefor run the .stopDrag() ).  I have read using root is not a good coding practice in AS 3.
    call to the stopDraggingme() mehod.
    private function setDown(event:MouseEvent):void
                             var droppedItem:DropActivity = new DropActivity();
                             droppedItem.selectedClip = this;
                             droppedItem.stopDraggingMe();

    No, I think I can use drop target, I just need to use it from the DropActivity class and not a document class. I just don't know how to use it from a non-document class.
    "and you need to loop through all displayobjects to see which have a positive hitTest with your dropped object, correct?"
    I am trying to say..... ok, what movie clip is currently under the one I have selected,  the drop activity class knows what object I have selcted as it is in the selectedClip variable.  so I need to find out what clip is under it ......... the light just came on!
    answer duh......dropCheck.checkAgainst = _selectedClip.dropTarget.parent.name;
    thanks a bunch kglad you have helped me out once again, you are the man. I might just have to buy you a beer one of these days.

Maybe you are looking for