You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org> on 2006/10/09 20:49:22 UTC

[jira] Created: (TOMAHAWK-730) create a component which will submit a form on a specific event

create a component which will submit a form on a specific event
---------------------------------------------------------------

                 Key: TOMAHAWK-730
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-730
             Project: MyFaces Tomahawk
          Issue Type: New Feature
            Reporter: Mario Ivankovits
         Assigned To: Mario Ivankovits
            Priority: Minor


Proposal for this new component:

A new component which aims to do whats described here [1]


Component name: submitOnEvent


It should operate in three modes:

1) as a child of an input* component (direct child)
In this mode submitOnEvent will add a event handler to the input
component and fires the button/link pointed to with "for"

2) standalone somewhere on the page
In this mode submitOnEvent will intercept *all* events it is configured for
and fires the button/link pointed to with "for"

3) as a child of a command* component (link or button)
In this mode submitOnEvent will intercept *all* events it is configured for
and fires the button/link it is embedded.

It should handle buttons and links - links as described on [2]

The proposed syntax is:

<s:submitOnEvent
    for="myButton"
    event="keypress|focus|blur|change"
    callback="any_user_js_function" />

"event" and "callback" should be optional.
The default event should be "keypress" and for "callback" the default should be a method which will trigger on "Enter".
"for" should be optional if the component is embedded in a command* component.

<h:commandLink .... >
    <s:submitOnEvent/>
</h:commandLink>

The component should *not* use dojo.

[1] http://wiki.apache.org/myfaces/SubmitPageOnValueChange
[2] http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (TOMAHAWK-730) create a component which will submit a form on a specific event

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-730?page=all ]

Mario Ivankovits resolved TOMAHAWK-730.
---------------------------------------

    Fix Version/s: 1.1.5-SNAPSHOT
       Resolution: Fixed

added to sandbox

> create a component which will submit a form on a specific event
> ---------------------------------------------------------------
>
>                 Key: TOMAHAWK-730
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-730
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>            Reporter: Mario Ivankovits
>         Assigned To: Mario Ivankovits
>            Priority: Minor
>             Fix For: 1.1.5-SNAPSHOT
>
>
> Proposal for this new component:
> A new component which aims to do whats described here [1]
> Component name: submitOnEvent
> It should operate in three modes:
> 1) as a child of an input* component (direct child)
> In this mode submitOnEvent will add a event handler to the input
> component and fires the button/link pointed to with "for"
> 2) standalone somewhere on the page
> In this mode submitOnEvent will intercept *all* events it is configured for
> and fires the button/link pointed to with "for"
> 3) as a child of a command* component (link or button)
> In this mode submitOnEvent will intercept *all* events it is configured for
> and fires the button/link it is embedded.
> It should handle buttons and links - links as described on [2]
> The proposed syntax is:
> <s:submitOnEvent
>     for="myButton"
>     event="keypress|focus|blur|change"
>     callback="any_user_js_function" />
> "event" and "callback" should be optional.
> The default event should be "keypress" and for "callback" the default should be a method which will trigger on "Enter".
> "for" should be optional if the component is embedded in a command* component.
> <h:commandLink .... >
>     <s:submitOnEvent/>
> </h:commandLink>
> The component should *not* use dojo.
> [1] http://wiki.apache.org/myfaces/SubmitPageOnValueChange
> [2] http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira