-
1. Re: Excel export and stateless bean
pmuir Feb 1, 2008 5:22 AM (in response to limousyf)I don't really understand what you mean.
-
2. Re: Excel export and stateless bean
arvhatte Feb 1, 2008 5:32 AM (in response to limousyf)Hi Limousyf,
I guess what you want is to make use of page parameters. Check http://docs.jboss.com/seam/latest/reference/en/html/events.html#d0e3899 for more information on page parameters.
Cheers,
Tim -
3. Re: Excel export and stateless bean
limousyf Feb 1, 2008 8:54 AM (in response to limousyf)Yes I finally make it work using page parameters.
But as the parameters for my report are dates (beginning, end), I had to use getTime() on java.util.Date and parse the generated String at the other end.
It was a quick and dirty solution, working as soon as the parameter is convertible in a primary type.
Well I guess it covers almost all cases but a solution using serialized objects would be better.
But it certainly is the limit of the stateless model and the main usage of stateful model ...
BTW thanks for the answers -
4. Re: Excel export and stateless bean
gilsontavares Feb 1, 2008 9:45 AM (in response to limousyf)As far as I know, the page parameter tag has a converterId attribute, so wouldn't the following work in this case?
<param name="aDate" value="#{aBean.aDateAttrib}" converterId="javax.faces.convert.DateTimeConverter" />
[ ] ' s
Gilson -
5. Re: Excel export and stateless bean
limousyf Feb 1, 2008 10:10 AM (in response to limousyf)Well I tried, but it seems not to work because of this bug:
http://jira.jboss.com:8080/jira/browse/JBSEAM-2429?page=comments&decorator=printable -
6. Re: Excel export and stateless bean
gilsontavares Feb 1, 2008 12:22 PM (in response to limousyf)OK, but have you read the last two posts of the topic?
It says:
pete.muir@jboss.org: Try the id as javax.faces.DateTime - thats what the javadoc tells me.
terryb: Pete thanks for that, and it worked too.
Did you try that? -
7. Re: Excel export and stateless bean
limousyf Feb 1, 2008 12:30 PM (in response to limousyf)I found the JBSEAM-2249 from another post wich only answer was "response in the support portal".
Btw I'll try this later; by now I already added a manual converter to all my beans.
Thanks