Tapestry - Passing Parameters to method from tml

Is it possible to pass a parameter to the method which is being defined in controller, and called by tml ?

tml

${getDynamicFieldValue("Subject")}

java

public String getDynamicFieldValue(String fieldToCompare) 
{
    //Logic
}

Exception

Could not convert 'getDynamicFieldValue("Subject")' into a component parameter binding: Error parsing property expression 'getDynamicFieldValue("Subject")': Unable to parse input at character position 22.
8
задан Nirmal 12 May 2011 в 11:49
поделиться