Setting the visibility of a button after a click on a TabbedPane

I have a page with a Tabbed Pane.
I would like to set the visibility of a command button when I click on a Tab.
To do that I put a disclosureListener like this:
<af:panelTabbed position="above" testId="Tab1" >
<af:showDetailItem id="Tab1" text="Tab1" disclosureListener="#{prova.apri}">
<af:outputText value="Table1"/>
</af:showDetailItem>
<af:showDetailItem id="Tab2" text="Tab2">
<af:outputText value="Table2"/>
</af:showDetailItem>
</af:panelTabbed>
In the backing bean I have the attribute bound to the commandButton and the listener method like this:
public void apri(DisclosureEvent disclosureEvent)
// Add event code here...
RichShowDetailItem o =
(RichShowDetailItem) disclosureEvent.getSource();
this.commandButton1.setVisible(true);
this.commandButton1.setRendered(true);
It doesn't work !! I guess I'm missing something....
Could someone help me??
Thanks a lot.
Alfredo

Based on the code you provided it does not look like you are using a partialPageTrigger, which would be required in this case.
--Ric                                                                                                                                                                                                                                                                               

Similar Messages

  • How to Set the Visibility of a field in ESS Address view through portal

    Hi experts,
      I want to set the visibility of a field in ESS Address view through portal.How to edit a field through portal? Please help me with procedures to be followed..
    Thanks&Regards,
    Karthik.

    Hi,
    Login to portal with a user having content administration role.
    Navigate to your iview which must be under content provide by SAP(if its a standard iview).
    Open the iview and click on preview button.
    Then press ctr on keyboard and rightmouseclick on the field for which you want to change.
    A popup will open. Change the visibility in the popup and save the changes. This is a way of personalization and it'll be applicable for all the users.

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • Set  the visibility false on click PopUp

    Hi,
    I want to set the visibility false of my component on the click of popup
    but the problem is when i generate the Pop Up on Page then it lost the control of all the child's on that Page and when i set the visibility false of component then it is not set
    Please guide.
    Thanks,

    You could use PopupFetchListener - to set the visibility of the button to false.
    Here, is a sample based on your use-case.
    Sample.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 id="d1">
    <af:form id="f1">
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    *<af:commandButton text="CommandButton" id="cb2"*
    *binding="#{SampleBean.button}"/>*
    *<af:commandButton text="Show Popup" id="cb1" partialSubmit="true">*
    *<af:showPopupBehavior triggerType="action" popupId="p1"/>*
    *</af:commandButton>*
    </af:panelFormLayout>
    *<af:popup id="p1" popupFetchListener="#{SampleBean.popupFetchListener}"*
    *contentDelivery="lazyUncached">*
    *<af:dialog id="d2" title="Sample Dialog">*
    *<af:outputText value="Popup Contents" id="ot1"/>*
    *</af:dialog>*
    *</af:popup>*
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    *SampleBean.java:*
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.view.rich.event.PopupFetchEvent;
    public class SampleBean {
    private RichCommandButton button;
    public SampleBean() {
    public void setButton(RichCommandButton button) {
    this.button = button;
    public RichCommandButton getButton() {
    return button;
    *public void popupFetchListener(PopupFetchEvent popupFetchEvent) {*
    *this.getButton().setVisible(false);*
    *AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();*
    *adfFacesContext.addPartialTarget(this.getButton());*
    Thanks,
    Navaneeth

  • How to programmatically set the Visibility of an Iview INVISIBLE ?

    Hi ..... I need to programmatically set the visibility of an IView for a user Invisible - In order to achieve that , I am trying the below code....But getting errors-
    Code -
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
                 env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
    env.put("java.naming.factory.object", "__IPcdContext__");
    InitialContext iCtx = null;
    String iViewID = "pcd:portal_content/ABC/1Portal/mywork/iviews/XYA_iViews/adf.ivw_ess_jspdynpage";
                 iCtx = new InitialContext(env);
                 IiView result =(IiView)iCtx.lookup(iViewID);     
                 IiViews iViewSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate =(INewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,"par:/applications/com.sap.km.cm/components/navigation",request.getUser());
    IVtoCreate.putAttribute("com.sap.portal.navigation.invisible", true);
    the above method putAttribute is not apllicablt for (String,Boolean)\
    Please suggest as to how can I programmatically set an Iview Visible/Invisible .

    I think the property is com.sap.portal.navigation.Invisible with a capital I for invisible...
    This blog has an example: Hiding portal role content with a simple iView

  • How can I set the guests to auto start after the primary reboots?

    For version 1.2 of LDOM software, how do I set the guests to automatically start after I reboot the primary? Right now if I do this:
    ldm stop -f guest1
    reboot primary
    guest1 will be bound and manually started with ldm start
    ldmd is set to start at boot.
    Thanks, Kevin

    Try running ldm set-var auto-boot\?=true guest1This will set the LDOM guest openboot parameter "auto-boot" to true and it should boot automatically when the Primary restarts.
    Steve

  • I cannot delete the open apps as earlier after double clicking the start button

    I cannot delete the open apps as earlier after double clicking the start button after the new update

    Force close apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen
    http://support.apple.com/kb/ht5137

  • Setting the visibility of check box based on values of dropdown field

    Dear Experts,
    I have to set the checkbox visible/hidden based on the values of dropdown field.
    Request you to please provide code example.
    Regards,
    Upendra

    Hi,
    For capturing the selected value from the dropdown (ComboBox in SAPUI5) field use the change event of the combobox UI element. Within this you can get the selected value using the getLiveValue() method of the combobox.
    Then depending on the value you can set the visible boolean property of your checkbox.
    Refer to the link ComboBox for more details.
    Regards,
    Saurabh

  • I have mavericks installed. my safari crush since this morning. to use it again i have to close the program and reopen it. after few clicks crushes again. any idea?

    i have mavericks installed.
    my safari crush since this morning (I can not scroll between pages, if I try to reopen the page, safari open in exactelly same point is blocked).
    to use it again i have to close the program and reopen it. after few clicks crushes again. any idea?

    Quit the application. Force quit if necessary.
    Relaunch it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data

  • Excel 2007 VBA, problem setting Sheet Visibility in BeforeSave event after Office updates during mid Dec 2014

    After update of Office 2007 during mid December 2014, I have a Macro that does not work properly - which it did before the update.
    The Macro is used to make sure that users have Macros enabled when working on the file. The logic basically does the following:
    => In the "OnOpen" event, set all "work sheets" as Visible, and set the "Macro Warning sheet" to non-visible.
    => In the "BeforeSave" event, set the "Macro Warning sheet" as Visible and set all "work sheets" as non-visible.
    After the mid December update of Office 2007, the "OnOpen" part still works fine. The "BeforeSave" part does NOT work properly if the save action is triggered by using the shortcut key "CTRS+s". However, if saving the file
    using the "Save" option in the menues, the "BeforeSave" action works fine.
    Does Microsoft have a fix for this problem? I am not entierly sure exactly which update/KB that caused this.
    To recreate the problem, put the following code into the "thisWorkbook" module, and make sure that one sheet has the codeName "wshForceMacros". Open the file, enable Macros, then save the file using the keys "CTRL+s". The macro
    now hangs on the row "wshForceMacros.Cells(2, 1).Select" since the wshForceMacros sheet has not become properly visible...
    Option Explicit
    'ON OPEN
    Sub Workbook_Open()
    Call ShowSheetsAfterOpen
    End Sub
    'ON SAVE
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Call HideSheetsBeforeSave
    End Sub
    'ON SAVE
    Sub HideSheetsBeforeSave()
    Dim oSheet As Worksheet
    'Show Macro Lock sheet
    wshForceMacros.Visible = xlSheetVisible
    wshForceMacros.Activate
    wshForceMacros.Cells(2, 1).Select
    'Hide all work sheets
    For Each oSheet In ThisWorkbook.Worksheets
    If oSheet.CodeName <> "wshForceMacros" Then
    If oSheet.Visible = xlSheetVisible Then
    oSheet.Visible = xlSheetVeryHidden
    End If
    End If
    Next oSheet
    End Sub
    Sub ShowSheetsAfterOpen()
    Dim oSheet As Worksheet
    Dim bSaved As Boolean
    'Show all work sheets
    For Each oSheet In ThisWorkbook.Worksheets
    If oSheet.Visible = xlSheetVeryHidden Then
    oSheet.Visible = xlSheetVisible
    End If
    Next oSheet
    'Hide Macro Warning Sheet
    wshForceMacros.Visible = xlSheetHidden
    End Sub

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, I'll move your question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Setting the Visibility of Groups in a View.

    Hi,
    Here is a Scenario
    There Two WD Views in View 1 there are three groups,in second group i have a button Next, if i click this button it will navigate to View 2, in View two there are five groups,
    I want after clicking Next Button only first three views should be visible in View2 leaving 4 and 5th view.
    how do i can do this..
    Regards,
    RK

    Just to add to Armins answer.
    Create a data element in the context of type Visibility, which is available under
    Dictionary Simple Type
    |_ Local Dictionary
         |_ com.sap.ide.webdynpro.uielementdefinition.Visibility
    then you bind the visibility property of the group to your newly created context element, and updates the visibility of the element in the action method of your button.
    This is the prefered way, since it provides a cleaner design.
    See http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm for more information.
    Regards
    Mattias

  • Is it possible to set the stateof a command button

    I want to call a function when the user presses a command button (left click), then wait until he releases the mouse button, then call a second function.
    Here is the code for EVENT_LEFT_CLICK:
    CallFunction_1(...)
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    CallFunction_2(...)
    My Problem is, that the button does not chage its state to "pressed", so it appears to the user that he has not clicked on it.
    Is there any possibility to set the command button th the pressed state?

    The reason for this is that the LEFT_CLICK event has not been processed yet. We allow you to "swallow" any event to basically eliminate the built in effect of that event. In your case you want the normal effect of the LEFT_CLICK event to occur (button appears pressed on the panel), but you also want to launch a loop to check when the mouse has been released. This is easily done through posting a deferred call. A deferred call allows the current event to be completed and then calls the deferred callback after that. So your code would be changed to:
    In LEFT_CLICK,
    CallFunction_1(...)
    PostDeferredCall (funcName, (void*)control);
    Then write a function "funcName" with prototype:
    void CVICALLBACK funcName (void *callbackData);
    and code:
    void CVICALLBACK fu
    ncName (void *callbackData)
    int control = (int)callbackData;
    int mouseLButton = 0;
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    CallFunction_2(...)
    This should solve your problem.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Why error when looping a sheets collection and setting the visible property?

    I get an error on line 5 when running the following code:
    1Sub ShowSheets(vSheets() As Variant)
    2
    3 Dim i As Long
    4 For i = LBound(vSheets, 1) To UBound(vSheets, 1)
    5 ThisWorkbook.Sheets(vSheets(i, 1)).Visible = xlSheetVisible
    6 Next i
    7
    8End Sub
    The error code I get is:
    Run-time error '-2147417848 (80010108)':
    Method 'Visible' of object '_Worksheet' failed
    I only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping. Instead it occurs when the first worksheet object after the chart object is looping.
    What is the cause of this error?

    Hi JP3O,
    >> only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping<<
    I am trying to reproduce this issue however failed. From the error message, it seems that the visible couldn't set when you call the sub.
    How the code was executed? Would you mind sharing more detail about this secnario?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set the location of a button  (in an applet)

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    supahsain08 wrote:
    Well i did this
    Triangle.setLocation(50, 100);
    (where Triangle is a buton)
    it doesn't do anything, stays at the same placeIt's all about context here and there are still many unknowns here that can effect your result and that you have not told us or shown us. My suggestion to you is to consider posting an SSCCE (Short, Self Contained, Correct (Compilable), Example, a condensed program similar to your current program in that it demonstrates the problem at hand, but is the smallest bit of code that still compiles and has no extra code that's not relevant to your problem. For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]
    Also, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you can will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}good luck, pete

  • How to set the location of a button

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    Do not make duplicate posts.
    http://forum.java.sun.com/thread.jspa?threadID=5293505&messageID=10240164#10240164

Maybe you are looking for

  • Cannot change scanner or setting

    Hi: When attempting to create a PDF from scanner input, if I try to change the scanner OR change the scanner options, I get the error "Adobe Acrobat 8.1 has encountered a problem and needs to close". I am running Acrobat Professional 8.1.2 on Windows

  • Problem in BRBACKUP tool

    Dear All, We are facing a problem with BRBACKUP tool. DB: 10.2g OS: AIX:5.3 SAP: on ECC6 while taking the backup BTTOOLS at ORA<sid> we are getting this error: hgdevsrv:orahds 1> brbackup BR0051I BRBACKUP 7.00 (18) BR0055I Start of database backup: b

  • How to select SDO_SRID

    I have a table with sdo_geometry as a column. How would I select just the SDO_SRID from this column?

  • Safari not displaying favicons

    My Safari won't display any favicons. Does anyone know an answer to this problem? All I get is the generic globe thing. Even if I bookmark them. Thanks

  • Red eye correction doesn't work

    I am sure I am missing something but I can't make the red eye correction work. On MacBook in the Develop module, I click on the red eye which becomes red. I draw the square around the pupil but I can't make it to stay there. I try clicking on "pupil