Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Ajax/JavaScript
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      742
    • Status Whiteboard:
      Hide

      cat2 javadoc size_medium importance_large

      Show
      cat2 javadoc size_medium importance_large

      Description

      Consider:
      --------------------------------------

      <f:view>
      <f:metadata>
      <f:viewParam id="country" name="country"
      value="#

      {welcome.country}

      " required="true"
      requiredMessage="The 'country' parameter is missing.
      Invalid access for this page ...">
      </f:viewParam>
      </f:metadata>
      </f:view>
      <h:head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>Hello JSF 2! </title>
      </h:head>
      <h:body>

      <h:messages id="messages" style="color: red;"
      layout="table"/>

      <h:form id="form">

      <fieldset>
      <p>
      <h:outputLabel id="vip__Label" for="vip" value="Vip Lounge
      Access">
      </h:outputLabel>
      <h:selectOneRadio id="vip" layout="pageDirection"
      label="Vip Lounge Access"
      required="true" immediate="true"
      value="#

      {welcome.vip}

      ">
      <f:selectItem itemLabel="Yes" itemValue="true" />
      <f:selectItem itemLabel="No" itemValue="false" />
      <f:ajax execute="@this" render="@form :messages">
      </f:ajax>
      </h:selectOneRadio>

      </p>
      <p>
      <h:outputLabel id="name__Label" for="name" value="Name" >
      </h:outputLabel>

      <h:inputText id="name" value="#

      {welcome.name}

      " label="Name">
      <f:ajax execute="@this" render="name__Label :messages">
      </f:ajax>
      </h:inputText>
      </p>
      <div >
      <h:commandButton value="Hello"
      action="readback?faces-redirect=true&includeViewParams=true">
      <f:param name="country" value="#

      {param['country']}" />
      </h:commandButton>
      <h:commandButton value="Goodbye" immediate="true"
      action="#{welcome.goodbye}" />
      </div>
      </fieldset>

      </h:form>
      </h:body>
      ...

      --------------------------------------

      Note the
      <f:param name="country" value="#{param['country']}

      " />
      indented in <h:commandButton> to hold the country viewParam .

      Note the f:viewParam 'country' is required for this view.

      Note the f:ajax usage with the radio. When the radio is activated,
      the country request parameter is not included and causes an error.

      See https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1532 for further
      details.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          cat2

          Show
          Ed Burns added a comment - cat2
          Hide
          Ed Burns added a comment -

          javadoc

          Show
          Ed Burns added a comment - javadoc
          Hide
          Ed Burns added a comment -

          These are targeted at 2.1.

          Show
          Ed Burns added a comment - These are targeted at 2.1.
          Hide
          rogerk added a comment -

          triage

          Show
          rogerk added a comment - triage
          Hide
          Ed Burns added a comment -

          rogerk

          Show
          Ed Burns added a comment - rogerk
          Hide
          rogerk added a comment -

          target

          Show
          rogerk added a comment - target
          Hide
          rogerk added a comment -

          re-target

          Show
          rogerk added a comment - re-target
          Hide
          rogerk added a comment -

          triage

          Show
          rogerk added a comment - triage
          Hide
          Ed Burns added a comment -

          Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

          Show
          Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

            People

            • Assignee:
              Unassigned
              Reporter:
              Ryan Lubke
            • Votes:
              10 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: