Package org.primefaces.context

Examples of org.primefaces.context.RequestContext.execute()


                if (visit.getLoginVisitante().equals(v.getLoginVisitante())) {
                    visit.setEmAtendimento(true);
                    break;
                }
            }
            requestContext.execute("abrirJanelaBatePapo('" + uid + "','" + v.getLoginVisitante() + "')");

        } catch (Exception ex) {
            tratamentoException.tratar(ex);
        }
    }
View Full Code Here


                        sb.append(",");
                }
            }
            sb.append("}});");
           
            requestContext.execute(sb.toString());
            sb.setLength(0);
        }
        else {
            base.handleNavigation(context, fromAction, outcome);
        }
View Full Code Here

        if(outcome != null && outcome.startsWith("pm:")) {
            String command = MobileUtils.buildNavigation(outcome);

            RequestContext requestContext = RequestContext.getCurrentInstance();
            if(requestContext != null) {
                requestContext.execute(command.toString());
            }
        }
        else {
            base.handleNavigation(context, fromAction, outcome);
        }
View Full Code Here

    @PostConstruct 
    public void habilitarExcluir(){
        RequestContext requestContext = RequestContext.getCurrentInstance();
        if(!selectedModeracoes.isEmpty()){
            disabledBtnExcluirModeracao=false;           
            requestContext.execute("enabledBtnExcluir()");
        }else{
            disabledBtnExcluirModeracao=true;
            requestContext.execute("disabledBtnExcluir()");
        }
    }
View Full Code Here

        if(!selectedModeracoes.isEmpty()){
            disabledBtnExcluirModeracao=false;           
            requestContext.execute("enabledBtnExcluir()");
        }else{
            disabledBtnExcluirModeracao=true;
            requestContext.execute("disabledBtnExcluir()");
        }
    }
   
    public void desabilitarExcluir(){
        disabledBtnExcluirModeracao=true;
View Full Code Here

    log();
    em.merge(selectedEmployee);
    FacesContext context =  FacesContext.getCurrentInstance();
    context.addMessage(null, new FacesMessage("Saved!"));
    RequestContext request = RequestContext.getCurrentInstance();
    request.execute("employeeDialog.hide()");
    log.info("RESET CALLED by persist");

    reset();
   
    return findAll();
View Full Code Here

  public String persist() {
    productEvent.fire(em.merge(selectedProduct));
    FacesContext context =  FacesContext.getCurrentInstance();
    context.addMessage(null, new FacesMessage("Saved!"));
    RequestContext request = RequestContext.getCurrentInstance();
    request.execute("productDialog.hide()");
   
    reset();
   
    return null;
  }
View Full Code Here

  public String persist() {
    String message = "Saved!";
    bicycleService.save(selectedBike);
   
    RequestContext context = RequestContext.getCurrentInstance();
    context.execute("bikeEditor.hide()");
   
    FacesMessage facesMessage = new FacesMessage(message);
    FacesContext.getCurrentInstance().addMessage(null, facesMessage);
   
    reset();
View Full Code Here

    em.merge(selectedAirport);
   
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, new FacesMessage("saved"));
    RequestContext request = RequestContext.getCurrentInstance();
    request.execute("airportDialog.hide()");
   
    return null;
  }
 
  public void onClose(CloseEvent e){
View Full Code Here

    em.merge(selectedTicketClass);
   
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, new FacesMessage("saved"));
    RequestContext request = RequestContext.getCurrentInstance();
    request.execute("ticketClassDialog.hide()");
   
    return null;
  }
 
  public void onClose(CloseEvent e){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.