javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-25

<f:param> tag missing id attribute in order example's order.xhtml file

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.6
    • Fix Version/s: 6.0.7
    • Component/s: examples
    • Labels:
      None

      Description

      From feedback alias:
      An insignificant but at the same time vital error may have been found inside the file order.xhtml which belongs to "The order application" - Chapter 33 Running Persistence Examples.

      Old code:

      <h:form>

      <h:commandLink value="Delete" actionListener="#

      {orderManager.removeOrder}" action="order">

      <f:param name="deleteOrderId" value="#{order.orderId}" />

      </h:commandLink>

      </h:form>



      Corrected code:

      <h:form>

      <h:commandLink value="Delete" actionListener="#{orderManager.removeOrder}

      " action="order">

      <f:param name="deleteOrderId" id="deleteOrderId" value="#

      {order.orderId}

      " />

      </h:commandLink>

      </h:form>

      Without this change, my application was unable to capture the param "deleteOrderId" in removeOrder(ActionEvent event) method (order.web.OrderManager.java file). Thus, no order was being removed in my database tables persistence_order_order and persistence_order_lineitem due to the fact that an exception was being catched when trying to capture the param value.

        Activity

        Hide
        Ian Evans added a comment -

        Revision: 533
        Author: ievans
        Date: 2011-05-13 11:32
        Message: Added missing ID attribute to <f:param> tag in order.xhtml, made Logger instance static and final.
        Issue #JAVAEETUTORIAL-25 - <f:param> tag missing id attribute in order example's order.xhtml file

        Show
        Ian Evans added a comment - Revision: 533 Author: ievans Date: 2011-05-13 11:32 Message: Added missing ID attribute to <f:param> tag in order.xhtml, made Logger instance static and final. Issue # JAVAEETUTORIAL-25 - <f:param> tag missing id attribute in order example's order.xhtml file

          People

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

            Dates

            • Created:
              Updated:
              Resolved: