[jboss-user] [JBoss Seam] - Re: @Future being ignored

tony.herstell@gmail.com do-not-reply at jboss.com
Tue May 8 18:20:49 EDT 2007


Yes, actually that's correct I did disable my Validate all  (I forgot!!).

HOWEVER if I put it back on I get:

SEVERE: Error Rendering View[/pages/advertisingCampaign/wizard.xhtml]
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum
	at org.jboss.seam.ui.EnumConverter.getAsString(EnumConverter.java:28)
	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:544)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlRadioRendererBase.encodeEnd(HtmlRadioRendererBase.java:93)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
	at org.jboss.seam.ui.JSF.renderChild(JSF.java:180)
	at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
	at org.jboss.seam.ui.UIFragment.encodeChildren(UIFragment.java:29)
	at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)

I have a "mother of all pages" wizard..
it has a side bar that has 8 steps on it.
I allow the user to go to any step at any time and jump in between them.
This means I have end up pulling in over 27 .xhtml files for the page!! and it has two nested templates to boot!

Anyhow, 

This bit works fine without validateAll

  | <td align="left">
  | 	<table>
  | 		<tr>
  | 			<td>
  | 				<h:selectOneRadio id="advertType" required="true"
  | 			value="#{adTypeStepController.workingObject.type}" layout="pageDirection">
  | 					<s:selectItems value="#{adTypeStepController.workingObject.advertTypes}"
  | 						var="advertType" label="#{messages[advertType.label]}" />
  | 					<s:convertEnum />
  | 				</h:selectOneRadio>
  | 			</td>
  | 		</tr>
  | 	</table>
  | </td>
  | 

and fails with validateAll turned on.

:/

same code works elsewhere... so its a nasty bug hunt.

Sorry for wasting your time.


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

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



More information about the jboss-user mailing list