fixed support Ticket #736
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@86272 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
dddc1f66ee
commit
21d28d7ffb
|
@ -218,8 +218,8 @@ public class DialogShareFolder extends Dialog {
|
||||||
txtName.setAllowBlank(false);
|
txtName.setAllowBlank(false);
|
||||||
txtName.setAutoValidate(true);
|
txtName.setAutoValidate(true);
|
||||||
txtName.setFieldLabel("Folder Name");
|
txtName.setFieldLabel("Folder Name");
|
||||||
txtName.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$");
|
txtName.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$ or contains / or \\");
|
||||||
txtName.setRegex("^[^.<>\\|?/*%$]*$");
|
txtName.setRegex("^[^.<>\\|?/*%$]+[^\\/]*$");
|
||||||
|
|
||||||
textAreaDescription.setFieldLabel(ConstantsExplorer.DIALOG_DESCRIPTION);
|
textAreaDescription.setFieldLabel(ConstantsExplorer.DIALOG_DESCRIPTION);
|
||||||
textAreaDescription.setHeight(heightTextArea);
|
textAreaDescription.setHeight(heightTextArea);
|
||||||
|
|
|
@ -63,8 +63,8 @@ public class DialogAddFolderAndSmart extends Dialog {
|
||||||
// txtName.setRegex("^[a-zA-Z0-9]+[^.<>\\|?/*%$]*$");
|
// txtName.setRegex("^[a-zA-Z0-9]+[^.<>\\|?/*%$]*$");
|
||||||
|
|
||||||
txtName.setAutoValidate(true);
|
txtName.setAutoValidate(true);
|
||||||
txtName.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$");
|
txtName.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$ or contains / or \\");
|
||||||
txtName.setRegex("^[^.<>\\|?/*%$]*$");
|
txtName.setRegex("^[^.<>\\|?/*%$]+[^\\/]*$");
|
||||||
|
|
||||||
// txt.setMinLength(2);
|
// txt.setMinLength(2);
|
||||||
txtName.setFieldLabel(ConstantsExplorer.DIALOG_NAME);
|
txtName.setFieldLabel(ConstantsExplorer.DIALOG_NAME);
|
||||||
|
|
|
@ -43,8 +43,8 @@ public class DialogText extends Dialog {
|
||||||
txt.setValue(msgTxt);
|
txt.setValue(msgTxt);
|
||||||
// txt.setRegex("^[a-zA-Z0-9]+[ a-zA-Z0-9_()-]*");
|
// txt.setRegex("^[a-zA-Z0-9]+[ a-zA-Z0-9_()-]*");
|
||||||
// txt.setRegex("^[a-zA-Z0-9]+[^.<>\\|?/*%$]*$");
|
// txt.setRegex("^[a-zA-Z0-9]+[^.<>\\|?/*%$]*$");
|
||||||
txt.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$");
|
txt.getMessages().setRegexText(ConstantsExplorer.REGEX_FOLDER_NAME+": .<>\\|?/*%$ or contains / or \\");
|
||||||
txt.setRegex("^[^.<>\\|?/*%$]*$");
|
txt.setRegex("^[^.<>\\|?/*%$]+[^\\/]*$");
|
||||||
txt.setAutoValidate(true);
|
txt.setAutoValidate(true);
|
||||||
txt.setAllowBlank(false);
|
txt.setAllowBlank(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue