title: JSF & Hashmap: access value properties
body: <p>I have a Hashmap defined by:</p>
  
  <pre><code>Map&lt;String, Person&gt; map = new HashMap&lt;String, Person&gt;();
  </code></pre>
  
  <p>and it's filled by some data. This is in EJB bean.</p>
  
  <p>In JSF, I would like to access property of class Person somehow like:</p>
  
  <pre><code>#{bean.map['key'].username}
  </code></pre>
  
  <p>but JSF doesn't allow me to do this.</p>
  
  <p>If I replace Person with String for example, it works.</p>
  
  <p>Any help?</p>