Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Problem connecting to a third party site from JSF
posted

Hello All,

First of all i would like to thank you all for all your previous valuable suggestions. Currently i am working on a JSF application where we used Infragistics components. I got stucked up with a small issue , please find the issue description as below.

Required functionality  : we have a ig:menuItem in the banner , once the user clicks on that menu Item we have to open a new window (which is basically connected to a third-party web site) since the user already logged in we should not ask the user to re-enter the credentials again.

Existing functionality : The user logged in to the appliation, and when he selects ig:menuItem we are opening a new window  (due to the attribute target="new_window" we specified for ig:menuItem) but it is again asking the user to enter his credentials (user id & password) in the new opened window which is really wierd.

Below is the code snippet.

<ig:menuItem id="pvS"
                                value="#{CommonLabels['Banner.ToolsValuationSystem']}"
                                actionListener="#{bannerBean.onMenuClick}"
                               
                                href="#{bannerBean.pvsURL}" target="new_window" />

 

BannerBean.java

 

 

 

 

 

public

 

 

 

"?value1="+userID+"&value2= "+"&value3= "+"&value4= "+"&value5= "

return pvsURL;

The same functionality is working fine in our application for a outputLink. When the user clicks on PVS output Link it is directly connected to PVS third party site without asking the user to enter his credentials again.

String getPvsURL(){

String userID = getSessionState().getAgent().getUserid();

String pvsURL = acp.busmgr.BusinessObjectMgr.getPvsURL()+

 

 

 

 

 

 

 

<

 

h:outputLink value="#{propertyUnitBean.pvsURL}" target="new_window">

 

 

<h:outputText value="#{PolicyPropertyLabels['PropertyAddUnit.PVSLink']}"/>

 

 

<f:param name="value1" value="#{sessionState.agent.userid}"/>

 

 

<f:param name="value2" value=""/>

 

 

<f:param name="value3" value=""/>

 

 

<f:param name="value4" value=""/>

 

 

<f:param name="value5" value=""/>

 

 

</h:outputLink>

Any help will be highly appreciated.