Loading in 2 Seconds...
Loading in 2 Seconds...
Short Portlet Programming Guide in P-Grade (Gridsphere) environment. G. Hermann. Content. Main ideas Execution model Representation Part I Java – JSP collaboration Part II Definition of Portlets by portlet.xml and layout.xml Tomcat directory hierarchy. Main ideas.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Please note that the event handling interrupt routines of the Java Class ActionPortlet may terminate with the state transition instruction setNextState(PortletReqest,String), where the String parameter may refer either
The simple Portlet “EnterName” redisplays a single string entered by the client.
that before the elaboration of the first
response the given rendering routine
will be called.
The jsp is referenced by the java code.
After the running of the routine the HTML generation defined by the Jsp will be performed
The parameter referenced by the handle “nameSessionHandle” does not exist, therefore the bean object referenced “nameOld” – wich will be created upon the first reference –receives the value “not defined”.
The bean referenced as
“nameOld” will be used to display the value known by the system before the user interaction.
The jsp page will generate the HTML response
The Jsp page will generate the HTML code in the response for the selected frame
The user hitting the button labeled as “Update” generates a Request activating the routine updateName
Example: The Client fills the text field as “newValue”, and hits the
In the action event handler the value defined by the client and stored in a bean referenced as “nameNew” will be read
The text value will be forwarded to the subsequent rendering routine via the handle “nameSessionHandle”
As a last step the routine triggers the rendering event
As the value associated by
“nameSessionHandle” is not emptythe bean referenced as “nameOld”will receive this value
The bean referenced “nameOld” now has the value “newValue”
The new potrlet
Portlet name will be referenced in file layout.xml
Path of the java class controlling the portlet
Text in the title of the portlet
Display name of a group of a submenu
Display name of of a submenu item
Referencing the name of the potled defined in portlet.xml
Portlet as a submenu item
Referencing the web application