'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
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.
--
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
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
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
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
how do I do to add one new user in the tapestry-users group?
--
Gutemberg A. Da Silva
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?
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:
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:
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
@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,
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
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
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
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)
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
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: +
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
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/)
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
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
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
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
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 +=
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() {
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,
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
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
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;
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)
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:
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
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 =
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
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
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
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
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
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
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:
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,
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
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
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
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,
46 matches
Mail list logo