Dynamic left menu plus different action on each....

Hi everyone. I am making a dynamic left menu using a datatable and links in it.
I am using an xml file to read all the attributes associated with a link like label, id etc.
<h:dataTable
                    value="#{sampleMB.menu}" var="menu">
<h:column>
<h:commandLink value="#{menu.label}" onclick="#{menu.onclick}" styleClass="subItem" action="??????????"></h:commandLink>
</h:column></h:dataTable>
The problem is how to assign the action from xml file here because the action attribute accepts a method with
syntax String mathodname(). So I am not able to put something like #{menu.action} where action is a variable
whose value I can read from xml.

Thanks for the reply but can u please elaborate a bit more with some code. I hope u've understood my problem clearly.
You can directly write a string in action like ::
<h:commandButton value="Submit" action="myaction"></h:commandButton>
where myaction can be mapped to anything in your navigation rules in faces-config
But you cannot do something like this ::
<h:commandButton value="Submit" action="#{sampleMB.strMyAction}"></h:commandButton>
where strMyAction is actually a String variable. It gives an error like "Expression must be a method expression but is a value"
See I am reading all the attributes associated with the commandButton form an xml file. So which action to invoke is also there in the xml. Now all these values including the action can be put in the String variables. The problem is how to invoke the method represented by that action String litral.

Similar Messages

  • Using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    Thanks for your swift response.
    That sounds like a good solution, but the code I have on frame 2 is this
    timer = 0;
    countup = function(){
    timer++;
    countupInterval = setInterval(countup,100);
    If I added the same actionscript to frame 3 which has a dynamic textbox with a variable timer attached wouldn't it just put the timer back to 0? What I want is the last known value that was given when it was in frame 2.
    I am thinking of temple run here, I am trying to caculate the total distance(set in the timer variable) from the previous try.
    Hope this makes sense.
    Chazwick

  • Creating Keyboard shortcut for two different actions with same menu name..

    Am using soundforge pro .. I have to process nearly 1000 audio files, and want to create shortcuts for "Smooth"
    The problem is there are two Menu names named "Smooth"
    Fade In > Smooth
    Fade Out > Smooth
    I want to assign different shortcuts for each one.. Is it possible ?
    Any help is appreciated

    Hi,
    I would use IP Address range boundaries instead which I normally do anyway instead for the AD site.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year

    IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year after the upgrade and some Apple staff blame this- but this started one year later after the iOS upgrade. Recently at the Apple Store in Vancouver an Apple staff reset my computer (erased everything and sent to iCloud to reset the iPad) and I hoped this would fix the problem. IPad Safari still crashes. Short of booking an appointment for taking it for repair to Apple technicians which will cost me money can anyone help me to fix this Safari crashing.

    Hi,
    You might have a 3rd party plugin that isn't compatible with Safari 4.0.4. Go here for help...
    Safari add-ons can cause performance issues or other situations
    If you are using a USB hub, try disconnecting and restarting with just your keyboard and mouse connected.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    from the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Mac OS: Web Browser Quits Unexpectedly or Stops Responding
    Also, you could download and install the 10.5.8 combo update (PowerPC) available here.
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    It contains fixes that might help. Then repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn

  • Problem when trying to add a link to the left menu item!!!!

    Hi everyone,
    I am trying to put a new menu group on the left menu,with a link in that group for every one.On checking with the customization guide this is what i did
    for one link i did add the following lines in each of the files
    1)xlWebAdmin.properties
    - menuGroup.Misc-Menu=Misc Menu
    - menuItem.Misc-Menu.My-Nomination=My Nomination
    2) xlDefaultAdmin.properties
    - menuItem.Misc-Menu.My-Nomination.link=mynomineefrm?showfrm
    3) repacked the war and the ear
    4) Restarted my server
    When I login into the administration(xelsysadm) page I didnt see any menu item with name "My Nomination" which i am supposed to see.
    secondly it shows the menu item when ever i select some group and click on assign menu item.
    Moreover, when I try to assign this menu item to all users group it gives me this error
    On browser it prints
    Permission Denied to Assign Selected Menu Items
    You do not have the permissions to assign one or more selected menu items.
    on console it prints
    ERROR [SERVER] Class/Method: tcDataObj/eventPreInsert Error :Insert
    permission is denied
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: maoRejections:You do not have permission to insert this obje
    ct.
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: Error occurred while adding menu items.
    ERROR [WEBAPP] Class/Method: UserGroupMenuItemsAction/commitGroupAs
    signMenuItems encounter some problems: {1}
    Thor.API.Exceptions.tcBulkException
    This problem eat my happy sunday :-(, any one has solution for this problem?
    - Also if some one can help on how to link jsp to the new link will be helpful for me!
    Thanks,
    doki

    Design Console > Form Information > add new
    Class Name Organizations.Merge
    Description Move users from one organization to another
    Type menuitem
    Add following to xlWebAdmin.properties, xlWebAdmin_en_US.properties
    Organizations.Merge=mergeOrgs.do?Display
    menuItem.Organizations.Merge.link=mergeOrgs.do?MergeOrganizations
    menuItem.Organizations.Merge=Merge
    mergeOrgs.button.display=Merge Organizations
    Even you have to assign first to System Administrator group
    First go to Manage Group
    Select System Administrator Group
    Select Menu Item
    Click Assign and select newly craeted Menu Item and click Confirm
    These are the steps to see the new menu item. To make this menu item working:
    you'll have to write action class, form bean class and you'll have to create JSPs and make their entry in struts-config as welll as in Tiles-def.xml
    Then your menu item will work.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Setting the Default Value for a dynamic select menu

    Hi I have a php page with 2 forms on it, one feeds the other to achieve a drill down (manufacturer > model). In the second select menu I have a default static value "Select Aircraft Model", I want to set a value for the first dynamic select menu to read "Select Aircraft Manufacturer". When I add a static value to my list it tells me I alreay have a dynamic behavior on this menu and to choose a different one. I have included the code for both menus. Thank you in advance, I know this must be a stupid question, but it's got me stumped.
    Tom
    //This is the menu I want to add the default static value to//
    <td width="667"><select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
            <?php
    do {
    ?>
            <option value="<?php echo $row_rsAirManufacturer['aircraft_manufacturer']?>"<?php if (!(strcmp($row_rsAirManufacturer['aircraft_manufacturer'], ((isset($_POST["airMake"]))?$_POST["airMake"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirManufacturer['aircraft_manufacturer']?></option>
            <?php
    } while ($row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer));
      $rows = mysql_num_rows($rsAirManufacturer);
      if($rows > 0) {
          mysql_data_seek($rsAirManufacturer, 0);
          $row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer);
    ?>
          </select>
          </td>
      </tr>
    </table></form>
        <form action="quoteResult.php" method="post" name="quoteForm">
          <table width="100%" border="0" cellpadding="5px">
            <tr>
              <td width="260"style="color: #000; text-align: right;">Aircraft Model:</td>
              <td colspan="2"><span id="spryselect2">
    //This is the menu that works correctly//
                <select name="airModel" style="width: 200px;" id="airModel">
                  <option value="" <?php if (!(strcmp("", ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>></option>
                  <?php
    do { 
    ?>
                  <option value="<?php echo $row_rsAirModel['aircraft_model']?>"<?php if (!(strcmp($row_rsAirModel['aircraft_model'], ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirModel['aircraft_model']?>Select Aircraft Model</option>
                  <?php
    } while ($row_rsAirModel = mysql_fetch_assoc($rsAirModel));
      $rows = mysql_num_rows($rsAirModel);
      if($rows > 0) {
          mysql_data_seek($rsAirModel, 0);
          $row_rsAirModel = mysql_fetch_assoc($rsAirModel);
    ?>
                  </select>

    Change this -
    <select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
    to this -
    <select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
    <option value="-1">Select Aircraft Manufacturer</option>
    Then if the value of 'airMake' is -1 you know that no choice was made.

  • Adding a different url to each button

    Flash menu
    I'm really struggling to work out how to add a different URL
    to each of my buttons. See the attached. Any help
    appreciated.

    click on each of the menu clips and open up the actions
    panel, all the actions for the buttons are stored there. see
    LINK
    and test.

  • Dynamic JPopup Menu

    Can anybody help me in developing Dynamic JPopup Menu. I want to create a different pop-ups for different nodes of JTree.
    Any help in this regard is highly appreciable.
    Regards
    Raheel

    Well, you could store the name of a popup class with each node
    in the XML so that when you load the xml to generate the nodes
    you save off the popup class name and when you right click on
    a node you popup the node specific popup. That way you could add
    popup menus without having to change any code. The other way
    would be to look at the node when the user right clicks and create
    the popup dynamically based on the node. If you have many
    different popup configurations, loading them with the XML would
    probably be the easiest to maintain, assuming you have control
    over the XML.
    Have fun!
    Matt

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • I want to set up two monitors but be able to view different programs on each one how do i do that

    i have two monitors hooked up to my desktop but want to view different programs on each one how do i do it

    Chipper, welcome to the forum.
    When requesting help, you should always include the make/model of the computer and/or monitor. This information is necessary for us to review the specifications of them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Different caption for each photo in web gallery

    When you take your selected Photos from Library  to WEB is it possible to have a different caption for each photo. If I select 1 photo from the import and change its caption using the caption popup in the "Image Info" pane all the image captions change even the unselected ones.
    How can I change individual photos so that they will have individual captions in the web gallery?

    You should change the caption metadata field in the Library module. Go to the Library module, select the image you want to change the caption on, in the right panel, scroll down to the metadata section. Make sure that the popup to the left of metadata is set to "default" and you should see the standard metadata. Simply type your caption here. Then, if you've done this for all your photos, go back to your web section and make sure you set the caption popup in the image info section back to "caption", which will use the info in the caption metadata field for each photo automatically.

  • Apple TV disappears from the left menu in iTunes

    Hi, I recently purchased an Apple TV and set it up and started synching everything. I stopped it when it was doing Pictures and from that moment, it disappeared from the left menu. When I go into Edit --> Preferences and click on Apple TV tab, it says that I have an Apple TV connected to iTunes and has a status of Syncing.
    Does anyone have any experience with this?
    Let me know. Thanks

    Having just spent an hour reading about this problem I have a potential path to a solution.
    When I ping appletv.local my system returns an ip address of 0.0.0.0
    I know very well that it is actually on 192.168.0.4
    There is a well known bug on vista that messes up the bonjour routing table so do we have a similar bug in osx/itunes/appletv?
    I have done a lot of searching to find a way to manually update the ip address that osx uses to resolve the bonjour name of the appletv, but no joy. I'm not a total unix geek so am a bit stuck.
    Anyone out there offer any help?
    PS I am hoping that this is the key reason that it's going wrong. There are so many people reporting so many different issues with this and fixes so many different ways I suspect that all their uninstalls/reboots/resets/blah blah are accidentally resetting the address that itunes is using to look up the appletv.
    Just one more thought: If you want to try this out for yourself open Terminal and type in 'ping appletv.local'
    (without the quotes) and see what you get, if you get a timeout message then your mac can't see your appletv. You should also get the ip address at the top. If it's 0.0.0.0 then it's looking in the wrong place.
    Here's hoping I'm on to something!

  • How to add links to left menu navigation

    I go to Site Settings > Look and Feel > Navigation and add the links to "Structural Navigation: Editing and Sorting" (which is blank even though my left menu navigation has 8-10 links). I added some some links but these never display.
    I am able to modify the navigation menu just fine on project subsites, just not the PWA

    Will assume you are using PS2013. This is by design. The left navigation (Quick Launch) for PWA home page is controlled by a different setting. You can add your link by navigating to
    Server Settings >> Quick Launch
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Different responses for each wrong answer - possible?

    Hello! 
    I'm a Captivate newbie and can't figure out how to set up my questions so that there is a different response for each incorrect answer.  So rather than having just "incorrect, try again" (or something like that) when the learner makes a mistake, I can have phrases like "not quite right.  The vertical axis should be slightly more inverted.  Try again."  and "Nope, not right.  The horizontal axis has too high a slope."  which would appear depending on which incorrect answer the learner chose.  Hope this makes sense.
    Can anyone help?  Thanks!!

    You can do that for single answer choice type of questions.
    Double-click the option, select the Advanced Answer check box and Show Feedback Message check box from the Advanced Actions accordion of Properties. You will now get a new text box where you can add the feedback for that option.
    See the screenshot for reference.
    Sreekanth

Maybe you are looking for

  • Anyway to use Video Lightbox Output in a Flash-based website?

    I use Video lightbox on my current site (For an example here is my page now - http://www.ruesterprod.com/video ) I am redesigning my website in Flash and I would like to make a Flash Gallery using the Video Lightbox elements (Thumbnail, jQuery loader

  • T61 and Presentation director 4.03

    Hi, I have a T61 notebook, upgraded ThinkVantage software and now I am facing serious problem with Presentation director. When I open the presentation chooser with Fn+F7, I can see all old profiles to be imported from previous version. The problem is

  • Solaris 10 x86 Install skips Network Configuration

    I am trying to install solaris 10 x86 on a Dell Dimension and not able to get the network card to work. The network card is Ok as I tested it by installing Windows XP on the same box. Ifconfig -a shows only le0. What is the best way to enable the net

  • GL Hiearchy Extraction

    Hi  All FAGL_FSV_POS_READ Function module has not given all the information from Financial Statement Version using tcode FSE3. It gives only the first parent node information.. I need to retrieve all the node information. Pls any one help to suggest

  • 10g IDS Under Linux Advnced Server 3.0

    hello, i am trying to install on RHAS (es) 3.0. no down load was required.. installation was snooth. run time preference i have given http://testds.com:8889/forms90/f90serlvet, browser is netscape only.. while executing form thr form builder or thr u