Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1056

Validation helper not able to dal with scope prefixes for models

    XMLWordPrintable

Details

    Description

      Validation helper happily includes scope prefixes (if they are used in the flow definition) of a flow's model attribute for resolving the corresponding validation bean and method.

      E.g.

      <view-state id="modifyCatalogueViewState" view="modifyCatalogue" model="viewScope.catalogue">

      would cause the validation helper to search for a validation bean with id="viewScope.catalogueValidator"

      The lookup process in the validation helper class should strip the scope from model names.

      Workaround: either do not use a scope prefix in the viewState's model attribute or define the validator bean id as such that it includes the scope as prefix.

      Attachments

        Activity

          People

            kdonald Keith Donald
            rauar Alex Rau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: