The present invention relates to portal environments or the like, and more particularly to a form multiplexer for a portal environment and method and system for handling or managing submission of inputs from multiple portlets of a portal page.
In a portal web page each portlet constitutes an independent portion of the overall portal page. The markup that constitutes a form in one portlet is isolated from the markup in the other portlets. Accordingly, if multiple portlets that are on the same portal page each contain a form, each form must be completed and submitted separately. Otherwise the user would lose the data that was entered into all other portlets or forms but the one portlet or form that is submitted by operation of a submission button or other means on the submitted portlet. There currently is no system or method to allow portal users to interact with multiple forms spread across multiple portlets on the same portal page at the same time without having to submit each form separately.
In accordance with an embodiment of the present invention, a method to manage inputs from multiple portlets of a portal page may include gathering any inputs from forms associated with portlets other than a form associated with a portlet that is being submitted. The method may also include appending each gathered input to the form being submitted with a unique key or identifier of the form to which the gathered input belongs.
In accordance with another embodiment of the present invention, a system to manage inputs from multiple portlets of a portal environment may include a form multiplexer. The system may also include a JavaScript or similar code generable by the form multiplexer for managing any form submissions.
In accordance with another embodiment of the present invention, a computer program product to manage inputs from multiple portlets of a portal page may include a computer usable medium having computer usable program code embodied therein. The computer usable medium may include computer usable program code configured to gather any inputs from forms associated with portlets other than a form associated with a portlet that is being submitted. The computer usable medium may also include computer usable program code configured to append each gathered input to the form being submitted with a unique key or identifier of the form to which the gathered input belongs.
Other aspects and features of the present invention, as defined solely by the claims, will become apparent to those ordinarily skilled in the art upon review of the following non-limited detailed description of the invention in conjunction with the accompanying figures.
The following detailed description of embodiments refers to the accompanying drawings, which illustrate specific embodiments of the invention. Other embodiments having different structures and operations do not depart from the scope of the present invention.
As will be appreciated by one of skill in the art, the present invention may be embodied as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
Any suitable computer usable or computer readable medium may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Computer program code for carrying out operations of the present invention may be written in an object oriented programming language such as Java, Smalltalk, C++ or the like. However, the computer program code for carrying out operations of the present invention may also be written in conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
In block 108, each portlet object may get a JavaScript or the like to manage or handle subsequent form submissions in response to a request for the markup for the portal page from the portal server. The JavaScript generated by the form multiplexer knows the unique keys for each of the portlets or forms that have registered and can attach or otherwise associate those keys to the respective inputs belonging to each of the respective portlets or forms before a form that has been selected for submission is submitted. When a portlet receives a request for its markup from a portal server, the portlet adds JavaScript created and provided by the form multiplexer to its contents. While the present invention is described with respect to the use of JavaScript, any code, scripting language or the like capable of performing functions similar to those described herein may be used.
In block 110, the JavaScript may be adapted to listen for a form submission from the portal page. Listeners or the like may be attached to each of the portlets or forms to listen or detect submission of a form associated with one of the portlets of a portal page.
Referring also to
Referring back to block 110 in
In block 112, the JavaScript associated with the submitted form or form selected to be submitted may interrogate a Document Object Model (DOM) to find all forms of the portal page that have registered with the form multiplexer in response to the form being submitted or selected for submission.
In block 114, the JavaScript associated with the submitted form or portlet or form to be submitted may gather or pull inputs from other forms and may append each input to the form being submitted. Each input may be appended with the unique identifier or key as a prefix. The inputs may be parameters, data or other information that may have been entered into the respective forms or portlets by the user and that were not selected for submission.
Referring also to
Referring back to
In block 120, the form multiplexer may separate out all of the appended inputs submitted with the selected form using the unique keys. The form multiplexer may redistribute the respective inputs to each of the associated forms. In this regard, the form multiplexer may iterate through all of the form inputs when the HTTP request reaches the portal server and based on the presence of the unique key, the multiplexer can determine which inputs get routed to which portlets or forms.
In
Each of the portlet objects 306 may request a JavaScript (“getJavaScript( )”) or the like from the form multiplexer 308 in response to the request for markup to render the portal page. As previously discussed the JavaScript requested may be for handling or managing subsequent form submissions when a user clicks-on or otherwise operates a “Submit” button or the like on one of the forms displayed in a portlet, similar to that described with respect to
In
The portlet server 304 may call an action handler 310 for the submitted portlet 306 in response to the HTTP request reaching the portal server 304. The action handler 310 may give control to the form multiplexer 308 or may control the form multiplexer 308 in redistributing the inputs or parameters gathered to their respective forms, similar to that previously described. Accordingly, each portlet object 306 may “getParameters( )” from the form multiplexer 308 as illustrated in
The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Although specific embodiments have been illustrated and described herein, those of ordinary skill in the art appreciate that any arrangement which is calculated to achieve the same purpose may be substituted for the specific embodiments shown and that the invention has other applications in other environments. This application is intended to cover any adaptations or variations of the present invention. The following claims are in no way intended to limit the scope of the invention to the specific embodiments described herein.