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
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
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
>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
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
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
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
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
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
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.
-
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
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
;)
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
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
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
Why not just do:
var google_conversion_id = ${myid};
Angelo Chen wrote:
>
> Hi,
>
> I'd like to get myid from the page, but following code will not work, the
> li
>Why not just do:
>
>var google_conversion_id = ${myid};
Are you being serious?
The html comment " write t
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 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.
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
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
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
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
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,
37 matches
Mail list logo