The If component's test parameter is a boolean:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html

You need to make your accessor non-private:
    public boolean getLoginned() {
         return true;
     }

And the default binding is prop, so no funky OGNL-like stuff:
  <t:if test="loginned">
   </t:if>

Cheers,
Nick.


Angelo Chen wrote:
Hi,
how to use the component IF? I have this in the page class:
   private String getLoginned() {
        return "true";
    }

then I want to refer to it from the html:
<t:if test="${loginned}='true'"> </t:if>

this will always cause an error that: does not contain a property named
'loginned'

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

Reply via email to