[ 
http://www.stripesframework.org/jira/browse/STS-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11621#action_11621
 ] 

Evgeny Shepelyuk commented on STS-258:
--------------------------------------

Hello !

Here's the use case i have to show when event attribute maybe requred.

>>Maybe it seems a bit weird but in my practice I often need to submit   
>>"empty" form synchronously.
>>So i have invisible form without submit button and on user action (usually  
>>click on link),
>>I need to submit that form to server with complete reload of page.
>>But unfortunately s:form tag doesn't not have attribute to assign event  
>>without s:button/s:submit/s:image.
 
>>Sure, there're few workarounds, e.g. s:image with 1x1 px backgtound or  
>>s:hidden with exact resolution name or _eventName, etc.
>>But i think it's more convenient to add event attribute to s:form, similar  
>>to s:link.

Event attribute should be really optional. And be used for such weird cases, 
when no submit button is available on form.
Or if you ain't gonna fix it anyway,such case should be described in docs to 
supply best way of handling similar situations.

Thnx

> <s:form event="foo"> should use the new _eventName parameter instead of the 
> current mechanism to trigger the event
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: STS-258
>                 URL: http://www.stripesframework.org/jira/browse/STS-258
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Tag Library
>    Affects Versions: Release 1.4
>            Reporter: Andy
>
> Now that Stripes supports a hidden field / request parameter called 
> _eventName as a fall back for determining the event to run it's probably more 
> appropriate to use that mechanism for situations like:
>     <s:form event="save">
> That will ensure that save is called, but still allows it to be overridden by 
> buttons if that is desirable.

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

        

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to