2 Replies Latest reply on Feb 4, 2008 11:13 PM by tony.herstell1

    Params in a message

    tony.herstell1

      in messages.properties I want to do this:

      booking_no_hours_range_provided=No range of hours was provided for <$1> on resource <$2>


      given the params from :
      facesMessages.addToControlFromResourceBundle(
      "bookingResourceAttempt", FacesMessage.SEVERITY_ERROR,
      "booking_no_hours_range_provided", eachBookingDay.getDayNumberAsInl8(),
      eachBookingResource.getResource().getKind().getInlLabel());


      Whats the VOODOO for the params?

        • 1. Re: Params in a message
          tony.herstell1

          Oops should have been:

          facesMessages.addToControlFromResourceBundle(
          "bookingResourceAttempt",
          FacesMessage.SEVERITY_ERROR,
          "booking_no_hours_range_provided",
          eachBookingDay.getDayNumberAsInlLabel(),
          messages.get(eachBookingResource.getResource().getKind().getInlLabel()));
          


          • 2. Re: Params in a message - SOLVED
            tony.herstell1

            I found it in an example... could not find this in the doco or Google!


            booking_no_hours_range_provided=No range of hours was provided on #0 for resource #1.


            facesMessages.addToControlFromResourceBundle(
            "bookingResourceAttempt",
            FacesMessage.SEVERITY_ERROR,
            "booking_no_hours_range_provided",
            messages.get(eachBookingDay.getDayNumberAsInlLabel()),
            messages.get(eachBookingResource.getResource().getKind().getInlLabel()));