Hi Tsuy

We have a bundle which lists all images, javascripts, css, etc.
> because the javascript from the jquery bundle have no metainformation
> about the uploading date they appear first (So we have to change the
> order algorithm that resources without created date and modified date
> are listed at the end.)
>
We could use Bnd-LastModified to set a modification date to these resources


>
> Then when I click on a link in the list mentioned above I should view
> the javascript but right now the javascript files could not be
> requested because of the urn:x-allhosts.
>
> So we have to check if the uri starts with urn:x-allhosts and than
> replace it with the defaultbaseuri (same with css etc)
>
for urn:x-allhosts you can replace it either with deffault base uri or with
the host of the current request. But apart from urn:x-allhost-uris you have
to expect having the description of resources in the content graph which do
not dereference to the clerezza instance or which aren't dereferenceable at
all, so in my opinion your bundle should only list resources with certain
uri-schemes and authority (i.e. http(s) and a known uri of the instance).

Cheers,
reto



>
> Cheers
> Tsuy
>
> On Mon, Sep 27, 2010 at 10:17 AM, Reto Bachmann-Gmuer
> <[email protected]> wrote:
> > Hi Tsuy
> >
> > You're right that haven't yet added the documentation for urn:x-allhost,
> the
> > reason is that it will only actually change something for developers when
> a
> > uri-handler is available for it and ScalaServerPages can be registered
> using
> > this scheme.
> >
> > Currently it is only used as a way to indicate in the content graph that
> a
> > resource is to be served on any host-name the clerezza instance can be
> > reached with. As when a bundle is released the hostnames of the instance
> it
> > will be installed are unknown it would be otherwise impossible to add
> > content to the content graph that is to be served. The system takes care
> > about creating such resource for the files in CLEREZZA-INF/web-resources.
> >
> > Are you having any issue with jquery bundle adapted to the new system?
> >
> > Cheers,
> > reto
> >
> > On Mon, Sep 27, 2010 at 10:06 AM, Tsuyoshi Ito <[email protected]>
> wrote:
> >
> >> Hi Reto
> >>
> >> I would appreciate if you could revert your changes to the jquery
> >> project from CLEREZZA-304 until we have discussed the implementation
> >> of urn:x-allhosts.
> >>
> >> I haven't found any documentation about urn:x-allhosts.
> >>
> >>
> >> Thanks
> >> Tsuy
> >>
> >
>
>
>
> --
> --trialox ag--------------------------------------
>
> Tsuyoshi Ito
> Binzmuehlestrasse 14
> CH-8050 Zürich
> Tel. +41 44 635 75 77
> URL: http://trialox.org
>

Reply via email to