ListStringValue liSVs = params.getValues([Param name]);
if ((liSVs != null) !liSVs.isEmpty())
{
StringValue svValue = liSVs.get(0);
String sValue = svValue.toOptionalString();
...
}
you can just do
if(params.getNamedKeys().contains(parameter_name))
{
String svValue =
Hi
And you can even leave away the
if(params.getNamedKeys().contains(parameter_name))
and just do:
StringValue param = params.get(param); // or use an index if you wish
if (!param.isEmpty()) {
... param.toString() ...
}
Matt
On 2011-11-23 12:17, vineet semwal wrote:
ListStringValue
ha yes just checked out the source ,thanks :)
On Wed, Nov 23, 2011 at 5:46 PM, Matthias Keller
matthias.kel...@ergon.ch wrote:
Hi
And you can even leave away the
if(params.getNamedKeys().contains(parameter_name))
and just do:
StringValue param = params.get(param); // or use an index if
Thanks for your comments, Guys.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/PageParameters-in-1-5-a-sanity-check-request-tp4099136p4099956.html
Sent from the Users forum mailing list archive at Nabble.com.