I think Tapestry should be able to remove the HTML comments from the rendered
result
- IF the user explicitly enables this. I saw that this was discussed
before, but apparently no actions were taken (right?).
The only reasons I can think of NOT to do it are:
a) slower rendering because of addit
That sounds interesting.
#1: Is there any 'documentation' to get started with the
MarkupRendererFilter?
I can't see where exactly I can manipulate the DOM in
[renderMarkup(MarkupWriter writer, MarkupRenderer renderer)].
#2: And do you think it's the fastest method?
- since, if I understand corr
Would it make more sense (performance-wise) to remove the HTML comments in
the 'SaxTemplateParser'?
I remembered that there was an option in Tapestry to compress whitespaces
from templates. I dug around the Tapestry source a bit and found the
'SaxTemplateParser' which apparently parses each templa
Cool - thanks for the info!
I just implemented it, works like a charm. In case anyone is interested in
this - here is my code (Scala):
# AppModule
def decorateTemplateParser(parser: TemplateParser) =
new TemplateParser() {
import scala.collection.JavaConversions._
Thanks to you two - I think the TemplateParser option does everything I need
now. I'm quite amazed how simply Tapestry can be customized.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/remove-HTML-comments-from-output-tp3415110p3424881.html
Sent from the Tapestry - User ma
In my Layout I'd like to distinguish between 2 states (let's just say red or
blue).
Those are known/set by each page individually - it inherits from BasePageRed
or BasePageBlue (which go back to BasePage where the parameter Col is
defined).
How do I 'get' the parameter value from the BasePage (cl
Thanks for the quick response!
Hm, I didn't know that this would break the class hierarchy.
I understand the issue like this (hope it works in HTML/Mail):
Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java <
BasePage.java
[read P]
Thanks a lot for the info, Barry!
Will definitely check it out.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Customizing-the-Layout-Component-tp4234938p4258643.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Out of sheer interest: Assuming Apache is used in front of Tapestry, which of
the two would be the best place to GZIP resources? Why?
PS: Considering speed, CPU/memory usage & compatibility - not considering:
setup & maintenance
Cheers,
Stephanos
--
View this message in context:
http://tapest
Hi,
I was just build a table (via t:loop) that includes an t:actionLink in each
row. The table itself is loaded via progressiveDisplay. The t:actionlink is
supposed to issue an AJAX request to update a zone that lies within the
t:progressiveDisplay.
My problem: the t:actionLink does nothing.
I in
I have a layout L and page P. The layout has a few scripts & stylesheets
which are needed everywhere. But P requires a few specific files.
How can I add a stylesheet and a script to the final ?
-> I tried just defining a in P, assuming it would be merged; didn't
work.
-> I can't use annotations
Guys, thanks for the reply.
But in my post I said
> I can't use annotations, since the assets are different for production
> mode.
>
So @Import doesn't work for me!
PS: You may ask yourself why I use different assets: I use LESS for CSS and
have multiple .less files in development and one .c
Thanks for clearing that up.
Yet, I'm still thinking it might be very intuitive to create an additional
tag in the sub-page which is then merged with the template's -
it just feels right to define stylesheets & scripts in the .tml and not in
the code.
But that's just me :-)
Cheers,
Stephan
--
I'm in the middle of moving assets from one "monolithic" Tapestry app to a
'common' base library assets.
Of course now I have to adapt my asset paths, but it's somewhat awkward:
new asset path: /com/mycompany/style.css/
old layout path: /com.appname.components.Layout.tml/
Now when I wa
> Have you tried ?
/Could not convert 'classpath:/com/mycompany/style.css' into a component
parameter binding: Error parsing property expression
'classpath:/com/mycompany/style.css': Unable to parse input at character
position 11./
(v5.3)
> Better yet, why don't you use @Import?
Well, this is a
I recently upgraded to v5.3 and noticed that my previous method of removing
the default Tapestry stylesheet and javascript stacks didn't work anymore (I
decorated JavaScriptSupport and disabled importStack() etc.).
What's the best way to get rid of the two stacks completely?
--
View this message
Thanks for the suggestion!
It seems AssetStack was removed in v5.3. But I modified it to this (using
Scala):
def contributeJavaScriptStackSource(configuration:
MappedConfiguration[String, JavaScriptStack]) {
configuration.`override`("core", new JavaScriptStack {
def getInit
Thanks for the explanation! Very much appreciated :-)
On Mon, Jul 11, 2011 at 9:30 PM, Nillehammer-2 [via Tapestry] <
ml-node+4576210-1636130599-151...@n5.nabble.com> wrote:
> Hi stephanos2k,
> > By the way, the stylesheet in my library references some images
> > [backg
Actually I do!
I have my own implementation based on
https://github.com/got5/tapestry5-jquery tapestry5-jquery . And it works,
too :-)
So the question still stands, *how to get rid of it*?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Remove-CSS-JS-stacks-in-v5-3-tp457
I just tried to reference a variable from a Scala case class in a template
file when I received this:
/java.beans.IntrospectionException: type mismatch between read and
write methods/
I used something like ${currentEntity.id} when the exception occured, just
${currentEntity} works.
I'm not 1
Thanks for your reply. I tried adding @BeanProperty to the case class and it
still fails - BUT the stacktrace is different:
/Caused by: java.beans.IntrospectionException: type mismatch between read
and write methods
at
java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:
Hm, I tried to debug and went to the root of the exception:
java.beans.PropertyDescriptor.findPropertyType
It seems that the read method for the 'id' field is
/public java.lang.Object com.mycompany.sql.model.DataEntity.id()/
while the write method is
/public void com.mycompany.sql.model.
I have a web page similar to GMail: one list of items, sub-folders (like
Spam/Inbox) and separate items to 'go in to'. Everything works via AJAX, but
now I want to have bookmarkable URLs.
Any recommendations on how to achieve this with Tapestry?
Cheers
--
View this message in context:
http://ta
Thanks a lot for your post! :-)
I looked at what you suggested, are there any hints/tips on how to integrate
such functionality with Tapestry?
I suppose a JS script (like history.js) should receive and handle + request
and 'call' Tapestry to actually do the rendering. But I can't seem to come
up
I was trying out the new 'parameters' property of the EventLink, but I don't
know how it's supposed to work - I tried:
//
But I only get
/UnknownValueException: "Could not find a coercion from type
java.lang.String to type java.util.Map."/
What am I doing wrong?
Cheers
--
View this mes
Thanks a lot you guys for clearing that up! :-)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-set-parameters-on-EventLink-tp4630532p4630695.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
I'm running T5.3 and want to overwrite the existing validation messages. I
created my own file 'MyValidationMessages.properties' and tried to
contribute it.
But I only found references to the deprecated
'contributeComponentMessagesSource', or hints to
'contributeComponentMessagesSource' - but I do
I'll summarize the problem: *How do I change the default validation messages
in Tapestry 5.3?*
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-tp4659356p4666592.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
I'm afraid I'd need a little more guidance than this.
I tried this (in Scala) - which didn't seem to have any effect:
/def contributeComponentMessagesSource(bundles:
OrderedConfiguration[Resource], typeCoercer: TypeCoercer) {
val path = "MyValidationMessages.properties"
val re
Let's assume I have *2 zones* and *1 event link*.
I set up the event link to update zone #1 with the current time on click
(zone="zone1").
What if, on the server-side after the submit is issued, I decide that
*/before noon/ zone #1* and */after noon/ zone #2* is updated.
Is this in any way possi
Thanks for the lightning-fast reply [maybe you also have an answer for my
other
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-td4659356.html
question ] :)
I will give it a try, I thought it was just for updating /multiple/ zones,
not also a /different/ zone.
Cheers!
-
*Solution:* The key must be "ValidationMessages"
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-tp4659356p4676915.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
In a
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-td4659356.html
previous post I was trying to figure out how to customize the validation
messages and came up with this (using Scala):
/ def contributeComponentMessagesSource(assetSource: AssetSource,
Hm, I just noticed that on deployment this line appears in the logs:
/Could not add object with duplicate id 'ValidationMessages'. The
duplicate object has been ignored./
So what am I supposed to do - contribute my customized validation messages
at first somehow or use a different id?
--
Vie
34 matches
Mail list logo