Skip to content

Commit

Permalink
Update Bolsa Trabajo V5
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-emarquez committed Oct 14, 2021
1 parent 18fcf59 commit 588ecd8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,4 @@
/BolsaTrabajoV3/target/
/ForEach/dist/
/BolsaTrabajoV4/target/
/BolsaTrabajoV5/target/
1 change: 0 additions & 1 deletion BolsaTrabajoV5/readame.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Bolsa de Trabajo V5



```java
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
9 changes: 9 additions & 0 deletions BolsaTrabajoV5/src/main/java/beans/backing/VacanteForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import beans.model.Candidato;
import javax.enterprise.context.RequestScoped;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import javax.inject.Inject;
import javax.inject.Named;
import org.apache.logging.log4j.LogManager;
Expand Down Expand Up @@ -43,4 +45,11 @@ public String enviar() {
return "fallo";
}
}

public void codigoPostalListener(ValueChangeEvent valueChangeEvent){
FacesContext facesContext = FacesContext.getCurrentInstance();
UIViewRoot uiViewRoot = facesContext.getViewRoot();
String nuevoCodigoPostal = valueChangeEvent.getNewValue();

}
}
26 changes: 26 additions & 0 deletions BolsaTrabajoV5/src/main/java/beans/model/Candidato.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public class Candidato {
private String apellido;
private int salarioDeseado;
private Date FechaNacimiento;
private String codigoPostal;
private String colonia;
private String ciudad;

Logger log = LogManager.getRootLogger();

Expand Down Expand Up @@ -57,5 +60,28 @@ public Date getFechaNacimiento() {
public void setFechaNacimiento(Date FechaNacimiento) {
this.FechaNacimiento = FechaNacimiento;
}

public String getCodigoPostal() {
return codigoPostal;
}

public void setCodigoPostal(String codigoPostal) {
this.codigoPostal = codigoPostal;
}

public String getColonia() {
return colonia;
}

public void setColonia(String colonia) {
this.colonia = colonia;
}

public String getCiudad() {
return ciudad;
}

public void setCiudad(String ciudad) {
this.ciudad = ciudad;
}
}

0 comments on commit 588ecd8

Please sign in to comment.