[jboss-user] [JBoss Seam] - Re: How to initialize List of custom object by means of comp
Jump
do-not-reply at jboss.com
Thu Oct 4 05:30:46 EDT 2007
I've changed List<ProcessDefinition> to ProcessDefinition[] and finally got an exception! :)
anonymous wrote :
| Caused by: java.lang.IllegalArgumentException: No converter for type: [Lmy.ProcessDefinition;
| at org.jboss.seam.util.Conversions.getConverter(Conversions.java:55)
| at org.jboss.seam.Component$ConstantInitialValue.(Component.java:2029)
| at org.jboss.seam.Component.getInitialValue(Component.java:449)
| at org.jboss.seam.Component.getTopInitialValue(Component.java:429)
| at org.jboss.seam.Component.initInitializers(Component.java:407)
| at org.jboss.seam.Component.(Component.java:263)
| at org.jboss.seam.Component.(Component.java:203)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:851)
|
now my toolbar looks like
| @Local
| public interface Toolbar {
|
| public ProcessDefinition[] getAvailableProcesses();
| public void setAvailableProcesses(ProcessDefinition[] availableProcesses);
| public void create();
| public void destroy();
|
| }
|
| @Stateful
| @Name("toolbarImpl")
| @Scope(ScopeType.SESSION)
| public class ToolbarImpl implements Toolbar {
|
| private ProcessDefinition[] availableProcesses = null;
|
|
| @DataModel
| public ProcessDefinition[] getAvailableProcesses() {
| return availableProcesses;
| }
|
| public void setAvailableProcesses(ProcessDefinition[] processes) {
| availableProcesses = processes;
| }
|
| @Create
| public void create() {
|
| }
|
| @Destroy @Remove
| public void destroy() {
|
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091424#4091424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091424
More information about the jboss-user
mailing list