On Tue, Feb 28, 2012 at 9:08 AM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On Mon, Feb 27, 2012 at 11:04 AM, acaserop
<acaserop(a)indra.es> wrote:
Hi!!
Yes, I don't understand why the filter is working well with some things...
I tried both ways:
This case the livetable is not filtering:
#set($area2="someString")
....
($options = { "topFilters":'<input type="hidden"
size="${columnsProperties.size}"> name="area"
value=*"${area2}"* />',
"className":"XWiki.AggregatorURLClass",
"translationPrefix" : "",
"tagCloud" : true, "rowCount": 10 }) ...
and
($options = { "topFilters":'<input type="hidden"
size="${columnsProperties.size}"> name="area"
value=*"$area2"* />',
"className":"XWiki.AggregatorURLClass",
"translationPrefix" : "",
"tagCloud" : true, "rowCount": 10 })
But if I put the same "someString" directly over the filter, then the
LiveTable works perfectly
Any idea?? I'm getting crazy :)
See
http://velocity.apache.org/engine/devel/user-guide.html#stringliterals
. Basically you have this:
#set($map = {"key", 'value'})
#set($map = {"key": 'value'})
The string wrapped in double quotes is parsed/evaluated while the
string wrapped in single quotes is not.
Hope this helps,
Marius
>
> --
> View this message in context:
http://xwiki.475771.n2.nabble.com/Livetable-Filters-tp7314873p7321220.html
> Sent from the XWiki- Users mailing list archive at
Nabble.com.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users