thank you all!
yes i tried passing parameters using directlink, its not working either. in
my page file i have
<component id="tutor" type="PropertySelection">
<binding name="model" value="availlableTutors"/>
<binding name="value" value="tutor"/>
</component>
and i defined the direct link component as
<component id="onclicklink" type="DirectLink">
<binding name="listener" value="listener:onClick"/>
<binding name="parameters" value="tutor"/>
</component>
i revised my code as
public abstract String getTutor();
abstract public void setTutor(String s);
public IPropertySelection getAvailableTutors (){
.....
.....
}
public IPage onClick(String t){
Rota page = getRotaPage();
page.setSelectedTeacher("The selected value is " + t);// a text field
for example
}
however it doesnt work and i got exception error:
No listener method named 'onClick' suitable for no listener parameters found
in [EMAIL PROTECTED]
maybe the forum has to be submitted before getting the value of the
selection, or maybe the acceesor "<binding name="parameters"
value="tutor"/>" is wrong?
seems tapestry 4.1 has a solution for this with some ajax features... but is
there any possible solutions with tapestry 4.0?
thanks for your input!
--
View this message in context:
http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5821273
Sent from the Tapestry - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]