Erik, Can you tell us if it is possible to make the save button in edit mode change the portlet mode back to view once it has saved the preferences. The only thing I can think of is to have a redirect page in the page-flow-edit.xpl which can be selected after the save. The redirect page will switch to the view mode in the same way that the button on the edit page does. Richard Shaw ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ Richard Shaw
Atkins Highways and Transportation
Tel: +44 (0) 1372 756407
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Richard,
I think the ideal solution would be to be able to use something like <xforms:load f:portlet-mode="view" .../>, but this won't work at the moment. A workaround could be (I haven't tried this) to use a hidden anchor, something like this: <a style="display: hidden" id="go-back" href="/" f:portlet-mode="view">Back</a> And then use script to activate the anchor: <xxforms:script> document.getElementById('wsrp_rewrite_go-back').click(); </xxforms:script> Note that because with portlets, ids are prefixed, you may have to try to get your "go-back" id rewritten in the JavaScript as well. There may be issues with the above, but we won't know until you try ;-) -Erik > Can you tell us if it is possible to make the save button in edit mode > change the portlet mode back to view once it has saved the preferences. > > The only thing I can think of is to have a redirect page in the > page-flow-edit.xpl which can be selected after the save. The redirect > page will switch to the view mode in the same way that the button on the > edit page does. > > Richard Shaw -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |