dear all staff and colleagures
I have a nice exmple using struts tiles on jsf example.
I do not use the faces-context.xml for navigation but instead one simple java code.
all is fine except one bug of displaying the h:messages added to the context.
my simple code
MessageFactory mf = new MessageFactory();
FacesContext ctx = FacesContext.getCurrentInstance();
ctx.addMessage(“registerForm:userName”,
new FacesMessage(FacesMessage.SEVERITY_ERROR, mf.getMessage(“errorUsername”), null));
Application application = ctx.getApplication( );
ViewHandler viewHandler = application.getViewHandler( ); UIViewRoot view = viewHandler.createView(ctx, “/register/register.jsp”); ctx.setViewRoot(view);
// now here I should get the register.jsp to display the added messages once visited.
instead I get those messages displayed on the console why?
I can send the application for recorrection by a jsf team.
Iuse myeclipse, JBoss, jsf 1.2
many thanks