Normalizing a page flow
First Claim
1. A method for normalizing a page flow into a portlet, the method comprising:
- generating, by one or more processors, at least two portlets based on at least two pages in the page flow, wherein the page flow includes multiple webpages that are linked together through navigation control to execute a specific business logic, wherein pages that are functionally dependent upon one another are assigned to a same portlet, and wherein pages that are functionally independent of one another are assigned to different portlets;
building, by one or more processors, at least one of an intra-portlet action and an inter-portlet action for at least one portlet from the at least two portlets, wherein the intra-portlet action is based on a linking relationship between two pages within the same portlet, and wherein the inter-portlet action is based on a linking relationship between two pages that are in different portlets; and
modifying, by one or more processors, a Uniform Resource Locator (URL) in the at least one portlet from the at least two portlets based on whether pages within the at least one portlet incur the intra-portlet action, wherein the URL indicates a relative path in the at least one portlet that incurs the intra-portlet action, wherein modifying the URL in the at least one portlet includes converting the URL into a URL indicating an absolute path in the portlet in response to the at least one portlet incurring the intra-portlet action, wherein the converting includes attaching at least one root path in the at least one portlet to the URL in response to the at least one portlet incurring the intra-portlet action, wherein the modifying the URL in the at least one portlet includes modifying, by one or more processors, the URL in the at least one portlet based on a type of the URL; and
wherein the modifying the URL in the at least one portlet based on the type of the URL includes;
in response to the URL corresponding to a link in a page and an object of the link being a new window or a new tab, converting, by one or more processors, the URL into a URL carrying navigation state information that describes a layout of a page where the at least one portlet is currently located; and
in response to the URL being located in a JavaScript file, converting, by one or more processors, a URL indicating a relative path in the JavaScript file into a URL indicating an absolute path of the URL found in the JavaScript file.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and/or an apparatus normalizes a page flow into a portlet. The method comprises: generating at least one portlet based on one or more pages in the page flow; building at least one of an intra-portlet action and an inter-portlet action for the least one portlet; and modifying a Uniform Resource Locator URL in the at least one portlet. With the method and the apparatus, the page flow developed by a developer can be automatically normalized into the portlet which is easier to be shared between difference applications and integrated with an existing portal application, so that the developer can focus on development of page flow while achieving user experience and advantages specific to the portlet.
58 Citations
15 Claims
-
1. A method for normalizing a page flow into a portlet, the method comprising:
-
generating, by one or more processors, at least two portlets based on at least two pages in the page flow, wherein the page flow includes multiple webpages that are linked together through navigation control to execute a specific business logic, wherein pages that are functionally dependent upon one another are assigned to a same portlet, and wherein pages that are functionally independent of one another are assigned to different portlets; building, by one or more processors, at least one of an intra-portlet action and an inter-portlet action for at least one portlet from the at least two portlets, wherein the intra-portlet action is based on a linking relationship between two pages within the same portlet, and wherein the inter-portlet action is based on a linking relationship between two pages that are in different portlets; and modifying, by one or more processors, a Uniform Resource Locator (URL) in the at least one portlet from the at least two portlets based on whether pages within the at least one portlet incur the intra-portlet action, wherein the URL indicates a relative path in the at least one portlet that incurs the intra-portlet action, wherein modifying the URL in the at least one portlet includes converting the URL into a URL indicating an absolute path in the portlet in response to the at least one portlet incurring the intra-portlet action, wherein the converting includes attaching at least one root path in the at least one portlet to the URL in response to the at least one portlet incurring the intra-portlet action, wherein the modifying the URL in the at least one portlet includes modifying, by one or more processors, the URL in the at least one portlet based on a type of the URL; and
wherein the modifying the URL in the at least one portlet based on the type of the URL includes;
in response to the URL corresponding to a link in a page and an object of the link being a new window or a new tab, converting, by one or more processors, the URL into a URL carrying navigation state information that describes a layout of a page where the at least one portlet is currently located; and
in response to the URL being located in a JavaScript file, converting, by one or more processors, a URL indicating a relative path in the JavaScript file into a URL indicating an absolute path of the URL found in the JavaScript file. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer system comprising:
-
a processor; and a memory coupled to the processor, the memory comprising instructions that, when executed by the processor, cause the system to; generate at least two portlets based on at least two pages in a page flow, wherein the page flow includes multiple webpages that are linked together through navigation control to execute a specific business logic, wherein pages that are functionally dependent upon one another are assigned to a same portlet, and wherein pages that are functionally independent of one another are assigned to different portlets; build at least one of an intra-portlet action and an inter-portlet action for at least one portlet from the at least two portlets, wherein the intra-portlet action is based on a linking relationship between two pages within the same portlet, and wherein the inter-portlet action is based on a linking relationship between two pages that are in different portlets; and modify a Uniform Resource Locator (URL) of the at least one portlet based on whether pages within the at least one portlet incur the intra-portlet action, wherein the URL indicates a relative path in the at least one portlet that incurs the intra-portlet action, wherein modifying the URL in the at least one portlet includes converting the URL into a URL indicating an absolute path in the portlet in response to the at least one portlet incurring the intra-portlet action, wherein the converting includes attaching at least one root path in the at least one portlet to the URL in response to the at least one portlet incurring the intra-portlet action, wherein the modifying the URL in the at least one portlet includes modifying the URL in the at least one portlet based on a type of the URL; and
wherein the modifying the URL in the at least one portlet based on the type of the URL includes;
in response to the URL corresponding to a link in a page and an object of the link being a new window or a new tab, converting the URL into a URL carrying navigation state information that describes a layout of a page where the at least one portlet is currently located; and
in response to the URL being located in a JavaScript file, converting a URL indicating a relative path in the JavaScript file into a URL indicating an absolute path of the URL found in the JavaScript file. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A computer program product for normalizing a page flow into a portlet, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code readable and executable by a processor to perform a method comprising:
-
generating at least two portlets based on at least two pages in the page flow, wherein the page flow includes multiple webpages that are linked together through navigation control to execute a specific business logic, wherein pages that are functionally dependent upon one another are assigned to a same portlet, and wherein pages that are functionally independent of one another are assigned to different portlets; building at least one of an intra-portlet action and an inter-portlet action for at least one portlet from the at least two portlets, wherein the intra-portlet action is based on a linking relationship between two pages within the same portlet, and wherein the inter-portlet action is based on a linking relationship between two pages that are in different portlets; and modifying a Uniform Resource Locator (URL) in the at least one portlet based on whether pages within the at least one portlet incur the intra-portlet action, wherein the URL indicates a relative path in the at least one portlet that incurs the intra-portlet action, wherein modifying the URL in the at least one portlet includes converting the URL into a URL indicating an absolute path in the portlet in response to the at least one portlet incurring the intra-portlet action, wherein the converting includes attaching at least one root path in the at least one portlet to the URL in response to the at least one portlet incurring the intra-portlet action, wherein the modifying the URL in the at least one portlet includes modifying the URL in the at least one portlet based on a type of the URL; and
wherein the modifying the URL in the at least one portlet based on the type of the URL includes;
in response to the URL corresponding to a link in a page and an object of the link being a new window or a new tab, converting, by one or more processors, the URL into a URL carrying navigation state information that describes a layout of a page where the at least one portlet is currently located; and
in response to the URL being located in a JavaScript file, converting a URL indicating a relative path in the JavaScript file into a URL indicating an absolute path of the URL found in the JavaScript file. - View Dependent Claims (13, 14, 15)
-
Specification