[jboss-user] [JBoss Seam] - Re: problem with 1.2.1 / tomcat upgrade

jcruise do-not-reply at jboss.com
Wed May 16 05:16:10 EDT 2007

So here's the line that's causing the failure in the ELSupport class:

  |         if (obj != null && type.isAssignableFrom(obj.getClass())) {
  |             return obj;
  |         }

My JSF code looks like this:

  | 			<h:selectOneMenu id="zone" value="#{_zone}" converter="Zone">
  | 				<f:selectItems value="#{_zones}" />
  | 			</h:selectOneMenu>

where zones is created using:

  | 	@SelectItems(value = "_zones", labelMethod = "getLabel", valueStrategy = Strategy.OBJECT)
  | 	public List<Zone> getZones() {
  | 		return zones;
  | 	}

So basically the values are a bunch of Zone POJOs. 

And therefore I guess that the problem is that a Zone POJO is not assignable to a Zone seam component. This worked when seam components were using cglib for proxying but I guess Javassist has fixed that mistake ;)

What is the correct strategy here?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046051#4046051

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046051

More information about the jboss-user mailing list