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 <jacques.le.r...@les7arts.com>:
> 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" <bruno.bu...@gmail.com>
>>
>> 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.
>>
>>   <request-map uri="ajaxSetUserPreference">
>>       <security https="true" auth="true"/>
>>       <event type="jsonservice" invoke="setUserPreference"/>
>>       <response name="success" type="none"/>
>>       <response name="error" type="none"/>
>>   </request-map>
>>
>>
>> The link button is defined as follows:
>>                               <link target="ajaxSetUserPreference"
>> text="&gt;" style="leftcol-expand" link-type="hidden-form">
>>                                   <parameter
>> param-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
>>                                   <parameter
>> param-name="userPrefTypeId" value="LEFTCOLUMN"/>
>>                                   <parameter
>> param-name="userPrefValue" value="N"/>
>>                               </link>
>>
>> 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
>>
>
>
>

Reply via email to