Where is jsf api.jar




















You'd need to reinvent pretty a lot if you want to be JSF implementation independent. You need to set its library attribute to something unique which is understood by your custom resource handler.

You need to store the combined resources in an application wide variable along an unique name based on the combination of the resources a MD5 hash maybe? Storing as an application wide variable has a caching advantage for both the server and the client.

Then, in your custom ResourceHandler implementation, you'd need to implement the createResource method accordingly to create a custom Resource implementation whenever the library matches the desired value:. The constructor of the custom Resource implementation should grab the combined resource info based on the name:. Next, you have to intercept on combined resource requests made by the browser. That's the hardest part. First, in your custom ResourceHandler implementation, you need to implement the handleResourceRequest method accordingly:.

Then you have to do the whole lot of work of implementing the other methods of the custom Resource implementation accordingly such as getResponseHeaders which should return proper caching headers, getInputStream which should return the InputStream s of the combined resources in a single InputStream and userAgentNeedsUpdate which should respond properly on caching related requests.

I've here a complete working proof of concept, but it's too much of code to post as a SO answer. You can override this setting for a particular JSF deployment by adding the com. Hide Table of Contents English English.

Chapter Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete? Featured on Meta. Now live: A fully responsive profile. Linked 0. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.

Improve this question. Kukeltje 12k 4 4 gold badges 19 19 silver badges 45 45 bronze badges. The difference in the api and impl the newer ones don't have impl in the name very often mostly always conflict and result in errors.

If you had the same in tomcat 7 and it worked, you were lucky but I cannot tell which version was used. Check which are the newer ones and use those. Thank you for your explenations. I read this issue but was not secure, if it fits my questions. Add a comment. Active Oldest Votes. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end.



0コメント

  • 1000 / 1000