Re: How to use setUserPreference in ajax mode (no page reloading)?
Hi Jacques, thank you for answering to this. Actually I found a solution but I forgot to post it here. The solution can be seen in this issue: https://issues.apache.org/jira/browse/OFBIZ-3271 and committed in trunk rev. 888030 -Bruno 2009/12/9 Jacques Le Roux : > Hi Bruno, > > Did you find a solution, or did you did it in another way (just read it > tonight, forgotten) > > Jacques > () ascii ribbon campaign against HTML e-mail > /\ www.asciiribbon.org > > > From: "Bruno Busco" >> >> Hi, >> I am trying to store a userPreference using a page link button and I >> would like not to reload the whole page. >> To do this I have created a new ajaxSetUserPreferences controller >> request (starting from setUserPreferences) as follows. >> >> >> >> >> >> >> >> >> >> The link button is defined as follows: >> > text=">" style="leftcol-expand" link-type="hidden-form"> >> > param-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/> >> > param-name="userPrefTypeId" value="LEFTCOLUMN"/> >> > param-name="userPrefValue" value="N"/> >> >> >> Now what happens clicking the button is that the userPreference is >> correctly stored but the browser (FF3.5) pops up a Open/Save dilalog. >> If I open using a text editor I find the following returned: >> >> >> {"targetRequestUri":"/ajaxSetUserPreference","javax.servlet.request.key_size":128,"_CONTEXT_ROOT_":"C:\\ofbiz\\t4\\applications\\accounting\\webapp\\accounting\\","javax.servlet.request.ssl_session":"4b0e69a7d967d4c0bceb20b8663783167d1699d273bccd29651a2086b1ada906","multiPartMap":{},"_SERVER_ROOT_URL_":"https://localhost:8443","_CONTROL_PATH_":"/accounting/control","javax.servlet.request.cipher_suite":"TLS_DHE_RSA_WITH_AES_128_CBC_SHA","thisRequestUri":"ajaxSetUserPreference"} >> >> How can I avoid the Open/Save dialog? >> >> Thank you very much for any help. >> >> -Bruno >> > > >
Re: How to use setUserPreference in ajax mode (no page reloading)?
Hi Bruno, Did you find a solution, or did you did it in another way (just read it tonight, forgotten) Jacques () ascii ribbon campaign against HTML e-mail /\ www.asciiribbon.org From: "Bruno Busco" Hi, I am trying to store a userPreference using a page link button and I would like not to reload the whole page. To do this I have created a new ajaxSetUserPreferences controller request (starting from setUserPreferences) as follows. The link button is defined as follows: Now what happens clicking the button is that the userPreference is correctly stored but the browser (FF3.5) pops up a Open/Save dilalog. If I open using a text editor I find the following returned: {"targetRequestUri":"/ajaxSetUserPreference","javax.servlet.request.key_size":128,"_CONTEXT_ROOT_":"C:\\ofbiz\\t4\\applications\\accounting\\webapp\\accounting\\","javax.servlet.request.ssl_session":"4b0e69a7d967d4c0bceb20b8663783167d1699d273bccd29651a2086b1ada906","multiPartMap":{},"_SERVER_ROOT_URL_":"https://localhost:8443","_CONTROL_PATH_":"/accounting/control","javax.servlet.request.cipher_suite":"TLS_DHE_RSA_WITH_AES_128_CBC_SHA","thisRequestUri":"ajaxSetUserPreference"} How can I avoid the Open/Save dialog? Thank you very much for any help. -Bruno
How to use setUserPreference in ajax mode (no page reloading)?
Hi, I am trying to store a userPreference using a page link button and I would like not to reload the whole page. To do this I have created a new ajaxSetUserPreferences controller request (starting from setUserPreferences) as follows. The link button is defined as follows: Now what happens clicking the button is that the userPreference is correctly stored but the browser (FF3.5) pops up a Open/Save dilalog. If I open using a text editor I find the following returned: {"targetRequestUri":"/ajaxSetUserPreference","javax.servlet.request.key_size":128,"_CONTEXT_ROOT_":"C:\\ofbiz\\t4\\applications\\accounting\\webapp\\accounting\\","javax.servlet.request.ssl_session":"4b0e69a7d967d4c0bceb20b8663783167d1699d273bccd29651a2086b1ada906","multiPartMap":{},"_SERVER_ROOT_URL_":"https://localhost:8443","_CONTROL_PATH_":"/accounting/control","javax.servlet.request.cipher_suite":"TLS_DHE_RSA_WITH_AES_128_CBC_SHA","thisRequestUri":"ajaxSetUserPreference"} How can I avoid the Open/Save dialog? Thank you very much for any help. -Bruno