MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
amir55
Post subject: jsf messages have not been displayed urgent please  PostPosted: Apr 24, 2010 - 09:38 PM
Registered Member
Registered Member


Joined: Oct 15, 2005
Posts: 208

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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits