pm:commandButton : Navigation Problem

UI Components for JSF
Post Reply
DerIngo
Posts: 2
Joined: 18 May 2011, 21:53

10 Aug 2011, 18:33

Hello!

I have the following simple Page, which should go further to "helloPrime"-Page after a click on the Login-Button.
But after clicking the Button nothing happens.
What must I do to get to the next Page?

-------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:pm="http://primefaces.prime.com.tr/mobile"
>

<f:view>

<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hello Mobile</title>
</h:head>
<body>
<pm:page title="TwitFaces">

<!-- Main View -->
<pm:view id="main" swatch="b">
<pm:header title="Login Page">
</pm:header>

<pm:content>
<h:form id="myForm">
<h:outputText value="Username: " /><br/>
<h:inputText value="" /><br/>
<h:outputText value="Password: " /><br/>
<h:inputText value="" /><br/>

<p:separator />

<pm:commandButton value="Login" action="helloPrime" ajax="false"/>


</h:form>
</pm:content>

</pm:view>

</pm:page>

</body>
</f:view>
</html>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests