Re: JSF- JavaScript Issue

‏2011-11-22T12:10:45Z

This is the accepted answer.
This is the accepted answer.

Here is the detailed issue of the javascript error. On click of ok button in the below code, it is not navigating to the corresponding dummy.jsf page, which is in the same location as the below jsf. Please check the detailed code below.
************************************************************************
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

I am also migration my application from WAS 6.1 to WAS 7.0 and facing the same issue. Could you please let me know how you have resolved this issue.

Previously I have faced one more issue with onlclick in h:commandButton where we have to navigate to another page when we clicked on the button. But we haven't used document.forms(0).submit(). however we have used href directly calling the particular (.do) . I have resolved by mentioning return false after the onclick method.

Ex:

In WAS 6.1

onclick=example();return true;

I have changed as below to make the code work in WAS 7.0.

onclick=example();return false;

I didn't actually understand what actually made return false to work in WAS 7.0. If return is true same JSP is loading with blank/null values.