JSF / spring trouble

A

alexjaquet

Hi,

I've a trouble with spring / jsf, when spring tryed to setup the
service I needed in my Gui class:

private MessageService messageService;

public void setMessageService(MessageService messageService) {
this.messageService = messageService;
}
the parameter messageService is null.

I've looked if it's a configuration error in my faces.xml :

<managed-bean>
<managed-bean-name>messageGui</managed-bean-name>
<managed-bean-class>com.test.gui.MessageGUI</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>messageService</property-name>
<property-class>com.test.business.MessageServiceImp</property-class>
<value>#{messageService}</value>
</managed-property>
</managed-bean>

but doesn't found something relevant I'm a complete newbie to spring
jsf ...

thx for your advice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top