Re: directory-listing filter

On 20 October 2012 21:53, Mansour Al Akeel wrote:

> <p:directory-list include-filter="*xml">
> [...]
> SEVERE: Pipeline failed: java.util.regex.PatternSyntaxException:
> Dangling meta character '*' near index 0

> How can I filter the files ??

  The filter is a regular expression, not a shell "file glob".  So the
following expression should do what you want: ".+xml" (note the point
before the "*", which means "any character, and followed by "+" means
"one or more characters").

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

Received on Saturday, 20 October 2012 20:05:23 UTC