Simon,
Thanks for your answer, after reading it and googling around a bit more
things are getting clearer.  But even with dataList, is it possible at all
to get a Arraylist object stored in session as its value?  The JSTL tags
have no issues with this (using ${..}).  The list i'd like to iterate over
is not a managed bean at this point and its just stored in the session
scope.

---------------------------->>>>>
Firstly, avoid using c:forEach with JSF1.1. The JSTL tags do NOT work 
well with JSF in general, and c:forEach is particularly incompatible 
(this is fixed with JSF1.2 I believe). Use t:dataList instead.

Secondly, the JSF tags don't accept JSP expressions ("${..}") in 
attributes, only the JSF "#{...}" form. For example, the 
myfaces_core.tld file has:

  <tag>
   <name>param</name>
   ....
   <attribute>
      <name>value</name>
      <required>true</required>
      <rtexprvalue>false</rtexprvalue>
      <type>java.lang.String</type>
      <description>The value of this parameter.</description>
   </attribute>
  </tag>

Note that rtexprvalue is false, ie no JSP expressions are permitted.

However the JSF form #{..} should be able to do what you want. Remember 
that JSF is not JSP. It's a different way of thinking, and just supports 
JSP as one of the possible "templating" systems.

Regards,

Simon




-- 
View this message in context: 
http://www.nabble.com/According-to-TLD-or-attribute-directive-in-tag-file%2C-attribute-value-does-not-accept-any-expressions-tf3642026.html#a10225815
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to