[jboss-user] [JBoss Seam] - Problem with entityconverter

dustismo do-not-reply at jboss.com
Thu Mar 15 19:28:10 EDT 2007


Hi,

I am using seam from CVS.  I am having a random problem with convertEntity.
Everything seems to work fine except when try to select options which have been assigned a value of zero, then it throws 


  | 16:17:40,211 ERROR [ExceptionFilter] uncaught exception
  | javax.servlet.ServletException: Unknown entity: net.infofilter.model.MenuBarType_$$_javassist_73
  | 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | 	at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | 

The generated html is (notice the selected option has a value of 0, thus if I don't change it it throws an exception)


  | <select id="menuBar:menuBarType" name="menuBar:menuBarType" size="1" onchange="A4J.AJAX.Submit('_viewRoot','menuBar',event,{'parameters':{'menuBar:_id49':'menuBar:_id49'},'actionUrl':'/MenuBarEdit.seam'})">	<option value="12">user admin</option>	
  | <option value="1">Util Nav</option>	
  | <option value="0" selected="selected">watch group</option>
  | </select>
  | 


And in case it helps, here is the page markup:


  | <h:selectOneMenu value="#{menuBarHome.instance.menuBarType}"
  | 							id="menuBarType">
  | 							<s:selectItems value="#{menuBarHome.menuBarTypes}" 
  | 								var="item"
  | 								label="#{item.name}"
  | 								noSelectionLabel="--- Choose MenuBarType ---"
  | 								hideNoSelectionLabel="true"
  | 								/>
  | 							<s:convertEntity />
  | 							<a:support event="onchange" reRender="parentId"/>
  | 						</h:selectOneMenu>
  | 

Thanks for any help,
Dustin

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

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



More information about the jboss-user mailing list