Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replacement for createReturnURI in JSR1 68

 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Currently im working for IBM to JSR 168 migration,
We have portletAPI:createReturnURI tags in IBM portlets,so we need to migrate the same to JSR 168.

Could you please let me know what is the alternative for the same.

Like,pointing to callerportlet in JSR 168 please.,


Thanks In Advance
viswam
 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here Im posting the scenario


IBM portlet :

<portletAPI:createReturnURI><portletAPI:URIAction name='AddButton'/>
</portletAPI:createReturnURI>


Could you please let me know convertion to JSR 168 please.,

Thanks in advance
viswam
 
Hemant Sharma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The replacement for <portletAPI:createReturnURI/> of IBM API in JSR 168 API is <portlet:renderURL/> if url is created for Render Phase and <portlet:actionURL/> if url is created for Action Phase.

In your case
Originally posted by viswam konkepudi:
Here Im posting the scenario


IBM portlet :

<portletAPI:createReturnURI><portletAPI:URIAction name='AddButton'/>
</portletAPI:createReturnURI>


<portlet:actionURL/> can be used.
 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hemanth.,

If possible Could you please exaplain both the scenarios very simple example.,

please..


Thanks In Advance
 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My doubt is portlet:createReturnURI will take us to caller portlet
example like back button in edit to go to view mode.,


I fi use the portletAPI:actionURI for the action phase will it give the same behaviour or i need to specify the portletMode="view" something like that .,

please help me.,

Thanks In Advance
 
Hemant Sharma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by viswam konkepudi:
My doubt is portlet:createReturnURI will take us to caller portlet
example like back button in edit to go to view mode.,

You can use '<portlet:renderURL portletMode="view"/>' while creating Back url in Edit mode to go to View mode.

I fi use the portletAPI:actionURI for the action phase will it give the same behaviour or i need to specify the portletMode="view" something like that .,

Specifying portletMode="view" or "edit" while creating an action url depends whether its required to bring the portlet into View mode or Edit mode after the action phase.
e.g. The action url <portlet:actionURL portletMode=�edit�> will bring the portlet to Edit mode after the action phase, and the url <portlet:actionURL portletMode=�view�> will bring the portlet to View mode after the action phase.

You can always refer the Portlet Tag Library in the JSR-168 Portlet Specification for more detail on actionURL and renderURL, like when to use, how to use, how to pass parameters etc.
[ February 25, 2008: Message edited by: Hemant Sharma ]
 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Hemant,its very much useful for me,
Thanks for your time.,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic