Hi, Kerry,
ouch you want to use JSF ... since JSF is doing stuff a lot different then
all other web-based applications, especially lots of classforname search.
This will make it much more complicated
Besides that, it might be doable, I just don't use JSF a lot so we might go
into the undiscovered-country here ;-)
Thinking about this, I could see different ways of getting there.
One way, start with a wab and extend it with web-fragments, this is the way
it'll work in any Servlet3 container and should work for Pax-Web too.
("should" could mean, there might be a missing feature in pax-web which I'm
not aware of right now)
The other way would require to register the JSF Listener either through the
webcontainer service or as a service so the Whiteboard-Extender can pick it
up.
Again I think due to the nature of JSF/JSPs and Taglibs this might be a
bigger hassle. BUT I've seen a thread on this mailinglist where one was
doing something similar and registering resources as such, with some
tweaking I think. So it can be done.
regards, Achim
2015-07-19 22:19 GMT+02:00 jtkb <[email protected]>:
> Hi Achim,
>
> You mentioned previously that I could use Pax-Web WebContainer to
> possibly achieve 'loadable' child OSGi bundles (contain web pages etc)
> into a Parent/base page.
>
> I've been looking at the 'helloword-wc' sample to see how to use
> WebContainer. I should have mentioned I want to use JSF in child bundles
> and I assume this is possible as I can call
> WebContainer.registerServlet() with an instance of
> javax.faces.webapp.FacesServlet instead? Is there anything else I
> particularly need to do using JSF (other than having JSF support
> installed)? I did wonder if I need to call WebContainer.registerJsps() too?
>
> Regards
>
> Kerry
>
> On 15/07/15 21:59, Achim Nierbeck [via Karaf] wrote:
> > Hi,
> >
> > never tried to run Pax-Web 4 with Karaf 3.0.2 but if you do it you
> > won't have the web and http commands available.
> > AFAIK Karaf 4 and JPA shouldn't be of an issue, you might need to make
> > sure you have the right version of it installed though.
> >
> > You should give it a try :-)
> >
> > regards, Achim
> >
> > 2015-07-15 22:20 GMT+02:00 jtkb <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4041442&i=0>>:
> >
> > Just to clarify, I meant Pax-Web 4 in Karaf 3.0.2.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/Construct-a-Web-Application-From-Multiple-Bundles-tp4041252p4041440.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > Committer & Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
> >
> >
> > ------------------------------------------------------------------------
> > If you reply to this email, your message will be added to the
> > discussion below:
> >
> http://karaf.922171.n3.nabble.com/Construct-a-Web-Application-From-Multiple-Bundles-tp4041252p4041442.html
> >
> > To start a new topic under Karaf - User, email
> > [email protected]
> > To unsubscribe from Construct a Web Application From Multiple Bundles,
> > click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4041252&code=a2FyYWZAYXZpb25pY2VuZ2luZWVycy5jb218NDA0MTI1MnwxOTU3MjI4MTQ3
> >.
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Construct-a-Web-Application-From-Multiple-Bundles-tp4041252p4041496.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master