Mono Support An error occured while trying to create new group category using double-byte characters (Closed)

Viewed 40390 time(s), 8 post(s), 7/30/2011 7:16:15 AM - by clocube
7/30/2011 7:24:08 AM
52 Reputation 6 Total posts

Hi there, thank you for the rapid response on my last post.

I found a problem with MonoX this morning.
I was trying to create a new category of groups using Korean characters,
a red mark appeared with the tip "Invaild data entered in Name field!".
Then I tried Japanese And Chinese, they do the same.

Is there any solution to this Issue?

1
7/30/2011 8:15:19 AM
15993 Reputation 2214 Total posts

Hi,

we will try to add the support for Korean, Japanese And Chinese soon and you will be provided with the assembly (dll file) that you will include in your project. In the meanwhile you can do the following as a workaround:

If we are talking about the Group category management in the MonoX administration find the following file /MonoX/Admin/GroupCategoryManager.aspx and remove the line below:

<mono:RegExValidator ID="validateName" runat="server" CssClass="ValidatorAdapter" SetFocusOnError="true" ControlToValidate="txtName" ValidationGroup="Modification" ValidationType="alphaNumericWithSymbolsAllowedSpecialChr" Text="!" ErrorMessage='<%$ Code: AdminResources.GroupCategoryManager_validateName %>'></mono:RegExValidator>

I hope this will allow you to get by the issue, if not let us know. Stay tuned for the patch assembly.

Regards


2
7/30/2011 10:23:18 AM
52 Reputation 6 Total posts

Thank you for your response and looking forward for the patch.

I tried your workaround, it didn't change anything,
then I noticed the the url in my browser shown not GroupCategoryManager.aspx but SnGroupCategoryManager.aspx,
so I removed the line in that file(lead by Sn), then the Save button didn't response.

3
7/30/2011 12:01:20 PM
15993 Reputation 2214 Total posts

Hi,

can you try to disable the validator by using the below code:

<mono:RegExValidator ID="validateName" runat="server" CssClass="ValidatorAdapter" SetFocusOnError="true" ControlToValidate="txtName" ValidationGroup="Modification" Text="!" ValidationType="alphaNumericWithSymbolsAllowedSpecialChr" ErrorMessage='<%$ Code: AdminResources.SnGroupCategoryManager_validateName %>' Enabled="false"></mono:RegExValidator>

We have tested the code above and it is working as you want.

Regards

4
7/30/2011 1:20:05 PM
1871 Reputation 252 Total posts

you can't remove the validator but you can set enabled = false and it will not function. but if you try to remove it your code will error.

5
7/30/2011 4:05:03 PM
7207 Reputation 956 Total posts

@shawndg, you are correct, controls generally cannot be removed from the Web parts since there are references to them from the back end code.
@clocube, this problem was caused by the fact that the validator doesn't accept some of the non-ASCII characters. It should work when the validator is disabled. Could you confirm that please?

6
7/30/2011 4:18:55 PM
52 Reputation 6 Total posts

I do it, is really successful.

I make a suggestion, in regular expression for "Alpha" , add "\u4e00-\u9fa5" to support the Chinese. I hope to get the repaired "dll" soon.

Thanks

7
8/4/2011 1:49:17 PM
15993 Reputation 2214 Total posts

Hi,

we have included the Chinese expression to validator, can you please check. Please put the attached files extracted to the bin folder of your MonoX installation and try the validator. 

Note: Create a copy of your bin folder before you do so.

Regards

8
This is a demo site for MonoX. Please visit Mono Software for more info.