Questions tagged [unmappedresourcehandler]
8 questions
3
votes
1 answer
omnifaces UnmappedResourceHandler prevent primefaces dynamic image loading
i'm using Omnifaces (GREAT LIBRARY) in my project.
It's a jsf 2 project with primefaces 4 library, running on JBoss 7.2.
I've used the for loading an image from db.
I've found the code on internet and it's working correctly.
The…

izio
- 113
- 2
- 6
2
votes
1 answer
OmniFaces UnmappedResourceHandler seems to leak resources when composite components are used
It seems UnmappedResourceHandler is loading composite components xhtml files within the resources folder. The result seems a gradually increasing memory leak.
The leak can be found within FaceletViewHandlingStrategy.metadataCache.
It relies on a…

Daniel
- 23
- 3
2
votes
1 answer
Does UnmappedResourceHandler work for library versioning?
I am trying out the UnmappedResourceHandler in OmniFaces, originally I had all my resources under a directory structure like:
WebContent
|-- resources
| `-- default
| `-- 1_0
| |-- css
| | `-- style.css
…

Ross
- 3,008
- 1
- 22
- 27
1
vote
1 answer
Unit testing - Failed to load ApplicationContext
I have a simple TestNG (Same result with JUnit) @Test under class as below
@ContextConfiguration(classes = { Config.class })
@ActiveProfiles({ "dev" })
public class TestDAO extends AbstractTestNGSpringContextTests {
It started failing after merging…

Ori Marko
- 56,308
- 23
- 131
- 233
1
vote
1 answer
Why does UnmappedResourceHandler require a servlet mapping for JSF resource URL prefix pattern?
I was going through custom resource handlers in JSF 2 when I came across the UnmappedResourceHandler of omnifaces. This was added in Omnifaces after this post.
I noticed that unlike the other two ResourceHandlers that Omnifaces provides viz.…

Vrushank
- 2,763
- 3
- 27
- 41
1
vote
1 answer
How to Use UnmappedResourceHandler
Before I go post an issue, Hope you can answer this (looks like a bug)
brand new project, GF 4.0, OmniFaces 1.6.3
Followed all instructions, but getting this exception
Caused by: java.lang.NullPointerException
at…

Lenny Primak
- 99
- 6
1
vote
1 answer
UnmappedResourceHandler cannot convert URL in CSS to JSF 's valid URL
Here is my setup:
Web app 's folder structure and file names are exactly the same as the UnmappedResourceHandler 's javadoc
UnmappedResourceHandler is already registered in faces-config.xml
/javax.faces.resource/* is already mapped to…

Ken Chan
- 84,777
- 26
- 143
- 172
0
votes
0 answers
MapStruct: Issue with Nested Properties and ReportingPolicy.ERROR on Unmapped Source Properties
Using MapStruct, we want to use ReportingPolicy.ERROR, and have code like the following:
@Mapping(source = "nestedSource.doublyNestedSourceField", target = "nestedTarget.doublyNestedTargetField")
Target mapSourceToTarget(Source source);
Where…

jengelhart
- 97
- 3
- 9