myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Strange issue with FacesMessage and t:dataTable
Date Thu, 22 Mar 2007 14:46:25 GMT
Sounds like a bug.   Can you create a minimal example that
demonstrates this problem and open a JIRA issue on it?

On 3/22/07, Pfau, Oliver <oliver.pfau@siemens.com> wrote:
> Hi,
>
> in my JSP are multiple FacesMessages with severity error and one with
> info rendered. Also there's a t:dataTable. If I use severity error, the
> content of the dataTable is not rendered correctly. All columns have the
> content of the first column. If I change the severity from error to e.
> g. warn, the table is rendered correctly. The model of the dataTable is
> always correct. The dataTable is rendered false, of severity is error or
> fatal. Very strange problem.
>
> I set the messages this way:
>
>
> public static void setErrorMessageToFacesContext(String strMsg)
> {
>         // dataTable rendered false
>         FacesMessage message = new
> FacesMessage(FacesMessage.SEVERITY_ERROR, strMsg, strMsg);
>       FacesContext.getCurrentInstance().addMessage(null, message);
> }
>
>
> public static void setErrorMessageToFacesContext(String strMsg)
> {
>         // dataTable rendered correct
>         FacesMessage message = new
> FacesMessage(FacesMessage.SEVERITY_WARN, strMsg, strMsg);
>       FacesContext.getCurrentInstance().addMessage(null, message);
> }
>
>
> Any idea ?
>
> Thanks
> Oliver
>

Mime
View raw message