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栏中的输出文本组件中。
To show or hide the dialog when the user hovers over an item, you can use the onmouseover and onmouseout events of the Link component, as Listing 4 shows.
为了当用户停留在条目上时显示或隐藏对话框,您可以使用Link组件的onmouseover和onmouseout事件,正如清单4所示。
To show or hide the dialog when the user hovers over an item, you can use the onmouseover and onmouseout events of the Link component, as Listing 4 shows.
为了当用户停留在条目上时显示或隐藏对话框,您可以使用Link组件的onmouseover和onmouseout事件,正如清单4所示。
应用推荐