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
128
attachment: portlet.jsp.patch
(1.8 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
### Eclipse Workspace Patch 1.0
#P jmesa-examples
Index: web/jsp/portlet.jsp
===================================================================
--- web/jsp/portlet.jsp (revision 2031)
+++ web/jsp/portlet.jsp (working copy)
@@ -10,31 +10,30 @@
<div><c:out value="${table.markup}" escapeXml="false" /></div>
</form>
-<script type="text/javascript">
+<script type="text/javascript">
+$(function() {
+
+ var url = '<c:url value="/portlet.run" />?id=${table.id}&';
+
+<c:if test="${useAjax}">
+ $('#${table.id}').invokeAction(function(action) {
+ var pString = $(this).setExportToLimit('').createParameterStringForLimit();
+ $.get(url + pString, function(data) {
+ $('#${table.id}').parents("div:first").html(data);
+ });
+ });
+</c:if>
+
+<c:if test="${!useAjax}">
+ $('#${table.id}').invokeAction(function(action) {
+ $(this).setExportToLimit('').createHiddenInputFieldsForLimitAndSubmit();
+ });
+</c:if>
+
+ $('#${table.id}').invokeExportAction(function() {
+ location.href = url + $(this).createParameterStringForLimit();
+ });
+
+});
- var url = '<c:url value="/portlet.run" />?id=${table.id}&';
-
-<c:if test="${useAjax}">
- function onInvokeAction(id) {
- setExportToLimit(id, '');
- var parameterString = createParameterStringForLimit(id);
- $.get(url + parameterString, function(data) {
- $('#${table.id}').parents("div:first").html(data);
- });
- }
-</c:if>
-
-<c:if test="${!useAjax}">
- function onInvokeAction(id, action) {
- setExportToLimit(id, '');
- createHiddenInputFieldsForLimitAndSubmit(id);
- }
-</c:if>
-
- function onInvokeExportAction(id) {
- var parameterString = createParameterStringForLimit(id);
- console.log(TableFacadeManager.getTableFacade(id).limit);
- location.href = url + parameterString;
- }
-
</script>
\ No newline at end of file
Powered by
Google Project Hosting