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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b133
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: