Page History
...
NGClient is a browser-based application of which the UI is rendered in the browser using pure HTML, CSS and a bit of JavaScript for event handling and communication with the Servoy Application Server (HTML5, CSS3 and websockets communication is used). The business logic of the Solution that is running in the NGClient is executed on the Application Server for security reasons: the code of the business logic is not exposed in the webpage markup.
Stoc |
---|
War deployment
War deployment is the only option for an NGClient, because a lot more resources are needed then just the solution.
...
Most of the browser supporting WebSocket also support HTML5 and CSS3. To see a full list of browser supporting the WebSocket see WebSocket support.
Browser Sessions
An NGClient is bound to a Tab in the browser, the session will not be shared over multiply tabs as it is with the WebClient. It does use the http session on the server for better security and also support for load balancing servers. But there can be multiply NGClients for 1 http session.
By default browser sessions will not timeout, no matter what the value is of the the containers/tomcat session timeout, this is because NGClient uses a WebSocket that is a persistent connection between server and client.
Starting Servoy NG Clients (giving arguments or using a deeplink)
...
NG Client Start URL | What is does | ||
---|---|---|---|
{serverURL}/servoy-ngclient | Opens a page that lists all available ng-client solutions. It is available only if solution browsing is enabled; see Solution browsing. | ||
{serverURL}/solutions/{mySolutionName}/index.html | Opens the specified solution | ||
{serverURL}/solutions/{mySolutionName}/index.html?a={value} | Opens the specified solution. The argument value is passed into the Solutions onOpen event handler. | ||
{serverURL}/solutions/{mySolutionName}/index.html?a={value}&{name1}={value1}&{name2}={value2} | The same as the previous scenario, but with additional custom keys for additional arguments | ||
{serverURL}/solutions/{mySolutionName}/index.html?m={myMethodName} | Opens the specified solution and executed the specified method after the solution is opened | ||
{serverURL}/solutions/{mySolutionName}/index.html?m={myMethodName}&a={value} | The same as the previous scenario, but specifying a single value to be passed as an argument into the onOpen event handler and deeplink method
| ||
{serverURL}/solutions/{mySolutionName}/index.html?m={myMethodName}&{name1}={value1}&{name2}={value2} | The same as the previous scenario, but with custom keys for additional arguments |
...
Note | ||
---|---|---|
| ||
In order to make sure UTF-8 encoding is used for url parameters, you must look for value of URIEncoding setting from Tomcat connector. Beware that if useBodyEncodingForURI setting is used as well, it will have higher priority for used encoding. See Tomcat documentation for more details. |
...