Oke I did some sniffing around in the code of the component and I see two issues which cause this behavior
Issue 1:
The form xml (in my cause toertocht.xml) has an incompatiblity with the allowed types selection I made in the builder
<field name="gpx"
label="TOERPROGRAMMA_FIELD_GPX_BESTAND"
alias="gpx"
filter="STRING"
class="validate[custom]"
validate="file"
indirect="true"
root="[DIR_TOERTOCHTEN_GPX]"
type="ckfile"
allowedExtensions="*.gpx"/>
<field name="document"
label="TOERPROGRAMMA_FIELD_PAPIEREN_VERSIE"
alias="document"
filter="STRING"
class="validate[custom[file]]"
validate="file"
indirect="true"
root="[DIR_TOERTOCHTEN_DOCUMENT]"
type="ckfile"
allowedExtensions="*.doc|*.pdf[color=#ff0000][b]|*.gpx[/b][/color]"/>
What's that last GPX doing there? It's not selected in my builder (only for the other file control)
[img]http://imageshack.us/a/img90/6971/capturecot.png[/img]
Now this I can manually change, so that's no showstopper just a bit annoying (and still a bug in the builder)
[b][u]Issue 2:[/u][/b]
In the html file which is generated to show me my edit form for the toertocht model the validator javascript is generated. However the validator rule name/key is not made unique
----- snippet from my html ------
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.gpx'
}
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(doc|pdf|gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.doc<br/>*.pdf<br/>*.gpx'
}
----- end snippet from my html ------
meaning the last rule will allways the rule which is applied to all file input controls which are in the form.
(The gpx in the last file rule is caused by the configuration in the xml file being wrong)[file]]"
validate="file"
indirect="true"
root="[DIR_TOERTOCHTEN_GPX]"
type="ckfile"
allowedExtensions="*.gpx"/>
<field name="document"
label="TOERPROGRAMMA_FIELD_PAPIEREN_VERSIE"
alias="document"
filter="STRING"
class="validate[custom]"
validate="file"
indirect="true"
root="[DIR_TOERTOCHTEN_DOCUMENT]"
type="ckfile"
allowedExtensions="*.doc|*.pdf[color=#ff0000][b]|*.gpx[/b][/color]"/>
What's that last GPX doing there? It's not selected in my builder (only for the other file control)
[img]http://imageshack.us/a/img90/6971/capturecot.png[/img]
Now this I can manually change, so that's no showstopper just a bit annoying (and still a bug in the builder)
[b][u]Issue 2:[/u][/b]
In the html file which is generated to show me my edit form for the toertocht model the validator javascript is generated. However the validator rule name/key is not made unique
----- snippet from my html ------
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.gpx'
}
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(doc|pdf|gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.doc<br/>*.pdf<br/>*.gpx'
}
----- end snippet from my html ------
meaning the last rule will allways the rule which is applied to all file input controls which are in the form.
(The gpx in the last file rule is caused by the configuration in the xml file being wrong)[file]]"
validate="file"
indirect="true"
root="[DIR_TOERTOCHTEN_DOCUMENT]"
type="ckfile"
allowedExtensions="*.doc|*.pdf
|*.gpx"/>
What's that last GPX doing there? It's not selected in my builder (only for the other file control)
Now this I can manually change, so that's no showstopper just a bit annoying (and still a bug in the builder)
Issue 2:
In the html file which is generated to show me my edit form for the toertocht model the validator javascript is generated. However the validator rule name/key is not made unique
snippet from my html
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.gpx'
}
jQuery.validationEngineLanguage.allRules.file = {
"regex" : new RegExp("\.(doc|pdf|gpx)$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Allowed files : <br/>*.doc<br/>*.pdf<br/>*.gpx'
}
end snippet from my html
meaning the last rule will allways the rule which is applied to all file input controls which are in the form.
(The gpx in the last file rule is caused by the configuration in the xml file being wrong)