My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 259: cannot find ExcelComponentFactory
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Mar 2011


 
Reported by peter.s...@gmail.com, Apr 21, 2010
What steps will reproduce the problem?
1. Tried to use optional Excel export API
2. Did not resolve class ExcelComponentFactory


What is the expected output? What do you see instead?
Expecting working functionality like in Export recipe example.

What version of the product are you using? On what operating system?
latest version

Please provide any additional information below.


Apr 21, 2010
Project Member #1 jeff.johnston.mn@gmail.com
Which export recipe are you refering to?
Apr 21, 2010
#2 peter.s...@gmail.com
in https://code.google.com/p/jmesa/wiki/Exports

Actually, I'm looking for an export 2 and more tables in multiple Excel worksheets.
It possible? Thanks.
Apr 21, 2010
Project Member #3 jeff.johnston.mn@gmail.com
That code is no longer valid...I swapped that out a while back to use the generic
ExportTableFactory. I will get that documentation updated! I try to stay on top of
the documentation but as the API evolves sometimes things get missed.

Here is a code snippet from the TableFacadeImpl:

TableFactory tableFactory = new ExportTableFactory(getWebContext(), getCoreContext());
return tableFactory.createTable(columnProperties);

You get a Table back and then can manipulate it however you want. Also, you can pass
a different set of columnProperties for different exports (to either the facade or
the factory). 

What kind of functionality are you trying to get by using the factory directly?

BTW: one thing that would be really nice would be to get more builders like the
HtmlTableBuilder.

https://code.google.com/p/jmesa/wiki/HtmlTableBuilder



Apr 22, 2010
#4 peter.s...@gmail.com
Thanks Jeff.
I was searching the Wiki if JMesa is able to export Tables into multiple Excel
sheets. I don't now if this is possibe.

Apr 22, 2010
Project Member #5 jeff.johnston.mn@gmail.com
Ok. I see now. JMesa can only export one table at a time. With a custom view you
could take one table and write to multiple worksheets. 

But I assume you want to export multiple tables on the same page? If so then you
could not do what you want out of the box.

That said...there is a chance you could still do this if you really needed it (Maybe). 

Are your tables in the same form? Would be willing to combine two worksheets
together? What I am wondering is if we could generate two separate worksheets and
then combine them together. It would not be a hack but it would require some custom
code (in your controller) to make it work.

If you are interested in trying this out I could send you more detailed
instructions...send me an email directly at jeff.johnston.mn@gmail.com.


Mar 9, 2011
Project Member #6 jeff.johnston.mn@gmail.com
Not sure the result of this...will close for now.
Status: Invalid

Powered by Google Project Hosting