Skip to content Skip to sidebar Skip to footer

Getting Spring Web Flow To Work With Ie 7 Forms

This is a continuation of this question, refocused after some debugging on Spring Web Flow and the processing of events in Spring Web Flow. I've got a problem with Spring Web Flow

Solution 1:

Try by specifying the eventId exclusively in javascript function as:

functionincludeEvent(eventId){
        document.getElementById("yourForm")._eventId.value = eventId;
        document.getElementById("yourForm").submit();
    }

Include _eventId as hidden type:

    <input type="hidden" name="_eventId" value="Continue"/>
    <button id="addCurrentAccount" name="addCurrentAccount"type="button" value="addCurrentAccount" class="buttonActivity add" onclick="javascript:includeEvent('addCurrentAccount')">
        <span>Add Current Account</span>
    </button>

This way you can make sure that when user clicks on enter button a default "Continue" event is generated which you need to customize as to how to handle it. Based on each provided button click, respective event(see passing this as parameter to javascript function) is set by the javascript function mentioned.

Post a Comment for "Getting Spring Web Flow To Work With Ie 7 Forms"