Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
'cliente:' is actually an AssetFactory... changed to this way you said and still unsuccessful.This abstraction to access files it's a bit confusing to me and didn't found in the docs how exactly it work. I need a "FileSystem" asset factory, wich I tried to make and seem that some times it even find

Re: Dynamic Assets

2009-02-04 Thread Thiago H. de Paula Figueiredo
On Wed, Feb 4, 2009 at 10:43 AM, Sid Ferreira wrote: > Strange that there's almost no docs regarding Assets in wiki... But the documentation has a page on it: http://tapestry.apache.org/tapestry5/guide/assets.html. I guess the context prefix is the one you're looking for. -- Thiago ---

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
This part of prefix and symbols I know, I wanted to mean about custom assets, in special file system that may be the most common asset type.Based on dispatcher wiki pages Im wondering if it's needed some filter or something... still looking for it and trying Chenille Kit's URIAsset On Wed, Feb 4

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
example in a _dynamic_ folder shared between some projects. On Wed, Feb 4, 2009 at 11:17, Sid Ferreira wrote: > No they are outside the webapp, I mean a custom asset wich is anywhere in > my server. For example in a folder shared between some projects. > > > On Wed, Feb 4, 2009 at 11:15, Thiago

Re: Dynamic Assets

2009-02-04 Thread Jonathan O'Connor
Sid, I think you will have to create a new binding prefix like "myAsset:", and hook it in to a dispatcher that returns a StreamResponse. That way you can decide how to read the images, e.g. from DB, or from directory on your server. Your myAsset binding prefix will probably convert the value i

Re: Dynamic Assets

2009-02-04 Thread Massimo Lusetti
On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira wrote: > This part of prefix and symbols I know, I wanted to mean about custom > assets, in special file system that may be the most common asset type.Based > on dispatcher wiki pages Im wondering if it's needed some filter or > something... still look

New User int the group

2009-02-04 Thread Gutemberg A. Da Silva
how do I do to add one new user in the tapestry-users group? -- Gutemberg A. Da Silva

Re: Dynamic Assets

2009-02-04 Thread Thiago H. de Paula Figueiredo
On Wed, Feb 4, 2009 at 10:58 AM, Sid Ferreira wrote: > This part of prefix and symbols I know, I wanted to mean about custom > assets, Where are the assests? Are they inside the webapp context? If yes, then Tapestry already does what you need. What do you mean about custom assets? -- Thiago --

Re: New User int the group

2009-02-04 Thread Ulrich Stärk
What are you talking about? Gutemberg A. Da Silva schrieb: how do I do to add one new user in the tapestry-users group? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
Well, the first tries with CK were epic failures, but I'll try once more... seem that CK and Cayenne have a small problem to work together, gotta test it On Wed, Feb 4, 2009 at 12:12, Massimo Lusetti wrote: > On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira wrote: > > > This part of prefix and symb

how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2
hi, i followed the wiki how to tutorial from Tapestry5AndJavaScriptExplained and i wondered how do i include multiple js file in the file and load in sequence. because i'm using the tree example using JsDragAndDrop, from the sample code, the js include must be in order. how to achieve this using

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread Thiago H. de Paula Figueiredo
@IncludeJavaScriptLibrary({"1.js", "2.js"}) public AwesomeComponentOrPageOrMixin { } -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscri

Re: [T5] Tap5<->Grails integration?

2009-02-04 Thread Otho
No problem at all Carl, I didn't understand it in that way. I just wanted to say, that with the speed of development in the concerned OSS frameworks it could very well be that a new consideration could yield a new outcome. 2009/2/3 Carl Crowder > Sorry Otho, I wasn't attempting to prevent discus

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
No they are outside the webapp, I mean a custom asset wich is anywhere in my server. For example in a folder shared between some projects. On Wed, Feb 4, 2009 at 11:15, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, Feb 4, 2009 at 10:58 AM, Sid Ferreira wrote: > > This part

[T5] JPA Module

2009-02-04 Thread Piero Sartini
There is a tapestry5-hibernate module as well as a new tapestry5-cayenne module that is found at google code. Is there something similar available for JPA as well? I am asking because EclipseLink / TopLink is my JPA Provider of choice. Thanks, Piero

Odd Javassist error

2009-02-04 Thread Ben Gidley
Hi, We have a site that works fine in Tapestry 5 using Java 5 'javac' to compile however when we switch to java 6 javac the site breaks with Javassist exceptions. The short version of the exception is (detailed version at the end of this email) org.apache.tapestry5.internal.services.Transformation

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Dave Greggory
Your example may work, but it's not what I'm looking for because the tag is hard coded in the TML. I want to decide dynamically whether to add the tags (using RenderSupport). And if so css files selected based on request params and added as tags. These css files are located outside of my se

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Geoff Callender
Assuming you know how to generate the path to each of your 50 assets, can you do the following (untested)? public String getStylesheetPath() { ... figure out the path (relative to the web context, eg. css/ skin01.css), and then return this... return "asset:context:"

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Feb 2009 13:54:51 -0300, Dave Greggory escreveu: Your example may work, but it's not what I'm looking for because the tag is hard coded in the TML. Couldn't you generate the link tags in code instead of template? I guess you should consider the option of creating a templatele

Re: Odd Javassist error

2009-02-04 Thread Howard Lewis Ship
This kind of problem is always tricky to solve; perhaps something in the original source will jump out at me? Please add a JIRA Issue and I'll see if I can get the attention of the Javassist folks. There's a Javassist 3.9 (see http://repository.jboss.com/maven2/javassist/javassist/3.9.0.GA/) out

Re: Odd Javassist error

2009-02-04 Thread Francois Armand
Ben Gidley wrote: Hi, Hello Ben, [...] I feel I should log a bug either with T5 or with Javassist but am unsure what information would help diagnose this. Can someone give me some hints? I really does look like a Javassist exception, I'm not sur T5 dev team would be able to do anythin

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2
hi thiago, thanks for the quick reply, btw; after putting that annotation on the page class; the page should load the js script after the render body, but it didn't show though. i'm actually implementing the JsTree Component referred from the wiki how to's. My page has the border.tml and actual c

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Dave Greggory
That could be an option but I thought the beauty of using RenderSupport is that whenever a sub-component add a style sheet to it, it will always go in the section of the page. So each component would have the facility to provide its own stylesheets that will be picked up by the containing page

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Feb 2009 14:20:58 -0300, wesleywj2 escreveu: hi thiago, Hi! thanks for the quick reply, btw; after putting that annotation on the page class; Put it on your component class, so everytime you use your component Tapestry will include the needed Javascript files. By Tapestr

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2
hi thiago, i've added the configuration inside my AppModule for the javascript: i 've actually implemented the tree inside my class, @AfterRender public void afterRender() { String jsString = ""; jsString += "Event.observe(window,'load',functio

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Feb 2009 15:23:41 -0300, wesleywj2 escreveu: hi thiago, Hi again! i've added the configuration inside my AppModule for the javascript: i 've actually implemented the tree inside my class, @AfterRender public void afterRender() { String jsString = ""

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2
oh my gosh! it works like a charm! thanks very very very much on this thiago.you save my day, i've been cracking my head open the past few days trying to figure this out. thanks much =D sincered regards, wesley Thiago H. de Paula Figueiredo wrote: > > Em Wed, 04 Feb 2009 15:23:41 -0300, wesley

Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Feb 2009 15:43:25 -0300, wesleywj2 escreveu: oh my gosh! it works like a charm! thanks very very very much on this thiago.you save my day, i've been cracking my head open the past few days trying to figure this out. thanks much =D You're welcome! Helping each other is what makes

Re: Odd Javassist error

2009-02-04 Thread Howard Lewis Ship
I've upgraded 5.1.0.0-SNAPSHOT to use the new Javassist 3.9 with no problems. On Wed, Feb 4, 2009 at 9:05 AM, Howard Lewis Ship wrote: > This kind of problem is always tricky to solve; perhaps something in > the original source will jump out at me? > > Please add a JIRA Issue and I'll see if I ca

Singleton Service behaves like a Per-Thread service

2009-02-04 Thread superoverdrive
Hello everyone! I am a bit confused. I thought the default service binding is a singleton? But why do I see a database query every time I load the same page? public class DomainPropertyService { private Session session; private List domains = null;

T5 - spring integration

2009-02-04 Thread Damir Bijuklic
Hi, i would like to share some state objects between tapestry pages and spring controllers (mainly login data). My naive first approach is to create session scoped object in spring and access it from both sides, unfortunately it is to naive... In spring i use @Component and @Scope("session") an

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread superoverdrive
p.s.: it does work like this: binder.bind(DomainPropertyService.class).scope("singleton"); BUT it says: The default service scope is "singleton" in the documentation Original-Nachricht > Datum: Wed, 04 Feb 2009 22:32:52 +0100 > Von: superoverdr...@gmx.de >

Re: New User int the group

2009-02-04 Thread nillehammer
Hi Gutemberg, go to the following page: http://tapestry.apache.org/mail-lists.html There you'll find the email address for subscription (users-subscr...@tapestry.apache.org). Send a mail to this address. You'll recieve a confirmation mail. After confirmation you're part of the game. Be prepared to

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread Martin Strand
Are you sure you're seeing a query or do you mean your code returns "queries the database" ? That method will always return "queries the database". I'm not sure what it's for but perhaps you would want to change it something like > if (domains==null){ > domains = session.createCriteria(Dom

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread Christian Edward Gruber
Not sure, but you're probably doing yourself a disservice by storing state in a singleton. For instance, you have to guard against race conditions and so forth. It's doable, but you might want to use a transparent cache instead that does a lot of that sort of thing for you, and then have

Re: T5 - spring integration

2009-02-04 Thread Howard Lewis Ship
Scope 'session' is not active for the current thread looks like a Spring exception; seems like its wanting some per-thread setup. That's easy enough to do, I just haven't used Spring @Scope before and I didn't know about it. If you could add a JIRA Issue, with pointers to the appropriate Spring d

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread nillehammer
Hy Toby, you might be fooled by your own code. if (domains!=null){ return "queries the database"; Should be if (domains==null){ return "queries the database"; Regards, nillehammer -- http://www.winfonet.eu superoverdr...@gmx.de schrieb: > Hello everyone! > > I am a bit confused. I thought the de

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread superoverdrive
I am not storing state, I am storing configuration data. So the idea is on Application startup, config data is read from the database and stored in a HashMap of a singleton service. Original-Nachricht > Datum: Wed, 4 Feb 2009 16:40:47 -0500 > Von: Christian Edward Gruber > An:

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread superoverdrive
Sorry, this was a "typo"i only tried to simplify the example..the real code is different of course. But still, the strange thing is that without specifying the scope further it was not a singleton, but a per-thread scope? Original-Nachricht > Datum: Wed, 04 Feb 2009 22:4

Template syntax: ${someMethod('someKey')}

2009-02-04 Thread superoverdrive
How do you add constant values (e.g. "keys") inside of a template method? Template syntax: ${someMethod('someKey')} does not work unfortunately Thanks! Toby - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org F

Re: Template syntax: ${someMethod('someKey')}

2009-02-04 Thread superoverdrive
OK, it is: ${ognl:getDomainProperty('subtitle')} and NOT: ${ognl:domainProperty('subtitle')} Original-Nachricht > Datum: Wed, 04 Feb 2009 23:42:55 +0100 > Von: superoverdr...@gmx.de > An: "Tapestry users" > Betreff: Template syntax: ${someMethod(\'someKey\')

Re: T5: getting current hibernate session (per-thread) from singleton-service

2009-02-04 Thread Kalle Korhonen
I just hit the same problem "cannot be cast to ...SessionImplementor" while trying to use Hibernate session in a service that auto-populates some entries to the database at start-up (so obviously not in request context). Did anybody find a solution for this? Kalle On Wed, Jul 9, 2008 at 10:08 AM

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread Christian Edward Gruber
Fair enough. Christian. On 4-Feb-09, at 17:39 , superoverdr...@gmx.de wrote: I am not storing state, I am storing configuration data. So the idea is on Application startup, config data is read from the database and stored in a HashMap of a singleton service. Original-Nachricht --

Re: T5: getting current hibernate session (per-thread) from singleton-service

2009-02-04 Thread Kalle Korhonen
Noo.. it doesn't have anything to with request context or not. Just that doing DetachedCriteria.getExecutableCriteria(session) just won't work with the shadow Session proxy because Hibernate tries to cast it to SessionImplementor. Wonder if it could be fixed in tapestry-hibernate, telling the proxy

Re: T5: getting current hibernate session (per-thread) from singleton-service

2009-02-04 Thread Howard Lewis Ship
HibernateSessionManager.getSession() On Wed, Feb 4, 2009 at 9:16 PM, Kalle Korhonen wrote: > Noo.. it doesn't have anything to with request context or not. Just that > doing DetachedCriteria.getExecutableCriteria(session) just won't work with > the shadow Session proxy because Hibernate tries to

Re: T5: getting current hibernate session (per-thread) from singleton-service

2009-02-04 Thread Kalle Korhonen
Sure, easy to do that in my application code. However, this is a service (that injects a session into it) in a Trails library that builds on tapestry-hibernate. I can change the library, but I was just wondering if it'd be worth and possible to fix in tapestry-hibernate itself. Kalle On Wed, Feb