Line break in <p:confirm> Primefaces message

Asked

Viewed 1,315 times

0

I am unable to implement the break line in the following code:

<p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do Candidato? O reenvio no período de 6 meses poderá haver uma nova cobranca!"> </p:confirm>

I need the text that’s after the interrogation to be displayed on the bottom line. I’ve tried to use \n and it didn’t work. You’re not allowed to use <br>.

1 answer

1


Do the following:

<p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status"/>

<p:confirmDialog header="Confirmação">
    <f:facet name="message">
        <p:outputText value="Tem certeza que deseja alterar a Situação do Candidato?"/><br/>
        <p:outputText value="O reenvio no período de 6 meses poderá haver uma nova cobranca!"/>
    </f:facet>
</p:confirmDialog>
  • Rafael, in isolation it works (just change the tag lib <p:outputText> to <h:outputText>, but in my case I use a <p:confirmDialog> global. But thanks, because it works but is not yet the solution.

Browser other questions tagged

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