group size for pagination problem
---------------------------------

                 Key: DISPL-426
                 URL: http://jira.codehaus.org/browse/DISPL-426
             Project: DisplayTag
          Issue Type: Bug
          Components: Paging/Sorting
    Affects Versions: 1.1
            Reporter: Harshinie Dayaratne


In display tag the pagination group size is set 8 as deafult. hence if i change 
that to some other number it still takes as 8. this is because in Table 
properties class  method getIntProperty(String key, int defaultValue) does not 
trim the key value. therefore it generates numberformat exception and takes the 
default value.

the method must be fixed something as follows.

try
        {
                return 
Integer.parseInt((getProperty(key)!=null)?getProperty(key).trim():String.valueOf(defaultValue));
        }
        catch (NumberFormatException e)
        {
           e.printStackTrace();
                // Don't care, use default
            log.warn(Messages.getString("TableProperties.invalidvalue", 
//$NON-NLS-1$
                new Object[]{key, getProperty(key), new 
Integer(defaultValue)}));
        } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to