[JBoss Seam] - static checking of components?
by cja987
It's nice that there's more than one way to create and name components in seam, but it certainly takes some discipline on the part of the programmer to organize them thoughtfully, and minor slips in naming result in null values getting injected. This is easy to catch when not using required=false or create=true, but it can be maddening otherwise. Every time I misspell a component name or forget some file when I've renamed it, I curse a little that I couldn't catch it until runtime. It's like the terse expressiveness of Java with the rigor and safety of python :p
Is it possible or feasable for there to be a way for the scanner to check uses of @In to ensure that there is a matching @Out, @Name, @Role or declaration in components.xml? Scanning all injections at startup time would be pretty expensive, but could still be an option for a development environment.
Adding something to JBossIDE to check seam annotations and add the appropriate squiggly lines would also be quite nifty with or without any of the other suggestions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025635#4025635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025635
19Â years, 1Â month
[JBoss Seam] - Re: How can I pass parameters to action methods
by spambob
Sorry to jump in here but I actually had the same problem!
"christian.bauer(a)jboss.com" wrote : ...And the last and best way is to put it into the conversation context in the first request, name the context variable in the action method as a parameter, and let Seam look it up from the conversation context in the second request. This is really what Seam is about.
As far as I understood it he has a list as a context variable and wants to pass the id of an object contained in the list as action method parameter.
So the list is within conversation context but JSF doesn't resolve the id to some string that is therefore null but it would work if he would write "listingSearch.next(3) - in case page.globalListingId would be 3.
So is there any way to force JSF to resolve "page.globalListingId" to a string (assuming it is an Integer, String, ... - anything that can be cast to string without problems)?
I would greatly appreciate any hints / 2 line examples because this has been some pain for me too.
Thanks a lot in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025630#4025630
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025630
19Â years, 1Â month