click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLK-627) Field.getRequestValue optional value trim()
Date Sun, 14 Mar 2010 02:20:27 GMT

     [ https://issues.apache.org/jira/browse/CLK-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-627.
-------------------------------

    Resolution: Fixed

fixed in trunk

> Field.getRequestValue optional value trim()
> -------------------------------------------
>
>                 Key: CLK-627
>                 URL: https://issues.apache.org/jira/browse/CLK-627
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 2.1.0
>            Reporter: Andrey Rybin
>             Fix For: 2.2.0
>
>
> Field class contains method:
>     protected String getRequestValue() {
>         String value = getContext().getRequestParameter(getName());
>         if (value != null) {
>             return value.trim(); //<--- here
>         } else {    return "";     }
>     }
> Most of the time - trim is very nice feature (I like trim ;-).
> But sometimes I need field "as is" with all its spaces.
> Can You add option for _optional_ trim?
> It should be enabled by default (current behavior), but if somebody need spaces, he can
disable trim (for specific field).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message