[jboss-user] [JBoss Seam] - s:validateAll throwing

javabr do-not-reply at jboss.com
Sun May 20 20:17:54 EDT 2007


Guys,

I just moved to jboss 4.2.0 GA w/ seam cvs. Could you please help me get out on it ?

After solve some javascript problems adding on f:view the contentType="text/html" I am facing a new problem: (it was working on 4.0.2 and seam 1.2.0GA)

The "component has no value attribute: .." message rises in a selectOneMenu like this:


<h:outputLabel for="workspace">
                        #{messages['labels.taskEdit.workspace']}
                        *
				</h:outputLabel>
				<s:decorate id="workspaceDecoration">
					<h:selectOneMenu value="#{taskHome.instance.workspace}"
						id="workspace" converter="workspaceConverter" immediate="true"
						onchange="this.form.submit();" disabled="#{taskHome.managed}"
						valueChangeListener="#{taskHome.workspaceChanged}">
						<f:selectItem itemValue="" itemLabel="" id="workspacenullitem" />
						<f:selectItems value="#{workspaceList.allFromLoggedActor}" />
					</h:selectOneMenu>
				</s:decorate>



my workspaceConverter:


public class WorkspaceConverter implements Converter {

    /** Creates a new instance  */
    public WorkspaceConverter() {
    }

    public Object getAsObject(FacesContext facesContext, UIComponent uIComponent, String string) throws ConverterException {
        if (string == null || string.equals("")) {
            return null;
        }
        Workspace vo = ((EntityManager) Component.getInstance("entityManager")).find(Workspace.class, Integer.valueOf(string));
        return vo;
    }

    public String getAsString(FacesContext facesContext, UIComponent uIComponent, Object object) throws ConverterException {
        if (object == null || object.equals("")) {
            return (String) object;
        }
        return String.valueOf(((Workspace) object).getId());
    }



what I am doing wrong?

1) this same error happens in other parts in my system (I have used this selectonemenus + this same king of converter everywhere
2) I am getting no errors on jboss start.


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

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



More information about the jboss-user mailing list