cancel
Showing results for 
Search instead for 
Did you mean: 

How to know that the space has no child space ?

vpoorboy
Champ in-the-making
Champ in-the-making
Hi,
In browse.jsp, I put an evaluator for my test

<a:booleanEvaluator value="#{BrowseBean.nodes == null}">
<hSmiley SurprisedutputText value="Hello"/>
</a:booleanEvaluator>

But this has no effect. Can somebody show me how to know that the current space "has no "/has child space ? And how to know that it "has no"/has file(s) (content) ?

It's urgent, pls help !
Thanks !
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Try the following instead:


<a:booleanEvaluator value="#{empty BrowseBean.nodes}">
   <h:outputText value="Hello"/>
</a:booleanEvaluator>

vpoorboy
Champ in-the-making
Champ in-the-making
Thank you, Gavinc !
I see that we can use another way
<a:booleanEvaluator value="#{BrowseBean.nodes[0] == null}">