Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to potlet. Doubt about actionURL and renderURL.

 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me the differences between ActionURL/ActionRequest and RenderURL/RenderRequest.
Please help me.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This just has to do with the two stagest a portlet goes through when a request comes in.

All the logic should go into the action phase. This phase processes the client request, and is allowed to make a bunch of decisions about things like whether the portlet will be shown in edit or config mode, whether it will be minimized or maximized, and stuff like that.

The render phase is just about generating markup. Things like whether to minimize or maximize a portlet can't be changed. You just have to focus on generating markup.

Here's a good CBT tutorial on using the RenderRequest and RenderResponse:

Working with the JSR168 Portlet APIs RenderRequest and RenderResponse Objects.

Kind regards,

-Cameron McKenzie
 
Hemant Sharma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to what Cameron mentioned, there are two types of PortletURLs:
* Action URLs, they are created with RenderResponse.createActionURL, and trigger an action request followed by a render request.
* Render URLs, they are created with RenderResponse.createRenderURL, and trigger a render request.

Again, there's a portlet actionURL tag which creates a URL that points to the current portlet and triggers an action request with the supplied parameters. And a portlet renderURL tag which creates a URL that points to the current portlet and triggers a render request with the supplied parameters.
[ October 30, 2007: Message edited by: Hemant Sharma ]
 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger that!Thanks you all!
 
Sachin Telang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additon to this parameter set in action url is not available to doView method means render Url. To get action parameter in doView you have to use response.setRenderParameter method in processAction method.






[ November 02, 2007: Message edited by: Sachin Telang ]
[ November 02, 2007: Message edited by: Sachin Telang ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic