WebFacetsHOW-TOsAuthentication
YourKit Java Profiler |
UseInControllers You can use facets from inside your servlets, JSPs, action beans, or whatever that lives in a web container ! The only thing you actually need to obtain a ref to a The process is pretty simple :
Of course, your facets know about the Here below is a code snippet showing some facet code inside a fictious servlet : // somewhere in a servlet, we get the jFacets bean... WebFacets wf = WebFacets.get(request); // somewhere again in a servlet, we use and execute facets MyFacet myFacet = (MyFacet)wf.getFacet("doSomething", profileId, anObject); myFacet.xxx(); String res = (String)wf.execFacet("doAnotherThing", profileId, anotherObject); As you can see, using facets from the web tier is just as easy as in "standalone" applications.
|