Message from discussion
StatefulSnippet.link() function does not take Attribute Parameters
Received: by 10.224.111.8 with SMTP id q8mr1555766qap.12.1279221478082;
Thu, 15 Jul 2010 12:17:58 -0700 (PDT)
X-BeenThere: liftweb@googlegroups.com
Received: by 10.224.100.139 with SMTP id y11ls1107168qan.4.p; Thu, 15 Jul 2010
12:17:53 -0700 (PDT)
Received: by 10.224.2.204 with SMTP id 12mr1621108qak.16.1279221473781;
Thu, 15 Jul 2010 12:17:53 -0700 (PDT)
Received: by 10.224.2.204 with SMTP id 12mr1621107qak.16.1279221473744;
Thu, 15 Jul 2010 12:17:53 -0700 (PDT)
Return-Path: <feeder.of.the.be...@gmail.com>
Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176])
by gmr-mx.google.com with ESMTP id q8si826322qcu.4.2010.07.15.12.17.52;
Thu, 15 Jul 2010 12:17:52 -0700 (PDT)
Received-SPF: pass (google.com: domain of feeder.of.the.be...@gmail.com designates 209.85.216.176 as permitted sender) client-ip=209.85.216.176;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of feeder.of.the.be...@gmail.com designates 209.85.216.176 as permitted sender) smtp.mail=feeder.of.the.be...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by qyk12 with SMTP id 12so240105qyk.14
for <liftweb@googlegroups.com>; Thu, 15 Jul 2010 12:17:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:received:in-reply-to
:references:date:message-id:subject:from:to:content-type;
bh=4Is0yRg8sNRI1MGXH3P89br7aQjHnxqaKpymsZsNYGk=;
b=NTpm1lrPbrZiNF0ew0+kTiP5qd4PhIyrMMTraGl7R6Udm10F2m34bKD1Apa+/+zh+/
1UyY2e0nExy2uXs8a3x96NO+jXQ2LyD7rqHGfdI97pbJhBY5wQYJAGMUv+4J4m6YUofH
sfSHAtCFhnxQhkspYYAUdIM9EYQOdZ2+l9cv0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
b=AFTJumLwL6OMShANANQiUyUlqnhBO88n2NiCZ6rM4YCx2Twj+vFO8bMkW11SzQOsT3
WqU7x21VnVzH2sw+hOKdfq22f0Qum430JE7RByhxZyk7T8WQt/bUepjEL4pFyrdJhD7G
jsykZxytke4p+RkDORIpSB8LU/RMAJIVV4CWw=
MIME-Version: 1.0
Received: by 10.224.65.232 with SMTP id k40mr1266345qai.309.1279221471849;
Thu, 15 Jul 2010 12:17:51 -0700 (PDT)
Received: by 10.229.78.85 with HTTP; Thu, 15 Jul 2010 12:17:51 -0700 (PDT)
In-Reply-To: <5eaa2f52-e509-48e2-8ddd-e04766908...@g19g2000yqc.googlegroups.com>
References: <5eaa2f52-e509-48e2-8ddd-e04766908...@g19g2000yqc.googlegroups.com>
Date: Thu, 15 Jul 2010 12:17:51 -0700
Message-ID: <AANLkTinrHfty4qaNhhKx8IbX3RuBmx1-TGaOkfgkz...@mail.gmail.com>
Subject: Re: [Lift] StatefulSnippet.link() function does not take Attribute
Parameters
From: David Pollak <feeder.of.the.be...@gmail.com>
To: liftweb@googlegroups.com
Content-Type: multipart/alternative; boundary=00c09f8996c76b3194048b71f503
--00c09f8996c76b3194048b71f503
Content-Type: text/plain; charset=UTF-8
This is a reasonable feature... please open a ticket for it at
http://ticket.liftweb.net
On Thu, Jul 15, 2010 at 4:03 AM, Jan <blankenhorn...@googlemail.com> wrote:
> Hi,
>
>
> i am curious why the StatefulSnippet.link() function does not take any
> Attributes as the SHtml.link() function does.
>
> Is there any reason for this?
> I would suppose to add the possibility to do so, as seen below:
>
>
> Currently:
>
> def link(to: String, func: () => Any, body: NodeSeq): Elem =
> SHtml.link(to, () => {registerThisSnippet(); func()}, body)
>
> Possible Fix:
>
> def link(to: String, func: () => Any, body: NodeSeq, attrs: (String,
> String)*): Elem = SHtml.link(to, () => {registerThisSnippet();
> func()}, body, attrs)
>
>
> Thank you
> Jan Blankenhorn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to liftweb@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscribe@googlegroups.com<liftweb%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics
--00c09f8996c76b3194048b71f503
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
This is a reasonable feature... please open a ticket for it at <a href=3D"h=
ttp://ticket.liftweb.net">http://ticket.liftweb.net</a><br><br><div class=
=3D"gmail_quote">On Thu, Jul 15, 2010 at 4:03 AM, Jan <span dir=3D"ltr"><=
;<a href=3D"mailto:blankenhorn...@googlemail.com">blankenhornjan@googlemail=
.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
<br>
i am curious why the StatefulSnippet.link() function does not take any<br>
Attributes as the SHtml.link() function does.<br>
<br>
Is there any reason for this?<br>
I would suppose to add the possibility to do so, as seen below:<br>
<br>
<br>
Currently:<br>
<br>
def link(to: String, func: () =3D> Any, body: NodeSeq): Elem =3D<br>
SHtml.link(to, () =3D> {registerThisSnippet(); func()}, body)<br>
<br>
Possible Fix:<br>
<br>
def link(to: String, func: () =3D> Any, body: NodeSeq, attrs: (String,<b=
r>
String)*): Elem =3D SHtml.link(to, () =3D> {registerThisSnippet();<br>
func()}, body, attrs)<br>
<br>
<br>
Thank you<br>
Jan Blankenhorn<br>
<font color=3D"#888888"><br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;Lift" group.<br>
To post to this group, send email to <a href=3D"mailto:liftweb@googlegroups=
.com">liftweb@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:liftweb%2Bu=
nsubscribe@googlegroups.com">liftweb+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/liftweb?hl=3Den" target=3D"_blank">http://groups.google.com/group/lift=
web?hl=3Den</a>.<br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Lift, the simply=
functional web framework <a href=3D"http://liftweb.net">http://liftweb.net=
</a><br>Beginning Scala <a href=3D"http://www.apress.com/book/view/14302198=
90">http://www.apress.com/book/view/1430219890</a><br>
Follow me: <a href=3D"http://twitter.com/dpp">http://twitter.com/dpp</a><br=
>Blog: <a href=3D"http://goodstuff.im">http://goodstuff.im</a><br>Surf the =
harmonics<br>
--00c09f8996c76b3194048b71f503--