Sets up error central. Lets page author decide to show.
[mkjsf-moved-to-github.git] / src / META-INF / resources / pz2widgets / login.xhtml
1 <html xmlns="http://www.w3.org/1999/xhtml"\r
2     xmlns:h="http://java.sun.com/jsf/html"\r
3     xmlns:ui="http://java.sun.com/jsf/facelets"\r
4     xmlns:composite="http://java.sun.com/jsf/composite">\r
5 \r
6     <composite:interface>\r
7        <composite:attribute name="user"/>\r
8 \r
9        <composite:attribute name="namePrompt"/>\r
10        <composite:attribute name="passwordPrompt"/>\r
11 \r
12        <composite:attribute name="loginButtonText"/>\r
13        <composite:attribute name="loginAction"\r
14           method-signature="java.lang.String action()"/>\r
15     </composite:interface>\r
16 \r
17     <composite:implementation>\r
18        <h:form id="form">\r
19           <h:panelGrid columns="2">\r
20              #{cc.attrs.namePrompt}\r
21              <h:inputText id="name" value="#{cc.attrs.user.name}"/>\r
22 \r
23              #{cc.attrs.passwordPrompt}\r
24              <h:inputSecret id="password" value="#{cc.attrs.user.password}"/>\r
25           </h:panelGrid>\r
26           <p>\r
27              <h:commandButton id="loginButton" value="#{cc.attrs.loginButtonText}"\r
28                 action="#{cc.attrs.loginAction}"/>\r
29           </p>\r
30       </h:form>\r
31    </composite:implementation>\r
32 </html>