Re: Pretty faces don`t work for me

Splash Forums PrettyFaces Users Pretty faces don`t work for me Re: Pretty faces don`t work for me

#23280

now i am using pretty faces with annotations..

faceing problem in login system..

if user type user name and pass correctly then i want to show success.xhtml page if user name and pass incorrect then same login page

tell me what should i return ??

in my login.xhtml page

<h:commandButton action=”pretty:login” styleClass=”ok” value=”Login” onclick=”return login_submit();”/>

and in java class

@URLMapping(id=”login”, pattern=”/login”, viewId=”xhtmls/success.xhtml”)

//class {

@URLAction

public String action(){

return //// ???

}

}

what i am doing now

if user name and pass true then i am returning pretty:login

if wrong then returning pretty:, currently i get this output

sorry for my bad english..