WebClient UI
We clicked the Test button in the WebClient UI development tool,
The selected view is opened in the browser in test mode. What's going on behind this? Note the browser address bar of the bspwd_cmp_test, what is this thing? Jerry tends to think of it as the initiator of the CRM WebClient UI component in test mode.
When we open a CRM WebClient UI component in test mode, this component page is actually displayed in an IFRAME, which is implemented in the bspwd_cmp_test mentioned above:
Clicking the test button will embed the page in the IFRAME that is actually being tested in the WebClient UI component. When this iframe is loaded, the JavaScript handler function that executes the OnLoad event binding is executed: startbspapplication.
This function generates HTML source code dynamically for document:
The JavaScript that executes immediately in the page session_single_frame.htm of the initiator bspwd_cmp_test:
The runtime expands as follows:
Tomcat
The first way we deployed Web apps to Tomcat was to first use MAVEN to package the Web project into a war file, and then manually or write scripts to copy the war file into the Tomcat directory.
Now we can use the following plugin in the project Pom.xml file:
<plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.2</version><configuration><path>/jerry</path><port>9090</port><uriEncoding>UTF-8</uriEncoding></configuration></plugin>
Then execute the command at the command line: MVN tomcat7:run
This tomcat7-maven-plugin plugin can be used as a launcher to help us launch tomcat and load the war file,
Then we can access the Web app directly using Http://localhost:9090/jerry:
To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:
WebClient UI and Tomcat launcher