Java OnActionFromStart(Tapestry)

Java OnActionFromStart(Tapestry),java,tapestry,Java,Tapestry,我使用以下java和tml代码 爪哇 在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> //这里是图像标签

我使用以下java和tml代码

爪哇

在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>

//这里是图像标签

我的问题是,当我单击覆盖但未触发onActionFromStart的图像时,如何解决此问题

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

void onActionFromStart(int id) {
    ...
}

还可以查看文档部分。

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

void onActionFromStart(int id) {
    ...
}

还可以查看文档部分。

确保重新加载服务器并刷新页面

操作处理程序不应是私有的

尝试:

onActionFromStart(int-id)上的公共void{
...
}

或者,使用tapestry的涂鸦

    @OnEvent(value = EventConstants.ACTION, component = "start")
    public void start(int id){
    ...
    }

确保重新加载服务器并刷新页面

操作处理程序不应是私有的

尝试:

onActionFromStart(int-id)上的公共void{
...
}

或者,使用tapestry的涂鸦

    @OnEvent(value = EventConstants.ACTION, component = "start")
    public void start(int id){
    ...
    }