Disclosing a selected af:showDetail component under an af:iterator

Hi
I am facing a problem with <af:showDetail> component. I am trying to generate multiple <af:showDetail> components under an <af:iterator> as shown below:
<af:iterator var="row" value="#{mybean.list}">
<af:showDetail disclosedText="Show" undisclosedText="Hide" disclosed="#{row.bool}">
</af:showDetail>
</af:iterator>
"mybean" is an instance of managed bean "MyBean" configured in faces-config.xml. "mybean.list" returns a list of objects of a class "MyBeanInner". "MyBeanInner" is a public inner class of "MyBean".
I am trying to control the disclosure of <af:showDetail> component using the boolean value "bool" set in "MyBeanInner". Through this, I want a specific <af:showDetail> component to disclose itself, but this is not happening.
Another interesting fact is that, if I bind the "disclosed" attribute to a property in "MyBean" it works fine.
Can any one explain this behavior? Is there a work around?
Thanks and Regards
Prashant

Hi Frank,
Thanks for the reply. You have rightly identified that inner class is not being instantiated.
Another point I missed was that - All properties other than "diclosed" in <af:showDetail> like "value", "disclosedText", "undisclosedText" work fine when they are bound to "MyBeanInner" inner class properties. Why is it that only "disclosed" property does not work? Is it something to do with ADF phases?
Could you elaborate on the solution you proposed. Where should I provide the getter and how will its signature look like? Currently, I have provided the setters and getters for the properties in the inner class.
Thanks and Regards
Prashant

Similar Messages

  • Dynamically disclose ShowDetail component

    I want to disclose a ShowDetail component based on some conditions of table, which is inside the showdetail.
    <af:showdeail disclosed=#{backingBean.firstMethod}>
    <af:table>
    <af:column>
    <af:outputText styleClass = "#{backingBean.secondMethod[row]}"/>
    The second backing bean method will return a string as css style class based on the table's row data. Then first Method in showDetail will check if the style class exists, if yes, will show the table.
    The problem is if disclosed property of showDetail is false. The second method (for table) never gets called because the table is hiding. If I set the disclose property to true, the second method gets called successfully, but the first method never gets called.
    Thanks a lot!

    Hi,
    when a component has the style class set then you already passed the JSF invoke application phase and no more listener code is executed. Instead of looking at the component style class property I would look at the same condition that sets the style class property. You can access the selected table row from a selection listener and then determine the table row value to in the same listener set the disclose state
    Frank

  • How capture the value selected in the component ( Select Many Choice )

    Hello Everyone ,
    I am new to ADF and i have a ADF page developed with Select Many Choice as one of the component , this field can be multiple numbers , i would
    like to capture each one the value being selected under each message choice and print them using sop .
    Let me explain through example :
    Application 1
    : Role 1
    : Role 2
    Application 2
    : Role 4
    : Role 5
    Where Application 1 , 2 are name of the Select Many choice component and Role 1 , 2 .. are values inside various Message choice .
    Now if i select Role 1 in Application 1 and Role 5 in Application 2 , i would like to print each of these information on click of a button.
    can some one help to achieve this .
    Note : All the values like Application 1 , 2 and Role 1,2,3 etc are just hard coded , not using any data base .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Pratap ,
    Thanks for your response ,Its just a page with component ( Select Many Choice ) i have hard coded some of the values for
    select choice .
    Let me know if you need any further input .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dynamically changing selection mode in component SALV_WD_TABLE

    I want to programmatically change the selection mode in component SALV_WD_TABLE. I've embedded the component in one of my own components. Under one circumstance, I want multiple selection to be possible, under another, I only want single selection capability.
    I've set the context in my component, which is mapped to the SALV_WD_TABLE usage component, so that the relevant node has selection cardinality 0..n. The approach I'd like to take, is to programmatically set the selection cardinality to 0..n in the first scenario, and 0..1 in the second. But I can't figure out how to do that, or even if it's possible!
    Is it possible to set the selection cardinality programmatically - if so, how? If it isn't, is there another way I can achieve the same functionality?
    Thanks
    matt

    Hi,
    You can do that.
    See IF_SALV_WD_TABLE_SETTINGS method set_selection_mode method.
    get the config table like this
    lr_table_settings ?= wd_this->alv_config_table.
    lr_table_settings->set_selection_mode( CL_WD_TABLE=>E_SELECTION_MODE-MULTI ).
    use constants from
    CL_WD_TABLE=>E_SELECTION_MODE-AUTO

  • ShowDetail component...

    Hi,
    I am working on developing similar look alike of showDetail component in adf, i have looked into the code of adf and i am implementing the same way the adf has, but the problem i am facing here is i am getting the all the components rendered twice on the page, but when i try to collapse the section, it collapses only one set of components, meaning which are actually embedded inside my "div" tag. i am not sure why i am getting second set of components on the page, i think these are displayed as i have actually written on the xhtml page. i am not sure how i can make like only one set of components render.
    here is the sample code snippet:
    if(disclosedBool)
    encodeAllChildren(context, panelComponent);
    Thanks a lot....

    Hi,
    - create a managed bean that exposes a boolean variable
    - put this bean into a scope larger than request
    - reference the boolean variable from the showDetail disclosed property on all components
    - when the button is clicked (or link) set the variable to false or true
    Frank

  • Text input in a Select One Choice Component

    Is there a simple way to enable text input in a Select One Choice Component or do I need to use an LOV or other component to provide that functionality?

    You should only use LOV.

  • How can I select an object located under another object?

    IS there a shortcut like in QuarkXPress to select an object located under or behind another object?

    Press the CMD-key while clicking or use the layers panel.

  • How to Maintaining Cost component under cost component structure?

    Hi Gurus,
    How to Maintaining Cost component under cost component structure?
    I am using OKTZ trx for cost element and cost component maintaiance but when i am trying to maintain the cost element and corresponding cost comp , i am not able to find a cost comp on F4 help.
    Plz let me know , ur guidance will be rewarded ..

    Using command:
    ASSIGN COMPONENT idx OF STRUCTURE struc TO <fs>.
    For example:
    DESCRIBE FIELD pi_output TYPE pi_output COMPONENTS lv_columns. "For number of columns
    DO lv_columns TIMES.
    ASSIGN COMPONENT SY-INDEX OF
    STRUCTURE (name of structure) TO <l_fs_output>. "<l_fs_output> - field of structure
    DESCRIBE FIELD <l_fs_output>... "with other options.
    ENDDO.

  • Options gone for select,edit, and print under HP Smart Web banner since HP dialed in to fix crash

    The buttons are gone for selecting, editing, and printing under my HP Smart Web since HP dialed in and fixed another problem.  I have uninstalled and reinstalled the software but still no luck.  All that shows up is the "HP Smart Web Printing" banner with the X to exit; that's it, no options listed below.  My computer has completely crashed twice since I started using it 1/4/10.  The second time the person dialed in and changed the bios and a few things in msconfig but I don't see anything there that would cause the smart web printing.  HELP.  Am I missing something really silly since I am a new user of HP Smart Print?
    Thank you in advance if you can help!
    ^j^Put behind you the troubles of yesterday, today's a new day full of blessings.
    ^j^May you and your loved ones be blessed with peace, love, joy,and health now and forever.
    ^j^Put behind you the troubles of yesterday, today's a new day full of blessings.
    ^j^May you and your loved ones be blessed with peace, love, joy,and health now and forever.
    ^j^Carrie

    I am REALLY annoyed to read this post. I have spent a lot of time to try and fix my computer (which I don't have with 5 kids...not your problem I know and NOT the point). It should NOT be this hard to update and fix a product. I DON'T WANT the Bing bar...and am feeling like I am being forced to accept it to make my puter run correctly because it is supported by HP. What....kind of service is THAT???????? I hope that someone from HP....admin or whatever...reads this. I am "madder" than mad. I have had HP products for years with few problems...and all of which I could find a solution for. This is unacceptable...and I hope someone listens. I don't know if I can trust HP again....when it won't even use the browser most use without problems. Sorry to the rest of the "forum" for venting...but I can't get help...am frustrated...find this out now...and it is nothing personal.

  • Declarative Component inside of an Iterator

    I am building a custom declarative component, and that's how I am using it from the main page:
    <af:iterator var="row" value="#{viewScope.manageMinorCrBB.linesForAddGroup}" id="it1">
    <af:panelGroupLayout id="id13" layout="horizontal" halign="left">
    <af:commandButton id="cmdAddLine" text="Add" actionListener="#{viewScope.manageMinorCrBB.addLines}" />
    <af:commandButton id="cmdRmvLine" text="remove" actionListener="#{viewScope.manageMinorCrBB.removeLines}" />
    <!-- THIS TAG DOESN'T WORK !!!!! -->
    <af:declarativeComponent id="dynfld1"
    viewId="/project/dynamicFieldComponent.jspx"
    rows="4" maxColumns="3"
    optionalFields="#{row.optionalFields}"
    model="#{row.model}"
    selectedOptionalField="#{row.selectedOptionalField}"
    postButtonTitle="Save"
    postListener="viewScope.manageMinorCrBB.saveAndRefreshAction"
    required="false" />
    </af:panelGroupLayout>
    </af:iterator> <!-- Component Tab to show OutOfScoped and Scopped DCCs
    Information will be shown based in Drools Logic -->
    <!-- THIS TAG WORKS !!!!! -->
    <af:declarativeComponent id="dynfld2"
    viewId="/project/dynamicFieldComponent.jspx"
    rows="8" maxColumns="2"
    optionalFields="#{viewScope.manageMinorCrBB.lineFind.optionalFields}"
    model="#{viewScope.manageMinorCrBB.lineFind.model}"
    selectedOptionalField="#{viewScope.lineFind.selectedOptionalField}"
    postButtonTitle="Search"
    postListener="viewScope.manageMinorCrBB.searchAction"
    required="true"
    />
    and that's a fragment of my DCC:
    If I call the components individually is working but If I put my component inside of an iterator I can't get the component's attributes by using this method:
    RichDynamicDeclarativeComponent _this = (RichDynamicDeclarativeComponent )
    getValueObject("#{component}",RichDynamicDeclarativeComponent .class);
    What am I doing wrong?, should I use the same "#{component}" expression???
    Thank you, I would really appreciate your help!
    Maik

    Hi,
    try af:forEach. the af:iterator stamps it children and does not create component instances
    Frank

  • How to Select the Current Row When Using af:iterator?

    Hello all,
    I encounter the following problem when using af:iterator to display data from
    a View Object:
    When trying to display the content of a row via a popup, only the first row is
    returned no matter which row is selected. So a selection of the current row
    should exist or some other method which should allow the access to the
    current row.
    The af:table has a selectionListener attribute which permit to achieve this.
    Does anyone know about some similar attribute or some method for
    selecting the current row when the af:iterator is used?
    Thank you,
    Mirela

    I would be interested in the answer to this basic question as well. I cannot get the selected row value of an attribute in an iterator for a view if I simply set-up a attribute binding to the iterator. It seems that this should be possible. I've had no other option but to obtain the current row and the related attributes programmatically. This works fine, but if there is a more elegant option, then I'd certainly like to use it.
              <af:table value="#{bindings.CompaniesView1.collectionModel}"
                            var="row"
                            rows="#{bindings.CompaniesView1.rangeSize}"
                            emptyText="#{bindings.CompaniesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.CompaniesView1.rangeSize}"
                            selectedRowKeys="#{bindings.CompaniesView1.collectionModel.selectedRow}"
                            rowBandingInterval="0" id="tCompanies"
                            summary="Companies"
                            width="100%"
                            rowSelection="single"
                            binding="#{CompanyBackingBean.companiesTable}">Page Def:
        <attributeValues IterBinding="CompaniesView1Iterator" id="Id">
          <AttrNames>
            <Item Value="Id"/>
          </AttrNames>
        </attributeValues>I should be able to get the Id attribute value of the current selected row using "#{bindings.Id}", right? Well, it doesn't work for me. Any ideas?
    Thanks

  • Dynamic disclosing showdetail component in oracle adf

    In my menu I have showdetail components. My problem is that on opening second showdetail, the first opened showdetail should be disclosed automatically.

    Oh, sorry I was budy and I did not read it. Did you manage to do it or you still need an asnwer?

  • Selecting a RichTree component tree node

    Hi,
    How do I get the selected tree node in a RichTree component?. I would like to select the node with the mouse and possibly use the popup menu to initiate an action (e.g. delete). How do I add an item to the popup menu to do this? I'm using the RichTree component in JDev 11g. Any sample code would be helpful.
    Thanks
    Colin

    Colin,
    To perform some operation on node selection within af:tree component you simply need to create a selectionlistener and decorate the tree component with the listener you implemented. For the context-menu you describe the af:tree has an attribute named contextMenuId. Set the value of this attribute to equal the id of an af:popup that contains an af:menu that represents the menu that you want displayed on a right-click. Below is a link to the tag doc for the af:tree component
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/tagdoc/af_tree.html
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Message handling in feeder class for component under FPM_FORM_UIBB

    Hi,
    I have created a component configuration under the component FPM_FORM_UIBB. The feeder class used is CL_HRESS_PER_DETAIL_0021_10.  I have modified the method IF_FPM_GUIBB_FORM~GET_DATA to report an error message using the FPM message manager(code is hown below) if the field state is not filled.
    The problem is that i get the error message below along with the standard success message that 'Data is Saved'.(and the data is actually saved on the back end)
    Is there a way that i can stop additional processing after I report the error message?  I
    IF io_event->mv_event_id EQ 'FPM_SAVE'.
          IF <lv_data_country> = 'US' AND <lv_data_state> IS INITIAL.
            DATA: lv_message_manager TYPE REF TO if_fpm_message_manager,
                       lv_fpm TYPE REF TO if_fpm.
            "Get handle to the IF_FPM interface
            lv_fpm = cl_fpm_factory=>get_instance( ).
            "Get handle to the FPM Message Manager
            lv_message_manager = lv_fpm->mo_message_manager.
            CALL METHOD lv_message_manager->report_message
              EXPORTING
                iv_message_text              = 'State is mandatory'
                io_component                 = me
                iv_severity                  = 'E'.
          ENDIF.
        ENDIF.
    Thanks in advance,
    Reddy

    Hallo reddy,
    i think you need to append the error message to the et_messages exporting parameter. Further you cannot stop the processing of the instructions followed by the your logic.
    Runtime is not going to stop when it encounter report-error-message. You have to do it yourself using if ..else construct.
    You can also program it in process_event method and return ev_result as failed. In this way the fpm event phase model stops further processing.

  • Error Rendering SELECT Element in Safari Under iOS (iPhone & iPad)

    Hello,
    Our website contains three SELECT elements that are not rendering properly under Safari, iOS 4.2 on both an iPhone and iPad.
    If you load http://demo.campusguides.com in a normal browser (Chrome, FF, non-mobile Safari) you will see that the three "Browse By" boxes at the top of the page each contain text that you can select using your mouse. Each of those boxes is actually a SELECT element and each piece of text is an OPTION within that SELECT box. We have set a SIZE property on the SELECT element that allows the user to see more than one OPTION value at a time. Here is the W3C page that mentions the SIZE option for SELECT boxes - http://www.w3.org/TR/html401/interact/forms.html#adef-size-SELECT.
    On all the browsers I have tested the list displays properly, meaning that you can see multiple OPTION values at once as well as a scroll bar (when needed) that allows you to scroll up and down the list. On iOS Safari however the list is displayed as an empty box with no OPTION values visible to the user. If the iOS user clicks the SELECT element they are taken to the normal SELECT interface for Safari which does work fine, but without any content displaying in the box to begin with, I don't think many users would know they can / should click that element.
    So basically I think this is a bug, and that iOS Safari should either render that SELECT element with the OPTIONS visible to the user, or it should ignore the SIZE property and render that element like a "normal" SELECT menu where only one option is visible at a time.
    Thank you!

    Check here for Safari HTML guidelines: Safari HTML Reference
    If you regard the seen behavior as a bug then report it to Apple at: Bug Report Form
    Note: This is a user-to-user forum. You might get better response in the developers forums.

Maybe you are looking for

  • How can i bring the data from an old Identity on old mac into new identity on new mac?

    I have bought a new mac and transferred all the old data in. I do not want it to live in the old identity though, i want it to be in the new ID on the new computr=ter. Is this possible?

  • File to JDBC error

    Dear All, I have working on a file to JDBC scenario, while i am executing the scenario I am getting the following error message in receiver JDBC. Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' a

  • Hi guys doubt on bapi please reply

    hi, i have doubt on which import parameters to be used in the bapi BAPI_ACC_GL_POSTING_REV_POST we have posting date and document no with us we are confused about what import parameters to be sent as an input to this bapi........... reward will be gi

  • Oracle physical database and logical database.

    dear Friends        wanted to know what is physical and logical database architecture.        pls. help. --Rajnish

  • Y2 axis in graph is only numeric, iwant to put a date column

    Hi, I want to create a report in report 10g have a graph (chart), i want it to be like this : X2 axis : Sequance id (Number Column) Y2 axis : End-date , Start date (Date Column) But when i create it , there is no possible to put a date colunm in Y2 a