Hi Steve,
the problem is the protocol bundleresource.
You should override ClasspathURLConverter which is used by ClassNameLocator.
This service was introduced to be able to handle URLs which are not common
in Java.
I provide for example my own implementition of this service in an OSGi
environment,
That worked - thanks!
Matt
Otho wrote:
>
> Hi,
>
> 1) Turn production mode to false in AppModule.java. You get much better
> exception reporting then.
>
> The exception you mentioned is caused by:
>
> org.apache.tapestry5.internal.services.TransformationExceptionUnable to
> add
> new method
Em Wed, 06 May 2009 00:33:34 -0300, Steve Eynon
escreveu:
The whole TapestryIOCModule is annotated with
@PreventServiceDecoration so that explains why I can't override it.
Might it be an idea to just annotate individual dangerous services
rather than a blanket ban on overriding all IOC servi
Thanks. The following gives me the same list of interfaces as advising:
@Match("*")
public static T decorateEverything(Class serviceInterface, T
delegate, String serviceId) {
System.out.println(serviceInterface.getName());
return delegate;
}
ClassNameLocator not being one of them
As a note, one sideeffect i can think of would occur if the first
user (when cache doesn't yet exist) has cookies disabled (and thus
url-rewriting
takes place)...
in that case, the cache would be filled in with urls
containing his specific JSESSIONID, e.t.c.
On Wed, May 6, 2009 at 2:16 AM, Britsk
ok solved (don't know why I didn't see this earlier ;-)
simply tested in template if cached html existed.
if false --> render component
if true --> use OutputRaw to output cached html of component.
cheers,
Britske
Britske wrote:
>
> currently I'm working on a page with a lot of components.
I would check out Tapestry.activateZone (https://issues.apache.org/jira/browse/TAP5-569
) and javascript's setInterval method (or prototype's
PeriodicalExector). J
On May 5, 2009, at 1:54 PM, Michael Dukaczewski wrote:
I'm trying to create a zone which automatically updates itself after
some
ok, tried a couple of things, but none of them work:
1. in the container component keep track of the element that is created by
the container component.
in the afterRender fetch the html as element.toString() and put to cache.
in the beginrender method check the cache and if found --> write t
Em Tue, 05 May 2009 19:23:14 -0300, Steve Eynon
escreveu:
How do I advise the ClassNameLocator service?
Have you tried decoration instead of method advising? The resulting code
would be very similar.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
How do I advise the ClassNameLocator service?
If I add the following advice method to my AppModule ...
@Match("*")
public static void adviseEverything(MethodAdviceReceiver receiver) {
System.out.println(receiver.getInterface());
}
Only the following interfaces are advised ...
interface
I'm trying to create a zone which automatically updates itself after
some time. Any suggestions?
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
currently I'm working on a page with a lot of components.
part of these components are lists with contents related to the visitor
viewing the page (i.e: last viewed products, product in wishlist) but most
of these components display lists which are related to context of the page
only (and are thu
Em Tue, 05 May 2009 14:08:07 -0300, Pisit escreveu:
it may be relate to tomcat security configuration issue? or
"UnprotectedAssets" topic?
I still think it is an Apache configuration issue. Try to configure it to
allow /asset/* to be handled by Tomcat or just use Tomcat alone.
but I stil
Pisit wrote:
>
> I'm using Tapestry 5.0.18+Tomcat 6.0+FCKEditor (from T5Components)
> For Windows server, it's work perfectly but for Linux has encounter HTTP
> 404 error
> i've found that it unable to access
> /assets/org/apache/tapestry/commons/jslibs/scripts/fckeditor/editor/fckeditor.html
>
Yes, I know. The point I was making - why should it be needed to override
the default service if you just want to load from some other configuration
file? Rather than a boolean symbol value you could pass the default service
a file name, right?
Kalle
On Tue, May 5, 2009 at 2:25 AM, Kristian Mari
One way of doing it: in your page or component class, @Inject
RenderSupport and generate Javascript through
RenderSupport.addScript().
--
Thiago
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional comm
Hi,
I'd like to iterate an ArrayList() in my java file from within
javascript in the tpl file. It seems that Loop only works as part of an
html tag. Is there a way I can have javascript loop over an ArrayList() ?
dagdag
Christine
--
dagdag is just a two-character rotation of byebye.
smime
On Fri, May 1, 2009 at 4:57 AM, Howard Lewis Ship wrote:
> I think that are some of the main ones.
That's very very nice Howard!
--
Massimo
http://meridio.blogspot.com
-
To unsubscribe, e-mail: users-unsubscr...@tapestry
3) Documentation - Good solid reference examples of how to do do simple
apps, explained in detail. Most developers want a framework to be like
lego
building blocks. I do A, B, C and D and I get E. I assemble a dozen
different pieces and I have my app. Really how complicated are most web
apps? They
See this old thread:
http://www.nabble.com/RenderSupport-addScript-old-browsers-td23039476.html
- Original Message -
From: "Peter Stavrinides"
To: "Tapestry users"
Sent: Tuesday, 5 May, 2009 16:36:14 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: t5: embed a variable in a
>Why not just do:
>
>var google_conversion_id = ${myid};
Are you being serious?
The html comment "
Angelo Chen wrote:
>
> Hi,
>
> I'd like to get myid from the page, but following code will not work, the
> li
Ofcourse one could write simple component that encapsulates the JS and
outputs required script tags and comment etc. things...
- Ville
Ville Virtanen wrote:
>
> The ugly way out of this is to output the comments using
>
>
>
> and in java
>
> public String getCommentStart(){
> return
The ugly way out of this is to output the comments using
and in java
public String getCommentStart(){
return " html comments -
> tapestry
> does not evaluate markup in html/xml comments.
>
> felix
>
> Kristian Marinkovic schrieb:
>> never did this myself, but i think this should work
;)
Felix Gonschorek
05.05.2009 14:24
Bitte antworten an
"Tapestry users"
An
Tapestry users
Kopie
Thema
Re: Can't access HTML files in classpath resouce
hi kris,
thank you for your advice - with my previous mail i wanted to give the
same tip
to pisit - seems my post did not make
hi kris,
thank you for your advice - with my previous mail i wanted to give the same tip
to pisit - seems my post did not make this comprehesible ;)
felix
Kristian Marinkovic schrieb:
this is because the windows filesystem is case insensitive!
unix is case sensitive
therefore your templ
this is because the windows filesystem is case insensitive!
unix is case sensitive
therefore your templates must have the same case as the
corresponding page
g,
kris
Felix Gonschorek
05.05.2009 12:02
Bitte antworten an
"Tapestry users"
An
Tapestry users
Kopie
Thema
Re: Can't acc
Am 05.05.2009 11:41 schrieb luna_guo:
In jetty it works well to send non english parameter with ajax get
method,but in tomcat i have to switch to ajax post.If i need to use get,what
should i do?
Use a UTF-8 enabled http connector.
-
it does not work becaus the variable is in html comments - tapestry
does not evaluate markup in html/xml comments.
felix
Kristian Marinkovic schrieb:
never did this myself, but i think this should work somehow if there
is a myid property...
instead... you could use the RenderSupport service
i encounterd a similar problem when working with both win and linux machines.
.tml files and their corresponding java classes had a different upper/lower
case.
e.g. "page.tml" and "Page.java".
under windows this works, under linux not.
felix
Pisit schrieb:
I'm using Tapestry 5.0.18+Tomcat
In jetty it works well to send non english parameter with ajax get
method,but in tomcat i have to switch to ajax post.If i need to use get,what
should i do?
--
View this message in context:
http://www.nabble.com/t5%3Atomcat-url-enconding-for-non-english-character-tp23384139p23384139.html
Sent
hi Kalle,
since 5.0.18 (or before, :)) the DefaultHibernateConfigurer is an own
service,
therefore it is easy to override it with an alias contribution. if you
don't want to
override the service you can set the HibernateConstants.
DEFAULT_CONFIGURATION
symbol to false to prevent the service fr
I have a page includes a lot of javascript.And i use Tapestry 5.1.0.4,set
compress and combine javascript on.It works well almost time.But i have
received odd response serveral times when i use ie.It's not a character
encoding problem,because the is even no "" in the response.Is this a
bug with i
>In my understanding, there should be no way.
Perhaps its not recommended, but if you have the ComponentResources for that
component then you should be able to trigger the event you want.
Look at this service:
@Inject
private ComponentSource componentSource_;
It allows you to look up any compon
never did this myself, but i think this should work somehow if there
is a myid property...
instead... you could use the RenderSupport service to render your
script programmatically
g,
kris
Angelo Chen
05.05.2009 09:22
Bitte antworten an
"Tapestry users"
An
users@tapestry.apache.org
Kopi
Hi everyone,
Basically my question is a very broad one about integrating Tapestry with
remote authentication and authorization protocols, if this question is a little
off topic I apologize in advance... I have an upcoming project to think about,
and thought I should get some expert opinions bef
Hi,
I'd like to get myid from the page, but following code will not work, the
line:
var google_conversion_id = "${myid}"
will be rendered as it is, it is not as what I expected
var google_conversion_id = "12345678"
any idea how to embed a variable in a javascript in the template? thanks
Ane
37 matches
Mail list logo