JSF框架控制器使用这个视图ID来为当前的视图查找组件。
The JSF framework controller USES the view ID to look up the components for the current view.
这是在一个测试中查找组件最可靠的方式;它保证组件查找从不失败,即使 GUI 的布局在将来会改变。
This is the most reliable way to find components in a test; it guarantees that component lookup will never fail, even if the GUI's layout changes in the future.
为了保持简单,我们查找了组件处理程序并将其转换为已知的实现类类型。
For simplicity here, we have looked up our component handler and then cast it to the implementation class type that we know.
应用推荐