I have an xPages application that uses the one ui application layout. I have a custom control with a navigator and several different tree nodes.
I have some code to render or not based on a value from one of my beans. It works great for my basic leaf node but when I use the same code in a basic container node I get an error saying that aPropertyProfile is null. The bean is loaded just fine in the parent xPage and the rendered code of the basic leaf node works fine. I suspect this has to do with csjs vs. ssjs but when adding the computed render code for the basic container node it says Javascript ( ServerSide ).
Any thoughts why this isn't working?
<xe:basicContainerNode label="Register for e-Statements" submitValue="RegisterForEstatements" enabled="true">
<xe:this.rendered><![CDATA[#{javascript:if( aPropertyProfile.getStatementCoupon_1().equalsIgnoreCase( "Statements" ) )
return true;
else
return false;}]]>
</xe:this.rendered>
</xe:basicContainerNode>
<xe:basicLeafNode label="Register for e-Statements" onClick="linkToEstatementsSignup();">
<xe:this.rendered><![CDATA[#{javascript:
if( aPropertyProfile.getStatementCoupon_1().equalsIgnoreCase( "Statements" ) )
return true;
else
return false;
}]]></xe:this.rendered>
</xe:basicLeafNode>