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

Timothy Stone commented on STS-831:
-----------------------------------

In reading the use case, me thinks this should be resolved in the event handler 
for the form, not in the action attribute. Basically, the form is bound to your 
bean, the submit button is bound to an event handler. The event handler should 
return a ForwardResolution to a view with the appropriate fragment identifier 
appended (http://www.w3.org/TR/html401/intro/intro.html#h-2.1.2). 

This means between forms (where multiple forms might be on a page) you would 
want an anchor, e.g., <a class="fragment" name="my">My Form</a> or just pass 
the name attribute in the form tag itself: <s:form name="my" 
action="/My.action" ... > ... </s:form>

This pattern is far more useful that hacking the tag. IMHO.

> Hash anchors (#) in form action breaks binding to ActionBean
> ------------------------------------------------------------
>
>                 Key: STS-831
>                 URL: http://www.stripesframework.org/jira/browse/STS-831
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching, Tag Library
>    Affects Versions: Release 1.5.6
>            Reporter: Carl Krig
>            Priority: Minor
>         Attachments: STS-831.patch
>
>
> Problem:
> <form action="/My.action#my"> gives an ERROR ... tag.FormTag - Could not 
> locate an ActionBean that was bound to the URL [/My.action#my]. Without an 
> ActionBean class Stripes cannot determine whether the ActionBean is a wizard 
> or not. As a result wizard behaviour will be disabled.
> Expected:
> Properly bind to same as "/My.action" would have. More specifically, drop the 
> hash mark and everything that comes after.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to