Foros del Web » Programación para mayores de 30 ;) » Java »

crear boton que guarde formulario con datos llenos

Estas en el tema de crear boton que guarde formulario con datos llenos en el foro de Java en Foros del Web. ya tengo mi formulario listo, utilice netbeans 6.1 IDE, usando el Visual Web JavaServer Faces, ya que tiene una paleta de herramientas o componentes prestablecidos... ...
  #1 (permalink)  
Antiguo 06/06/2008, 10:39
Avatar de alejalejandro  
Fecha de Ingreso: junio-2008
Ubicación: Venezuela
Mensajes: 12
Antigüedad: 15 años, 11 meses
Puntos: 0
crear boton que guarde formulario con datos llenos

ya tengo mi formulario listo, utilice netbeans 6.1 IDE, usando el Visual Web JavaServer Faces, ya que tiene una paleta de herramientas o componentes prestablecidos... ahora no se como indicarle al boton que al presionarlo, me envie esos datos a una direccion X de algun servidor de correo
si pueden ayudarme
alli les adjunto uno de los formularios que ya he hecho, solo me falta el boton que capture esos datos y los coloque como una pagina adjunta (por supuesto, con los datos llenos)

ayudenme por fa


<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : Page1
Created on : 20-may-2008, 12:01:34
Author : localuser
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<webuijsf:page id="page1">
<webuijsf:html id="html1">
<webuijsf:head id="head1">
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
</webuijsf:head>
<webuijsf:body id="body1" style="-rave-layout: grid">
<webuijsf:form id="form2">
<webuijsf:staticText id="staticText1"
style="color: rgb(255, 0, 51); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-weight: bold; height: 24px; left: 456px; top: 24px; position: absolute; text-align: center; width: 286px" text="GERENCIA DE INFORMATICA"/>
<webuijsf:staticText id="staticText2"
style="color: rgb(255, 0, 51); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-weight: bold; height: 24px; left: 456px; top: 48px; position: absolute; text-align: center; width: 286px" text="ADMINISTRACION DE CUENTAS DE CORREO"/>
<webuijsf:staticText id="staticText3"
style="color: rgb(255, 0, 0); font-family: 'Arial','Helvetica',sans-serif; font-size: 12px; font-style: normal; font-weight: normal; height: 24px; left: 264px; top: 96px; position: absolute; width: 262px" text="Tipo de Acción Requerida Acerca de Cuenta:"/>
<webuijsf:staticText id="staticText4"
style="color: rgb(255, 0, 0); font-family: 'Arial','Helvetica',sans-serif; font-size: 12px; font-style: normal; font-weight: normal; height: 24px; left: 264px; top: 192px; position: absolute; width: 46px" text="Area:"/>
<webuijsf:staticText id="staticText7"
style="color: rgb(255, 0, 0); font-family: 'Arial','Helvetica',sans-serif; font-size: 12px; font-style: normal; font-weight: normal; height: 24px; left: 264px; top: 264px; position: absolute; width: 142px" text="DATOS DEL USUARIO:"/>
<webuijsf:label for="textField1" id="label1"
style="color: rgb(51, 0, 51); height: 24px; left: 312px; top: 288px; position: absolute; width: 144px" text="Apellidos:"/>
<webuijsf:label id="label2" style="height: 24px; left: 312px; top: 312px; position: absolute; width: 144px" text="Nombres:"/>
<webuijsf:label id="label3" style="height: 24px; left: 312px; top: 360px; position: absolute; width: 144px" text="Gerencia:"/>
<webuijsf:label id="label4" style="height: 24px; left: 312px; top: 384px; position: absolute; width: 144px" text="Departamento:"/>
<webuijsf:label id="label5" style="height: 24px; left: 312px; top: 336px; position: absolute; width: 144px" text="Cédula de Identidad:"/>
<webuijsf:label id="label6" style="height: 24px; left: 312px; top: 408px; position: absolute; width: 144px" text="Cargo:"/>
<webuijsf:label id="label7" style="height: 24px; left: 312px; top: 432px; position: absolute; width: 144px" text="Extensión Telf.:"/>
<webuijsf:textField columns="40" id="textField1" style="height: 24px; left: 456px; top: 288px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField2" style="height: 24px; left: 456px; top: 312px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField3" style="height: 24px; left: 456px; top: 336px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField4" style="height: 24px; left: 456px; top: 360px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField5" style="height: 24px; left: 456px; top: 384px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField6" style="height: 24px; left: 456px; top: 408px; position: absolute; width: 264px"/>
<webuijsf:textField columns="40" id="textField7" style="height: 24px; left: 456px; top: 432px; position: absolute; width: 264px"/>
<webuijsf:label for="textField11" id="label12"
style="color: rgb(255, 0, 51); font-size: 12px; font-style: normal; height: 24px; left: 312px; top: 648px; position: absolute; width: 94px" text="Solicitado por:"/>
<webuijsf:label for="calendar3" id="label13"
style="color: rgb(255, 0, 51); font-size: 12px; font-style: normal; font-weight: bold; height: 24px; left: 312px; top: 672px; position: absolute; width: 94px" text="Fecha:"/>
<webuijsf:textField columns="50" id="textField11" style="height: 24px; left: 408px; top: 648px; position: absolute; width: 360px"/>
<webuijsf:calendar id="calendar3" style="height: 24px; left: 408px; top: 672px; position: absolute; width: 168px"/>


//Aqui estan los botones que necesito que me ayuden a habilitar por fa

<webuijsf:button id="button1" style="left: 407px; top: 720px; position: absolute" text="Limpiar"/>
<webuijsf:button escape="false" id="button2" style="left: 599px; top: 720px; position: absolute" text="Guardar"/>
<webuijsf:radioButtonGroup id="radioButtonGroup2" items="#{Page2.radioButtonGroup2DefaultOptions.opt ions}" style="height: 48px; left: 312px; top: 216px; position: absolute; width: 192px"/>
<webuijsf:radioButtonGroup id="radioButtonGroup1" items="#{Page2.radioButtonGroup1DefaultOptions1.op tions}" style="height: 72px; left: 312px; top: 120px; position: absolute; width: 168px"/>
<webuijsf:checkboxGroup id="checkboxGroup2" items="#{Page2.checkboxGroup2DefaultOptions.option s}" style="height: 120px; left: 312px; top: 456px; position: absolute; width: 360px"/>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>
  #2 (permalink)  
Antiguo 06/06/2008, 12:04
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Respuesta: crear boton que guarde formulario con datos llenos

Mensaje movido al foro de Java desde Javascript.

Saludos,
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:33.