OnActionFromStart(挂毯)

Fre*_*its 0 java tapestry

我正在使用以下java和tml代码

java的

    private void onActionFromStart(int id)
    {
       // here im getting url for the particular overlay when onclick 
    }
Run Code Online (Sandbox Code Playgroud)

在tml中

    <t:loop t:source="videos" t:value="pojo">

        <t:actionlink t:id="start" t:context="${pojo.id}" rel="#overlay1">
           // here image tag 
        </t:actionlink>
    </t:loop>
Run Code Online (Sandbox Code Playgroud)

我的问题是,当我点击它覆盖的图像,但没有触发onActionFromStart如何解决这个问题

Hen*_*ing 5

操作处理程序需要为Tapestry提供默认或公共修饰符才能找到它们:

void onActionFromStart(int id) {
    ...
}
Run Code Online (Sandbox Code Playgroud)

另请参阅文档的" 组件事件"部分.