Yogesh Agrawal

Greenhorn
+ Follow
since Nov 10, 2006
Merit badge: grant badges
For More
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 Yogesh Agrawal

I have datatable and one of the column has selectonemenu and the rest of the column has text in B.jsp
16 years ago
JSF
Hi,
I am facing an issue with the JSF navigation.

I have three jsp A.jsp, B.jsp and C.jsp

Here is the code for all of them

A.jsp
<h:commandButton value="View" action="view" />

B.jsp
<h:commandButton value="Debug" action="debugmore" />

C.jsp
<h:outputText value="hello"/>

and here is faces-config

<navigation-rule>
<navigation-case>
<from-outcome>view</from-outcome>
<to-view-id>/B.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<navigation-rule>
<navigation-case>
<from-outcome>debugmore</from-outcome>
<to-view-id>/C.jsp</to-view-id>
</navigation-case>
</navigation-rule>

So when I click on the button View on A.jsp it takes me to B.jsp
but when I click on the button Debug in B.jsp it doesn't take me to
C.jsp but it refreshes the B.jsp and show the B.jsp

Any help will be appreciated.

Thanks,
Yogesh
16 years ago
JSF
Hi,
I am facing an issue with JSF commandLink
Here is the code for the home.jsp
<h:commandLink id="cacheLink" action="showcache">
<h:outputText value="View Cache" />
</h:commandLink>

and here is faces-config

<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>showcache</from-outcome>
<to-view-id>/pages/cache.jsp</to-view-id>
</navigation-case>
</navigation-rule>

But it doesn't take me to cache.jsp. The only change i see is the url now it becomes home.jsp#. Any help will be appreciated.

Thanks,
Yogesh
16 years ago
JSF
Hi John,
The difference in the following two statement is nothing but the operator precedence.
1) System.out.println("Animals are equal: " + dog == pig);
2) System.out.println("Animals are equal: " + (dog == pig));

On the 1) Statement + operator take the precedence and comparison will be between ("Animals are equal: " + dog) and (pig) whereas on the statement 2) the comparison is between (dog) and (pig). Hope this will clarify your doubt.