Re: Passing value of Hidden Field Property to Javascript Function in .tml

2011-03-09 Thread Taha Hafeez
Have you annotated destination with @Persist in case it is a form submission ? regards Taha On Mon, Mar 7, 2011 at 11:39 PM, surajknair wrote: > javascript: > This is inside a .js file. > > function PreviewOverlay( linkClicked ) { > > if (linkClicked == 'print') { > >$('somef

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
Thank. That's what I want! 在 2011年3月10日 上午4:14,jqzone 写道: > OK,I will try this. If it supports tapestry tml grammar,it will be fine > > 在 2011年3月10日 上午4:03,Howard Lewis Ship 写道: > > Yes. >> >> 2011/3/9 jqzone : >> > Do you mean this? >> > >> https://github.com/hlship/tapx/blob/master/tapx-core/sr

Re: Rendering a Block

2011-03-09 Thread Howard Lewis Ship
You don't necessarily need a zone, just combine Tapestry.ajaxRequest() with Tapestry.loadScriptsInReply() Example: Tapestry.ajaxRequest(spec.url, function (transport) { var reply = transport.responseJSON; Tapestry.loadScriptsInReply(reply, function() { $(myDiv).update(reply.content);

Re: Rendering a Block

2011-03-09 Thread Joe Klecko
>> provide more details. Anyway, there isn't a ready made way of rendering a >> block to a string. Please file a JIRA about it. Meanwhile, this message >> in >> the mailing list provide a way of doing exactly what you want: >> http://www.mail-archive.com/users@.../msg38854.html. It's >> not

Re: By-passing validation

2011-03-09 Thread Kalle Korhonen
I don't see why that would make a difference. Use an actionlink and return the page you want. Kalle On Wed, Mar 9, 2011 at 12:09 PM, wrote: > My return page is not static.  I need session variables to determine what > page to return to. > > Michael Williamson > Analyst Sr Applications Develope

Re: By-passing validation

2011-03-09 Thread mwilliamson
My return page is not static. I need session variables to determine what page to return to. Michael Williamson Analyst Sr Applications Developer Phone: 816/997-5994

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
OK,I will try this. If it supports tapestry tml grammar,it will be fine 在 2011年3月10日 上午4:03,Howard Lewis Ship 写道: > Yes. > > 2011/3/9 jqzone : > > Do you mean this? > > > https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/components/Dynamic.java > > >

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread Howard Lewis Ship
Yes. 2011/3/9 jqzone : > Do you mean this? > https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/components/Dynamic.java > > 在 2011年3月10日 上午3:33,Howard Lewis Ship 写道: > >> 2011/3/9 jqzone : >> > Hi,Howard,that's what I want ! How can I do this? >> >> I'

Re: By-passing validation

2011-03-09 Thread Kalle Korhonen
That's a submit. Why don't you just use a button and a link instead if you don't want to submit the form? Kalle On Wed, Mar 9, 2011 at 10:24 AM, wrote: > > > I have a page that has both a client side required validation and server > side validation. > > I also need a Cancel button to return to

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
Do you mean this? https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/components/Dynamic.java 在 2011年3月10日 上午3:33,Howard Lewis Ship 写道: > 2011/3/9 jqzone : > > Hi,Howard,that's what I want ! How can I do this? > > I'm not sure off the top of my head.

Re: Property Expression: Unable to add method xy navigate

2011-03-09 Thread Howard Lewis Ship
I haven't done the full research; this immediately looked familiar, I think its a bug fixed by Josh. On Wed, Mar 9, 2011 at 12:18 AM, Jens Reufsteck wrote: > Thanks, Howard! > > Did I get you right, that this is fixed in 5.2? > > Jens > > -- > Jens Reufsteck > Marketing & Online Director > > Stau

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread Howard Lewis Ship
2011/3/9 jqzone : > Hi,Howard,that's what I want ! How can I do this? I'm not sure off the top of my head. Thiago pointed out the underlying services that would need overriding. Currently, the page instance is derived from a key consisting of the canoncial page name and the user locale; this is

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
Hi,Howard,that's what I want ! How can I do this? 2011/3/10 Howard Lewis Ship > What you want is a more complex page name (+ other information) > mapping to page class, but something fixed and predictable ... and > properly cached, for performance reasons. > > On Wed, Mar 9, 2011 at 1:08 AM, jqz

By-passing validation

2011-03-09 Thread mwilliamson
I have a page that has both a client side required validation and server side validation. I also need a Cancel button to return to different page. I have two problems with this page. The first problem is when I try to use the submitMode parameter to turn off client side validation. This do

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread Howard Lewis Ship
The philosophy in Tapestry is that action links are transient ... their value is dependent on the exact structure of the page which can change between deployments ... and that's OK because component event links (ActionLink is a specific application of a component event request) are NOT bookmarkable

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread Howard Lewis Ship
What you want is a more complex page name (+ other information) mapping to page class, but something fixed and predictable ... and properly cached, for performance reasons. On Wed, Mar 9, 2011 at 1:08 AM, jqzone wrote: > I extending template locator just follow the link below,it works well. > htt

Re: Prevent overriding services implementation

2011-03-09 Thread Howard Lewis Ship
I marked the issue as invalid. Sorry, but if you have a process where you don't trust some of the code you are running, that's a process problem, not a Tapestry problem. On Wed, Mar 9, 2011 at 6:36 AM, Nourredine Khadri wrote: > > Thiago H. de Paula Figueiredo wrote: >> >> >> I don't think so. Yo

Re: Prevent overriding services implementation

2011-03-09 Thread Nourredine Khadri
Thiago H. de Paula Figueiredo wrote: > > > I don't think so. You can file a JIRA for that. > Done : https://issues.apache.org/jira/browse/TAP5-1471 Thanks for the answer Nourredine. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Prevent-overriding-services-impleme

Re: JasperReports integration

2011-03-09 Thread Thiago H. de Paula Figueiredo
On Wed, 09 Mar 2011 08:56:55 -0300, degressor wrote: Hi, Hi! I'm trying to run a simple JasperReport in Tapestry, but get strange exceptions: [java] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: [java] D:\workspac

Re: Prevent overriding services implementation

2011-03-09 Thread Thiago H. de Paula Figueiredo
On Wed, 09 Mar 2011 07:07:55 -0300, Nourredine Khadri wrote: Hi, Hi! Is there a way to prevent overriding some custom tapestry services implementation? I don't think so. You can file a JIRA for that. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate con

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
Thanks ! Can you show me some code examples , I don't know how to decorate them. 2011/3/9 Igor Drobiazko > Currently, there is no built-in solution for it. We plan to add it in 5.3. > See here: > http://markmail.org/thread/d45pg6jpjc62e4qg > > Right now I have a proprietary solution decorating

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread abangkis
Great :D Thanks a lot igor. I know there's an easier way to do this in tapestry :) On Wed, Mar 9, 2011 at 8:22 PM, Igor Drobiazko wrote: > You can contribute your own ComponentEventLinkTransformer: > > > http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/services/linktransfor

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread Igor Drobiazko
You can contribute your own ComponentEventLinkTransformer: http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/services/linktransform/ComponentEventLinkTransformer.html On Wed, Mar 9, 2011 at 2:03 PM, abangkis wrote: > Hi igor thanks for the reply. The protocol_version is ju

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread abangkis
Hi igor thanks for the reply. The protocol_version is just a string. For example, http://www.myserver.com/myapps/page_name.method_name/1.0/param2/param3

Re: remove HTML comments from output

2011-03-09 Thread Cezary Biernacki
Hi, you can use .. to mark parts of template that should not be rendered http://tapestry.apache.org/component-templates.html#ComponentTemplates-%3Ct%3Aremove%3E If you really need to remove comments, you can contribute a MarkupRendererFilter to MarkupRenderer and just remove all (or some) comment

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread Igor Drobiazko
What do you mean by protocol version? You need to be more precise if you need help. Usually posting some code helps to help you. On Wed, Mar 9, 2011 at 12:51 PM, abangkis wrote: > Hello, i try to rephrase my question. If i click an action link in my page, > the generated URL would look like this

JasperReports integration

2011-03-09 Thread degressor
Hi, I'm trying to run a simple JasperReport in Tapestry, but get strange exceptions: [java] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: [java] D:\workspace\SAB\simple_1299668551250_924092.java:4: package net.sf.jasperrep

Re: URL protocol versioning in Tapestry 5

2011-03-09 Thread abangkis
Hello, i try to rephrase my question. If i click an action link in my page, the generated URL would look like this in T5. http://www.myserver.com/myapps/page_name.method_name/protocol_version/param2/param3 My que

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread Igor Drobiazko
Currently, there is no built-in solution for it. We plan to add it in 5.3. See here: http://markmail.org/thread/d45pg6jpjc62e4qg Right now I have a proprietary solution decorating three services: http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/internal/services/PageSource.

Prevent overriding services implementation

2011-03-09 Thread Nourredine Khadri
Hi, Is there a way to prevent overriding some custom tapestry services implementation? I would want to provide to the developer a third-party library that contains some not-overridable services for security issues (prevent from another implementation, decorators , advisors, ... ). Thus, i would r

Re: Saving from an editable grid

2011-03-09 Thread robnangle
Got it sorted lads, cheers.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Saving-from-an-editable-grid-tp3412259p3415237.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsub

Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
I extending template locator just follow the link below,it works well. http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/ My situation is ,when the same page is requested,I should check the config and decide which tml to use,for example ,different sub domains use di

RE: Property Expression: Unable to add method xy navigate

2011-03-09 Thread Jens Reufsteck
Thanks, Howard! Did I get you right, that this is fixed in 5.2? Jens -- Jens Reufsteck Marketing & Online Director Staufenbiel Institut GmbH Events & Recruiting Solutions Wildunger Straße 6, 60487 Frankfurt am Main www.staufenbiel.de www.mba-master.de www.absolventenkongress.de Tel.: +49 (0

remove HTML comments from output

2011-03-09 Thread stephanos2k
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