<rich:pickList i> - PROBLEMAS

0 respostas
B
Ola pessoal, estou com problemas para adicionar uma picklist no meu programa, quando adiciono ela os itens que vem depois dela somem e ela tambem não aparece,algem poderia me ajudar preciso resolver isso agora.Obrigado :-o
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%-- 
    Document   : cadastroVoo
    Created on : 31/03/2009, 00:04:31
    Author     : Bruno
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro de Vôos</title>
    </head>
    <body>
        <f:view>
          <h:form >
                  <h:panelGrid columns="1">
                    <h:graphicImage value="decolando.gif"/>
                    <h2>Cadastro de Vôos</h2>
                    <h:outputLabel value="Codigo do Vôo:"></h:outputLabel>
                    <h:inputText size="6" id="codVoo" value="#{voo.codigoVoo}" ></h:inputText>
                    <h:outputLabel value="Origem:"></h:outputLabel>
                    <h:selectOneMenu value="#{voo.origem}">
                        <f:selectItem itemValue="Acre"/>
                        <f:selectItem itemValue="Alagoas"/>
                        <f:selectItem itemValue="Amazonas"/>
                        <f:selectItem itemValue="Bahia"/>
                        <f:selectItem itemValue="Ceará"/>
                        <f:selectItem itemValue="Distrito Federal"/>
                        <f:selectItem itemValue="Espirito Santo"/>
                        <f:selectItem itemValue="Goias"/>
                        <f:selectItem itemValue="Mato Grosso"/>
                        <f:selectItem itemValue="Mato Grosso do Sul"/>
                        <f:selectItem itemValue="Minas Gerais"/>
                        <f:selectItem itemValue="Para"/>
                        <f:selectItem itemValue="Paraiba"/>
                        <f:selectItem itemValue="Parana"/>
                        <f:selectItem itemValue="Pernambuco"/>
                        <f:selectItem itemValue="Piauí"/>
                        <f:selectItem itemValue="Rio de Janeiro"/>
                        <f:selectItem itemValue="Rio Grande do Norte"/>
                        <f:selectItem itemValue="Rio Grande do Sul"/>
                        <f:selectItem itemValue="Rondonia"/>
                        <f:selectItem itemValue="Roraima"/>
                        <f:selectItem itemValue="Santa Catarina"/>
                        <f:selectItem itemValue="São Paulo"/>
                        <f:selectItem itemValue="Sergipe"/>
                        <f:selectItem itemValue="Tocantins"/>
                    </h:selectOneMenu>

                    <h:outputLabel value="Destino:"></h:outputLabel>
                    <h:selectOneMenu value="#{voo.destino}">
                        <f:selectItem itemValue="Acre"/>
                        <f:selectItem itemValue="Alagoas"/>
                        <f:selectItem itemValue="Amazonas"/>
                        <f:selectItem itemValue="Bahia"/>
                        <f:selectItem itemValue="Ceará"/>
                        <f:selectItem itemValue="Distrito Federal"/>
                        <f:selectItem itemValue="Espirito Santo"/>
                        <f:selectItem itemValue="Goias"/>
                        <f:selectItem itemValue="Mato Grosso"/>
                        <f:selectItem itemValue="Mato Grosso do Sul"/>
                        <f:selectItem itemValue="Minas Gerais"/>
                        <f:selectItem itemValue="Para"/>
                        <f:selectItem itemValue="Paraiba"/>
                        <f:selectItem itemValue="Parana"/>
                        <f:selectItem itemValue="Pernambuco"/>
                        <f:selectItem itemValue="Piauí"/>
                        <f:selectItem itemValue="Rio de Janeiro"/>
                        <f:selectItem itemValue="Rio Grande do Norte"/>
                        <f:selectItem itemValue="Rio Grande do Sul"/>
                        <f:selectItem itemValue="Rondonia"/>
                        <f:selectItem itemValue="Roraima"/>
                        <f:selectItem itemValue="Santa Catarina"/>
                        <f:selectItem itemValue="São Paulo"/>
                        <f:selectItem itemValue="Sergipe"/>
                        <f:selectItem itemValue="Tocantins"/>
                    </h:selectOneMenu>
                        <rich:pickList id="list">
                            <f:selectItem itemValue="Sergipe"/>
                            <f:selectItem itemValue="Tocantins"/>
                        </rich:pickList>
                     <h:outputLabel value="Modelo:"></h:outputLabel>
                    <h:selectOneRadio id="formato" value="#{voo.modeloAviao}" >
				<f:selectItems value="#{voo.modelos}" />
                    </h:selectOneRadio>
                    <h:outputText value="Data e Hora da Partida:"/>
	            	<h:panelGroup>
	            		<h:inputText size="2"/>
	            		<h:outputText value=" / "/>
	            		<h:inputText size="2"/>
                                <h:outputText value=" / "/>
                                <h:inputText size="4"/>
                                <h:outputText value=" "/>
                                <h:inputText size="2"/>
                                <h:outputText value=" : "/>
                                <h:inputText size="2"/>
                                <h:outputText value=" : "/>
                                <h:inputText size="2"/>
	            	</h:panelGroup>
                    <h:outputLabel value="Quantidade de Passageiros:"></h:outputLabel>
                    <h:inputText id="qtdadePassag" value="#{voo.qtdadePassageiros}" ></h:inputText>
                    <input type="submit" value="Cadastro"  action="cadastrarAeroporto" />
                    <input onclick="alert('Tela Limpa')" type="submit" value="Limpar" action="Limpa" />
                  </h:panelGrid>
          </h:form>
        </f:view>
    </body>
</html>
Criado 7 de abril de 2009
Respostas 0
Participantes 1