Size e maxlength

0 respostas
leo_mf

Olá pessoal.

Estou com um problema meio estranho. Eu tenho a jsp abaixo:
<%@page contentType="text/html"%>
<%@page pageEncoding="windows-1252"%>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib  uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
    <head>
        <
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/stylesheet.css">
        <title>Cadastro</title>        
    </head>
    <f:view>
        <body>
            <img    >                      
            <p  >Cadastro Usuario</p>
            <div class="divcentro">
                <h:form> 
                    <table align="center" width="500" border="0" class="cadastrotabela">
                        <tr>
                            <td><p  >Nome Completo*:</p></td>
                            <td><h:inputText size="100" maxlength="6" value="123456"/></td>
                        </tr>
                        <tr>
                            <td><p  >País*:</p></td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td><p  >Estado*:</p></td>
                            <td>&nbsp;</td>
                            <td><p  >Cidade*:</p></td>
                            <td><h:inputText /></td>
                        </tr>
                        <tr>
                            <td><p  >Telefone1*:</p></td>
                            <td><h:inputText /></td>
                            <td><h:inputText /></td>
                            <td><p  >Ramal:</p></td>
                            <td><h:inputText /></td>
                        </tr>
                        <tr>
                            <td><p  >Telefone*:</p></td>
                            <td><h:inputText /></td>
                            <td><h:inputText /></td>
                            <td><p  >Ramal:</p></td>
                            <td><h:inputText /></td>
                        </tr>
                        <tr>
                            <td><p  >E-mail*:</p></td>
                            <td><h:inputText /></td>
                        </tr>
                        <tr>
                            <td><p  >Repetir E-mail*:</p></td>
                            <td> <h:inputText /></td>
                        </tr>
                        <tr>
                            <td><p  >Senha*:</p></td>
                            <td><h:inputSecret /></td>
                        </tr>
                        <tr>
                            <td><p  >Repetir Senha*:</p></td>
                            <td><h:inputSecret /></td>
                        </tr>
                    </table>
                </h:form>
            </div>
            <div class="divrodape">
                <div class="rodapetext">Por: xxxxxx &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Email: xxxxxx</div>
            </div>
        </body>
    </f:view>    
</html>

Quando mando executar o projeto e acesso a pagina jsp, na tag "<h:inputText size="100" maxlength="6" value="123456"/>" os parametros "size" e "maxlength" não são populados quando o servlet transforma em html para o navegador.

Alguem sabe o que pode ser isso?

Obrigado.

Criado 26 de novembro de 2008
Respostas 0
Participantes 1