Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8062791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:47:31+00:00 2026-06-05T10:47:31+00:00

I use Apache MyFaces 2.0.2 on WebSphere Application Server 8. How do I get

  • 0

I use Apache MyFaces 2.0.2 on WebSphere Application Server 8.

How do I get the key of a DualTreeBidiMap in a in JSF 2.0?

The DualTreeBidiMap provides a getKey(Object Value) or get(Object Key) method.

I have the Value in another ManagedBean, so I want to print out the Key for this Value with EL.

I’ve tryed something like this:

<h:outputText value="#{bean1.dualTreeBidiMap.key(bean2.value)}"  />

But this does not work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:47:32+00:00Added an answer on June 5, 2026 at 10:47 am

    Since your value attribute is a method expression and not a value expression, the correct syntax should be:

    <h:outputText value="#{bean1.dualTreeBidiMap.getKey(bean2.value)}"  />
    

    The get prefix needs only to be omitted for value expressions (for fields with a parameterless getter).

    Note that method invocation with parameters is only possible since EL 2.2. I am not using WAS 8, but a quick Google search revealed that it should support EL 2.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My server guy wants to use apache, and also he wants to program a
I want to have a generic menu in my JSF (MyFaces 1.2) application. <h:form>
How to improve performance of jsf myfaces based application ? Some tips that I
I am studying to use Apache Mahout, and get the following message after running
I use Apache's DefaultHttpClient() with the execute(HttpPost post) method to make a http POST.
I have some Java projects that use Apache Commons Configuration and they get deployed
I have some Java projects that use Apache Commons Configuration and they get deployed
Can one use mod_pagespeed with tomcat application server? directly or indirectly? Am i correct
We use Apache as a reverse proxy server. This has been working well, but
I use Apache in Embedded mode as my production server. whenever I make some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.