http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp b/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp deleted file mode 100644 index 9079e7d..0000000 --- a/apps/showcase/src/main/webapp/ajax/autocompleter/index.jsp +++ /dev/null @@ -1,178 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - Ajax Examples - - - - - - - - - - - - - -Using a JSON list returned from an action (href="/JSONList.action"), without autoComplete (autoComplete="false"), use indicator, search substring (searchType="substring") -
- - - -

- -Reload on type (loadOnTextChange="true"), after 3 characters (loadMinimumCount="3", it is "3" by default), without the down arrow button (showDownArrow="false") -
- - - -

- -Using a JSON list returned from an action (href="/JSONList.action"), with autoComplete (autoComplete="true") -
- - -

- -Using a local list (list="%{'apple','banana','grape','pear'}") -
- - -

- -Force valid options (forceValidOption="true") -
- - -
-
- -Make dropdown's height to 180px (dropdownHeight="180") -
- - -
-
- -Disabled combobox (disabled="true") -
- - -
-
- - - - -Link two autocompleter elements. When the selected value in 'Autocompleter 1' changes, the available values in 'Autocompleter 2' will change also. -
-
-

- Autocompleter 1 - -

-
-Autocompleter 2 - - -

- -Publish before/after/value notify topics -
- - - -

- -Get values using JavaScript -
- - - - -

- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/bind/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/bind/index.jsp b/apps/showcase/src/main/webapp/ajax/bind/index.jsp deleted file mode 100644 index 779e453..0000000 --- a/apps/showcase/src/main/webapp/ajax/bind/index.jsp +++ /dev/null @@ -1,61 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Bind Examples - - - - - - - -
Div 1
- - - -

-

- 1. Attach to "onclick" event on button. Update content of Div 1. Use with indicator. - - -
- -

-

-

- 2. Attach to "onmouseover", and "onclick" event on Area below and update content of Div1, highlight targets with green color - -

- Mouse Over or Click Here! -
-

-

-

- 3. Attach to "onkeydown" event on Textbox below update content of Div1. Publish topics. - -
- -

- - -

- - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/commonInclude.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/commonInclude.jsp b/apps/showcase/src/main/webapp/ajax/commonInclude.jsp deleted file mode 100644 index 8be4022..0000000 --- a/apps/showcase/src/main/webapp/ajax/commonInclude.jsp +++ /dev/null @@ -1,5 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/footer.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/footer.jsp b/apps/showcase/src/main/webapp/ajax/footer.jsp deleted file mode 100644 index 366ebb8..0000000 --- a/apps/showcase/src/main/webapp/ajax/footer.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - -
- - - -Back To AJAX Examples  - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/index.jsp b/apps/showcase/src/main/webapp/ajax/index.jsp deleted file mode 100644 index 8791fa3..0000000 --- a/apps/showcase/src/main/webapp/ajax/index.jsp +++ /dev/null @@ -1,24 +0,0 @@ - -AJAX Examples - - - -

AJAX Example

- -

-Note: The Ajax tags are experimental. These examples have only been tested under FireFox 1.5 and IE 6. -

- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/options.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/options.ftl b/apps/showcase/src/main/webapp/ajax/options.ftl deleted file mode 100644 index d12ad6d..0000000 --- a/apps/showcase/src/main/webapp/ajax/options.ftl +++ /dev/null @@ -1,5 +0,0 @@ -[ -<#list options as option> - ["${option?html}"], - -] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp b/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp deleted file mode 100644 index 4dfe10d..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotebutton/index.jsp +++ /dev/null @@ -1,70 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - -
Div 1
- - -

- -A submit button, that highlights (blue color) its targets - - -

- -A submit button, with an indicator - - - -

- -A submit button, with "notifyTopics" - - -

- -Use an image as submit - - -

- - -

- -Use a button as submit (custom text) - - - - - -

- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp deleted file mode 100644 index 652ad0b..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example1.jsp +++ /dev/null @@ -1,23 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - - Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example10.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example10.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example10.jsp deleted file mode 100644 index f214e1c..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example10.jsp +++ /dev/null @@ -1,31 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - - - Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example2.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example2.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example2.jsp deleted file mode 100644 index a13eb22..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example2.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - - - Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example3.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example3.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example3.jsp deleted file mode 100644 index e263ce9..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example3.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - -Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example4.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example4.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example4.jsp deleted file mode 100644 index c8a8576..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example4.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - -loading now - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example5.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example5.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example5.jsp deleted file mode 100644 index dbc87eb..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example5.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - -loading now - - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example6.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example6.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example6.jsp deleted file mode 100644 index b33caf9..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example6.jsp +++ /dev/null @@ -1,24 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - -loading now - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example7.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example7.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example7.jsp deleted file mode 100644 index 44b3917..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example7.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - -loading now - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example8.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example8.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example8.jsp deleted file mode 100644 index 231d05b..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example8.jsp +++ /dev/null @@ -1,57 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - -
- - -
- -

- - - - - - - - - Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/example9.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/example9.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/example9.jsp deleted file mode 100644 index e4d599f..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/example9.jsp +++ /dev/null @@ -1,63 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - - - - - - - - Initial Content - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotediv/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotediv/index.jsp b/apps/showcase/src/main/webapp/ajax/remotediv/index.jsp deleted file mode 100644 index 753db37..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotediv/index.jsp +++ /dev/null @@ -1,55 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - AJAX-based remote DIV tag - <%@ include file="/ajax/commonInclude.jsp" %> - - - - -

Examples

- -

-

    -
  1. - A simple DIV that refreshes only once -
  2. - -
  3. - A simple DIV that uses a custom handler -
  4. - -
  5. - A simple DIV that updates every 2 seconds, with indicator -
  6. - -
  7. - A simple DIV that updates every 5 seconds with loading text and reloading text and delay -
  8. - -
  9. - A simple DIV's that cannot contact the server, with fixed error message -
  10. - - -
  11. - A div that calls the server, and JS in the resulting page is executed -
  12. - -
  13. - A div that will listen to events to refresh and start/stop autoupdate, and gets highlighted in red (when it loads) -
  14. - -
  15. - A div that will listen to events to refresh and start/stop autoupdate, publish notifyTopics -
  16. - -
- - -

- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp b/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp deleted file mode 100644 index a961b94..0000000 --- a/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp +++ /dev/null @@ -1,119 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - - -
initial content
- - -

-Remote form replacing another div:
- - - - - - - - -

-Remote form replacing the forms content:
- - - - - - - - -

-Remote form evaluating suplied JS on completion:
- - - - - - - - -

-Submit outside form:
- - - - - - -

- -Submit outside form, href in submit tag:
- - - - - - -

-Remote form whose submit is cancelled:
- - - - - - - - -

-A form with no remote submit (so should not be ajaxified):
- - - - - - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp b/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp deleted file mode 100644 index a5070ca..0000000 --- a/apps/showcase/src/main/webapp/ajax/remotelink/index.jsp +++ /dev/null @@ -1,127 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Examples - - - - - - - -
Div 1
- -
- -
Div 2
- -

- - - - -Update 'Div 1' and use red highligh to notify user of changed content - -

- -Update 'Div 1' and 'Div 2', publish topic '/before' and '/after', use indicator - - -

- -Try to update 'Div 1', publish '/error', use custom error message - -

- -Update 'Div 1', use custom loading message - -

- -Update 'Div 2' and execute returned javascript - -

- -Update 'Div 2' using a custom handler - - -

- - - -
- -
- -

- -Update 'Div 2' with the content of the textbox - - -

- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example1.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example1.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example1.jsp deleted file mode 100644 index 99932dd..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example1.jsp +++ /dev/null @@ -1,95 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - - - - - - - - - -
- - - This is the first pane
- -
- -
-
- - This is the second panel - - - This is the three - -
-
- - - This is the left pane
- -
- -
-
- - - middle tab
- -
- -
-
- -
-
- - - - - - - - - - - Inner 1 - Inner 2 - Inner 3 - - - - Inner 21 - Inner 22 - Inner 23 - - - - Inner 31 - Inner 32 - Inner 33 - - -
- - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp deleted file mode 100644 index 283bbdd..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example2.jsp +++ /dev/null @@ -1,26 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - I'm a Tab!!! - - - I'm the other Tab!!! - - - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example3.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example3.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example3.jsp deleted file mode 100644 index 2456d39..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example3.jsp +++ /dev/null @@ -1,46 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - - - - -
- - - - This is the left pane
- -
- -
-
- - - middle tab
- -
- -
-
- -
- -
- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example4.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example4.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example4.jsp deleted file mode 100644 index 3b960fa..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example4.jsp +++ /dev/null @@ -1,57 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - - - Enabled Tab - - - Diabled Tab - - - Some other Tab - - - -
- - - - -
- - - - -
- - - - -

- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5.jsp deleted file mode 100644 index 40dd71f..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5.jsp +++ /dev/null @@ -1,29 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - I'm a Tab!!! - - - I'm the other Tab!!! - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5Ok.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5Ok.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5Ok.jsp deleted file mode 100644 index 5c3b801..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example5Ok.jsp +++ /dev/null @@ -1,9 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@taglib prefix="s" uri="/struts-tags" %> - -

OK

-
-
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/example6.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example6.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/example6.jsp deleted file mode 100644 index be6e9ef..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/example6.jsp +++ /dev/null @@ -1,40 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax examples - tabbled panel - - - - - - - - - - Tab 1 - - - Tab 2 - - - -

- - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/index.jsp b/apps/showcase/src/main/webapp/ajax/tabbedpanel/index.jsp deleted file mode 100644 index d2d3e9c..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/index.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Tabbed Panes - <%@ include file="/ajax/commonInclude.jsp" %> - - - - -

Examples

- -

-

    -
  1. A local tabbed panel width fixed size (doLayout="true")
  2. -
  3. A Local tabbed panel with disabled tabs
  4. -
  5. A Local tabbed panel that publishes topics when tabs are selected(before and after)
  6. -
  7. A remote (href != "") and local tabbed panel
  8. -
  9. Various remote and local tabbed panels (with enclosed tabbed pannels) with layout (doLayout="false")
  10. -
  11. A local tabbed panel width fixed size (doLayout="true") with close button on the tab pane (closable="true" on tabs), and tabs on the bottom (labelposition="bottom")
  12. -
- - -

- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel1.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel1.ftl b/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel1.ftl deleted file mode 100644 index fcc895e..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel1.ftl +++ /dev/null @@ -1,3 +0,0 @@ - -Hello,
-Today is ${todayDate?html}, the time now is ${todayTime?html} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2.ftl b/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2.ftl deleted file mode 100644 index e866e6d..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2.ftl +++ /dev/null @@ -1,7 +0,0 @@ - -
-
-<@sx.form action="panel2Submit" namespace="/nodecorate"> - <@s.textfield label="Name" name="name" /> - <@sx.submit targets="result" /> - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2Submit.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2Submit.ftl b/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2Submit.ftl deleted file mode 100644 index d338eac..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel2Submit.ftl +++ /dev/null @@ -1,2 +0,0 @@ - -Hello, ${name?html} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3.ftl b/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3.ftl deleted file mode 100644 index 79209df..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3.ftl +++ /dev/null @@ -1,9 +0,0 @@ - -
-
- -<@s.form action="panel3Submit" namespace="/nodecorate"> - <@sx.autocompleter label="Gender" name="gender" list="%{#{'Male':'Male','Female':'Female'}}" /> - <@sx.submit targets="result" /> - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3Submit.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3Submit.ftl b/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3Submit.ftl deleted file mode 100644 index 7dacc93..0000000 --- a/apps/showcase/src/main/webapp/ajax/tabbedpanel/nodecorate/panel3Submit.ftl +++ /dev/null @@ -1,2 +0,0 @@ - -So, you are a ${gender?html} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/testjs.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/testjs.jsp b/apps/showcase/src/main/webapp/ajax/testjs.jsp deleted file mode 100644 index 5223ef7..0000000 --- a/apps/showcase/src/main/webapp/ajax/testjs.jsp +++ /dev/null @@ -1,14 +0,0 @@ -<% - request.setAttribute("decorator", "none"); - response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 - response.setHeader("Pragma","no-cache"); //HTTP 1.0 - response.setDateHeader ("Expires", 0); //prevents caching at the proxy server -%> - - -Show me some text also - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tree/getCategory.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tree/getCategory.jsp b/apps/showcase/src/main/webapp/ajax/tree/getCategory.jsp deleted file mode 100644 index 6a56cbd..0000000 --- a/apps/showcase/src/main/webapp/ajax/tree/getCategory.jsp +++ /dev/null @@ -1,23 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@include file="partialChunkHeader.jsp"%> -
    - -
  • - - + - - -
  • - - - - - - › - - -
    -
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tree/partialChunkHeader.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tree/partialChunkHeader.jsp b/apps/showcase/src/main/webapp/ajax/tree/partialChunkHeader.jsp deleted file mode 100644 index 01113d6..0000000 --- a/apps/showcase/src/main/webapp/ajax/tree/partialChunkHeader.jsp +++ /dev/null @@ -1,6 +0,0 @@ -<% - request.setAttribute("decorator", "none"); - response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 - response.setHeader("Pragma","no-cache"); //HTTP 1.0 - response.setDateHeader ("Expires", 0); //prevents caching at the proxy server -%> http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tree/toggle.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tree/toggle.jsp b/apps/showcase/src/main/webapp/ajax/tree/toggle.jsp deleted file mode 100644 index 35010bb..0000000 --- a/apps/showcase/src/main/webapp/ajax/tree/toggle.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@include file="partialChunkHeader.jsp"%> -<% - response.setContentType("text/javascript"); -%> -dojo.event.topic.publish("children_"); -var d = document.getElementById("children_"); -if (d.style.display != "none") { - d.style.display = "none"; -} else { - d.style.display = ""; -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/tree/tree.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/tree/tree.jsp b/apps/showcase/src/main/webapp/ajax/tree/tree.jsp deleted file mode 100644 index 81d68d6..0000000 --- a/apps/showcase/src/main/webapp/ajax/tree/tree.jsp +++ /dev/null @@ -1,13 +0,0 @@ -<%@ taglib prefix="s" uri="/struts-tags" %> - - - Tree - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/ajax/widgets/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/ajax/widgets/index.jsp b/apps/showcase/src/main/webapp/ajax/widgets/index.jsp deleted file mode 100644 index 5e43c6f..0000000 --- a/apps/showcase/src/main/webapp/ajax/widgets/index.jsp +++ /dev/null @@ -1,40 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="s" uri="/struts-tags" %> -<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - - - - Ajax Widgets - - - - - -
-NOTES: -
    -
  • Make sure that there is a 'value' attribute in the textarea with the content for the editor
  • -
  • This is experimental
  • -
- - -Default Editor configuration:
- - - - -
- -Configured Editor configuration:
- - - textGroup;|;justifyGroup;|;listGroup;|;indentGroup - - - -
- - - - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/chatLogin.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/chatLogin.ftl b/apps/showcase/src/main/webapp/chat/chatLogin.ftl deleted file mode 100644 index 439ea6b..0000000 --- a/apps/showcase/src/main/webapp/chat/chatLogin.ftl +++ /dev/null @@ -1,27 +0,0 @@ - - - Struts2 Showcase - Chat - Login - <@s.head /> - - - - -
-
-
- <@s.actionerror cssClass="alert alert-error"/> - <@s.actionmessage cssClass="alert alert-info"/> - <@s.fielderror cssClass="alert alert-error"/> - - <@s.form action="login" namespace="/chat" method="POST"> - <@s.textfield name="name" label="Name" required="true" /> - <@s.submit cssClass="btn btn-primary"/> - -
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/createRoom.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/createRoom.ftl b/apps/showcase/src/main/webapp/chat/createRoom.ftl deleted file mode 100644 index fbe71cc..0000000 --- a/apps/showcase/src/main/webapp/chat/createRoom.ftl +++ /dev/null @@ -1,2 +0,0 @@ -<@s.actionerror /> -<@s.fielderror /> http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/index.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/index.jsp b/apps/showcase/src/main/webapp/chat/index.jsp deleted file mode 100644 index b58d7a3..0000000 --- a/apps/showcase/src/main/webapp/chat/index.jsp +++ /dev/null @@ -1,3 +0,0 @@ - -<% response.sendRedirect("main.action"); %> - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/messagesAvailableInRoom.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/messagesAvailableInRoom.ftl b/apps/showcase/src/main/webapp/chat/messagesAvailableInRoom.ftl deleted file mode 100644 index 2550dcd..0000000 --- a/apps/showcase/src/main/webapp/chat/messagesAvailableInRoom.ftl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - -<@s.iterator id="message" value="%{messagesAvailableInRoom}" status="stat"> - - <#if stat.odd> - - <#if stat.odd> - - <#if stat.odd> - - - -
SenderDateMessage
- <#else> - - - <@s.property value="%{#message.creator.name}" /> - - <#else> - - - <@s.property value="%{#message.creationDate}" /> - - <#else> - - - <@s.property value="%{#message.message}" /> -
http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/roomSelection.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/roomSelection.ftl b/apps/showcase/src/main/webapp/chat/roomSelection.ftl deleted file mode 100644 index 05eaf17..0000000 --- a/apps/showcase/src/main/webapp/chat/roomSelection.ftl +++ /dev/null @@ -1,172 +0,0 @@ - - - Struts2 Showcase - Chat - Room Selection -<@sx.head /> - - - - - -
-
-
- - -
-
-

Operations

- <@s.url id="url" action="logout" namespace="/chat" /> -
    -
  • <@s.a href="%{#url}">Logout
  • -
-
- <#if (actionErrors?size gt 0)> -
-

Action Errors

- <@s.actionerrors /> -
- -
-

Users Available In Chat

- <@s.url id="usersAvailableUrl" action="usersAvailable" namespace="/chat/ajax" /> - <@sx.div id="usersAvailable" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" - href="%{usersAvailableUrl}" - class="box"> - Initial Loading Users ... - -
-
- - -
-
-

Rooms Available In Chat

- <@s.url id="roomsAvailableUrl" action="roomsAvailable" namespace="/chat/ajax" /> - <@sx.div id="roomsAvailable" listenTopics="topicRoomCreated" - updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" - href="%{roomsAvailableUrl}" > - Initial Loading Rooms ... - -
- -
-

Create Room In Chat

- -
- <@s.form id="createRoomId" action="createRoom" namespace="/chat/ajax" method="POST"> - <@s.textfield label="Room Name" required="true" name="name" /> - <@s.textarea theme="xhtml" label="Room Description" required="true" name="Description" /> - <@sx.submit value="%{'Create Room'}" targets="createRoomResult" afterNotifyTopics="topicRoomCreated" align="left" cssClass="btn btn-primary" /> - -
-
- -
-
-
- - - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/roomsAvailable.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/roomsAvailable.ftl b/apps/showcase/src/main/webapp/chat/roomsAvailable.ftl deleted file mode 100644 index 1d343c0..0000000 --- a/apps/showcase/src/main/webapp/chat/roomsAvailable.ftl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - -<@s.iterator id="room" value="%{availableRooms}" status="stat"> - - <#if stat.isOdd()> - - <#if stat.odd> - - <#if stat.odd> - - <#if stat.odd> - - - -
OperationNameDescriptionDate Created
- <#else> - - - <@s.url id="url" action="enterRoom" namespace="/chat"> - <@s.param name="roomName" value="%{#room.name}" /> - - <@s.a href="%{url}">Enter - - <#else> - - - <@s.property value="%{#room.name}" /> - - <#else> - - - <@s.property value="%{#room.description}" /> - - <#else> - - - <@s.property value="%{#room.creationDate}" /> -
http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/sendMessageToRoomResult.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/sendMessageToRoomResult.ftl b/apps/showcase/src/main/webapp/chat/sendMessageToRoomResult.ftl deleted file mode 100644 index c75d32b..0000000 --- a/apps/showcase/src/main/webapp/chat/sendMessageToRoomResult.ftl +++ /dev/null @@ -1,2 +0,0 @@ - -<@s.fielderror /> http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/showRoom.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/showRoom.ftl b/apps/showcase/src/main/webapp/chat/showRoom.ftl deleted file mode 100644 index 0a82d48..0000000 --- a/apps/showcase/src/main/webapp/chat/showRoom.ftl +++ /dev/null @@ -1,167 +0,0 @@ - - - Struts2 Showcase - Chat - Show Room -<@sx.head /> - - - - - -
-
-
-
-
-

Operation

- <@s.url id="url" action="exitRoom" namespace="/chat"> - <@s.param name="roomName" value="%{roomName}" /> - -
    -
  • <@s.a href="%{#url}">Exit Room
  • -
-
-
-

Users Available In Chat

- <@s.url id="usersAvailableUrl" action="usersAvailable" namespace="/chat/ajax" /> - <@sx.div id="usersAvailable" href="%{usersAvailableUrl}" - updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}"> - Initial Users Available ... - -
-
- -
-
-

Messages Posted In Room [${roomName?default('')?html}]

- <@s.url id="url" value="/chat/ajax/messagesAvailableInRoom.action" includeContext="true"> - <@s.param name="roomName" value="%{roomName}" /> - - <@sx.div id="messagesInRoom" href="%{#url}" includeContext="true" - updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}" - listenTopics="topicMessageSend"> - Initial Messages In Room ... - -
- -
-

Send Messages

- <@s.form id="sendMessageForm" action="sendMessageToRoom" namespace="/chat/ajax" method="POST"> -
- <@s.textarea label="Message"name="message" theme="xhtml" /> - <@s.hidden name="roomName" value="%{roomName}" /> - <@sx.submit id="submit" resultDivId="sendMessageResult" afterNotifyTopics="topicMessageSend" value="%{'Send'}" cssClass="btn btn-primary"/> - -
-
- - -
-
-

Users Available In Room [${roomName?default('')?html}]

- <@s.url id="url" value="/chat/ajax/usersAvailableInRoom.action" includeContext="true"> - <@s.param name="roomName" value="%{roomName}" /> - - <@sx.div id="usersAvailableInRoom" href="%{#url}" includeContext="true" - delay="1" updateFreq="%{@org.apache.struts2.showcase.chat.Constants@UPDATE_FREQ}"> - Initial Users Available In Room ... - -
-
- - -
-
-
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/usersAvailable.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/usersAvailable.ftl b/apps/showcase/src/main/webapp/chat/usersAvailable.ftl deleted file mode 100644 index 1ff2963..0000000 --- a/apps/showcase/src/main/webapp/chat/usersAvailable.ftl +++ /dev/null @@ -1,6 +0,0 @@ - -
    -<#list availableUsers as user> -
  • ${user.name?html}
  • - -
http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/chat/usersAvailableInRoom.ftl ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/chat/usersAvailableInRoom.ftl b/apps/showcase/src/main/webapp/chat/usersAvailableInRoom.ftl deleted file mode 100644 index 95822bf..0000000 --- a/apps/showcase/src/main/webapp/chat/usersAvailableInRoom.ftl +++ /dev/null @@ -1,8 +0,0 @@ - -
    -<@s.iterator id="member" value="%{usersAvailableInRoom}"> -
  • <@s.property value="%{#member.name}" />
  • - -
- - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/Address.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/Address.java.txt b/apps/showcase/src/main/webapp/conversion/Address.java.txt deleted file mode 100644 index d3e494c..0000000 --- a/apps/showcase/src/main/webapp/conversion/Address.java.txt +++ /dev/null @@ -1,35 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - - -/** - * @version $Date$ $Id$ - */ -public class Address { - - private String id; - private String address; - - public String getId() { return id; } - public void setId(String id) { this.id = id; } - - public String getAddress() { return address; } - public void setAddress(String address) { this.address = address; } - -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/AddressAction.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/AddressAction.java.txt b/apps/showcase/src/main/webapp/conversion/AddressAction.java.txt deleted file mode 100644 index 4342f8b..0000000 --- a/apps/showcase/src/main/webapp/conversion/AddressAction.java.txt +++ /dev/null @@ -1,44 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -import java.util.LinkedHashSet; -import java.util.Set; - -import com.opensymphony.xwork2.ActionSupport; - -/** - * @version $Date$ $Id$ - */ -public class AddressAction extends ActionSupport { - - private Set addresses = new LinkedHashSet(); - - public Set getAddresses() { return addresses; } - public void setAddresses(Set addresses) { this.addresses = addresses; } - - - public String input() throws Exception { - return SUCCESS; - } - - public String submit() throws Exception { - System.out.println(addresses); - return SUCCESS; - } -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/EnumTypeConverter.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/EnumTypeConverter.java.txt b/apps/showcase/src/main/webapp/conversion/EnumTypeConverter.java.txt deleted file mode 100644 index acc3cf2..0000000 --- a/apps/showcase/src/main/webapp/conversion/EnumTypeConverter.java.txt +++ /dev/null @@ -1,55 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.apache.struts2.util.StrutsTypeConverter; - -/** - * @version $Date$ $Id$ - */ -public class EnumTypeConverter extends StrutsTypeConverter { - - @Override - public Object convertFromString(Map context, String[] values, Class toClass) { - List result = new ArrayList(); - for (int a=0; a< values.length; a++) { - Enum e = Enum.valueOf(OperationsEnum.class, values[a]); - if (e != null) - result.add(e); - } - return result; - } - - @Override - public String convertToString(Map context, Object o) { - List l = (List) o; - String result ="<"; - for (Iterator i = l.iterator(); i.hasNext(); ) { - result = result + "["+ i.next() +"]"; - } - result = result+">"; - return result; - } - - -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/OperationsEnum.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/OperationsEnum.java.txt b/apps/showcase/src/main/webapp/conversion/OperationsEnum.java.txt deleted file mode 100644 index 14865ce..0000000 --- a/apps/showcase/src/main/webapp/conversion/OperationsEnum.java.txt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -/** - * - * @version $Date$ $Id$ - */ -public enum OperationsEnum { - ADD, - MINUS, - DIVIDE, - MULTIPLY, - REMAINDER; -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/OperationsEnumAction.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/OperationsEnumAction.java.txt b/apps/showcase/src/main/webapp/conversion/OperationsEnumAction.java.txt deleted file mode 100644 index 35e1175..0000000 --- a/apps/showcase/src/main/webapp/conversion/OperationsEnumAction.java.txt +++ /dev/null @@ -1,53 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -import java.util.Arrays; -import java.util.LinkedList; -import java.util.List; - -import com.opensymphony.xwork2.ActionSupport; - -/** - * - * @version $Date$ $Id$ - */ -public class OperationsEnumAction extends ActionSupport { - - private static final long serialVersionUID = -2229489704988870318L; - - private List selectedOperations = new LinkedList(); - - public List getSelectedOperations() { return this.selectedOperations; } - public void setSelectedOperations(List selectedOperations) { - this.selectedOperations = selectedOperations; - } - - - public List getAvailableOperations() { - return Arrays.asList(OperationsEnum.values()); - } - - public String input() throws Exception { - return SUCCESS; - } - public String submit() throws Exception { - return SUCCESS; - } -} - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/OperationsEnumActionConversion.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/OperationsEnumActionConversion.txt b/apps/showcase/src/main/webapp/conversion/OperationsEnumActionConversion.txt deleted file mode 100644 index 621beaf..0000000 --- a/apps/showcase/src/main/webapp/conversion/OperationsEnumActionConversion.txt +++ /dev/null @@ -1,4 +0,0 @@ - -selectedOperations=org.apache.struts2.showcase.conversion.EnumTypeConverter -Element_selectedOperations=org.apache.struts2.showcase.conversion.OperationsEnum - http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/Person.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/Person.java.txt b/apps/showcase/src/main/webapp/conversion/Person.java.txt deleted file mode 100644 index f87072c..0000000 --- a/apps/showcase/src/main/webapp/conversion/Person.java.txt +++ /dev/null @@ -1,34 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -import java.io.Serializable; - -/** - * - */ -public class Person implements Serializable { - private String name; - private Integer age; - - public void setName(String name) { this.name = name; } - public String getName() { return this.name; } - - public void setAge(Integer age) { this.age = age; } - public Integer getAge() { return this.age; } -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/PersonAction.java.txt ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/PersonAction.java.txt b/apps/showcase/src/main/webapp/conversion/PersonAction.java.txt deleted file mode 100644 index 1e0bd55..0000000 --- a/apps/showcase/src/main/webapp/conversion/PersonAction.java.txt +++ /dev/null @@ -1,43 +0,0 @@ -/* - * $Id$ - * - * Copyright 2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.struts2.showcase.conversion; - -import java.util.List; - -import com.opensymphony.xwork2.ActionSupport; - -/** - * - */ -public class PersonAction extends ActionSupport { - - private List persons; - - public List getPersons() { return persons; } - public void setPersons(List persons) { this.persons = persons; } - - - - public String input() throws Exception { - return SUCCESS; - } - - public String submit() throws Exception { - return SUCCESS; - } -} http://git-wip-us.apache.org/repos/asf/struts/blob/65eb9751/apps/showcase/src/main/webapp/conversion/enterAddressInfo.jsp ---------------------------------------------------------------------- diff --git a/apps/showcase/src/main/webapp/conversion/enterAddressInfo.jsp b/apps/showcase/src/main/webapp/conversion/enterAddressInfo.jsp deleted file mode 100644 index b0e3e79..0000000 --- a/apps/showcase/src/main/webapp/conversion/enterAddressInfo.jsp +++ /dev/null @@ -1,53 +0,0 @@ -<%@taglib prefix="s" uri="/struts-tags" %> - - - Struts2 Showcase - Conversion - Populate into Struts action class a Set of Address.java Object - - - - -
-
-
- -

- An example populating a Set of object (Address.java) into Struts' action (AddressAction.java) -

- - See the jsp code here.
- See the code for PersonAction.java here.
- See the code for Person.java here.
- -

- - - - - - - - - <%-- - The following is how its done statically - --%> - <%-- - - - - - - - --%> - -

-
-
- - - \ No newline at end of file