[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...

Christian Bauer christian at hibernate.org
Wed Jan 9 16:04:18 EST 2008


  User: cbauer  
  Date: 08/01/09 16:04:18

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/model 
                        FeedEntry.java
  Log:
  JBSEAM-2477 - Only/no comments displayed on feeds
  
  Revision  Changes    Path
  1.16      +14 -0     jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FeedEntry.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- FeedEntry.java	30 Dec 2007 02:33:22 -0000	1.15
  +++ FeedEntry.java	9 Jan 2008 21:04:18 -0000	1.16
  @@ -143,6 +143,20 @@
           return false; // Can't be tagged
       }
   
  +    // Need this for JSF EL expressions
  +    public boolean isInstance(String className) {
  +        try {
  +            Class clazz = Class.forName(getClass().getPackage().getName() + "." + className);
  +            return isInstance(clazz);
  +        } catch (Exception ex) {
  +            throw new RuntimeException(ex);
  +        }
  +    }
  +
  +    public boolean isInstance(Class clazz) {
  +        return clazz.isAssignableFrom(this.getClass());
  +    }
  +
       // Sort by date
       public int compareTo(Object o) {
           FeedEntry other = (FeedEntry)o;
  
  
  



More information about the jboss-cvs-commits mailing list