glassfish
  1. glassfish
  2. GLASSFISH-14300

Composite component failure with JSF 2.1

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 3.1
    • Fix Version/s: not determined
    • Component/s: jsf
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      14,300

      Description

      The application in question is the First Cup application that users either
      create from scratch using NetBeans IDE or open a provided pre-built application
      in the IDE. The application can be built, deployed, and run with GlassFish
      Serever v3 and 3.0.1 but not with GlassFish 3.1. In other words, with any of
      the latest NetBeans 7 nightlies as the IDE, we can set the server as v3 and the
      application will run. We see the same behavior when we set the server as 3.0.1.
      With the same application (project) in the same IDE, we can set the server as
      3.1 (build 25 or 26 or any) and guarantee a failure.

      We always seem to come back to the same JavaServer Faces error when we try to
      run the example and display the greeting.xhtml page:

      /greeting.xhtml @20,74 <fc:inputDate> The following attribute(s) are required,
      but no values have been supplied for them: date.

      The application is available as a ZIP file (myexample.zip). To recreate the
      error do the following:

      1. Open the dukes-age project and assign the appropriate server.
      2. Do the same for the firstcup project.
      3. Run dukes-age. The browser should display Duke's current age (15).
      4. Build, deploy, then run firstcup (http://localhost:8080/firstcup/).
      If you use GF 3.1 you'll see the error; if you use GF 3.0.1 or v3 you'll see the
      appropriate screen.

        Activity

        Hide
        jendrock added a comment -

        Created an attachment (id=5282)
        NetBeans projects for Issue 14300

        Show
        jendrock added a comment - Created an attachment (id=5282) NetBeans projects for Issue 14300
        Hide
        rogerk added a comment -

        Basically you have a composite component that says an attribute for it is
        required. However in the using page, you don't specify that required attribute.
        Hence the runtime exception. Now, I did a little poking around in the java.net
        issue tracker and ran across this issue:
        https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1472
        Apparently, there was a bug identified in Mojarra 2.0.2 that was fixed in 2.0.3.
        I've verified that. So, early version of Mojarra were not signaling an error
        when a required attribute was not specified.

        Show
        rogerk added a comment - Basically you have a composite component that says an attribute for it is required. However in the using page, you don't specify that required attribute. Hence the runtime exception. Now, I did a little poking around in the java.net issue tracker and ran across this issue: https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1472 Apparently, there was a bug identified in Mojarra 2.0.2 that was fixed in 2.0.3. I've verified that. So, early version of Mojarra were not signaling an error when a required attribute was not specified.
        Hide
        rogerk added a comment -

        Per latest comments.

        Show
        rogerk added a comment - Per latest comments.

          People

          • Assignee:
            rogerk
            Reporter:
            jendrock
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: