您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个JSON对象作为响应,这个响应可用于事务的远端。
Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
第二个组件是WSDM控制器,提供服务器的简单反馈和服务器自身的配置。
A second component, the WSDM Controller, provides simple feedback from the server and configuration of the server itself.
框架不仅为这个简单的小程序生成了视图和控制器,而且还生成了有助于测试用户界面的功能性测试。
The framework has generated not only the views and controller for a simple little application, but also a functional test to help you test the user interface.
最简单的方法是查询数据库中未完成的请求数量,并将查询放到一个控制器中进行。
The simplest solution is to query the database for the number of outstanding requests and to serve this in a controller.
事实上,简单的控制器类根本与JSF没有联系,这使得它们更加容易测试。
In fact, simple controller classes aren't tied to JSF at all, making them easier to test.
这个想法是为了使控制器类尽可能保持简单以允许业务逻辑被抽象为助手类。
The idea is to keep the controller class as simple as possible to allow business logic to be abstracted to a helper class.
为保持简单,我直接从控制器中呈现视图。
Keeping things simple, I'm rendering the view directly from the controller.
要避免此类情况发生,最简单的方法就是在控制器中添加简单的测试。
The easiest thing you can do to keep that from happening is to add a simple test in your controller.
您还看到了一个简单实用的基于Dojo 的阅读器的视图和控制器是如何实现的。
You examined how the view and controller of a simple, yet functioning, Dojo-based reader can be implemented.
为理解breakpointer的运行过程,可创建一个简单的Rails应用程序,生成一个控制器,启动服务器,并启动breakpointer。
To see the breakpointer in action, create a simple Rails application, generate a controller, start the server, and start a breakpointer.
JSPX文件由一个控制器命令生成,该命令将简单的基于JAR的应用程序转换为SpringMVCWeb应用程序。
The JSPX files are generated by a controller command that converts a simple JAR-based application to a Spring MVC web application.
如果这个简单、便宜的控制器像个没有屏幕的iPhone呢?
What if that simple, inexpensive controller is something like an iPhone without the screen?
这一机制背后的原理其实很简单:Rails首先通过反射将控制器中的变量拷贝到一个容器中,其后又将该容器中的变量拷贝回视图实例。
The magic is actually quite simple: Rails uses reflection to copy controller variables into a collection, which is then copied back into the view instance.
这个页面使用form_remote_tag把简单表单的内容提交到控制器中的add方法。
This page USES the form_remote_tag to submit the contents of the simple form to the add method in the controller.
为了再一次运行测试,我们简单的在Robot的录制控制器上(或者选择File菜单上的Playback)点击“play”按钮。
To run the test again, we simply clicked the "play" button on the Robot recording control (or chose Playback from the File menu).
Groovlets使得编写控制器变得非常简单:它们需要更少的代码并自动提供了所需的对象。
Groovlets make controller coding a snap: they require less code and provide needed objects automatically.
一个控制器控制简单的页面,另一个控制器建立一个Ajax响应。
One controls a simple page, and another sets up an Ajax response. Type the following commands.
Rails3中的控制器代码可以极其简单。
The code for a controller in Rails 3 can be exceedingly Spartan.
控制器操作在app/controllers/browsers_controller 中进行,并且很简单。
The controller action goes in app/controllers/browsers_controller and is pretty straightforward.
为简单起见,除调用的视图不同之外,这两个控制器之间并没有太多不同之处。
For simplicity, there is not much difference between the two controllers except for what view they call.
这样的说明确实有些过于简单,顾名思义,ADC(应用程序交付控制器)用于控制和管理应用程序流量的交付方式。
It is a necessarily vague description, but as the name suggests an ADC is used to control and manage the way that application traffic is delivered.
清单5中显示的这个控制器是非常简单的。
它有一个简单的振动控制器,可以通过打开和关闭的来控制原料的供给。
It has a simple vibratory controller that can be turned on and off to feed an increment of material.
posts控制器将十分简单,像您今天编写的其他控制器一样。
Your posts controller will be simple, like the other controllers you have written today.
为了保持示例简单,产品被存储在该控制器类的一个固定数组中。
To keep the example simple, products are stored in a fixed array inside the controller class.
在这篇文章中,我们将要创建另外一个简单的应用程序,不过这次要学习下如何使用Views(视图)和ViewControllers(视图控制器)来创建一个具有多个界面的应用程序。
In this article we're going to make another simple application, but this time we're going to explore using Views and View Controllers to make an application with more than one screen.
在jsp页面方面,简单地更改所有链接,使之指向您的控制器servlet,如下所示。
In terms of your JSP pages, you would simply change all links to point at your controller servlet, like this.
在这样的案例中,使用简单的寻呼机或转到寻呼机控制器,就像图15展示的那样,而不是高级的或web类型寻呼机控制器,这些目前不能被WebSpherePortal支持。
In such a case, use the simple pager or the goto pager controls, as shown in Figure 15, rather than the deluxe or Web style pager controls, since these are not currently supported in WebSphere Portal.
为什么一个简单的模态视图控制器滞后时,解雇了吗?
Why would a simple modal view controller lag when presented and dismissed?
至少iTV应该在包装箱里配上一款标准控制器才能成为能够生存下去的游戏平台,因此控制器就一定要相对简单且便宜。
At least one standard controller needs to be included in the box for the iTV to be a viable gaming platform, so that controller has to be relatively simple and inexpensive.
应用推荐