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 308: Is there a way to create tableFacade without a request.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2011


 
Reported by vidhya.a...@gmail.com, Mar 15, 2011
Hello,

I am trying to get Jmesa to do a manual export on server startup.
Therefore I do not have a request and response obj.

Is it possible to still create the tableFacade without the request obj.
It is currently failing at 
this.webContext = new HttpServletRequestWebContext(request);

Please help.

Thanks.
Mar 15, 2011
Project Member #1 jeff.johnston.mn@gmail.com
You do need a WebContext. You can set null on the TableFacade constructor, but then you need to set an implementation of the WebContext interface on the TableFacade.setWebContext() method.
Mar 16, 2011
#2 vidhya.a...@gmail.com
I am trying to set ServletContext into the setWebContext method.
It wont allow me to.

The method setWebContext(WebContext) in the type TableFacade is not applicable for the arguments (ServletContext)

Any class/method that I can override?
Mar 16, 2011
Project Member #3 jeff.johnston.mn@gmail.com
You need to implement the WebContext interface to work with the ServletContext.
Mar 16, 2011
#4 vidhya.a...@gmail.com
Thank You. I did just that and was able to work it through.
Its nice that all the classes in Jmesa are very customizable!

Thanks again!
Mar 17, 2011
Project Member #5 jeff.johnston.mn@gmail.com
No problem! Glad to hear that it worked out.
Mar 17, 2011
Project Member #6 jeff.johnston.mn@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting