problema com rich editor (2 posts)

Topic tags: Editor, onchange
  • Profile picture of Daniel Lucchesi Araujo Daniel Lucchesi Araujo said 1 year, 5 months ago:

    Ola pessoal,

    Não sei se Isso pode ser ou não um Bug, já que não achei mais ninguem reclamando, mas…

    Tenho um rich:editor, mas utilizo o layout básico. Infelizmente não consigo capturar as mudanças inseridas pelo usuário, na hora de dar o update no banco, a string passada é a original que veio do banco.

    Pagina:

    Codigo (relevante):
    public void doUpdateDiag(){

    this.diagEdit = true;
    }
    public String updateClientInfo(ActionEvent ev){
    String ret = “error”;

    Integer iStatus = Integer.parseInt(this.selStatus);

    if((this.selClient != null && !this.selClient.startsWith(“Selecione”)) &&
    (this.selMounth != null && !this.selMounth.startsWith(“Selecione”))){
    if(this.control.updateClientInfo(this.selDate, this.selCodClient,
    iStatus, this.clientInfo.getDiag(), this.clientInfo.getPlan())){
    ret = “ok”;
    }
    }
    this.doClientInfo();
    this.diagEdit = false;

    return ret;
    }

    Não há como disparar o primeiro método. No debuag do segundo a string passada é a original.
    Se puderem me ajudar

  • Profile picture of Daniel Lucchesi Araujo Daniel Lucchesi Araujo said 1 year, 5 months ago:

    Pessoal, o problema foi resolvido adicionando a4j region

    Não me perguntem o porque, mas me parece que a tag isola a requisição do editor.

    Se alguem puder jogar uma luz nesta questão, é meu convidado, porque sinceramente foi na base de “chutometro” e problemas com componentes de terceiros que já tivemos aqui.

    Um abraço

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin