cancel
Showing results for 
Search instead for 
Did you mean: 

Call navigation pootal from a JSP

Former Member
0 Kudos
67

Hello,

I have an JSP which is running into an iview of my portal.

In this one, I need to create a link which, on a click, navigates to the portal navigation to open the associated page.

For example, I have done it with a Portal component: using

<a href="#" onclick="return EPCM.doNavigate('ROLES://portal_content/every_user/...')">

Navigate

</a>

But in my case, now I would to di it outside a portal component, in a simple JSP file used as URL iView.

As somebody an idea ?

Thanks,

Fabien

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi fabien,

Use NavigationTarget= in the url.

e.g.

http://<server>:<port>/irj/portal?NavigationTarget=ROLES://portal_content/dev/yoav/pages/createReser...

Hope that helps,

Yoav.

Former Member
0 Kudos

Hello Yoav,

I've already try your solution :

<a href="http://anakine.cr.eurocopter.corp:50000/irj/portal?NavigationTarget=ROLES://portal_content/eurocopter/r/corp.eurocopter.portal.svc.r.entry/corp.eurocopter.portal.svc.r.hom_entry/corp.eurocopter.portal.svc.ws.Home/corp.eurocopter.portal.test.p.myHome">

Link to home

</a>

It is true that it opens the good node of navigation, but it opens it ( and the whole portal page) in the previous iview.

This means that if I call this function in an iview inside a page which contains others iview, the content will be display in the iview: it does not replace all the page.

Do you see what I mean?

Thanks,

Fabien

Former Member
0 Kudos

Hi fabien,

If the opening iView is inside the portal,

I think you should be able to use EPCM.doNavigate

(The javascript is there, the only problem may be access denied).

Yoav.

Former Member
0 Kudos

Hi Yoav,

But the type of the used iView is: URL iView...

So I do not think I can use the EPCM.doNavigate inside a simple jsp file (not a portal component) included in the portal as a URL iView.

Regards,

Fabien

Former Member
0 Kudos

Hi fabien,

Both portal component with url isolation and url iView are "implemented" in html as iframes within the page, so I would give it a try...

Yoav.

Former Member
0 Kudos

Hi Yoav,

It is working.

I had just forgotten the import of the js13_epcf.js library in my JSP file.

Thanks,

FAbien

Former Member
0 Kudos

Hi Fabien,

How are you?

I´m trying to do exactly what you achieved to navigate from a JSP contained in a URL iView to a Page in a Role but I´m having a Permission Denied Error when using the EPCM.doNavigate().

I´m using a Portal 7.0

Thanx in Advanced!

Kind Regards!

Gerardo J