coldfusion
This article will focus on what’s new on CFMX7 and how this new release is shaking up the Web application server market. I won’t try to teach you how to use all the new additions; instead, we’ll look at the new and exciting features of this release.
本文将重点介绍CFMX7的新增功能以及此新版本如何撼动Web应用程序服务器市场。 我不会尝试教您如何使用所有新增功能。 相反,我们将研究此版本的新功能和令人兴奋的功能。
ColdFusion MX7 is packed with new features. The ones we’ll focus on here include Flash Forms, document generation, event gateways and reporting capabilities, though there are many others.
ColdFusion MX7具有许多新功能。 我们这里将重点介绍的内容包括Flash表单,文档生成,事件网关和报告功能,尽管还有很多其他功能。
Macromedia brought a little of its presentation server, Flex, into ColdFusion with the addition of Flash Forms. This feature enables developers to create attractive, user friendly forms that can be delivered cross-platform to any Flash-compatible media.
Macromedia通过添加Flash Forms将其演示服务器Flex引入了ColdFusion。 此功能使开发人员可以创建有吸引力的,用户友好的表单,这些表单可以跨平台传递到任何与Flash兼容的媒体。
To start using Flash in CFMX7, you’ll need to specify the form’s format, as well as its width and height, in the CFFORM
tag:
要开始在CFMX7中使用Flash,您需要在CFFORM
标签中指定表单的格式以及其宽度和高度:
You may notice that HTML and XML formats are also available. For now, we’ll stick with the Flash format.
您可能会注意到HTML和XML格式也可用。 现在,我们将继续使用Flash格式。
If you run the code above, a Flash movie with the specified width and height is created, though nothing displays in it. Don’t worry: that’s just because we haven’t added any content to the movie yet!
如果运行上面的代码,则会创建具有指定宽度和高度的Flash影片,尽管其中没有任何显示。 不用担心:那是因为我们尚未向电影添加任何内容!
Information in Flash Forms is organized in form groups that are identified by the CFFORMGROUP
tag. This tag holds 13 different types of groups, but for this article, we’ll explore just a couple of them.
Flash表单中的信息按由CFFORMGROUP
标记标识的表单组进行组织。 该标签包含13种不同类型的组,但是在本文中,我们将仅探讨其中的几种。
First, let’s look at this simple form:
首先,让我们看一下这种简单的形式:
This tab hold just plain text.
This is tab hold some form elements!
You’ve probably noticed the several CFFORMGROUP
tags in the code. These tags are used whenever you want to group form elements. In this case, we’ve created a tab navigator with two tabs (pages). Each tab is a form group of its own. If you wanted to create three tabs, you would have to create three child form groups with type "page".
您可能已经注意到代码中的几个CFFORMGROUP
标记。 这些标签在您希望对表单元素进行分组时使用。 在这种情况下,我们创建了一个带有两个标签(页面)的标签导航器。 每个选项卡都是其自己的表单组。 如果要创建三个选项卡,则必须创建三个类型为“页面”的子表单组。
All the other tags included in the form were already present in previous editions of ColdFusion. Make sure you have at least Flash Player 7 installed.
表格中包含的所有其他标签在ColdFusion的先前版本中已经存在。 确保至少安装了Flash Player 7。
This is what you’ll get when you run the code above:
这是您在运行上面的代码时所得到的:
You can choose between "First Tab" and "Second Tab" to view different content.
您可以在“第一选项卡”和“第二选项卡”之间选择以查看不同的内容。
Getting on-screen information to appear elsewhere with the same look and feel has presented a constant problem for the creators of Web-based applications. Well, not any more! Now you can specify the generation of PDF or Flash Paper documents with the exact format you want. Just use the CFDOCUMENT
tag in CFMX7 — it’s that easy! Try this:
对于基于Web的应用程序的创建者来说,使屏幕上的信息以相同的外观显示在其他地方一直是一个难题。 好吧,不再了! 现在,您可以指定所需格式的PDF或Flash Paper文档的生成。 只需在CFDOCUMENT
中使用CFDOCUMENT
标记-就这么简单! 试试这个:
SitePoint.com - Introduction to ColdFusion 7
PDF Generation
This is an example of PDF generation using ColdFusion 7.
What will you end up with? A full-featured PDF containing your content, styled exactly as you want it to appear:
你最终会得到什么? 包含您内容的功能齐全的PDF,其样式完全符合您希望其显示的样式:
From version 7 onwards, ColdFusion supports gateways. Gateways are interfaces to other systems; they’re ways for events to trigger ColdFusion actions. CFMX 7 supports several gateways, including asynchronous processing, JMS, XMPP and SMS gateways.
从版本7开始,ColdFusion支持网关。 网关是与其他系统的接口。 它们是事件触发ColdFusion动作的方式。 CFMX 7支持多种网关,包括异步处理,JMS,XMPP和SMS网关。
How do gateways work? Well, if you have an online SMS gateway in your system, ColdFusion can listen to incoming SMS messages that contain commands, then trigger processing of those commands (e.g. an authorization request). It can even send an SMS back to you to communicate the result of such processing.
网关如何工作? 好吧,如果您的系统中有一个在线SMS网关,ColdFusion可以侦听包含命令的传入SMS消息,然后触发对这些命令的处理(例如授权请求)。 它甚至可以将SMS发送回给您,以传达处理结果。
To see how gateways work, check out the CFDOCS for instant messaging implementation by Macromedia’s Ben Forta. If you have Yahoo! Messenger, you can add a pal named "cflivedocs". Then, open a conversation and write CFDOCUMENT
. Surprise! The server returns the tag’s information straight from Macromedia’s product reference manual. This works with any ColdFusion tag.
要查看网关如何工作,请查看Macromedia Ben Forta的CFDOCS,以实现即时消息传递。 如果您有Yahoo! Messenger,您可以添加一个名为“ cflivedocs”的朋友。 然后,打开一个对话并编写CFDOCUMENT
。 惊喜! 服务器直接从Macromedia的产品参考手册中返回标签的信息。 这适用于任何ColdFusion标签。
Report Builder is another exciting feature of CFMX7. This is a stand-alone application that ships with the Coldfusion package, enabling you to create dynamic report templates (CFR files, for ColdFusion Report).
报表生成器是CFMX7的另一个令人兴奋的功能。 这是Coldfusion软件包附带的独立应用程序,使您可以创建动态报告模板(CFR文件,用于ColdFusion报告)。
CF Report Builder also includes a visual query builder, and allows you to specify layouts, and format each report element at your convenience.
CF Report Builder还包括一个可视查询生成器,使您可以指定布局,并在方便时格式化每个报表元素。
You can display these reports on your pages using the CFREPORT tag. The output can be exported to PDF, Flash Paper, Excel and RTF formats, though, to get support for this last format, you must have ColdFusion 7.0.1 installed. Here’s how it’s done:
您可以使用CFREPORT标记在页面上显示这些报告。 可以将输出导出为PDF,Flash Paper,Excel和RTF格式,但是,要获得对此最后一种格式的支持,必须安装ColdFusion 7.0.1。 这是完成的过程:
All these new features can render some current IDE software, like Dreamweaver, out of date when it comes to working with CFMX7. Dreamweaver 8 ships with full CFMX7 support, but if you’re using a prior version (such as MX 2004), you can download the CFML 7.0 support plug-in from the Macromedia Website. There are also updated code and help files available for Homesite+. If you’re already using ColdFusion 7.0.1, the new features introduced in this version are not yet supported on IDEs.
所有这些新功能都可以使某些当前的IDE软件(例如Dreamweaver)在使用CFMX7时过时。 Dreamweaver 8附带了完整的CFMX7支持,但是,如果您使用的是以前的版本(例如MX 2004),则可以从Macromedia网站下载CFML 7.0支持插件 。 还提供可用于Homesite +的更新的代码和帮助文件 。 如果您已经在使用ColdFusion 7.0.1,则IDE尚不支持此版本中引入的新功能。
If you’re after an alternative to Macromedia’s own software, you can use the excellent CFEclipse plug-in for the Eclipse 3.x platform. The current version (2.0) features full CFML 7.0 support. Get used to the Eclipse environment, as it will be the base for the upcoming Macromedia’s Flex IDE.
如果您想要替代Macromedia自己的软件,则可以使用出色的CFEclipse插件用于Eclipse 3.x平台 。 当前版本(2.0)具有完整的CFML 7.0支持。 适应Eclipse环境,因为它将成为即将推出的Macromedia Flex IDE的基础。
Everyone knew that ColdFusion made the use of Java classes very easy. Now, with version 7.0.1, the benefits become bidirectional.
每个人都知道ColdFusion使Java类的使用非常容易。 现在,在7.0.1版中,好处变为双向的。
ColdFusion now has the CFCProxy, which enables programmers to invoke CFC components directly from Java code. This will, for sure, reinforce the enterprise aspect of ColdFusion. With this new functionality, Macromedia ensures that investments made either in Java or ColdFusion can be reused, offering added value to customers.
ColdFusion现在具有CFCProxy,它使程序员能够直接从Java代码调用CFC组件。 当然,这将加强ColdFusion的企业方面。 借助这一新功能,Macromedia确保了可以重复使用Java或ColdFusion进行的投资,从而为客户提供增值。
There’s a lot more to say on Macromedia ColdFusion’s new features — the market is already reacting to this new feature-rich release. Macromedia’s upcoming merge with Adobe will confirm ColdFusion’s place in the market, and I’m sure we’ll see great things on the next release. These are exciting times for the CF community!
关于Macromedia ColdFusion的新功能,还有很多要说的-市场已经对该新功能丰富的版本做出了React。 Macromedia即将与Adobe合并,这将确认ColdFusion在市场上的地位,而且我敢肯定,我们会在下一个版本中看到很棒的事情。 对于CF社区来说,这是激动人心的时刻!
翻译自: https://www.sitepoint.com/coldfusion-mx-7-feature-tour/
coldfusion