cancel
Showing results for 
Search instead for 
Did you mean: 

Re-usable iViews

Former Member
0 Kudos

Hello,

I have a scenario in theory that i wish to implement technically. Not sure how.still researching on SDN though. Any help would be greatly appreciated. Thanks.

I have one Java Custom iView.

Create a par file and upload to the portal (EP5.0)

I have 5 external services that point to the same par file

The Java Custom iView should point a different external url depending on which of the 5 external service the user clicked on from within the portal.

This approach would prevent me from writing 5 iviews when really i should have one iview with some logic to control which external service the user clicked, determine that in the iview and then display the correct url in the iframe (which will be embedded in the jsp) respectively.

Hope this is clear. Any help or ideas is greatly appreciated. Thanks.

Sunil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If you also don't want to create five different iviews, you could try looking at the HTTP referer to see which url the call came from.

request is of IPortalComponentRequest class

servletRequest = request.getServletRequest()

String referer = servletRequest.getHeader("Referer");

darrell_merryweather
Active Contributor
0 Kudos

Hi

This sounds like personalisation of an iView. Basically you should create an iView, with a personalisable property in the default.properties file. Then, when it is deployed, create 5 iViews based on the master iView. For each iView definition, change the property to reflect the URL that you want launched

I hope this helps

D