I understand what is supposed to happen.  I'm not sure why (1) is not 
happening.  I don't see a @Invalid annotation. 


The action method being called is defined as


  |     @IfInvalid(outcome = Outcome.REDISPLAY)
  |     public String update() {
  |             refreshFinder();
  |             return null;
  |     }
  | 

And was generated by Hibernate Tools.  

Like I said, I understand what is supposed to happen (both UI and DB 
validation) but not why UI validation is not happening.  

Oddly, it seems to be working fine on the create method.  Just not the update.

Below is the create method:


  |     @Begin(join = true)
  |     @IfInvalid(outcome = Outcome.REDISPLAY)
  |     public String create() {
  |             if (entityManager.find(RegionGroup.class, 
instance.getRegiongroupid()) != null) {
  |                     FacesContext.getCurrentInstance().addMessage(
  |                                     null,
  |                                     new FacesMessage(resourceBundle
  |                                                     
.getString("RegionGroup_regiongroupid")
  |                                                     + " " + 
resourceBundle.getString("AlreadyExists")));
  |                     return null;
  |             }
  |             entityManager.persist(instance);
  |             isNew = false;
  |             refreshFinder();
  |             return "editRegionGroup";
  |     }

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to