-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
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.
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.
- relates to
-
JDK-8164205 [PIT][TEST_BUG] test javax/print/attribute/ServiceDlgPageRangeTest.java doesn't compile
-
- Resolved
-