[jboss-user] [JBoss Seam] - SFSB and Hibernate Validator -

gersonk do-not-reply at jboss.com
Wed Sep 12 20:41:51 EDT 2007


Hi,

I'm using jboss-seam-CVS.2007-09-03_13-05-07 (after fixing ) but the Hibernate Validator is not working.

I tried this:



  | @Name("someService")
  | @Stateful()
  | public class SomeService implements ISomeService{
  |     @Pattern(regex=RegEx.XYZ, message="some message") 
  |     @In()
  |     private String searchIdString;
  |     public String getSearchIdString() { return searchIdString; }
  |     public void setSearchIdString(String searchIdString) {   
  |          this.searchIdString = searchIdString; 
  |     }
  |  ...
  | }
  | 
  | 

the page:


  | ...
  |     <a4j:form ajaxSubmit="true" reRender="searchResult">
  |     <s:validateAll>
  |         <h:inputText id="id" value="#{searchIdString}">
  |         </h:inputText>
  | 
  |         ...
  | 
  |     </s:validateAll>
  |     </a4j:form>
  | ...
  | 

What's wrong?

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

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



More information about the jboss-user mailing list