I want JSF error messages in pop up window instead of inline. It seems there is no easy way in JSF so using primefaces growl component.https://www.primefaces.org/showcase/ui/message/growl.xhtml
But getting this error: Target Unreachable, identifier 'growlT' resolved to null
Managed Bean
import javax.faces.bean.SessionScoped;
@SessionScoped
@ManagedBean(name="growlT")
public class GrowlView {
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
XHTML:
<table>
<tbody>
<tr>
<td align="left">Message:</td>
<td style="width: 5px"> </td>
<td><h:inputText styleClass="inputText" id="message1"
value="#{growlT.message}">
</h:inputText>
</td>
</tr>
</tbody>
</table>
<h:commandButton styleClass="commandButton" type="submit"
value="Submit" id="growlT1" actionListener="#{growlT.saveMessage}" update="growl">
</h:commandButton>
Could anybody help me out?