Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 123  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Can I add html to a jsf h:message with a custom component?
  2. <h:inputText id="input1" binding="#{input1}" value="#{bean.input1}" />
  3. <ui:param name="input1Messages" value="#{facesContext.messageList(input1.clientId)}" />
  4. <h:panelGroup rendered="#{not empty input1Messages}">
  5.     <h3>Some header</h3>
  6.     <p><h:outputText value="#{input1Messages[0].summary}" escape="false" /></p>
  7.     <p>Some footer</p>
  8. </h:panelGroup>