Hi Jörg,

use this:

#{addressListBean.addressBeanMap[type].zipcode}

regards,

Martin

On 9/12/06, Joerg Bredlau <[EMAIL PROTECTED]> wrote:
Hello,

is it possible to nest one EL-Variable into another? I want to use it as a
dynamic key for a hashmap like this:


${addressListBean.addressBeanMap['${type}'].zipcode}

The type-variable comes from a facelet ui:param like this:

<ui:include src="PageComponent/showAddressPanel.xhtml">
     <ui:param name="type" value="postal"/>
</ui:include>


But it seems that ${type} is empty and therefore no value is found
in the map.

When I write directly the value like

${addressListBean.addressBeanMap['postal'].zipcode}

its correctly solved.


Has anybody any hint for this?


Thanks for help.


Joerg






--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to