Title: Re: [jXLS-user] Error when using an attribut of a member of a list
Hi Philippe,

I can take a look at this warning. 
Most likely you can ignore it for now as it probably relates to specifics of collection processing by jxls.
It would be good if you send me a complete sample so I can quickly reproduce it.

--
Leo

Tuesday, January 4, 2011, 4:50:39 PM, you wrote:


Hi,
 
                I have the two following Java classes :
 
Class Info {

List lesTableaux;   // or ArrayList<Tableau> instead of List, it’s the same problem!
… }
 
And
 
Class Tableau {

String type;
… }
 
 
I have a java object named ‘infos’:
 
Info infos = new Info();
 
And some java code to fill the ‘lesTableaux’ list and the ‘type’ string : 
 
Infos.lesTableaux[0].type = “my type”;
 
In one cell of the the Excel sheet, I have this :
                
                ${infos.lesTableaux[0].type}
 
When I run the program, there’s the good string (“my type”) in the cell but my program prints this error : 
 
ATTENTION: net.sf.jxls.parser.expressioncollectionparser.findcollectionpropert...@104![0,10]: 'infos.type;' undefined variable infos.type
4 janv. 2011 15:43:45 org.apache.commons.jexl2.Interpreter unknownVariable
 
 
What is the reason of this error (because it works)? Why ‘infos.type’ and not ‘infos.lesTableaux[0].type’?
 
Regards,
 
Philippe Juhel
Assistant au pôle GEI (Génie Electronique et Informatique)
ICAM
75, av de Grande Bretagne
31300 Toulouse
Tél : 05-34-50-50-45
Mail : philippe.ju...@icam.fr
 




-- 
Best regards,
 Leo                            mailto:leon...@gmail.com
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
jXLS-user mailing list
jXLS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxls-user

Reply via email to