Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2610

required validation should not be added to checkbox when primitive boolean is behind it, unless checked or required validation is explicitly added

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.0, 5.4.5
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      This is a regression bug introduced with TAP5-2075 (no public release yet)

      The issue only happens when HTML5 validation is enabled (SymbolConstants.ENABLE_HTML5_SUPPORT is true).

      Stacktrace for adding validator

      ValidationConstraintGeneratorImpl.buildConstraints(Class, AnnotationProvider) line: 39	
      $ValidationConstraintGenerator_20c8dd1b4201f.buildConstraints(Class, AnnotationProvider) line: not available	
      FieldValidatorDefaultSourceImpl.createDefaultValidator(Field, String, Messages, Locale, Class, AnnotationProvider) line: 52	
      TapestryModule$40.createDefaultValidator(Field, String, Messages, Locale, Class, AnnotationProvider) line: 2496	
      $FieldValidatorDefaultSource_20c8dd1b4201b.createDefaultValidator(Field, String, Messages, Locale, Class, AnnotationProvider) line: not available	
      BeanFieldValidatorDefaultSource.createDefaultValidator(Field, String, Messages, Locale, Class, AnnotationProvider) line: 66	
      BeanFieldValidatorDefaultSource.createDefaultValidator(ComponentResources, String) line: 88	
      $FieldValidatorDefaultSource_20c8dd1b41ebd.createDefaultValidator(ComponentResources, String) line: not available	
      ComponentDefaultProviderImpl.defaultValidator(String, ComponentResources) line: 148	
      ComponentDefaultProviderImpl$3.get() line: 162	
      ParameterWorker$3$1.readFromBinding() line: 263	
      ParameterWorker$3$1.get(Object, InstanceContext) line: 381	
      Checkbox.conduit_get_validate() line: not available	
      Checkbox.begin(MarkupWriter) line: 65	
      Checkbox.beginRender(MarkupWriter, Event) line: not available	
      ComponentPageElementImpl$BeginRenderPhase.invokeComponent(Component, MarkupWriter, Event) line: 202	
      ComponentPageElementImpl$BeginRenderPhase(ComponentPageElementImpl$AbstractPhase).invoke(MarkupWriter, Event) line: 143	
      ComponentPageElementImpl$BeginRenderPhase.render(MarkupWriter, RenderQueue) line: 209	
      

        Attachments

          Activity

            People

            • Assignee:
              balapal Balázs Palcsó
              Reporter:
              balapal Balázs Palcsó
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: