Output text does not display..

<h:outputText styleClass="greenBoldText" value="#{messageController.message}"/>

This output text's value is from a Java Controller. There are no errors or exceptions thrown but unfortunately for me the message does not display.. I know that I am able to populate the message variable.. And the message controller is a managed bean in my faces-config file

here's my code snippet for the Java Controller

private String message="";

public String getMessage(){

return message;

}

publicvoid setMessage(String message){

ApplicationResources application = (ApplicationResources) FacesUtil.instance().getApplicationMapValue(FacesContext.getCurrentInstance(),"applicationRes");

log.debug("application:" +application);

log.debug("message="+message);

message = (String)application.getMessageProps().getProperty("1");

log.debug("message="+message);

if(message.equalsIgnoreCase("saveToDatabaseSuccess")){

message="Supplier Successfully Saved to Database!";

log.debug(message);

}

elseif(message=="saveToDatabaseFailure"){

message="Error in Saving. Please Contact System Administrator";

}

elseif(message=="saveParentCatSuccess"){

message="Parent Category Saved!";

}

elseif(message=="saveChildCatSuccess"){

message="Child Category Saved!";

}

elseif(message=="blank"){

message="";

}

else{

message="Error in system!";

log.debug("Error in system");

}

this.message = message;

}

now here's my code snippet for the faces-config

<managed-bean>

<managed-bean-name>messageController</managed-bean-name>

<managed-bean-class>com.shipserv.webui.controllers.MessageController</managed-bean-class>

<managed-bean-scope>request</managed-bean-scope>

</managed-bean>

can someone please tell me what's wrong? thanks in advance!

-ArchBytes-

[3444 byte] By [Arch_Bytesa] at [2007-11-27 7:39:06]
# 1
Your messageController bean is a request scope bean. So something must be calling setMessage() during the same request or the message property will have the default value "".
RaymondDeCampoa at 2007-7-12 19:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
ok.. so i tried looking for which request is the live one, unfortunately i could not find it. So tried changing the scope to session but it still displays nothing.
Arch_Bytesa at 2007-7-12 19:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
> ok.. so i tried looking for which request is the live> one, unfortunately i could not find it. So tried> changing the scope to session but it still displays> nothing.Same problem applies to a session scope bean if nothing ever calls setMessage().
RaymondDeCampoa at 2007-7-12 19:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
but i did call it... infact i checked if it was set using the log.debug method for jboss and it has a value..
Arch_Bytesa at 2007-7-12 19:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
I suggest posting more of your code in that case.
RaymondDeCampoa at 2007-7-12 19:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...