[jboss-user] [JBoss Seam] - null exception on @inject in ICEfaces PanelTabListener
gus888
do-not-reply at jboss.com
Tue Feb 27 22:20:46 EST 2007
Hi there,
I tried to inject a Seam session bean into panelTabListener, but I always got null value. The code is follows:@Name("tabListenerImpl")
| @Stateless
| public class TabListenerImpl implements TabChangeListener {
|
| @In (create=true, required=true)
| @Out (required=false)
| private ProjectFinder projectFinder;
|
| public void processTabChange(TabChangeEvent e) throws AbortProcessingException {
| int index = e.getNewTabIndex();
| if (index == 0)
| projectFinder.find();
| }
| }
The jsp code:<ice:panelTabSet selectedIndex="0" styleClass="myTab">
|
| <ice:panelTab id="tab1" label="Project">
| <ice:panelGroup id="Panel1">
| <f:subview id="re1">
| <ui:include src="/projects.xhtml" />
| </f:subview>
| </ice:panelGroup>
| </ice:panelTab>
| <ice:panelTab id="tab2" label="Tab 2">
| <ice:panelGroup id="Panel2">
| <f:subview id="re2">
| <h:outputText value="Tab 2" />
| </f:subview>
| </ice:panelGroup>
| </ice:panelTab>
| <ice:tabChangeListener type="icefaces.TabListenerImpl"/>
| </ice:panelTabSet>
I don't what is wrong with code, or some issues on ICEfaces+Seam. Anybody can give some direction? Thank you in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023443#4023443
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023443
More information about the jboss-user
mailing list