SVG, servlet filters and interception

2008-08-28 Thread Atle Prange

Hi,

i want to use svg in my webapp, since it makes it easy to create images 
on the fly.


My plan is to make t5 pages that output svg instead of html, which 
should be easy.


But alas svg is not as straigh forward as it should. Little browser 
support might force me to convert the svg to images on the server before 
they are streamed to the client. That also means that the image is 
fetched in a different request than the request for the page.


I also have to convert the response (using batik) to a png. Any ideas 
where i put the interceptor to achieve this?


Is it possible to use "normal" pages in request for i.e. images this way?
(That way i could also define svg images as background in css)

any help is greatly appreciated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Osgi trouble - the next level- solved

2008-08-19 Thread Atle Prange

As usual, a closer look reveals the errors...

anyway, my application is up and running...

-atle



Atle Prange wrote:
Okay, i have figured out the simple way of changing the resource url 
so the tapestry framework is able to scan the pages , componenents and 
mixins.


Now i get a load of exceptions that *BeanInfo classes can't be found, 
and that the '' (empty) package is not imported or exported...


Any suggestions?

(And where do i put the .tml files?)

Any hints are greatly appreciated

The osgi path seems to be hard but rewarding, reloading the complete 
application takes a second, no need to restart the webserver at all, 
and i cant wait to add functionality to my app at runtime


-?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Osgi trouble - the next level

2008-08-18 Thread Atle Prange
Okay, i have figured out the simple way of changing the resource url so 
the tapestry framework is able to scan the pages , componenents and mixins.


Now i get a load of exceptions that *BeanInfo classes can't be found, 
and that the '' (empty) package is not imported or exported...


Any suggestions?

(And where do i put the .tml files?)

Any hints are greatly appreciated

The osgi path seems to be hard but rewarding, reloading the complete 
application takes a second, no need to restart the webserver at all, and 
i cant wait to add functionality to my app at runtime


-?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Loading and OSGI

2008-08-14 Thread Atle Prange

Igor Drobiazko wrote:

As described in TAPESTRY-2519 you need to override the service
ClasspathURLConverter. Something like that:

public class MyClasspathURLConverterImpl implements ClasspathURLConverter
{
public URL convert(URL url)
{
if (url.getProtocol().startsWith("bundle"))
 {
   //return a valid java url here
 }
return url;
}
}

This will let you load the page classes within OSGi container.

To contribute OSGi Services to Tapestry, you have to wrap them by
org.apache.tapestry5.ioc.def.ServiceDef. Please see how tapestry-spring
module does it.

There are still further challenges, but I guess you want be able to start a
hello world page first. :)

On Thu, Aug 14, 2008 at 3:09 PM, Atle Prange <[EMAIL PROTECTED]>wrote:

  

Hi,

i am currrently trying to integrate tapestry into an OSGI container using
apache felix and the ops4j pax web service. (For many interesting reasons,
one of them is the possibility to add services to the webapp at runtime...)

I have managed to register the Tapestry filter, and load my app module, the
builtin modules are also loaded at startup.
But i am not able to load my pages, the request just falls through and ends
up with my registered default servlet.
I have tried to locate the code that bootstraps the pages and components to
see if there is some error in locating or loading the page classes in the
.pages package, but i have not been able to find the code that initializes
the pages.

Could someone with intimate knowledge of tapestry give me a hint to where
the loading of pages is performed initially, so i can check for myself?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


Excellent and thank you for the reply, now i have a starting point, and 
a clue to continue the integration.


-atle


Page Loading and OSGI

2008-08-14 Thread Atle Prange

Hi,

i am currrently trying to integrate tapestry into an OSGI container 
using apache felix and the ops4j pax web service. (For many interesting 
reasons, one of them is the possibility to add services to the webapp at 
runtime...)


I have managed to register the Tapestry filter, and load my app module, 
the builtin modules are also loaded at startup.
But i am not able to load my pages, the request just falls through and 
ends up with my registered default servlet.
I have tried to locate the code that bootstraps the pages and components 
to see if there is some error in locating or loading the page classes in 
the .pages package, but i have not been able to find the code that 
initializes the pages.


Could someone with intimate knowledge of tapestry give me a hint to 
where the loading of pages is performed initially, so i can check for 
myself?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]