Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5080098

Page Range must be disabled on the common print dlg for Non serv-formatted flvrs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 1.4.0
    • client-libs
    • 2d
    • b133
    • generic
    • generic

      PageRanges attribute is supported only for Service Formatted flavors such as Pageable and Printable. So when using other flavors such as postscript, image flavors page ranges fields must be disabled on the print dialog so as not to allow the user to select the same. Currently 'Print Range' fields are getting disabled only when the attribute category is not supported but it should actually check the attribute against the specified doc flavor and decide whether to enable / disable it. Hence using isAttributeValueSupported() would be more appropriate as it verifies the support of the attribute against a specific doc flavor.

      Please see the evaluation of 4994334 for more information on the UI behavior.

      This is reproducible on all platforms since JDK1.4.

      I have attached a sample test. Execute the sample test. You would see a cross-platform print dialog. Check whether the page ranges 'from', 'to' fields are enabled. If yes, the bug is reproduced. Also you can notice that when you specify a page range, it actually gets added to the print req. attribute set (printed on the console). This test does not print anything.

            psadhukhan Prasanta Sadhukhan
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: