Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Práctico 1 TSE
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Federico Martinez Girona
Práctico 1 TSE
Commits
6f3a88c6
Commit
6f3a88c6
authored
5 months ago
by
Federico Martinez
Browse files
Options
Downloads
Patches
Plain Diff
arreglar detalle usuario
parent
d38572eb
No related branches found
Branches containing commit
No related tags found
1 merge request
!21
Version que funciona
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/src/main/java/beans/InicioBean.java
+2
-1
2 additions, 1 deletion
web/src/main/java/beans/InicioBean.java
web/src/main/webapp/detalle_usuario.xhtml
+3
-3
3 additions, 3 deletions
web/src/main/webapp/detalle_usuario.xhtml
with
5 additions
and
4 deletions
web/src/main/java/beans/InicioBean.java
+
2
−
1
View file @
6f3a88c6
...
...
@@ -54,7 +54,8 @@ public class InicioBean implements Serializable {
public
void
setUsuarios
(
List
<
Usuario
>
usuarios
)
{
this
.
usuarios
=
usuarios
;
}
public
String
buscarUsuario
()
{
this
.
usuarioBuscado
=
usuarioRemote
.
buscarUsuario
(
nombreBuscado
);
System
.
out
.
println
(
nombreBuscado
);
setUsuarioBuscado
(
usuarioRemote
.
buscarUsuario
(
nombreBuscado
));
return
"buscarUsuario"
;
}
...
...
This diff is collapsed.
Click to expand it.
web/src/main/webapp/detalle_usuario.xhtml
+
3
−
3
View file @
6f3a88c6
...
...
@@ -19,9 +19,9 @@
<body>
<h:panelGroup
rendered=
"#{inicioBean.usuarioBuscado != null}"
>
<h1>
Datos del usuario:
</h1>
<h:outputLabel
value=
"Nombre: #{inicioBean.nombre}"
for=
"nombre"
/>
<h:outputLabel
value=
"Año de nacimiento: #{inicioBean.
ani
oNacimiento}"
for=
"nombre"
/>
<h:outputLabel
value=
"Ingresado el: #{inicioBean.fechaRegistro}"
for=
"nombre"
/>
<h:outputLabel
value=
"Nombre: #{inicioBean.
usuarioBuscado.
nombre}"
for=
"nombre"
/>
<h:outputLabel
value=
"Año de nacimiento: #{inicioBean.
usuarioBuscado.añ
oNacimiento}"
for=
"nombre"
/>
<h:outputLabel
value=
"Ingresado el: #{inicioBean.
usuarioBuscado.
fechaRegistro}"
for=
"nombre"
/>
</h:panelGroup>
<h:panelGroup
rendered=
"#{inicioBean.usuarioBuscado == null}"
>
<h:outputLabel
value=
"Usuario no encontrado"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment