Addition of anchor attribute to view-state [SWF-624]
Eoin Mac Ionmhain opened SWF-624 and commented
Hi all,
I wanted to be able to reference a particular anchor point in a view-state, rather than just be taken to the top of the view-state page.
Keith Donald suggested I put in a new feature request -
see forum thread here:
http://forum.springframework.org/showthread.php?p=175682#post175682
Affects: 2.0.0.RC1
1 votes, 2 watchers
Eoin Mac Ionmhain commented
Hi Keith,
I've found what I believe is a workaround on this issue, which you might find handy. (or else unpleasantly hacky :)
As you may recall, my problem was that I had a main page, with some optional information which I wanted to have on a subpage. Then when the user was finished filling out the data on the subpage, I wanted them to be able to return to the point on the main page from which they had initially jumped off.
Here's my workaround -
Main Page <code> ... ... <input type="submit" name="_eventId_goToSubPage" value="Go to the Subpage" /> ... ... </code>
Sub Page <code> ... ... <c:url value="/main-flow.html?_eventId=goBackToMainPage&_flowExecutionKey=${flowExecutionKey}#middleOfMainPage" var="formUrl" /> <form:form method="post" action="${formUrl}"> <input type="submit" value="Back to middle of Main Page" /> </form:form> ... ... </code>
Cheers
Eoin