Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread vineet semwal
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 =

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread Matthias Keller
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

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread vineet semwal
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

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread Ian Marshall
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.