Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8RC2
-
Fix Version/s: 1.8
-
Component/s: ICE-Components
-
Labels:None
-
Environment:ICEfaces 1.8.0-RC2
-
Workaround Exists:Yes
-
Workaround Description:Workaround is to have the application dynamically set the images to a disabled image when viewing pg.1 or pg. last.
Description
When viewing the first or last page using the ice:dataPaginator the previous or next page buttons are now disabled automatically (see ICE-3677). However, it appears that the styling for the disabled buttons (disabled theme style images for the buttons) are not being applied correctly, as the disabled buttons look the same as the enabled ones, expect they have a strange dotted line underneath them.
When the buttons are disabled they should display a disabled-state image appropriate for the current theme.
When the buttons are disabled they should display a disabled-state image appropriate for the current theme.
Why the dotted lines appear?
When the paginator is already on the first page, then there is no benefit clicking on the following buttons:
-FirstPage
-FastBackward
-PreviousPage
That is why the dataPaginator disables those navigation buttons which doesn't have any effect based on its current page. Internally the commandLink renderer renders the iceCmdLnk-dis class for those links which are disabled. That allows you to visually change the disable buttons. You might you liked the current style which is dotted line but you can always override them. For example you can add the following style class to the application level css file:
{ border:1px solid gray; display:block; }.iceDatPgrScrBtn .iceCmdLnk-dis
or if you don't want to see any difference between enabled and disabled buttons then add the following style class to the application level css file:
{ border-bottom:none; }.iceDatPgrScrBtn .iceCmdLnk-dis
Hope that will help.