Hey,

You're confused because this component:

> 255        <component id="pendingSiteContactId" type="Hidden" >
> 256        <binding name="value"
> value="businessCardListEntry.pendingSiteContactDTO.siteContact.siteContactId"
> />
> 257        </component>

is being rendered when it "can't possibly be", right?
So back up and re-evaluate your assumptions.

It can't possibly be rendering when null because you have @If components like:
> <span jwcid="@If" condition="isHavingPendingSiteContactDTO">

This is where we should all mourn the passing of Spindle. :-(
It would have warned you that you are giving each @If a literal
string for the condition, which will always be true.

You should have:
> <span jwcid="@If" 
condition="ognl:businessCardListEntry.isHavingPendingSiteContactDTO">

Or make the @If an explicit component in your .page file.
I'm not quit sure what you're trying to accomplish with the
@Insert components called "isHavingPendingSiteContactDTO" etc.

Cheers,
Nick.


jake123 wrote:
Hi,
I have a problem in one of my pages where I want to loop over a List of
CompApprovalSiteContactDTO object that contains two private members
(currentSiteContactDTO and pendingSiteContactDTO). In this class I also have
two extra boolean methods that returns true or false if I have the current
or pending object. My problem is that I got a
org.apache.tapestry.BindingException like this:

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to