Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Srinivasa Nandula

Greenhorn
+ Follow
since Jan 29, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Srinivasa Nandula

Hi,

In the below example, I need "someString" to form my URL and once the URL is formed it should take me to the new page.

When I am using outputLink component, hiddenVar parameter is going as null in to the backing bean. But it is taking me to the new page.

<h:outputLink value="#{myBean.getURL}">
<f:param name="hiddenVar" value="someString"></f:param>
<h:outputText styleClass="graybold" value="Click Here"/>
</h:outputLink>

When I am using commandLink component, hiddenVar parameter is going as "someString" in my backing bean and the URL is being formed, but it is not taking me to the new page.

<h:commandLink action="#{myBean.getURL}">
<f:param name="hiddenVar" value="someString"></f:param>
<h:outputText styleClass="graybold" value="Click Here"/>
</h:commandLink>

If anyone has any idea on this, please share your thoughts. I appreciate your help in this regard.

Thanks,
Karsid
12 years ago
JSF