Calendar Primefaces losing style with ajax update

Asked

Viewed 112 times

0

The first faces Component is losing style after updating with ajax in the view. What do I do to solve?

1 answer

0

Solution to beat the bug by updating using ajax in the Calendar component in the view (.xhtml), in this case my "dataRevise" flag was being affected.

OBS: I AM USING, IN A MOBILE WAY, THE PRIMEFACES 5.3 !!!!

In the view, it was necessary to insert two attributes below in the "dataRelat".

  • style="border-width: 0px;"
  • styleClass="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"

Also, I inserted in my bean a code snippet in an event from another field related to the "dataRelat".

In my changeEventCampoQtdDiasVendidos method(Ajaxbehaviorevent Event) { }

    /*trecho do código para resolver o bug do update */
    org.primefaces.component.calendar.Calendar calendarDataRetorno = (org.primefaces.component.calendar.Calendar) FacesContext
            .getCurrentInstance().getViewRoot()
            .findComponent("formCadastro:dataRetorno");
    calendarDataRetorno.setStyle("border-width: 1;");
  • You tried to use update="?" by pointing only to a Legend?

  • In my case I used update="inputText1 inputText2 Calendar", but the error happens by putting only Calendar too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.