Expression using Map access not working....

I am attempting to use the ability to access a Map by key from a binding expression on the jsp. I have extended HashMap and overridden the get method in order to return a Boolean from the get(key) method.
This works:
rendered="#{bean.enabledFunctionSecurityMap['key1']}"
it ends up calling the bean.getEnableFunctionSecurityMap().get("key1");
This should work also but doesn't:
rendered="#{bean.enabledFunctionSecurityMap['key1'] or bean.enabledFunctionSecurityMap['key2']}"
Any reason why a single Boolean returned from a Map would work fine, but a more complex statement with 2 Booleans will not work. Doing a statement like this just accessing multiple boolean getter functions on a bean works, how come access muiltiple Map returns does not?
Any help is appreciated.
Thanks,
Mike

All righty then, I solved my own problem.
There were actually 2 issues.
1. I could so far only get this to work if the Overridden Map Object is registered as a manged-bean itself.
2. I was testing to see if it worked by using System.out.println methods in my overridden get() method. Appearantly the JSF EL is smarter than I am. If you have #{binding1 or binding2} and binding1 evaluates to True, binding2 is never evaluated. The expression is short circuited and returns true... DUH....
So this expression fires both bindings....
rendered="#{enabled['key1'] and not enabled['key2']}"
Where enabled is...
<managed-bean>
<managed-bean-name>enabled</managed-bean-name>
<managed-bean-class>security.EnabledFunctionSecurityMap</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
Next step will be to try and figure out how to get this to work where the EnabledFunctionSecurityMap is on another bean.
Hope this helps anyone trying to do the same.
Mike

Similar Messages

  • Is it possible to  downgrade ios 6 to 5.1.1(i upgrade my iphone 4s from 5.1.1 to 6 but map is not working )

    is it possible to  downgrade ios 6 to 5.1.1(i upgrade my iphone 4s from 5.1.1 to 6 but map is not working )

    best answer to your question I've ever seen is;
    Kappy Tampa, FL and Vancouver, BC
    Re: Downgrading     Oct 16, 2012 2:57 PM    (in response to nbabbit2013) 
    I'm sorry, but Apple does not provide a downgrade path for iOS. Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any iDevice.

  • Maps is not working properly anymore

    I am using iPad2 with iOS6 and since a few days Maps is not working properly anymore

    I'm having the same problem. I have a 4th gen 32GB iPod Touch, and since upgrading to iOS6, iMessage has been nothing but buggy. It will work for an hour or so, and then randomly stop working as it won't send or receive messages. There's nothing wrong with my wifi, because that's the same as it was before. I really hope someone knows something to fox this problem. Some people use iMessage for good reasons - it needs to be a reliable messaging service like it was in iOS5.

  • Maps are not working in India after updating to iOS 6

    I bought my iPhone 4S from USA now I am in India and I updated to iOS 6 but now maps are not working.. Earlier it use to search every single place in india.. What to do??

    me too stuck up with the iOS 6 update. I was using my phone mainly for tracking roads and places. Now its useless. So guys if u r using iOS 5.1 in India dont update to iOS 6.Moreover i cant find google maps app in Appstore! can anyone find me a solution?

  • Connection to SQL Express on Azure VM not working

    Hello,
    I'm sorry if this has already been answered somewhere else, I didn't find anything that helped.
    Setup:
    Two VMs running Windows Server 2012 R2 Datacenter, one running SQL Express.
    When trying to connect to the SQL Express, the connection does not work.
    Here's what I've done so far:
    Set up the MSSQL instance, named SQLEXPRESS
    Set up a database, named TESTDB
    Set the instance to mixed authentification
    Set up VM endpoint TCP 1433
    Opened ports TCP 1433, 1434 in the firewall
    Activated the SQL Browser
    Activated the TCP/IP-Service in the SQL Server Network Configuration
    Testing connection via UDL file with the following information:
    Server name: <cloud storage>.cloudapp.net\<sql server>\SQLEXPRESS
    Username: sa
    Password: <password>
    Database: TESTDB
    Now it returns the following error:
    "Test connection failed because of an error in initializing provider.
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."
    Now I keep reading that it may be a firewall problem. But I turned off the firewalls on both servers completely for testing purposes (they're test servers and will be deleted anyway) and it still doesn't work.
    I know I must have forgotten something, but what? Or am I entering the wrong connection information?
    Does anyone know?
    Regards
    ~Irolan

    Server name: <cloud storage>.cloudapp.net\<sql server>\SQLEXPRESS
    Hello,
    I wonder about the Server Name, it should be "MachineName\SQLEXPRESS" only.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]
    Damn... you're right. That works. Uhm... but what if I want to access it from another computer that is not an Azure VM?

  • IOS 6 Map Direction Not Working

    Hi this is Karthikeyan from India, I am using apple iphone 3GS, I have updated os from ios5 to ios6, the problem is io6 map is not working like previous version ios5... The main problems is in ios6 map Route Directions completely not working... anyone help to resolve this..??

    First, I would suggest looking at: http://support.apple.com/kb/HT5429.
    In ios 6, apple removed google maps as the default and provided their own mapping service. Maps is not available in all areas and there are ways to report problems inside the application.

  • My "Maps" will not work out routes after update

    After updating the OS the "Maps" will not work out routes. I keep receiving "directions ont available" even for a 1km straight road...Is there an application or update to resolve this?

    WHat is not working? Which map app are you using? I use the built in app without any problem on my trips from Ohio to South Carolina. Wherever I stop, I can see my current location. I don't use it for navigation all the time but one time I was a passenger in the car and followed our trip on my phone.

  • In my MacBook Pro Maps app not working properly?.. any solution

    Maps app not working properly?.. any solution

    If i search any routes by clicking directions tab,the message shows like this " DIRECTIONS ARE NOT AVAILABLE A ROUTE TO THE DESTINATION FROM ITS NEAREST ROAD CANNOT BE DETERMINED"

  • After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    Did you talk to your carrier?

  • The application maps is not working. When I try to run it opens for a few seconds with a blank screen and then closes

    The application maps is not working. When I try to run it opens for a few seconds with a blank screen and then closes.

    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • Input Parameter Mapping is not working in Sap HANA

    Hi, We created on ANALYTICAL view(A) with Input Parameters, on top of Analytical view created one Calculation view(B) and mapped Calculation view input parameter with Analytical view input paramter and its working fine. Finally we created one more calculation view on top existing calculation view(B) and mapped with corresponding input parameters. Input parameter mapping is working fine in between A(analytical view) and --------> B (first Calc view) but input parameter mapping is not working properly in between B(first Calc View)-----------C(second Calc View). it is giving all data whatever is coming from Calc View B. Kindly help us to resolve this.

    Hi,
    Write c in small for Command,
    theButton.mappingOfOnAction().addParameter("command","Save");
    Regards,
    Murtuza

  • After installing iOS6, my Maps are not working at all, anything i search it says "result not found" even after placing a pin and selecting "Direction to here" i get the same result not found. Very disappointed with the new iOS

    After installing iOS6, my Maps are not working at all, anything i search it says "result not found" even after placing a pin and selecting "Direction to here" i get the same result not found. Very disappointed with the new iOS.

    Have you run it in a debugger? That will show you exactly what is happening and why.

  • Maps app not working on Network Users

    Maps app not working on network users on client machines?, is everyone having same issue?, Thanks in Advance

    Sometimes it does, sometimes it does not. I assume we're talking about network users with home folders on a remote volume…
    The only thing I could do about it was to inform Apple…

  • Windows Server 2012 - Printing using UNC path not working

    Hi,
    I have a problem printing using the printer's UNC path ("\\Server_Name\Printer_Hostname") to work with a web
    app hosted on IIS 8. With a windows forms application the UNC path is working fine and the app prints.
    With
    the web app I receive an error "The data area passed to a system call is tool small". 
    Also,
    in the event viewer under Applications and Services Logs -> Microsoft -> PrintService -> Operational, I receive the error "The print spooler failed to reopen an existing printer connection because it could not read the configuration information
    from the registry key S-1-5-82-1980832875-2702362896-1795126167-3622310632-1152289074\Printers\Connections. The print spooler could not open the registry key. This can occur if the registry key is corrupt or missing, or if the registry recently became unavailable."

    I have contacted IIS forum support.
    Please review the link: http://forums.iis.net/p/1213109/2079229.aspx?Re+Windows+Server+2012+Printing+using+UNC+path+not+working
    Their final response:
    Printing from ASP.NET using System.Drawing.Printing itself is a horrible approach, as this namespace was designed for Windows Forms only. The designers did not take everything about ASP.NET in mind, so any issue can happen. That can answer why the HP model
    works while the Samsung fails, as the HP one just "happens
    to work",
    http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
    Similarly, System.Printing was designed just for WPF.
    About which printing API to use in ASP.NET/IIS, there is no clear answer so far. Thus, your only resource is Microsoft support, who can perform further analysis (with their dedicate utilities and of course Windows source code) and might come across a solution
    to help you out. This is not a trivial scenario.

  • Where used list is not working for IMG nodes/Document   in solar01

    hi experts
    In template project , we are using same IMG objects in different business processes and subsequent configuration document is attached to each IMG node in configuration tab.  ( like same IMG node  -  define order types used in different business process configuration tab )
    when i use " where used list " from the configuration tab , its not showing the IMG objects  used in different business processes in the same project. whereas its showing the IMG nodes used in the different project.
    I need to find out the same IMG objects/ document  used in the same project using the " Where used list " button.
    Please provide your answers
    Note : we have linked one configuration document to same IMG nodes used in different business. " where used list " also not working for documents as well
    Thanks
    Sol man

    Hello there,
    I just tried some tests and couldn't face any problem with locating other usages for the objects in configuration tab.
    You mentioned a configuration document, so have in mind that the document usage will only be considered if it is a link to the same document and not just a copy.
    e.g:
    Here I created a document in this node:
    Then I added it as a link here:
    and as a copy here:
    When I go back to the original node and use the where-used, it'll only show the original and the link:
    This happens because after copying a document, it is considered as a new one instead of another usage of the original one.
    best regards,
    Fabricius

Maybe you are looking for