component link 组成环
Testing a user action such as clicking a link can be done using WicketTester's clickLink() method, passing it the link component ID path, and then verifying the rendered page, as shown in Listing 23.
测试诸如单击链接这样的用户动作可以通过使用 WicketTester 的 clickLink() 方法实现,只需为之传递链接组件 ID 路径,然后再验证所呈现的组件即可,如清单 23 所示。
This time, the onclick event of the Link component initiates the Ajax request, as Listing 6 shows.
这时,Link组件的onclick事件初始化了Ajax请求,如清单6所示。
Drag and drop a Link component from the palette and drop it on the output text component in the Price column.
从选项板上拖拉一个Link组件,然后将其放到price栏中的输出文本组件中。
应用推荐