This content has been marked as final.
Show 2 replies
-
1. Re: How to check this rendered condition
nickarls Mar 26, 2008 1:37 PM (in response to thiagu.m)put a
public boolean isNewRelease() { // logic here }
in the entity and use
rendered="#{item.newRelease}"
-
2. Re: How to check this rendered condition
barbacena Mar 26, 2008 2:22 PM (in response to thiagu.m)If you don't want this method in the entity, but in a business related object, then you can use the advanced Seam EL.
Name("businessRelated") public class BusinessRelatedObject { public boolean isNewRelease(Product p) { return ... ; } }
In your view:
rendered="#{businessRelated.isNewRelease(product)}"
Cy