AF:showDetailItem DisclosureListener Question

Hi:
I'm running Jdeveloper 11.1.2.3, on Windows7:
Inside a af:tabbedPanel, I have several af:showDetailItems. When the user clicks on a different tab, I need to fire some java code for that particular tab. So each tab selection should fire different java code.
Is the af:showDetailItem DisclosureListner the proper place for this?
Is it correct to assume that the DisclosureListener would only fire when that particular af:showDetailItem is disclosed?
How can I detect which tab was selected in java?
thanks alot.

yes
use disclosureEvent.isExpanded()
Edited by: Puthanampatti on Feb 21, 2013 9:19 AM

Similar Messages

  • ADF: commandButton doesn't reach target method

    Hi All,
    This is my first post here, i hope you can help me, i am new in ADF, and now i am facing with an issue, let me explain:
    ADF Business Components     11.1.1.55.36
    jDeveloper 11g Release 1 11.1.1.2.0
    In the aplication i have a button that change the "render" attribute of an showDetailItem, this object conatains some commandButons but when i click over these buttons the listener method is never triggered. i don't know what's happend with this situation. Any idea is always welcome.
    Thanks in advance,
    Sergio Valdez
    Code:
    activation commandButton at line: 58
    rendered showDetailItem at line: 125
    problem commandButtons at lines: 132 & 139
    <?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"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['com.axtel.reporteador.MessageBundle']}"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:panelStretchLayout topHeight="50px" id="psl1" bottomHeight="26px">
              <f:facet name="top">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     id="pgl2">
                  <af:inputText label="#{viewcontrollerBundle.NOMBRE_DE_ENCUESTA}" id="surveyName"
                                value="#{SurveyMB.surveyName}"/>
                  <af:panelGroupLayout id="pgl3">
                    <af:commandButton text="#{viewcontrollerBundle.CREATE_SURVEY}" id="surveyCreate"
                                      actionListener="#{SurveyMB.createSurveyListener}"/>
                    <af:commandButton text="#{viewcontrollerBundle.RESET_SURVEY}" id="surveyCancel"
                                      actionListener="#{SurveyMB.cancelSurveyListener}"/>
                    <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                      id="addQuestion"
                                      actionListener="#{SurveyMB.addQuestionListener}"
                                      rendered="#{SurveyMB.surveyAlreadyCreated}"
                                      disabled="#{SurveyMB.questionAddEnable}"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="center">
                <!-- id="af_one_column_header_stretched"  -->
                <af:panelAccordion id="questionAccordionPanel" discloseNone="true"
                                   partialTriggers="addQuestion">
                  <af:forEach items="#{SurveyMB.survey.questions}" var="question"
                              varStatus="i">
                    <af:showDetailItem text="#{question.question}"
                                       id="questionDetailItem"
                                       disclosed="#{( SurveyMB.questionEditEnable) and (i.index eq SurveyMB.questionToBeEdited)}"
                                       disabled="#{(( SurveyMB.questionEditEnable) &amp;&amp; ( SurveyMB.questionToBeEdited ne i.index)) or SurveyMB.questionAddEnable}">
                      <f:facet name="toolbar">
                        <af:group id="g1">
                          <af:outputText value="outputText1" id="ot1"/>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_ANSWER_DELETE}"
                                            id="questionDelete"
                                            actionListener="#{SurveyMB.deleteQuestionListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_QUESTION_EDIT}"
                                            id="questionEdit"
                                            actionListener="#{SurveyMB.editQuestionListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                          <af:commandButton text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                            id="questionAddAnswer"
                                            actionListener="#{SurveyMB.addAnswerListener}">
                            <af:clientAttribute name="questionIndex"
                                                value="#{i.index}"/>
                          </af:commandButton>
                        </af:group>
                      </f:facet>
                      <af:panelGroupLayout id="pgl5">
                        <af:panelGroupLayout id="questionEditPanel"
                                             rendered="#{SurveyMB.questionEditEnable}">
                          <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                              id="questionTypeToEdit">
                            <af:selectItem label="Seleccion Multiple"
                                           value="checkbox" id="selectItem1"/>
                            <af:selectItem label="Seleccion simple"
                                           value="radiobutton" id="selectItem2"/>
                          </af:selectOneChoice>
                          <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                        id="questionToEdit" rows="2"/>
                          <af:commandButton text="#{viewcontrollerBundle.ADD}"
                                            id="questionEditOk"
                                            actionListener="#{SurveyMB.addQuestionOkListener}"/>
                          <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                            id="questionEditCancel"
                                            actionListener="#{SurveyMB.addQuestionCancelListener}"/>
                        </af:panelGroupLayout>
                        <af:panelHeader text="Respuesta 1" id="answerHeader"
                                        size="3">
                          <f:facet name="menuBar">
                            <af:commandLink text="#{viewcontrollerBundle.EDITAR}"
                                            id="answerEdit"
                                            actionListener="#{SurveyMB.deleteAnswerListener}"
                                            disabled="#{requestScope.SurveyMB.editAnswerLinkEnable}"/>
                          </f:facet>
                          <f:facet name="toolbar">
                            <af:commandLink text="#{viewcontrollerBundle.ELIMINAR}"
                                            id="answerDelete"
                                            actionListener="#{SurveyMB.editAnswerListener}"
                                            disabled="#{requestScope.SurveyMB.deleteAnswerLinkEnable}"/>
                          </f:facet>
                          <af:panelGroupLayout id="answerEditPanel"
                                               rendered="#{SurveyMB.answerEditEnable}">
                            <af:inputText label="Label 3" id="answerToEdit"/>
                            <af:commandButton text="#{viewcontrollerBundle.OK}"
                                              id="answerEditOk"/>
                            <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                              id="answerEditCancel"/>
                          </af:panelGroupLayout>
                        </af:panelHeader>
                        <af:panelHeader text="#{viewcontrollerBundle.SURVEY_ADD_ANSWER}"
                                        id="panelHeader2" size="3"
                                        rendered="#{SurveyMB.answerAddEnable}">
                          <f:facet name="menuBar"/>
                          <af:panelGroupLayout id="panelGroupLayout1">
                            <af:inputText label="Label 3" id="answerToAdd"/>
                            <af:commandButton text="#{viewcontrollerBundle.OK}"
                                              id="answerAddOk"
                                              actionListener="#{SurveyMB.addAnswerOkListener}"/>
                            <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                              id="answerAddEdit"
                                              actionListener="#{SurveyMB.addAnswerCancelListener}"/>
                          </af:panelGroupLayout>
                        </af:panelHeader>
                      </af:panelGroupLayout>
                    </af:showDetailItem>
                  </af:forEach>
                  <af:showDetailItem text="#{viewcontrollerBundle.SURVEY_ADD_QUESTION}"
                                     id="showDetailItem1"
                                     disclosed="true"
                                     rendered="#{SurveyMB.questionAddEnable}"
                                     partialTriggers="addQuestion">
                    <f:facet name="toolbar">
                      <af:group id="group1">
                        <af:commandButton text="#{viewcontrollerBundle.OK}"
                                          id="questionAddOk"
                                          actionListener="#{SurveyMB.addQuestionOkListener}"
                                          immediate="true"
                                          binding="#{SurveyMB.addQuestionOkBinding}"
                                          action="#{SurveyMB.questionAddOkAction}"
                                          partialTriggers="addQuestion"/>
                        <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                          id="questionAddCancel"
                                          actionListener="#{SurveyMB.addQuestionCancelListener}"
                                          partialTriggers="addQuestion"/>
                      </af:group>
                    </f:facet>
                    <af:panelGroupLayout id="panelGroupLayout2">
                      <af:panelGroupLayout id="pgl8"
                                           partialTriggers="addQuestion">
                        <af:selectOneChoice label="#{viewcontrollerBundle.SURVEY_QUESTION_TYPE}"
                                            id="questionTypeToAdd">
                          <af:selectItem label="Seleccion Multiple" value="checkbox"
                                         id="si2"/>
                          <af:selectItem label="Seleccion simple"
                                         value="radiobutton" id="si1"/>
                        </af:selectOneChoice>
                        <af:inputText label="#{viewcontrollerBundle.SURVEY_QUESTION}"
                                      id="questionToAdd" rows="2"/>
                      </af:panelGroupLayout>
                    </af:panelGroupLayout>
                  </af:showDetailItem>
                </af:panelAccordion>
              </f:facet>
              <f:facet name="bottom">
                <af:panelGroupLayout id="pgl1">
                  <af:commandButton text="#{viewcontrollerBundle.SURVEY_SAVE}" id="surveySave"
                                    action="#{SurveyMB.surveySaveAction}"/>
                  <af:commandButton text="#{viewcontrollerBundle.CANCEL}"
                                    id="cancelSurvey"
                                    action="#{SurveyMB.cancelSurveyAction}"/>
                </af:panelGroupLayout>
              </f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:preferred-managed-bean-name:SurveyMB-->
    </jsp:root>Edited by: user2931026 on 10-abr-2010 1:13
    Edited by: user2931026 on 10-abr-2010 9:01

    Sergio,
    good work, now I can read the code :-)
    Strange, nothing pops up right away.
    The buttons in the showDetailItem are the only ones not working?
    One thing you can try is to use the visible property instead of the rendered attribute. The UI looks the same, but the properties behave different (rendered=false means the components are not on the page, visible=false means the components are on the page but are not shown to the user).
    Timo

  • DisclosureListener of af:showDetailItem Invoking Method Twice

    Hi All,
    I am using Jdeveloper Studio Edition Version 11.1.2.1.0.
    I have a af:panelAccordion, generating af:showDetailItem at runtime using af:forEach component from a view. The code snippet is given below:
    <af:panelAccordion id="pa1" partialTriggers="np1" discloseMany="false" discloseNone="false">
         <af:forEach items="#{bindings.VerticalAppMenus.children}" var="globalMenu" varStatus="globalMenuVarStatus">
              <af:showDetailItem text="#{globalMenu.MenuLabel}" id="sdi1" disclosureListener="#{pageFlowScope.globalMenus.refreshLineMenus}">
                               <f:attribute name="currentVerticalMenuId" value="#{globalMenu.MenuId}"/>
                               <af:tree value="#{bindings.LineAppMenus.treeModel}" var="node"
                                            selectionListener="#{bindings.LineAppMenus.treeModel.makeCurrent}"
                                            rowSelection="single" id="t1">
                                            <f:facet name="nodeStamp">
                                                <af:outputText value="#{node}" id="ot1"/>
                                            </f:facet>
                               </af:tree>
              </af:showDetailItem>
         </af:forEach>
    </af:panelAccordion>Every af:showDetailItem is assigned an Id through f:attribute which is passed to method refreshLineMenus pointed by disclosureListener property. Assume af:showDetailItem with Id=2 is currently disclosed and I click on af:showDetailItem with Id=4 to disclose it. The method pointed by disclosureListener is getting invoked twice, initially with value 4 and then 2. Ideally it shall be invoked with a value 4 only as the item which is disclosed has the Id=4.
    Is it the default behaviour for the disclosureListener to invoke the method twice; means once for the disclosed and once for the concealed af:showDetailItem? If yes, then how can I executed a method once on disclosure of showDetailItem in the above code?
    Any help will be highly appreciated.
    Thanks ... Best Regards
    Bilal

    Hi,
    yes there will be 2 invocations...
    one for the older one and one for new one..
    so there will be 2 invocations but no 2 requests, you can easily know the current selected tab by DisclosureEvent.isExpanded()
    which will return whether current item is expanded or not...

  • 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

  • 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

  • Get disclosed showDetailItem [panelTabbed] when page renders

    Hello,
    My Jdev version is 11.1.1.6.
    I have a page where there are many showDetailItem under panelTabbed component at different levels.
    These showDetailItems are showing regions implemented as bounded taskflow using fragments. I am controlling taskflow activation logic using a pageFlowScope variable setting the value using something like this:
    <af:setPropertyListener from="tabLevel1"
                            to="#{pageFlowScope.TabLevel1}"
                            type="disclosure"/>Similarly other tabs are sharing variables as pageFlowScope.TabLevel2, pageFlowScope.TabLevel3...
    When the page renders first time, the value of pageScope variable is not set, since no disclosure listener is fired yet. I can not assume to activate the first Tab's taskflow since user may not have access [authorization] to first tab and in that case, it is not rendered at all.
    My problem is - How to figure out which tab is the first rendered tab at each level?
    Is there a way to capture which tab is disclosed under each panelTabbed component? I can then do something like setting the pageFlowScope variable for that level. My tabs are fixed at design time, so I can hard code showDetailItem's component Id to check/set.
    I tried binding panelTabbed in a bean and then try to iterate through it's children but it returns 0 children when page is rendered first time.
    So apparently, I am stuck and don't know how to proceed on this. Any help is highly appreciated.
    Thanks,
    Jai

    Hello,
    Thanks for your response.
    We are already using UIShell in our application. It is based on One-Page application concept.
    Menu is opening the pages in dynamic tabs supported by UIShell.
    The page has it's own tabs (showDetailItem under panelTabbed) defined at design time. I need to control activation of taskflows only when they are open.
    It works fine after user starts interacting with the tabs as disclosureListener is fired but first time is an issue.
    I need a solution to figure out the "open" tab at each level. Obviously, it's too late to change the design/navigation architecture of whole application.
    Thanks,
    Jai

  • Disable validation when changing showdetailitem in showonetab

    Hello,
    i have a creation page for a table and since the table contains lots of columns i use showdetailitems to limit the size of the displayed page.
    But every time i change of showdetailitem, the validation of the fields is executed and i always get error messages saying that some fields are mandatory and must be set.
    so my question is, how can i disable validation when changing the selected showdetailitem (and still have it when committing) ?
    thanks
    -regards.

    Hello Peter,
    A little correction to Chris' suggestion, it should be:
    <af:inputText value="#{bindings.<your field name>.inputValue}"
                        label="#{bindings.<your field name>.hints.label}"
                        required="#{!bindings.<your iterator name>Iterator.findMode && bindings.<your field name>.hints.mandatory}">
    ...etc...The only difference is the removal of the ? : operator since it isn't required and represents both an additional parsing and processing effort. Go micro-optimization!
    ~ Simon

  • How to select showDetailItem programatically

    Can you select a specific showDetailItem programatically? I have some items inside panelTabbed and I want to be able to select, say, the 2nd item when a certain link in another showDetailItem on the same panelTabbed is clicked. I want to move programatically through tabs.
    regards.

    I do not say this one is the perfect but worked for me:
         <af:panelTabbed id="pt2" tabRemoval="all"
                                binding="#{mainPageBean.tabPanel}">
                  <af:showDetailItem stretchChildren="first" text="#{res.CUSTOMERS}"
                                     shortDesc="clients" id="customers"
                                     rendered="#{mainPageBean.customersIsRendered}"
                                     disclosed="#{mainPageBean.customersIsDisclosed}"
                                     itemListener="#{mainPageBean.onTabItemEvent}"
                                     binding="#{mainPageBean.sdiCustomers}">
                    <af:region value="#{bindings.clientsTF1.regionModel}" id="r1"/>
                  </af:showDetailItem>
                  <!--   disclosed="#{mainPageBean.customersIsDisclosed}" -->
                  <af:showDetailItem stretchChildren="first" text="#{res.ORDERS}"
                                     shortDesc="orders" id="orders"
                                     disclosureListener="#{mainPageBean.onItemClick}"
                                     rendered="#{mainPageBean.ordersIsRendered}"
                                     disclosed="#{mainPageBean.ordersIsDisclosed}"
                                     itemListener="#{mainPageBean.onTabItemEvent}"
                                     binding="#{mainPageBean.sdiOrders}">
                    <af:region value="#{bindings.ordersTF1.regionModel}" id="r2"/>
                  </af:showDetailItem>
    <!--rendered="#{mainPageBean.ordersIsRendered}"
                                     disclosed="#{mainPageBean.ordersIsDisclosed}" -->
                </af:panelTabbed>Then when you want to switch tabs you just do:
        public void ordersActionListener(ActionEvent actionEvent) {
            sdiOrders.setDisclosed(true);
            sdiCustomers.setDisclosed(false);
            AdfFacesContext.getCurrentInstance().addPartialTarget(tabPanel);
        }I had some problesms when I used the "ordersIsDisclosed" and "customersIsDisclosed" binding, so i bound the whole component. I do not know why it was not working.
    The other tiny thing is to be careful not to make two shoDetailItems, disclose="true" at the same time, because personally I do not know what will happen then :)
    good luck :D

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Satellite P300D-10v - Question about warranty

    HI EVERYBODY
    I have these overheating problems with my laptop Satellite P300D-10v.
    I did everything I could do to fix it without any success..
    I get the latest update of the bios from Toshiba. I cleaned my lap with compressed air first and then disassembled it all and cleaned it better.(it was really clean insight though...)
    BUT unfortunately the problem still exists...
    So i made a research on the internet and I found out that most of Toshiba owners have the same exactly problem with their laptop.
    Well i guess this is a Toshiba bug for many years now.
    Its a really nice lap, cool sound (the best in laptop ever) BUT......
    So I wanted to make a question. As i am still under warranty, can i return this laptop and get my money back or change it with a different one????
    If any body knows PLS let me know.
    chears
    Thanks in advance

    Hi
    I have already found you other threads.
    Regarding the warranty question;
    If there is something wrong with the hardware then the ASP in your country should be able to help you.
    The warranty should cover every reparation or replacement.
    But I read that you have disasembled the laptop at your own hand... hmmm if you have disasembled the notebook then your warrany is not valid anymore :(
    I think this should be clear for you that you can lose the warrany if you disasemble the laptop!
    By the way: you have to speak with the notebook dealer where you have purchased this notebook if you want to return the notebook
    The Toshiba ASP can repair and fix the notebook but you will not get money from ASP.
    Greets

  • Question regarding NULL and forms

    Hi all, i have a survey that im working on that will be sent via email.
    I'm having an issue though. if i have a multiple choice question, and the user only selects one of the choices, all the unselected choices return as NULL. is there a way i can filter out anytihng that says "NULL" so it only shows the selected options?
    thanks.
    here is the page that retrieves all the data. thanks
    <body>
    <p>1) Is this your first visit to xxxxxxx? <b><%=request.getParameter("stepone") %></b>
    </p>
    <p> </p>
    <p>2) How did You Learn About xxxxxxx?</p>
    <p><b><%=request.getParameter("steptwoOne") %></b>
      <br>
        <b><%=request.getParameter("steptwoTwo") %></b>
      <br>
        <b><%=request.getParameter("steptwoThree") %></b>
      <br>
        <b><%=request.getParameter("steptwoFour") %></b>
      <br>
        <b><%=request.getParameter("steptwoOther") %></b>
    </p>
    <p> </p>
    <p>3) What was your main reason for visiting xxxxx?</p>
    <p><b><%=request.getParameter("stepthreeOne") %></b>
        <br>
          <b><%=request.getParameter("stepthreeTwo") %></b>
        <br>
          <b><%=request.getParameter("stepthreeThree") %></b>
        <br>
          <b><%=request.getParameter("stepthreeFour") %></b>
        <br>
          <b><%=request.getParameter("stepthreeOther") %></b>
    </p>
    <p>4) did you find the information you were looking for on this site?</p>
    <p><b><%=request.getParameter("stepfour") %>
    <br>
    <b><%=request.getParameter("stepfourOther") %></b>
    </b></p>
    <p>5) Do you plan on using this website in the future?</p>
    <p><b><%=request.getParameter("stepfive") %></b></p>
    <p>6) What is your gender</p>
    <p><b><%=request.getParameter("stepsix") %></b></p>
    <p>7) What is your age group</p>
    <p><b><%=request.getParameter("stepseven") %></b></p>
    8) Would you like to take a moment and tell us how we can improve your experience on xxxxxxxxxx?
    <p><b><%=request.getParameter("stepeightFeedback") %></b></p>

    i was messing around and came up with this. it doesnt remove the null, but if it is null it adds ABC beside it. so i think i might be getting close. i just need to figure out how to replace the null.
    code]
    <b><%=request.getParameter("steptwoFour") %></b>
         <% if (request.getParameter("steptwoFour") == null ) {
         %>
         <% out.print("abc"); %>
         <% }
         %>

  • Anyone know how to remove Overdrive books from my iphone that have been transferred from my computer? They do not show up on itunes. I see a lot of answers to this question but they all are based on being able to see the books in iTunes.

    How do I remove Overdrive books from the library that were downloaded onto my computer then transferred to my iphone? The problem is that they do not show up in iTunes.
    I see this question asked a lot when I google, but they always give answers that assumes you can find the books in iTunes either under the books tab, or the audio books tab or in the music. They do not show up anywhere for me. They do not remove from the app like the ones I downloaded directly onto my iphone.the related archived article does not answer it either.  I even asked a guy working at an apple store and he could not help either.   Anybody...?
    Thanks!

    there is an app called daisydisk on mac app store which will help you see exactly where the memory is focused and consumed try using that app and see which folders are using more memory

  • Basic question

    Hello, i have a basic question. if i have defined 2 fields in a cube or a dso:
    Name Quantity
    and from the external flat file i get some characters for my quantity field. would my load fail?  for standard dso and for write optimized?
    NOTE: quantity field is a keyfigure defined as numeric.
    and the load coming in has "VIKPATEL" for Quantity field and not numbers.
    thanks

    Hi Vik,
    Yes, the load will fail.
    May be you coud first load this data into BW (into PSA) and set both fields as characters fields. Then you can create DSO, do transformation from this PSA to the DSO, and put your logic as to what do you want to do with those Quantity that is not number (e.g. convert to 0, or 'Not assgined', etc).
    You can use transfer rule, or a clean up ABAP code in the start routine.
    Hope this helps.

Maybe you are looking for

  • How to Identify database sessions used by forms sso user sessions?

    Hi: When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]). I need a way to identify the databa

  • Do I need a new optical drive?

    My CD/DVD drive stopped working a few weeks ago.  It is recognized by Windows but discs are not recognized. My system: dv6-1350us Windows 7 Home Premium x64 optical drive:  CDDVDW TS-L633M What I have already done: Uninstalled and re-installed the dr

  • Select query in routing(operation,sequence)

    Hello frds,      i am into change routing BDC actually i want a select query .....for like existing of operation for a particular sequence in routing.... if i will found operation for particular sequence i will run the bdc code lese i will exit...any

  • Problem in displaying data in Vendor Ageing through abap

    Hi, I had developed a vendor ageing report in which i am facing due to the dates i.e. As on date and select-option date. The As on date is sy-datum and other date is to sepcify from which date range it is displaying the date. When i execute the repor

  • How do i get my iphone 4s to stop lagging?

    My iphone is lagging and turning off randomly. How do I fix this?