cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Becker <jonnybec...@gmx.net>
Subject [JXTemplate] problems accessing a value
Date Mon, 20 Jun 2005 15:43:41 GMT
Hi,

I want to iterate through a List with <jx:forEach . This List contains 
Objects from a query.
The query:
SELECT    t1.*,  t2.somedate
FROM    Table1 t1, Table2 t2

I access the data like this in JXTemplate:
<jx:forEach select="#{getTestList}">
      <col1>#{id/scarr}</col1>
      <!-- From now on it behaves funny -->
      <fldate>#{date}</fldate>
      <fldate>#{month}</fldate>
      <fldate>#{year}</fldate>

I have NO problems accessing the data from t1, like in my example 
#{id/scarr}.
My problem is the date from t2. I simply don't know how to access it in 
one piece. I'm able to access a part of this value like this: #{date}, 
what returns the day consequently.

But how can I access this date in one piece?

Thanks
Jonny

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message