[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread Andre1001
Solved. I've put required="true" in selectOneMenu tags.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971335
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread Andre1001
Thanks for your answers. I've tried out with  tag, but got 
another error. Now, even create method isn't working:


  | @Begin(join = true)
  | //@IfInvalid(outcome = Outcome.REDISPLAY)
  | public String create() {
  | if (entityManager.find(Equipesimac.class, 
instance.getCodigoEquipe()) != null) {
  | FacesContext.getCurrentInstance().addMessage(
  | null,
  | new 
FacesMessage(messages.get("Equipesimac_codigoEquipe")
  | + " " + 
messages.get("AlreadyExists")));
  | return null;
  | }
  | entityManager.persist(instance);
  | isNew = false;
  | refreshFinder();
  | return "editEquipesimac";
  | }
  | 
  | //@IfInvalid(outcome = Outcome.REDISPLAY)
  | public String update() {
  | refreshFinder();
  | return null;
  | }
  | 
  | 

   
  |
  |
  |  
  |  
  |
  |
  |  
  |  
  | 
  |   
  |   
  |   
  |   
  | 
  |   
  |   
  |   
  |  
  | 
  |   
  |   
  |   
  |   
  | 
  |
  |
  |  
  |  
  | 
  |   
  |   
  |   
  |   
  | 
  | 
  |
  |
  |  
  |  
  |
  | 
  | 

11:00:27,185 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _id2:_id49
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.faces.el.EvaluationException: Exception while invoking 
expression #{equipesimacEditor.create}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 27 more
  | Caused by: javax.ejb.EJBTransactionRolledbackException: 
o

[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread denis-karpov
Yes. I mean exactly this. But this situation can arise not only in the ?source 
tag case?.

anonymous wrote : I work around it by specifying the entity.property as a 
string as well as a value binding for my source tags 
Hmm. Interesting. Is it works??? I have tried your way, but no success. What 
does it mean FOR="entity.property"?

Have you created your own s:valivate that processes for attribute?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971256
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread petemuir
No, he means source tag files such as


  | 
  |
  | 
  | 

my.input.xhtml

  |   
  |   
  |   
  | 

The consensus seems to be that this a limitation in EL that should be fixed.  I 
work around it by specifying the entity.property as a string as well as a value 
binding for my source tags


  | 
  |
  | 
  | 

my.input.xhtml

  | 
  |   
  |   
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread bfo81
@denis-karpov:

You mean, something like this does fail?:

template (common stuff like the form or action buttons)

  | 
  | 
  | 
  | <... save, delete and cancel button >
  | 
  | 
  | 

concrete input fields

  | 
  | 
  | 
  | 
  | 

I can only say that this works perfectly for me. I just tested it with an 
org.hibernate.validator.Pattern annotation on an Entity bean. And the annotated 
property is correctly marked as invalid during process_validations phase :).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971222
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread denis-karpov
Unfortunaly we can not use hibernate validation, because it raises exception, 
as you already experienced.

s:validate or s:validateAll  works, BUT with restriction. It does not work with 
facelets templating. For me facelets templating is very important to sacrifice.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971209
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread petemuir
@IfInvalid is deprecated, you should use s:validate or s:validateAll from the 
Seam JSF tag library instead.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971197
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user