[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3118) Unclear ItemValidator example in reference (31.2)
by Richard Richter (JIRA)
Unclear ItemValidator example in reference (31.2)
-------------------------------------------------
Key: JBSEAM-3118
URL: http://jira.jboss.com/jira/browse/JBSEAM-3118
Project: Seam
Issue Type: Bug
Components: Documentation Issues
Affects Versions: 2.1.0.A1
Reporter: Richard Richter
In section 31.2 of Seam reference (2.1 version) there is an example which is not very clear:
@Name("itemValidator")
@BypassInterceptors
@Validator
public class ItemValidator implements Validator {
public void validate(FacesContext context, UIComponent cmp, Object value)
throws ValidatorException {
ItemController ItemController = (ItemController) Component.getInstance("itemController");
return itemController.validate(value);
}
}
First thing is that if you accept one import for Validator, the other usage of that type is broken - there are both Hibernate Validator annotation and JSF Validator interface used (I'd use FQN for this one probably). Other thing is that there is return of something for void method. Example is rather confusing as it is now.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3137) Numberguess example throws NoClassDefFoundError: org/richfaces/webapp/taglib/UIComponentELTagBase
by Stan Silvert (JIRA)
Numberguess example throws NoClassDefFoundError: org/richfaces/webapp/taglib/UIComponentELTagBase
-------------------------------------------------------------------------------------------------
Key: JBSEAM-3137
URL: http://jira.jboss.com/jira/browse/JBSEAM-3137
Project: Seam
Issue Type: Bug
Components: Examples
Affects Versions: 2.1.0.BETA1
Reporter: Stan Silvert
If I run the trunk version of numberguess, I get:
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/richfaces/webapp/taglib/UIComponentELTagBase
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I'm looking through the code and I noticed that org.jboss.seam.ui.util.cdk.UIComponentTagBase extends the RichFaces UIComponentELTagBase. I assume that is the problem? I assume you don't want Seam to be dependent on RichFaces?
Also, Seam's UIComponentTagBase is marked as @deprecated.
So I'm not sure how to proceed. I could add the RichFaces jar to numberguess, but that's probably not the correct fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months