Basics Tutorial Web applications with NetBeans Part 4
Continuing with the basic tutorial with NetBeans Web applications, this section will see the application running and create a page to display data sent from the user.
Sunday, March 20, 2011
long serialVersionUID = 1L;
and add the import java. io.Serializable
public String validate
() {return
"user";} The value of "user" is the name of the page usuario.xhtml.
add \u0026lt;h: outputText to display the name of the user loginscreen <h:outputLabel value ="#{login.username}"/>
quedarĂa
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
\u0026lt;title> Facelet Title \u0026lt;/ title>
\u0026lt;/ h: head>
\u0026lt;h:body> ;
\u0026lt;/ h: body>
\u0026lt;/ html>
Now run the application}
and to click the Login button brings us to the next page and shows the user name that we entered on the previous page.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment