File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Replacement for createReturnURI in JSR1 68 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Replacement for createReturnURI in JSR1 68" Watch "Replacement for createReturnURI in JSR1 68" New topic
Author

Replacement for createReturnURI in JSR1 68

viswam konkepudi
Ranch Hand

Joined: Feb 20, 2008
Posts: 35
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

Joined: Feb 20, 2008
Posts: 35
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

Joined: Feb 01, 2007
Posts: 23
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.


Thanks & Regards,<br />Hemant K. Sharma
viswam konkepudi
Ranch Hand

Joined: Feb 20, 2008
Posts: 35
Thanks Hemanth.,

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

please..


Thanks In Advance
viswam konkepudi
Ranch Hand

Joined: Feb 20, 2008
Posts: 35
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

Joined: Feb 01, 2007
Posts: 23
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

Joined: Feb 20, 2008
Posts: 35
Thank you Hemant,its very much useful for me,
Thanks for your time.,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacement for createReturnURI in JSR1 68