Yes, the booleans get everyone.  I seem to remember ${b.nonExist} silently 
evaluating to false, so it's probably a carry over from JSP EL.

Dennis Byrne

>-----Original Message-----
>From: Rick [mailto:[EMAIL PROTECTED]
>Sent: Monday, July 3, 2006 04:17 PM
>To: ''MyFaces Discussion''
>Subject: RE: Tree Table support, it does not seem to handle the rendered     
>attribute correctly
>
>Thanks!
>
>Ouch. This is where pair programming could have saved an embarrassing
>moment.
>
>I am working on two projects. One has contacts and one has contracts...
>After awhile they start looking the same.... 
>
>
>
>-----Original Message-----
>From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
>Sent: Monday, July 03, 2006 12:36 PM
>To: MyFaces Discussion
>Subject: Re: Tree Table support, it does not seem to handle the rendered
>attribute correctly
>
>You have it spelled emergencyContractHandler, but it is spelled
>emergencyContactHandler elsewhere in the bean :)  
>
>Usually this throws an exception, but because boolean exprs default to
>false, it doesn't :(
>
>Dennis Byrne
>
>>-----Original Message-----
>>From: Rick [mailto:[EMAIL PROTECTED]
>>Sent: Monday, July 3, 2006 03:31 PM
>>To: ''MyFaces Discussion''
>>Subject: Tree Table support, it does not seem to handle the rendered
>attribute correctly
>>
>> 
>>
>>I have a tree table that I only want to display if direct is true.
>>
>> 
>>
>>The direct flag is a property of the backing bean and is used as follows:
>>
>> 
>>
>> 
>>
>>                        <table jsfc="t:tree" id="treeRollup" var="employee"
>>
>>
>model="#{emergencyContactHandler.treeModel}"
>>
>> 
>>value="#{emergencyContactHandler.treeModel}"
>>
>>                                    rowClasses="oddRow, evenRow"
>>
>>                                    nodeClass="nodeClass"
>>
>>                                    columnClasses="col1, col2, col3, col4"
>>
>>                                    iconNodeOpen="/images/nodrill2.gif"
>>
>>                                    iconNodeClose="/images/drill2.gif"
>>
>> 
>>rendered="#{emergencyContractHandler.direct}"
>>
>>                                    >
>>
>> 
>>
>> 
>>
>>I put a breakpoint in the isDirect method and it seems to never get called 
>>
>> 
>>
>>If I remove,
>>
>> 
>>
>>rendered="#{emergencyContractHandler.direct}"
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>Then the tree display, otherwise it will never display.
>>
>> 
>>
>> 
>>
>>Has anyone run into this before?
>>
>> 
>>
>> 
>>
>>(The above is using facelets)
>>
>>
>
>
>
>
>


Reply via email to