In fact, simple controller classes aren't tied to JSF at all, making them easier to test.
事实上,简单的控制器类根本与JSF没有联系,这使得它们更加容易测试。
Both controller classes extend the base controller class to inherit the common functionality it provides.
这两个控制器类都继承控制器基类来继承后者提供的通用功能。
The controller classes must contain details of HTML or URL structure, which makes the classes harder to read and maintain.
控制器类必须含有HTML或URL结构的细节,这些使类难以阅读和维护。
This is a convention. You can put your controller classes anywhere you like, because they are all compiled into the same assembly.
这是一个约定。你可以把控制器类放在任何你喜欢的地方,因为它们都会被编译到同一个程序集中。
There are several ways to access URL parameter values within the action methods of Controller classes.
在控制类操作方法中有多种访问url参数的方式。
There are several ways to access URL parameter values within the action methods of Controller classes.
在控制类操作方法中有多种访问url参数的方式。
应用推荐