The <h:commandButton>
tag must be covered by <h:form>
tag to be active, and especially if the action
attribute of <h:commandButton>
contain a dynamic navigation ( e.g: action=#{user.testcase2()}
) .
Else, if this last tag has just a static navigation, (string e.g: action="frontpage" )
, then just use the <h:button>
as M. @BalusC said, because it doesn't support dynamic navigation.