My favorites
▼
|
Sign in
jmesa
Table Rendering API
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
209
attachment: NPE_in_PfvViewExporter.patch
(1.3 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: src/org/jmesa/view/pdf/PdfViewExporter.java
===================================================================
--- src/org/jmesa/view/pdf/PdfViewExporter.java (revision 2352)
+++ src/org/jmesa/view/pdf/PdfViewExporter.java Thu Jul 23 21:58:05 BST 2009
@@ -87,8 +87,11 @@
* @return The base url to the web application.
*/
private String getBaseUrl() {
+ if (request != null) {
- return request.getRequestURL().toString();
- }
+ return request.getRequestURL().toString();
+ }
+ return null;
+ }
@Override
public String getContextType() {
Index: src/org/jmesa/facade/TableFacadeImpl.java
===================================================================
--- src/org/jmesa/facade/TableFacadeImpl.java (revision 2298)
+++ src/org/jmesa/facade/TableFacadeImpl.java Thu Jul 23 21:59:21 BST 2009
@@ -144,7 +144,12 @@
public void setWebContext(WebContext webContext) {
this.webContext = webContext;
+
+ final Object backingObject = webContext.getBackingObject();
+ if (backingObject instanceof HttpServletRequest) {
+ request = (HttpServletRequest) backingObject;
- }
+ }
+ }
public void setEditable(boolean editable) {
validateItemsIsNull(items);
Powered by
Google Project Hosting