<br><br><div class="gmail_quote">On Fri, May 8, 2009 at 2:29 PM, Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><br><div>
<br>The second use case would be to pick off flags that libraries set into scopes. So the values are already there, you just need to read them. </div></div></blockquote><div><br>Several of our apps use a third-party filter [1] to authenticate the user, which stores credentials in the http session.  I&#39;d appreciate being able to write:<br>
<br>class UsernameProvider<br>{<br><br>  @HttpSession Map&lt;String, Object&gt; session;<br><br>  @Produces @Username String retrieveCasReceipt()<br>  {<br>     return (String) session.get(CASFilter.CAS_FILTER_USER);<br>  }<br>
<br>} <br> <br><br>
So, +1 for Dan&#39;s suggestion.  If support for such attribute maps aren&#39;t in Seam, I&#39;m sure I&#39;m not the only one who will be putting them in my Util project.<br><br>-Matt<br><br>[1]  <a href="http://www.jasig.org/cas/client-integration/java-client">http://www.jasig.org/cas/client-integration/java-client</a><br>
<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><font color="#888888">
<br>-Dan<br></font></div></div><div><div></div><div class="h5"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan" target="_blank">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>

from my email. If you contact me, but don&#39;t hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>

you feel that it did not reach my attention.<br>
</div></div><br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></blockquote></div><br>