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.
Actual 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).
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.
From my observation, if i remove the ig:menuItem attribute target="new_window", then it is not asking user credentials directly going to third-party web site and working fine., but the requirement says that we need to open only in a new window.
Any help will be highly appreciated.
Below is the code snippet
<ig:menuItem id="pvS" value="#{CommonLabels['Banner.ToolsValuationSystem']}" actionListener="#{bannerBean.onMenuClick}" href="#{bannerBean.pvsURL}" target="new_window" />
Hi:
This issue isn't with the IG menu but with browser security and the umplementation of login state on your third party site. If that site provides a way to maintain a session across browser windows, then that's te route you want to take. There's nothing in the component that can work around this.
Thanks,Jim
Thanks for your response Jim. I checked with my team and i came to know that our third party web site is already configured and working properly from other applications where they were h:commandLink.
I noticed a peculiar behaviour on ig:menuItem component in which ....
if i remove target="new_window" attribute for my ig:menuItem it was working just fine.
Since as per my requirement i need to open that third party web site in a new window....i just got stucked up.
We can easily recreate this issue and if you try the following code i hope you can easily understand what the problem is
The below Output Link works just fine.
<h:outputLink value="http://www.google.com" target="new_window"> <h:outputText value="Go to Google"/> </h:outputLink>
But the same functionality will work differently with ig:menuItem as given below.
<ig:menu> <ig:menuItem href="http://www.google.com" target="new_window" value="Go To Google"/></ig:menu>
Please let me know if you need any further information of if issue is not clear for you.