Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <p:commandButton value="GO" action="#{indexBB.clickSearchButton}" />
  2.  
  3. public String clickSearchButton() {
  4. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
  5. FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("dateini", dateFormat.format(dateIni));
  6. return "B?faces-redirect=true";
  7. }
  8.  
  9. @PostConstruct
  10. public void init() {
  11. Map<String,Object> parameterMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
  12. if(parameterMap.get("dateini") != null ){
  13. //assign the value
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement