I would do this using your example object

public class ExampleFoo extends Foo {
  |    private boolean showClosedObject;
  |    // getters and setters
  | 
  |    public Date getDate() {
  |       if (showClosedObject) {
  |          return super.getDate();
  |       } else {
  |          return null;
  |    }
  | }

then, your restriction will only be applied if your checkbox is checked.  The 
restriction could just be closedDate < Now()

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039429
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to