Re: ERD2WEditToOneRelationship popup issue with umlauts
Thanks all, setting property er.extensions.ERXApplication.DefaultEncoding=UTF-8 fixed things. have fun ---markus--- PS Why is this not default? Would make a lot of sense. On 20.08.2012, at 09:46, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? Thanks a lot ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERD2WEditToOneRelationship popup issue with umlauts
On 20.08.2012, at 18:08, Chuck Hill ch...@global-village.net wrote: Hi Markus, On 2012-08-20, at 12:46 AM, Markus Ruggiero wrote: I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? That is a strange problem. Definitely a bug, but I am not sure where. You have set the Wonder encoding properties to use UTF-8? I'd start by logging out the form values from the request to see if it is arriving correctly. Then you can step through WOToOneRelationship (ERD2WEditToOneRelationship subclasses this) and see if you can see why the value is not getting set. Chuck Sorry for taking some time but last night I finally could debug things further eventually found the following: I was using a wizard page and there was the problem. As soon as I disabled the wizard page flow everything was correct. Look at the two examples (WORequest examined in Eclipse debugger). The relevant part is towards the end of the request data. Rule with wizard: 100 : (pageConfiguration = 'CreateVerwaltung' and subTask = 'wizard') = displayPropertyKeys = ([WIZARD_allgemein], code, bezeichnung, [WIZARD_adresse], adresse1, adresse2, ort, [WIZARD_kontakt], kontaktName, kontaktTel, kontaktMail, [WIZARD_notizen], notizen) [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/javascript, text/html, application/xml, text/xml, */*], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[298], content-type=[application/x-www-form-urlencoded; charset=UTF-8], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[4], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/BCyOM30vOhyPtmE72pDfPg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25], x-prototype-version=[1.6.1], x-requested-with=[XMLHttpRequest]} content-length=298 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/ajax/BCyOM30vOhyPtmE72pDfPg/4.0.3.5.1.2.3.0.1.0?_u=MUC_CreateVerwaltung1346226741823 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={AJAX_SUBMIT_BUTTON_NAME = (0.3.5.1.2.3.0.1.0.0.3.3.5.1); _u = (MUC_CreateVerwaltung); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); wosid = (BCyOM30vOhyPtmE72pDfPg); WOIsmapCoords = (1346226741823); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 = (Zürich, 8000); _ = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.0.1.3.1.0 = (asdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.1.1.3.1.0 = (); } Rule without wizard 100 : pageConfiguration = 'CreateVerwaltung' = navigationState = TAB_Administration.TAB_Verwaltung.TAB_CreateVerwaltung.CreateVerwaltung [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[622], content-type=[application/x-www-form-urlencoded], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[3], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25]} content-length=622 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/3.0.3.5.1.2.3.0.1.0 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.0 = (asdfasdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.3.1.3.1.0 = (); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.5.1.3.1.0 = ();
Re: ERD2WEditToOneRelationship popup issue with umlauts
it looks like it is choosing ISO defaultFormValueEncoding=ISO8859_1 http://wiki.wocommunity.org/display/documentation/WOnder-ERXLocalizer check that wiki and see if it helps Ted --- On Wed, 8/29/12, Markus Ruggiero mailingli...@kataputt.com wrote: From: Markus Ruggiero mailingli...@kataputt.com Subject: Re: ERD2WEditToOneRelationship popup issue with umlauts To: webobjects-dev@lists.apple.com Dev Apple Webobjects-dev@lists.apple.com Date: Wednesday, August 29, 2012, 4:00 AM On 20.08.2012, at 18:08, Chuck Hill ch...@global-village.net wrote: Hi Markus, On 2012-08-20, at 12:46 AM, Markus Ruggiero wrote: I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? That is a strange problem. Definitely a bug, but I am not sure where. You have set the Wonder encoding properties to use UTF-8? I'd start by logging out the form values from the request to see if it is arriving correctly. Then you can step through WOToOneRelationship (ERD2WEditToOneRelationship subclasses this) and see if you can see why the value is not getting set. Chuck Sorry for taking some time but last night I finally could debug things further eventually found the following: I was using a wizard page and there was the problem. As soon as I disabled the wizard page flow everything was correct. Look at the two examples (WORequest examined in Eclipse debugger). The relevant part is towards the end of the request data. Rule with wizard: 100 : (pageConfiguration = 'CreateVerwaltung' and subTask = 'wizard') = displayPropertyKeys = ([WIZARD_allgemein], code, bezeichnung, [WIZARD_adresse], adresse1, adresse2, ort, [WIZARD_kontakt], kontaktName, kontaktTel, kontaktMail, [WIZARD_notizen], notizen) [com.webobjects.directtoweb.Assignment] WORequest:er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/javascript, text/html, application/xml, text/xml, */*], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[298], content-type=[application/x-www-form-urlencoded; charset=UTF-8], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[4], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/BCyOM30vOhyPtmE72pDfPg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25], x-prototype-version=[1.6.1], x-requested-with=[XMLHttpRequest]} content-length=298 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/ajax/BCyOM30vOhyPtmE72pDfPg/4.0.3.5.1.2.3.0.1.0?_u=MUC_CreateVerwaltung1346226741823 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={AJAX_SUBMIT_BUTTON_NAME = (0.3.5.1.2.3.0.1.0.0.3.3.5.1); _u = (MUC_CreateVerwaltung); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); wosid = (BCyOM30vOhyPtmE72pDfPg); WOIsmapCoords = (1346226741823); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 = (Zürich, 8000); _ = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.0.1.3.1.0 = (asdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.1.1.3.1.0 = (); } Rule without wizard100 : pageConfiguration = 'CreateVerwaltung' = navigationState = TAB_Administration.TAB_Verwaltung.TAB_CreateVerwaltung.CreateVerwaltung [com.webobjects.directtoweb.Assignment] WORequest:er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[622], content-type=[application/x-www-form-urlencoded], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[3], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25]} content-length=622
Re: ERD2WEditToOneRelationship popup issue with umlauts
set the Wonder encoding property to UTF-8. This should also encode your form values in UTF-8: er.extensions.ERXApplication.DefaultEncoding=UTF-8 Am Mittwoch, den 29.08.2012, 10:00 +0200 schrieb Markus Ruggiero: On 20.08.2012, at 18:08, Chuck Hill ch...@global-village.net wrote: Hi Markus, On 2012-08-20, at 12:46 AM, Markus Ruggiero wrote: I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? That is a strange problem. Definitely a bug, but I am not sure where. You have set the Wonder encoding properties to use UTF-8? I'd start by logging out the form values from the request to see if it is arriving correctly. Then you can step through WOToOneRelationship (ERD2WEditToOneRelationship subclasses this) and see if you can see why the value is not getting set. Chuck Sorry for taking some time but last night I finally could debug things further eventually found the following: I was using a wizard page and there was the problem. As soon as I disabled the wizard page flow everything was correct. Look at the two examples (WORequest examined in Eclipse debugger). The relevant part is towards the end of the request data. Rule with wizard: 100 : (pageConfiguration = 'CreateVerwaltung' and subTask = 'wizard') = displayPropertyKeys = ([WIZARD_allgemein], code, bezeichnung, [WIZARD_adresse], adresse1, adresse2, ort, [WIZARD_kontakt], kontaktName, kontaktTel, kontaktMail, [WIZARD_notizen], notizen) [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/javascript, text/html, application/xml, text/xml, */*], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[298], content-type=[application/x-www-form-urlencoded; charset=UTF-8], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[4], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/BCyOM30vOhyPtmE72pDfPg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25], x-prototype-version=[1.6.1], x-requested-with=[XMLHttpRequest]} content-length=298 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/ajax/BCyOM30vOhyPtmE72pDfPg/4.0.3.5.1.2.3.0.1.0?_u=MUC_CreateVerwaltung1346226741823 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={AJAX_SUBMIT_BUTTON_NAME = (0.3.5.1.2.3.0.1.0.0.3.3.5.1); _u = (MUC_CreateVerwaltung); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); wosid = (BCyOM30vOhyPtmE72pDfPg); WOIsmapCoords = (1346226741823); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 = (Zürich, 8000); _ = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.0.1.3.1.0 = (asdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.1.1.3.1.0 = (); } Rule without wizard 100 : pageConfiguration = 'CreateVerwaltung' = navigationState = TAB_Administration.TAB_Verwaltung.TAB_CreateVerwaltung.CreateVerwaltung [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/html,application/xhtml +xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[622], content-type=[application/x-www-form-urlencoded], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[3], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25]} content-length=622 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/3.0.3.5.1.2.3.0.1.0 defaultFormValueEncoding=ISO8859_1
Re: ERD2WEditToOneRelationship popup issue with umlauts
Just curious… Is there some reason that this isn't the default? It seems dumb that we should need to even think about this. UTF-8 should be the default, no? Ramsey On Aug 29, 2012, at 5:54 AM, Bastian Triller wrote: set the Wonder encoding property to UTF-8. This should also encode your form values in UTF-8: er.extensions.ERXApplication.DefaultEncoding=UTF-8 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERD2WEditToOneRelationship popup issue with umlauts
Hi, I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? Thanks a lot ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERD2WEditToOneRelationship popup issue with umlauts
Hi Markus, On 2012-08-20, at 12:46 AM, Markus Ruggiero wrote: I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? That is a strange problem. Definitely a bug, but I am not sure where. You have set the Wonder encoding properties to use UTF-8? I'd start by logging out the form values from the request to see if it is arriving correctly. Then you can step through WOToOneRelationship (ERD2WEditToOneRelationship subclasses this) and see if you can see why the value is not getting set. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com