|
|
|
server side notification 4 Months, 3 Weeks ago
|
Karma: 0
|
|
Does the geronimo server allow to do some server side notification? Suppose I have a form and need to enter a date in the following format: YYYY-MM-DD but suppose someone enters DD-MM-YYYY. Is there a way to let the server tell the user to write it the right way? Or else to solve this problem?
Thanks
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:server side notification 4 Months, 3 Weeks ago
|
Karma: 28
|
|
Yes, you can validate the format of a String with the field Xpath constraint in the properties view of the form editor.
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:server side notification 4 Months, 3 Weeks ago
|
Karma: 0
|
|
Thanks for the information !!!
One problem, I'm not able to let it work... Suppose I wan't to check whether the length of the entered value is larger than 10.
Do I need to write:
"string-length() > 10" string-length() > 10 "string-length(Nameofinputfield) > 10" string-length(Nameofinputfield) > 10
Because when I enter one the form deploys but it doesn't appear anymore in the processes list...
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:server side notification 4 Months, 3 Weeks ago
|
Karma: 0
|
|
So currently I still can't fix it... and I also have another problem. Suppose I want to enter a name and I want to check whether that name is allready in a database or not. Is there another possibility than sending a notification? Or can it allready be done by showing a message when someone is filling in the form, so not needed to chech the notifications...
Thx
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:server side notification 4 Months, 3 Weeks ago
|
Karma: 1
|
|
Hi,
The correct rule for xpath constraints is string-length() > 10 without quotes. It will be helpful for us to investigate further could you please attach the project here?
Thanks, Ravinderjit.
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|