Hi Felix,

Well. my first adventure into OSGi was not a very lucky one... I
prepared two bundles, one for the resources, one for the taglib, but
adding them with the mgmt console, they remained invisible. Looks like
their falling in a black hole, because there wasn't an error message
either...

Perhaps the manifests are incomplete? Here the one for the static
resources:

Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: FCKEditorResources
Bundle-ManifestVersion: 2
Sling-Bundle-Resources: /libs/fckeditor 

I observed that 
in CRX quickstart there is bundle #33 that contains
resources only. Howewver, its manifest does not contain a
Sling-Bundle_Resources header, but something called
Sling-Initial-Content.


For the taglib bundle, I declared the following: 

Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: FCKEditor-taglib
Bundle-ManifestVersion: 2
Export-Package: net.fckeditor, net.fckeditor.handlers,
net.fckeditor.tool
Bundle-ClassPath: ., ./lib/commons-fileupload-1.2.1.jar, 
./lib/commons-io-1.3.2.jar, ./lib/slf4j-api-1.5.2.jar
Build-Jdk: 1.5.0_13

Do I need an activator, an import header or something else?

Thanks,
Juerg



On Fri, 2008-08-22 at 08:31 +0200, Felix Meschberger wrote:
> Hi,
> 
> Juerg Meier schrieb:
> > Hi Felix,
> > 
> > Actually, I was expecting something like this... Can you tell us what
> > needs to be declared in MANIFEST.MF and serviceComponents.xml in this
> > case? 
> 
> To provide the FCK core files from within a bundle, you include the 
> extracted FCK download into your bundle and declare the 
> Sling-Bundle-Resources header.
> 
> For example unpack the files into the libs/fckeditor folder in your 
> bundle and set the header as:
> 
>     Sling-Bundle-Resources: /libs/fckeditor
> 
> And you can use the editor by simply referring to /libs/fckeditor/.... 
> in your HTML pages.
> 
> As for the tag lib: Currently the Sling JSP compiler looks for the 
> taglib descriptors below the META-INF entry of deployed bundles. So to 
> provide a bundle with the FCK Editor tag lib and be done. The easiest 
> would probably be to include the library with bundle also providing the 
> source. Just make sure to export all packages from the tag lib jar file.
> 
> Hope this helps.
> 
> Regards
> Felix
> 
> 
> > 
> > Well, I'm anyhting but an FCK-specialist, but I guess there are not only
> > JS files to go into the package (re Alexander's statement further down),
> > but there's also a taglib provided. Would that go into the same OSGi
> > package, too?
> > 
> > Thanks & regards,
> > Juerg
> > 
> > 
> > 
> > On Thu, 2008-08-21 at 09:00 +0200, Felix Meschberger wrote:
> >> Hi,
> >>
> >> I might even add, that you may of course also pack the FCK files into a 
> >> bundle and provide the files as bundle provides resources in the defined 
> >> location.
> >>
> >> Regards
> >> Felix
> >>
> >> Alexander Klimetschek schrieb:
> >>> There is no trick involved. Just place the javascript files of the FCK
> >>> editor into some location in your repository (eg. /libs/fckeditor),
> >>> create a HTML page that includes those files and uses the editor. To
> >>> send the html of the rich text field to the server, just use normal
> >>> form posts with Sling.
> >>>
> >>> Regards,
> >>> Alex
> >>>
> >>> On Wed, Aug 20, 2008 at 11:23 PM, Juerg Meier <[EMAIL PROTECTED]> wrote:
> >>>> Hi,
> >>>>
> >>>> I assume there's "a sling way" of integrating fck edtior into sling...
> >>>> Most likely, day soft must have already done it, as it is also in their
> >>>> CQ product... Can somebody share?
> >>>>
> >>>> Thanks,
> >>>> Juerg
> >>>>
> >>>>
> >>>
> >>>
> > 
> > 

Reply via email to