Richfaces问题:显示输出/输入文本中的代码

时间:2011-03-20 15:10:09

标签: jsf richfaces

我有以下问题:

jsp文件显示屏幕中输入和输出文本字段的代码。哪个是问题?提前谢谢。

代码:

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<html>
    <head>
        <title>Salas On-line</title> 
    </head>
    <body>
    <f:view>
        <center>
        <h:panelGrid width="420px" columns="2" border="0">
<!--         style="background-color: #ebf3fd;"-->
            <rich:panel header="Login">
                <h:form id="LoginForm">
                    <h:outputText value="#{loginForm.text}" />
                    <h:panelGrid id="lpg" columns="3" >
                        <h:outputText value="Username"/> 
                        <h:inputText id="username" value="#{loginForm.userName}" styleClass="inputbox" required="true" requiredMessage="Campo requerido."/>
                        <h:message for="username" styleClass="errors" style="color: red;"/>


                        <h:outputText value="Password"/> 
                        <h:inputSecret id="password" value="#{loginForm.password}" styleClass="inputbox"  required="true" requiredMessage="Campo requerido."/>
                        <h:message for="password" styleClass="errors" style="color: red;"/>


                        <h:outputText value=""/>
                        <h:commandButton value="Login" action="#{loginForm.validUser}" styleClass="submitButton"/>
                    </h:panelGrid>
                </h:form>

                <h:form>
                    <h:panelGrid id="bottompg" columns="1" >
                        <h:outputText value="New User?" style="font-family:arial, verdana;font-size:10px;"/>
                        <h:commandLink value="Register Here" action="useraccount" style="font-family:arial, verdana;font-size:12px;"/>
                        <h:outputText value=""/>
                        <h:commandLink value="Forgot Password?" action="forgotpassword" style="font-family:arial, verdana;font-size:12px;"/>
                    </h:panelGrid>
                </h:form>

            </rich:panel>
        </h:panelGrid>
        </center>
    </f:view>   
    </body>
</html>

0 个答案:

没有答案