Re: loading order of javascripts

2012-08-12 Thread Ray Nicholus
... I realize that doesn't answer your question though. Have a look at http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-td5714430.html On Aug 12, 2012 8:12 PM, "Ray Nicholus" wrote: > Jquery should really be part of a JavascriptStack. in fact, it should > probably be

Re: loading order of javascripts

2012-08-12 Thread Ray Nicholus
Jquery should really be part of a JavascriptStack. in fact, it should probably be its own stack. You can add any jquery plugins and stylesheets to this stack as well. On Aug 12, 2012 7:51 PM, "Angelo C." wrote: > Hi, > > I have this order of loading: > > @Import(library = {"context:/js/jquery-1

loading order of javascripts

2012-08-12 Thread Angelo C.
Hi, I have this order of loading: @Import(library = {"context:/js/jquery-1.7.1.js"}) public class Layout { } @Import(library = {"context:/js/page_view.js"}) public class page_view { } page_view extends from Layout template, in the final page html source, page_view.js is always ahead of jquery-1

Re: Tapestry 5.3.4

2012-08-12 Thread TG
I am a bit behind, using plain of ways of copy and paste into lib/. Works happily on GAEJ. :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-4-tp5714512p5715312.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: tapestry api and documentation

2012-08-12 Thread Howard Lewis Ship
Patches welcome! On Sunday, August 12, 2012, Muhammad Gelbana wrote: > Well said. If only I can "Like" this as I could have done on facebook. > > On Sun, Aug 12, 2012 at 1:02 PM, sommeralex > > >wrote: > > > Is it true, that the tapestry api and documentation lacks in examples and > > actuality

Re: AjaxResponseRenderer help

2012-08-12 Thread Angelo C.
the template is here: < a t:type="eventLink" t:parameters="prop:{'mode':${current}}" t:id="UpdateOff" >Turn it off< /a> -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxResponseRenderer-help-tp5715295p5715307.html Sent from the Tapestry - User mailing li

Re: AjaxResponseRenderer help

2012-08-12 Thread Angelo C.
I use only '@Inject Block block1, block2', then define Zone in the template to fold a block, what's the difference '@InjectComponent private Zone zone1'? Taha Hafeez wrote > > You can't. You can specify one and then use AjaxResponseRenderer to add > more zones to it. > > Refresh > > @InjectC

Re: AjaxResponseRenderer help

2012-08-12 Thread Angelo C.
That works, now, I'd like to put this eventLink in a loop: Turn it off but got: Component Test123 already contains a child component with id 'UpdateOff'. Embedded component ids must be unique (excluding case, which is ignored). any fix to this? Angelo -- View this message in context

Re: AjaxResponseRenderer help

2012-08-12 Thread Taha Siddiqi
You can't. You can specify one and then use AjaxResponseRenderer to add more zones to it. Refresh @InjectComponent private Zone zone1; @InjectComponent private Zone zone2; @Inject private AjaxResponseRenderer ajaxResponseRenderer; onSomeEvent(){ ajaxResponseRenderer.addRender("zone2", zone

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
For starters, your "action" method should be renamed to onAction. I'm still not quite sure what you are trying to do here. It seems like you are providing a generic example, instead of the actual code you are struggling with. On Sun, Aug 12, 2012 at 7:51 AM, Angelo C. wrote: > Hi, > > I got so

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
@Component(parameters = { "event=ModeUpdate", "zone=zone1" }) private EventLink UpdateOff; This should do the trick. On Sun, Aug 12, 2012 at 3:30 PM, Angelo C. wrote: > How to specify two zones in a event link? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/A

Re: AjaxResponseRenderer help

2012-08-12 Thread Angelo C.
How to specify two zones in a event link? -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxResponseRenderer-help-tp5715295p5715301.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
You are missing the zone parameter on your eventLink component. On Sun, Aug 12, 2012 at 2:31 PM, Angelo C. wrote: > Hi, > > I am trying out AjaxResponseRenderer to update multiple zones in a page, > here is the code: > > java: > > @Inject > private AjaxResponseRenderer ajaxResponseRenderer; > >

Re: Tapestry5 vs Vaadin

2012-08-12 Thread Muhammad Gelbana
*@ lukaszkaleta * Even so I haven't done a thorough investigation and ready but I think bad performance on Vaadin would be due to the improper wiring of components with each other. On that other question on stackoverflow, the guy was using a grid component (as far as I can remember) while he had to

Re: calling some functions from javascript

2012-08-12 Thread Angelo C.
Hi, I got some very old code working, turned out quite tedious, maybe T5.3.4 has some easier way? here is the code public String getUpdateLink() { return resources.createEventLink("action").toAbsoluteURI(); } public void action() { String name = requestGlobals.getR

Re: tapestry api and documentation

2012-08-12 Thread Muhammad Gelbana
Well said. If only I can "Like" this as I could have done on facebook. On Sun, Aug 12, 2012 at 1:02 PM, sommeralex wrote: > Is it true, that the tapestry api and documentation lacks in examples and > actuality, or do I read the documentation in a wrong way? > > basic example, radio group: > > htt

Re: t:zone after update add following style: "background-image: none; background-color: rgb(255, 255, 255);"

2012-08-12 Thread lukaszkaleta
I am using tapestry 5.3 -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-zone-after-update-add-following-style-background-image-none-background-color-rgb-255-255-255-tp5715272p5715296.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

AjaxResponseRenderer help

2012-08-12 Thread Angelo C.
Hi, I am trying out AjaxResponseRenderer to update multiple zones in a page, here is the code: java: @Inject private AjaxResponseRenderer ajaxResponseRenderer; @Inject Block redBlock; @Inject Block blueBlock; @Component(parameters = {"event=ModeUpdate"}) private EventLink UpdateOff; public vo

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
...providing some actual code would be helpful as well On Aug 12, 2012 6:51 AM, "Ray Nicholus" wrote: > What are you trying to do exactly? i think you are using terms here > incorrectly, which is making your question very hard to understand. So, > Javascript, tml, and java specifics aside, what

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
What are you trying to do exactly? i think you are using terms here incorrectly, which is making your question very hard to understand. So, Javascript, tml, and java specifics aside, what are you trying to do? On Aug 12, 2012 5:08 AM, "Angelo C." wrote: > Hi, > > I got a page class, and in the t

tapestry api and documentation

2012-08-12 Thread sommeralex
Is it true, that the tapestry api and documentation lacks in examples and actuality, or do I read the documentation in a wrong way? basic example, radio group: http://tapestry.apache.org/5.3.4/apidocs/org/apache/tapestry5/corelib/components/Radio.html 1. there is no example on how to make an opti

calling some functions from javascript

2012-08-12 Thread Angelo C.
Hi, I got a page class, and in the tml I have a javascript function that will call a function in the page class, and the function will return a json object to the javascript, any tips on how to achieve this? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com

Re: Conditionally (IE) including javascript

2012-08-12 Thread Steve Eynon
I use this little component: import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.Parameter; public class IfIe { @Parameter(required=true, defaultPrefix="literal") private String test; public void beginRender(MarkupWriter writer) { // write out a

Re: Why should we specify t:id and id for the zone

2012-08-12 Thread bhorvat
Wow amazing reply. Thanks a lot Christian this was perfect answer to my question and it gave me a chance to learn and understand a few things about tapestry. I really appreciate it. All the best Boris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Why-should-we-speci