Message from discussion
Parsing values from multiple checkboxes using compojure
Received: by 10.205.134.138 with SMTP id ic10mr612820bkc.8.1338128525864;
Sun, 27 May 2012 07:22:05 -0700 (PDT)
X-BeenThere: compojure@googlegroups.com
Received: by 10.204.130.152 with SMTP id t24ls2750522bks.1.gmail; Sun, 27 May
2012 07:22:03 -0700 (PDT)
Received: by 10.204.154.133 with SMTP id o5mr615542bkw.0.1338128523562;
Sun, 27 May 2012 07:22:03 -0700 (PDT)
Received: by 10.204.154.133 with SMTP id o5mr615541bkw.0.1338128523546;
Sun, 27 May 2012 07:22:03 -0700 (PDT)
Return-Path: <weavejes...@gmail.com>
Received: from mail-lpp01m010-f48.google.com (mail-lpp01m010-f48.google.com [209.85.215.48])
by gmr-mx.google.com with ESMTPS id p5si9459603bks.1.2012.05.27.07.22.03
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 27 May 2012 07:22:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of weavejes...@gmail.com designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of weavejes...@gmail.com designates 209.85.215.48 as permitted sender) smtp.mail=weavejes...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-lpp01m010-f48.google.com with SMTP id z14so1384744lag.7
for <compojure@googlegroups.com>; Sun, 27 May 2012 07:22:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:sender:in-reply-to:references:from:date
:x-google-sender-auth:message-id:subject:to:content-type
:content-transfer-encoding;
bh=9cUTan9h3kWuHr8jC+rw3/eKGG8O7FVYbNEq3hTrNUw=;
b=ufpCXnVG7WEYfEDIuA4ADwFuZZ2M8zN96jF1flOkoBxbyLkcftc2BFvotvllrn3qfZ
DtczorhoNQyOKGDiFYDmlUgewxX5j2oM4iKlepVR90PwP35+v48/ngOne0lMoY0O4HDv
x6KcRdj+u8BCL6THcn/qV7X5UtAQ1n18vLew+C9NLYpetgMBnN8+8X2LquTfjg8MYhIc
twp6dPhf+JKCIPyZBKgKeq5UosxlicZlzqAJLc6tq+BZcymDScRreogIcTy/TGSusUzP
xBvsCSG1PX4BQ+Wzwy5d5zW36cXOIFRk4E1P+zmNAvRIr71Y777Wx1rDxNAA0pTSbPjO
FAeA==
Received: by 10.112.42.34 with SMTP id k2mr2335976lbl.0.1338128523265; Sun, 27
May 2012 07:22:03 -0700 (PDT)
MIME-Version: 1.0
Sender: weavejes...@gmail.com
Received: by 10.112.92.149 with HTTP; Sun, 27 May 2012 07:21:42 -0700 (PDT)
In-Reply-To: <045a4321-60a5-4152-bbf1-e31cad6b2e02@googlegroups.com>
References: <286e4428-169c-4095-9036-d73e50075...@p27g2000vbl.googlegroups.com>
<CALg24jSK6Kw7aaZ30WimTymXF8QmGKE9pqUwC9msti7W-iM...@mail.gmail.com> <045a4321-60a5-4152-bbf1-e31cad6b2e02@googlegroups.com>
From: James Reeves <jree...@weavejester.com>
Date: Sun, 27 May 2012 15:21:42 +0100
Message-ID: <CALg24jQ5G-ZbQHd45b2uVXCDNZjjRU68o0h=4fyh8cR8aE7...@mail.gmail.com>
Subject: Re: Parsing values from multiple checkboxes using compojure
To: compojure@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On 27 May 2012 12:59, Stefan <mitkeprepecen...@gmail.com> wrote:
> Hi James, thank you very much for replying. I have tried your code, and i=
t
> seems that the=A0 category-checks=A0 function returns nil, no matter if t=
he
> checkboxes are selected or not .Can you assist me on this a bit further?
Are you certain? I don't believe there's any circumstances under which
str can return nil.
Could you provide me with more or (if possible) all of your code? It's
hard to judge what the error could be without seeing the code
directly.
> Also, can you explain me how to include (concatenate) values from text fi=
eld
> as well?
You can use the "concat" function to concatenate two lists, and the
"conj" function to add a single value to a list.
I'd need to know more about your application to explain further. For
instance, does the text field contain just one value, or many, and if
it is the latter, how are the values separated?
- James