LaunchPad
From PlcWiki
(Difference between revisions)
m (→Application Requirements (how to add an app)) |
m (→Application Requirements (how to add an app)) |
||
(21 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | == WEB 3 Menu ( | + | == WEB 3 - Menu (PlcMenu) == |
svn+ssh://caslavam@oko.clever.cz/java/CleverMenu | svn+ssh://caslavam@oko.clever.cz/java/CleverMenu | ||
+ | |||
+ | See test installation: http://plcbrasql:8080/menu/ | ||
== Installation == | == Installation == | ||
+ | |||
+ | * jdbc/PLCDB | ||
+ | * Setup links provided by application front-end (web.xml) | ||
+ | |||
+ | <xml> | ||
+ | <context-param> | ||
+ | <param-name>sasmenu</param-name> | ||
+ | <param-value>/SasMenu</param-value> | ||
+ | </context-param> | ||
+ | <context-param> | ||
+ | <param-name>clever</param-name> | ||
+ | <param-value>http://www.clever.cz/asr.htm</param-value> | ||
+ | </context-param> | ||
+ | </xml> | ||
+ | |||
+ | * Setup method how to access remote Tomcat servers (web.xml) | ||
+ | |||
+ | <xml> | ||
+ | <context-param> | ||
+ | <param-name>remote_webapps</param-name> | ||
+ | <!-- Remote applications will be listed via SSH command (allow Tomcat user to access this command without auth.) --> | ||
+ | <param-value>/var/tomcat/webapps</param-value> | ||
+ | |||
+ | <!-- Default value and recommended solution. Remote applications will be listed via Manager (JMX proxy) --> | ||
+ | <param-value>manager</param-value> | ||
+ | </context-param> | ||
+ | </xml> | ||
+ | |||
+ | Notice: Třetí neimplementovaný způsob je volání JMX přímo (Tomcat musí být nakonfigurován). | ||
== Application Requirements (how to add an app) == | == Application Requirements (how to add an app) == | ||
Line 15: | Line 46: | ||
"iconURL": "http://www.smartclient.com/smartgwt/showcase/images/pieces/24/cube_green.png", | "iconURL": "http://www.smartclient.com/smartgwt/showcase/images/pieces/24/cube_green.png", | ||
"target": "_self", | "target": "_self", | ||
- | "project": | + | "project": bracol, |
"tag": null | "tag": null | ||
} | } | ||
- | Notice: The file app.json must be excluded from authentication. | + | Optionally you can use cz.clever.gwt.ext.server.AppInfoServlet or extension of it in order to generate dynamic '''app.json'''. |
+ | |||
+ | Notice: Icon size must be 64x64 px. | ||
+ | |||
+ | Notice: The file app.json must be excluded from authentication. Example (web.xml): | ||
+ | |||
+ | <xml> | ||
+ | <security-constraint> | ||
+ | <web-resource-collection> | ||
+ | <web-resource-name>Public</web-resource-name> | ||
+ | <url-pattern>/app.json</url-pattern> | ||
+ | </web-resource-collection> | ||
+ | <!-- No auth-constraint means everybody has access! --> | ||
+ | </security-constraint> | ||
+ | </xml> | ||
+ | |||
+ | If you wish to make the back button in an app, see the request parameter '''menu''': | ||
+ | |||
+ | ?menu=plcbrasql:8080/menu/ |
Current revision as of 12:51, 4 October 2012
WEB 3 - Menu (PlcMenu)
svn+ssh://caslavam@oko.clever.cz/java/CleverMenu
See test installation: http://plcbrasql:8080/menu/
Installation
- jdbc/PLCDB
- Setup links provided by application front-end (web.xml)
<context-param> <param-name>sasmenu</param-name> <param-value>/SasMenu</param-value> </context-param> <context-param> <param-name>clever</param-name> <param-value>http://www.clever.cz/asr.htm</param-value> </context-param>
- Setup method how to access remote Tomcat servers (web.xml)
<context-param> <param-name>remote_webapps</param-name> <!-- Remote applications will be listed via SSH command (allow Tomcat user to access this command without auth.) --> <param-value>/var/tomcat/webapps</param-value> <!-- Default value and recommended solution. Remote applications will be listed via Manager (JMX proxy) --> <param-value>manager</param-value> </context-param>
Notice: Třetí neimplementovaný způsob je volání JMX přímo (Tomcat musí být nakonfigurován).
Application Requirements (how to add an app)
Add a static file into the document root if you have only one application language (i18n) or dynamically generated file by locale query parameter. The file name must be app.json. Example:
{ "name": "Title", "description": "Lorem Ipsum", "iconURL": "http://www.smartclient.com/smartgwt/showcase/images/pieces/24/cube_green.png", "target": "_self", "project": bracol, "tag": null }
Optionally you can use cz.clever.gwt.ext.server.AppInfoServlet or extension of it in order to generate dynamic app.json.
Notice: Icon size must be 64x64 px.
Notice: The file app.json must be excluded from authentication. Example (web.xml):
<security-constraint> <web-resource-collection> <web-resource-name>Public</web-resource-name> <url-pattern>/app.json</url-pattern> </web-resource-collection> <!-- No auth-constraint means everybody has access! --> </security-constraint>
If you wish to make the back button in an app, see the request parameter menu:
?menu=plcbrasql:8080/menu/