Hi.
I want to extension an action in ops. The action is simlar to 'xxforms:script' action. How can I do? 你 邮 箱 里 居 然 有 积 分 , 这 你 知 道 吗 ? 邮 箱 积 分 居 然 能 换 20 元 钱 , 这 你 也 知 道 吗 ? 点 此 兑 换 20 元 >> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 11/8/06, hechengrong <[hidden email]> wrote:
> I want to extension an action in ops. The action is simlar to > 'xxforms:script' action. How can I do? Could you describe in more detail what you would like to do? Are you saying that this is something you cannot do with <xxforms:script>? (See below for reference to the documentation of <xxforms:script>.) http://www.orbeon.com/ops/doc/reference-xforms-ng#xxforms-script-extension Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by hcr
There is a xxforms:xforms-dialog example segment: <!-- <xforms:model> <!-- <xforms:trigger> 3G 时 代 来 临 了,坚 决 对 传 统 邮 箱 说 不 ! 新 一 代 极 速 3G 邮 箱 闪 亮 登 场 ,280 兆 网 盘 免 费 送 ! 点 击 此 处 注 册 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
你好!
Well, in general you don't create new actions in XForms: a set of standard actions is specified by the XForms spec, and a few extension actions have been defined in Orbeon Forms because they have no equivalent in the XForms spec (like xxforms:script). The philosophy of XForms actions is that you can combine them together without creating new ones. Inventing new actions would require you to modify the Orbeon Forms XForms engine. Orbeon Forms is open source so of course you are free to modify it. But there should be a very, very good reason to invent a new action ;-) Anyway if you really want to do this, the source code is your friend: we don't have specific documentation on how to add new custom actions to the XForms engine. By the way, in your example below, you invent a new element, xxforms:dialog-submission in the model. A regular xforms:submission element would probably just do. But it looks like the functionality you are looking for is to implement some sort of communication between a parent form and a child dialog defined in another page. So we should start by trying to figure out what the best design for that would be. At this point, I am not sure! -Erik hechengrong wrote: > > > There is a xxforms:xforms-dialog example segment: > <!-- > extend xforms-dialog > --> > > <!-- > Main Page like that > --> > <html> > <head> > > <xforms:model> > <!--"instance" attribute of xforms-dialog-submission isn't > used when > "level" attribute of dialog-submission is "modeless"--> > <xxforms:dialog-submission id="dialog-submission-1" > level="model" > ref="instance('**')" instance="**" action="/**" /> > </xforms:model> > </head> > <body> > <xforms:trigger> > <xforms:label>Open Model Dialog</xforms:label> > <xforms:action ev:event="DOMActitave"> > <xxforms:xforms-dialog > dialog-submission="dialog-submision-1"/> > </xforms:action> > </xforms:trigger> > </body> > </html> > > <!-- > Dialog Page的写法:对于Modeless Dialog,与一般的Page没有什么区别;对于 > Model Dialog > 有一个特殊的动作xxforms:xforms-dialog-close > --> > <html> > <head> > </head> > <body> > <xforms:trigger> > <xforms:label>OK</xforms:label> > <xforms:action ev:event="DOMActitave"> > <xxforms:xforms-dialog-close type="ok" > ref="instance('**')/**"/> > </xforms:action> > </xforms:trigger> > > <xforms:trigger> > <xforms:label>Cancel</xforms:label> > <xforms:action ev:event="DOMActitave"> > <xxforms:xforms-dialog-close type="cancel"/> > </xforms:action> > </xforms:trigger> > </body> > </html> -- Orbeon Forms - XForms Everywhere http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |