NOTE: All this can be changed directly in the WSDL and in the action code when it is generated.
注意:所有这些内容均可在生成时直接在WSDL和操作代码中更改。
Thus, you can present the results of the same Action in different ways and not duplicate any Action code.
这样,您可以以不同的方式显示同一个Action的结果而不用复制任何Action代码。
Both custom action code and XML schema have to be packaged in a single jar, for example, emailAction. Jar.
自定义动作节点和XMLschema文件都需要打包在单独的jar文件中,比方说emailaction. jar。
In this example, the data is set in the RequestScope as a request attribute in the action code that is invoked.
在本例中,数据在RequestScope中设置为调用动作代码的请求属性。
First, you must understand that the action code is not directly tied to any particular view or view instance.
首先,必须了解操作代码并未直接绑定到任何具体的视图或视图实例。
It's important to note that the JSON support described above was activated simply by making changes in the various views, with the action code remaining untouched.
一定要注意的是,上面描述的JSON支持很容易激活,只需在各个视图中做更改,操作代码保持不变。
I'll run that action by evaluating the code; if the code should fail, then I will catch that error.
我将通过对代码求值来执行动作;如果代码可能失败,那么我将会捕获那个错误。
The Client-Side Click-to-Action source object code is updated, as shown in Listing 3.
客户端的点击操作源对象代码得到了更新,如列表3所示。
You can see the type substitution code in action in the output at the bottom of Listing 6 (restructured slightly for formatting).
在清单6底部的输出中(为了格式化稍微重新调整了结构),可以看到类型替换代码的作用。
An abstract class that our Action classes extend has also been created, to hold common code needed for all our Action class implementations.
操作类继承的抽象类也已被创建以保存所有的操作类实现所需的共同代码。
All the actions below end with '1;' because the last code in the action determines whether the action succeeded (0) or failed (1) as a return code.
下面所有的操作都以‘1;’结尾,因为操作中的最后代码确定了该操作是成功(返回码为0)还是失败(返回码为1)。
Building the code to respond to a user's actions consists of writing code to act upon that action.
要构建对用户操作做出响应的代码,就需要编写在操作发生时执行的代码。
This practice's main advantage is that it avoids code redundancy in every Action class that handles ActionErrors.
这一实践主要的优势是:避免了每个处理 ActionErrors 的Action类中的代码冗余。
Currently in WebSphere Portal, the submit button cannot be named "Submit" for Client-Side Click-to-Action target code to work properly.
在WebSpherePortal 中,submit按钮不能命名为客户端点击操作目标代码的“Submit”以合适地工作。
A year ago I posted the outcome of the managed code Custom Action discussion I had with Carolyn (MSI Dev Manager) and a couple Windows architects.
一年前,我、Carolyn (MSIDev经理)和两位Windows架构师讨论过托管代码自定义操作,并把最终的结果发布到博客上。
A snippet of the Action class code shown in Listing 1 illustrates how the Model service is called from the Action class.
清单1中所示的一小段action类代码说明了如何从action类中调用模型服务。
Modify the process action or event code in the portlet class to publish or process the event.
编辑portlet类中的过程行为或者事件代码,以发布或者处理事件。
Modify the Action class and add code for the default value, as shown in Listing 4.
修改action类,并添加默认值的代码,如清单4所示。
Now add an archive action with the Lotus script code depicted in Listing 1
现在添加一个存档动作,它具有清单1 所示的Lotus脚本代码
Figure 1 shows the TitlePane widget in action, the outcome of the code fragment shown in Listing 1.
图1显示了运行中的这个TitlePane小部件,即清单1所示代码段的结果。
Note that the program was able to use the latest available installed gem by default without any explicit action in the code.
需要注意的是,我们不需要在代码中指明,程序就会默认使用gem的最新安装版本。
In action, the code in Listing 12 looks like this.
清单12中代码的效果如下。
This action ensures consistency across the code generated for the project.
此操作可以确保为项目生成的代码的一致性。
Defining a new REST API therefore becomes as simple as defining these action methods, filling them with code, and routing requests to them correctly.
因此,定义新的RESTAPI很简单,就是定义这些操作方法,用代码填充它们,并正确地将请求路由到它们。
Listing 9 shows the complete action class code, not just the segment that changes the project description, so we can learn about some utility methods created for the second revision of the plugin.
清单9显示了完整的操作类代码,不只是改变项目描述的片断,这样我们可以学习为第二版插件创建的一些实用方法。
Before you run, create a breakpoint in the source code so you can see debugging in action.
运行之前,在源代码中创建一个断点,以便您能够看到运行中的调试。
To see this in action, use code like that shown in Listing 5 to test the response text of a request, as well as its ready state.
要查看这种变化,请使用如 清单5所示的代码来测试请求的响应文本,以及它们的就绪状态。
Intelligent naming of HTML input fields updated by users negates writing complex code in the action class.
用户更新的HTML输入字段的智能命名消除了操作类中的复杂编码。
To begin, you must understand that an action is a piece of code that implements a predefined interface.
首先,您必须了解操作就是用来实现预定义接口的一段代码。
To begin, you must understand that an action is a piece of code that implements a predefined interface.
首先,您必须了解操作就是用来实现预定义接口的一段代码。
应用推荐