Reply To: Match anything in pattern using regexp

Splash Forums PrettyFaces Users Match anything in pattern using regexp Reply To: Match anything in pattern using regexp

#24619

djmj
Participant

Removing brackets ( and ) leads to same log error.

I narrowed the error down:

The scope of this pattern is to wide.

All ressources follow that pattern, thats why my converter for #{entityId} gets called also for resources since the pattern also matches those which result in a number exception in my converter since i assume an integer.

/javax.faces.resource/cssFile.css.xhtml

Is also matched by it.

Following workarounds:

  • 1. Exclude all other patterns matching in regexp.
  • 2. Change mapping of Resources. javax.faces.resource.
  • 3. Add new path separator like: <pattern value="/#{something}/e/#{entityId}"/>

Thinking about 2 and/or 3.


Site note:

Now i maybe understand why amazon added /db/ between their product informations.

http://www.amazon.de/dp/B007HCCOD0
http://www.amazon.de/kindle-ereader-ebook-reader/dp/B007HCCOD0
http://www.amazon.de/something/dp/B007HCCOD0

  • This reply was modified 8 years, 5 months ago by  djmj.