I have a stateful bean with a list of custom objects inside.
anonymous wrote :
| @Local
| public interface Toolbar {
|
| public List getAvailableProcesses();
| public void create();
| public void destroy();
|
| }
|
and implementation
anonymous wrote :
| @Stateful
| @Name("toolbarImpl")
| @Scope(ScopeType.SESSION)
| public class ToolbarImpl implements Toolbar {
|
| private List availableProcesses = new ArrayList();
|
|
| @DataModel
| public List getAvailableProcesses() {
| return availableProcesses;
| }
|
| public void setAvailableProcesses(List processes) {
| availableProcesses = processes;
| }
|
| @Create
| public void create() {
|
| }
|
| }
|
then I defined a schema in component_types.xsd
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
| <xs:schema
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
| elementFormDefault="qualified"
| targetNamespace="http://my"
| attributeFormDefault="unqualified">
|
| <xs:element name="toolbarImpl">
| <xs:complexType>
| <xs:sequence>
| <xs:element name="availableProcesses"
minOccurs="0" maxOccurs="unbounded"
type="processDefinition"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
|
| <xs:complexType name="processDefinition">
| <xs:attribute name="processName"/>
| <xs:attribute name="description"/>
| <xs:attribute name="processIcon"/>
| </xs:complexType>
|
| </xs:schema>
|
and included that schema in my components.xml
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
| <components
xmlns="http://jboss.com/products/seam/components"
| .........................
| xmlns:my="http://my" xsi:schemaLocation="
| ........................
|
http://my component_types.xsd ">
|
| ...................................
|
| <my:toolbarImpl>
| <my:availableProcesses>
| <my:processDefinition my:processName="enrolment"
| my:description="enrolment"
| my:processIcon="img/icons/Text_Document.png"/>
| </my:availableProcesses>
| </my:toolbarImpl>
|
|
|
So, I've got no errors and empty availableProcesses. Why?
P.S. Server log
anonymous wrote :
| 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class
annotation org.jboss.annotation.internal.DefaultInterceptorMarker to my.ToolbarImpl
org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@193b604
| 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class
annotation org.jboss.annotation.internal.DefaultInterceptorMarker to my.ToolbarImpl
org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@193b604
| 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3:
ejbName=ToolbarImpl, class=my.ToolbarImpl, type=STATEFUL
| 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared remote
bindings for : ToolbarImpl
|
anonymous wrote :
| 2007-10-03 18:58:20,843 DEBUG [org.jboss.ejb3.EJBContainer] Initialising interceptors
for ToolbarImpl...
| 2007-10-03 18:58:20,843 DEBUG [org.jboss.ejb3.EJBContainer] Default interceptors:
[InterceptorInfo{class=class org.jboss.seam.ejb.SeamInterceptor}]
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091112#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...