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 finds

Re: Dynamic Assets

2009-02-04 Thread Thiago H. de Paula Figueiredo
On Wed, Feb 4, 2009 at 10:43 AM, Sid Ferreira sid@gmail.com 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. --

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

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 sid@gmail.com 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

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

Re: Dynamic Assets

2009-02-04 Thread Massimo Lusetti
On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira sid@gmail.com 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

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 sid@gmail.com 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?

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:

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 mluse...@gmail.com wrote: On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira sid@gmail.com wrote:

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 unsubscribe,

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 carl.crow...@taptu.com Sorry Otho, I wasn't

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 sid@gmail.com

[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)

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 link tag is hard coded in the TML. I want to decide dynamically whether to add the link tags (using RenderSupport). And if so css files selected based on request params and added as link tags. These css files are located

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 davegregg...@yahoo.com escreveu: Your example may work, but it's not what I'm looking for because the link 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

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/)

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

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

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 head section of the page. So each component would have the facility to provide its own stylesheets that will be picked up by the containing

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 wesley...@yahoo.co.uk 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

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 +=

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 wesley...@yahoo.co.uk 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() {

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,

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 wesley...@yahoo.co.uk 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

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 hls...@gmail.com 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

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 ListDomain 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)

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 An:

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 =

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

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 default

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

Re: Singleton Service behaves like a Per-Thread service

2009-02-04 Thread superoverdrive
Sorry, this was a typoi 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

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

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 users@tapestry.apache.org Betreff: Template syntax:

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

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 kalle.o.korho...@gmail.com 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

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,