Skip to content

Commit fa8fa59

Browse files
authored
Merge pull request #249 from hemma/master
fixed bug inFormCreator (htmlformcreator), nullpointerexception
2 parents def6b60 + e60fb75 commit fa8fa59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/groovy/com/predic8/wstool/creator/FormCreator.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class FormCreator extends AbstractSchemaCreator <FormCreatorContext>{
192192
} else if(res.minLengthFacet) {
193193
ctx.attrs['label'] = "Should be at least ${res.minLengthFacet.value} characters."
194194
} else if(res.maxLengthFacet){
195-
ctx.attrs['label'] = "Should have at most ${res.minLengthFacet.value} characters."
195+
ctx.attrs['label'] = "Should have at most ${res.maxLengthFacet.value} characters."
196196
}
197197
if(ctx.element) {
198198
writeInputField(ctx.element , ctx)
@@ -209,7 +209,7 @@ class FormCreator extends AbstractSchemaCreator <FormCreatorContext>{
209209
} else if(res.minLengthFacet) {
210210
ctx.attrs['label'] = "Should be at least ${res.minLengthFacet.value} characters."
211211
} else if(res.maxLengthFacet){
212-
ctx.attrs['label'] = "Should have at most ${res.minLengthFacet.value} characters."
212+
ctx.attrs['label'] = "Should have at most ${res.maxLengthFacet.value} characters."
213213
}
214214
//@todo Patternfacet, maxInclusive, lengthFacet must be implemented!
215215
if(ctx.element) {

0 commit comments

Comments
 (0)