[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-04 Thread CptnKirk
Do you really need a lot of converters? The @SelectItems binder does the conversion from whatever to SelectItem for you. I see you're using the Object strategy. The strategy works fine if you already have a lot of converters, but it wasn't my intention that you create additional converters

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-04 Thread supernovasoftware.com
This is what I am using now. Every Entity in my project has an id named id that is a Long. So all I have to do is add the interface Idable to the entity. There is no doubt a better way. With discussions like this we can find an optimal technique that everyone can easily use with minimal

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-03 Thread supernovasoftware.com
I teaked it a bit to make it a SFSB and pull a list of objects. For anyone else that tries this do not put valueMethod=??? if you change the value stragety to valueStrategy = SelectItems.Strategy.OBJECT. I thought for sure I needed this, but errors occur after you add the converter. It kept

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-03 Thread supernovasoftware.com
One more time. Than you Jim. I cleaned it up even more. I cannot believe how easy it is to use SelectItems now. Your code is really clear and easy to follow. I did have it working, but now it is cake. :-) :+) :~) | @Name(selector) | @Stateless |

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-03 Thread CptnKirk
I'm glad it's useful. If you put the following in your ejb-jar.xml you'll be able to remove the @Interceptors annotation from all of your components. That should clean up the code even more. | ejb-jar |assembly-descriptor | interceptor-binding | ejb-name*/ejb-name

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-03 Thread supernovasoftware.com
I was aware there was a way to remove that, but never looked into it. I was able to clean up over 75 SLSB an SFSB. Thx for the tip. What are your thoughts on a slick converter. I am using one that forces me to make my entites implement an interface. Not a big problem, but I am looking for a

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-02 Thread CptnKirk
Yes. Let me head on over to the wiki and find a place to post it. -Jim View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954928#3954928 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954928 Using Tomcat but need to do more?

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-02 Thread supernovasoftware.com
Thanks Captain. I will be looking for it. You really seem to know your shiz. Do you have any suggestion for a solution to the following unrelated problem? http://www.jboss.com/index.html?module=bbop=viewtopict=85986 View the original post :

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-02 Thread CptnKirk
The @SelectItems example can be found on the Wiki here. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSeam It doesn't currently support selection, you'll need to use JSF EL to bind selected values to your controller. This should help you get your drop down started though. -Jim View the

[JBoss-user] [JBoss Seam] - Re: @DataBinder and SelectItems Example

2006-07-02 Thread supernovasoftware.com
Thanks again Jim. I will look into it. Hopefully this type of functionality will be added to Seam sometime soon. Everyone needs dropdowns. :-} And using them should be a trivial matter. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954937#3954937 Reply to