Hello Denis,
Could you please tell me what the difference between using your way of
implementing SelectItems, the Custom Annotations way and simply using tomahawk
to implement SelectItems.
Cheers,
Yogesh
View the original post :
Hello Denis,
I had declared getModel() in the interface.I could only get your code to
work by doing the following changes:
|
| public MapString,Object model = new TreeMapString,Object();
|
| // Instead of public MapString,Object model;
|
|
|
Do not call fillMaps(); in a getter. I think it will solve all of your problems.
Good place to call it in the factory method or like that.
Then, I think you misunderstand this line
model.put((Empty),-1); // Add EMPTY element if needed
It is EMPTY element. It is needed to
Hello Denis,
I am trying to get your example of implementing SelectItems without custom
annotations. I have included the the following code in my SFSB.
|
|
|
| @Stateful
| @Name(companySearch)
| @Scope(ScopeType.SESSION)
| @Interceptors(SeamInterceptor.class)
|
|
I guess you forgot to declare getter getModel()
in your CompanySearch interface.
public abstract MapString,Object getModel();
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973567#3973567
Reply to the post :
http://wiki.jboss.org/wiki/Wiki.jsp?page=SelectItems
Just added. This one is interesting that it is direct usage without custom
annotations.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3970921#3970921
Reply to the post :
Take a look at the Seam wiki. There are a couple third-party selectItems
DataBinders there. These will let you take a list returned from your DB and
use it within your JSF menu.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3970806#3970806
Reply to the post