javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-218

Add section on method validation using Bean Validation

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.3
    • Component/s: doc
    • Labels:
      None

      Description

      Section 12.4:

      JavaBeans Validation (Bean Validation) is a new validation model available as part of Java EE 7 platform [sic]. The Bean Validation model is supported by constraints in the form of annotations placed on a field, method, or class of a JavaBeans component, such as a managed bean.

      We need to fix the grammar of the first sentence, but this is the only mention of method validation in our chapters. We need to add a section here.

      We can add it to chapter 12. But I think we might need to do some reorganization of the chapters so:

      • the Bean Validation material is more prominent
      • we clarify the relationship is between Bean Validation and JSF validators
      • we clarify that Bean Validation constraints can be applied to more than just JSF backing beans

        Activity

        Hide
        Kim Haase added a comment -

        You are quite right that Bean Validation needs to be more prominently showcased than it is. Right now the intro to the topic is buried in Chapter 12 (Developing with JSF Technology). Please move it to its own chapter or wherever seems appropriate.

        Show
        Kim Haase added a comment - You are quite right that Bean Validation needs to be more prominently showcased than it is. Right now the intro to the topic is buried in Chapter 12 (Developing with JSF Technology). Please move it to its own chapter or wherever seems appropriate.
        Hide
        Ian Evans added a comment -

        Completely refactoring the Bean Validation information will take more work and review time than we can accomplish in the 7.0.2 time-frame. Deferring to 7.0.3.

        Show
        Ian Evans added a comment - Completely refactoring the Bean Validation information will take more work and review time than we can accomplish in the 7.0.2 time-frame. Deferring to 7.0.3.
        Hide
        Kim Haase added a comment -

        I'm going to make a start on this by pulling Section 12.4 (Using Bean Validation) out of Chapter 12 and making it a separate chapter, probably right after Chapter 10. Bean Validation is mentioned in Chapter 11, so it'd be a good idea to introduce the topic ahead of time.

        I'll mention that this is not just a JSF facility and put in a forward cross-reference to the Chapter 25 section. Then I will leave it to you (Ian) whether you want to put the advanced material into this chapter or leave it where it is.

        Does this make sense?

        Show
        Kim Haase added a comment - I'm going to make a start on this by pulling Section 12.4 (Using Bean Validation) out of Chapter 12 and making it a separate chapter, probably right after Chapter 10. Bean Validation is mentioned in Chapter 11, so it'd be a good idea to introduce the topic ahead of time. I'll mention that this is not just a JSF facility and put in a forward cross-reference to the Chapter 25 section. Then I will leave it to you (Ian) whether you want to put the advanced material into this chapter or leave it where it is. Does this make sense?
        Hide
        Ian Evans added a comment -

        Sounds good to me.

        Show
        Ian Evans added a comment - Sounds good to me.
        Hide
        Kim Haase added a comment -

        Thanks, Ian. I've been working on it.

        Note to all: I'm going to have to check in all the files, since they are now renumbered. If you are working on a chapter you should probably copy it to a safe place before your next svn update.

        Please holler if this is extremely inconvenient. I'll wait an hour or so before doing the commit. Then Ian, feel free to make any additional changes to the chapter.

        Show
        Kim Haase added a comment - Thanks, Ian. I've been working on it. Note to all: I'm going to have to check in all the files, since they are now renumbered. If you are working on a chapter you should probably copy it to a safe place before your next svn update. Please holler if this is extremely inconvenient. I'll wait an hour or so before doing the commit. Then Ian, feel free to make any additional changes to the chapter.
        Hide
        Kim Haase added a comment -

        I committed the book with the new chapter. All yours, Ian.

        Show
        Kim Haase added a comment - I committed the book with the new chapter. All yours, Ian.
        Hide
        Ian Evans added a comment -

        Added new section to bean-validation chapter.

        Show
        Ian Evans added a comment - Added new section to bean-validation chapter.

          People

          • Assignee:
            Ian Evans
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: