Dec 7th, 2012, 06:10 AM
#1
Is transition between different view-states without refreshing full html possible?
Hi, I'm trying to do migration of project technology stack to:
- java 1.7.0_09
- jboss 7.0.2 final
- Spring framework 3.1.2 RELEASE
- Spring webflow 2.3.1 RELEASE
- IceFaces: 3.1.0
- Mojarra 2.1.3
Is it possible with this tech stack to do transition between two different view states without
refreshing full html content ? It works fine when I do kind of loop transition to the same view
state.example of response xml:
<partial-response>
<changes>
<update id="j_idt10">
<form action="/foo-test/desktop/main?execution=e1s4" class="iceFrm"
enctype="application/x-www-form-urlencoded" id="j_idt10" method="post" onsubmit="return false;">
...
...
...
</form>
</update>
...
...
...
<update id="javax.faces.ViewState">e1s4</update>
<eval>ice.applyFocus('mainForm:j_idt18');</eval>
<extension aceCallbackParam="validationFailed">{"validationFa iled":false}</extension>
</changes>
</partial-response>
Problem is when I do transition for example from view state "foo" to view state "bar". In this case
example of response xml looks like this:
<partial-response>
<changes>
<update id="javax.faces.ViewBody"><body>
...
...
...
</body></update>
<update id="javax.faces.ViewState">e1s5</update>
<eval>ice.applyFocus('mainForm:j_idt20');</eval>
<extension aceCallbackParam="validationFailed">{"validationFa iled":false}</extension>
</changes>
</partial-response>
In attachment is sample project which I created for quick tests.
Please let me know if it is possible or is there any workaround to achieve this goal. Thanks in
advance.
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules