Re: [t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Bill Holloway
"But I would like to do something like adding two params to ShowWindow2 function and pass them to "generarEnlace". The thing is that... it could be possible?" I don't see why not. Make a .js file with the function function setupHelp (win2id, generarEnlace) { $('clickable_thing').observe(

Re: T5.0.14: Form with zone not uploading file

2008-08-19 Thread Howard Lewis Ship
That's an interesting question: does XMLHttpRequest support file uploads? Need to do some research. On Tue, Aug 19, 2008 at 11:35 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > I have a form with the zone defined. The form has one field. > Everything works fine for a t:textfield text field. The

T5.0.14: Form with zone not uploading file

2008-08-19 Thread Bill Holloway
I have a form with the zone defined. The form has one field. Everything works fine for a t:textfield text field. The zone is updated no problem. But when the field in the form is t:upload, the file is not uploaded. Component class snippet: @Inject private Block _confirmBlock; @Property privat

Re: [t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Daniel Alonso Sanchez
Wow, thank you so much for the support. At first i would give a try to the easiest solution, then i will test the second. Thank you so much again for everything ;D -- View this message in context: http://www.nabble.com/-t5--Is-there-anyway-of-passing-parameters-to-expressions--tp19047455p190635

Re: Tapestry5Chin aforum(中文 论坛欢迎 大家加入) and some words to Howard Lewis Ship

2008-08-19 Thread Angelo Chen
只談tapestry5,用英文,應当是這論坛的宗旨。 (let's talk only about tapestry 5 in this forum, in English too) 孟凡振 wrote: > > Firstly,thank u for your suggestion!! > > 学习是一个过程,不管你现在多牛x,你也是从中国式的英语过度过来的吧,呵呵。况且,俺还不知道您的英语如何。 > 我只是一个刚毕业的学生,有了想法,所以提出来,没有掺杂任何社会上的肮脏的思想。 > 也许你是前辈,经历的事情比较多,没有高调成功,所以说要低调。呵呵 > > -- View

RE: Tapestry5Chinaforum(中文论坛欢迎大家加入 )and some words to Howard Lewis Ship

2008-08-19 Thread Henry Chen
呵呵, 年轻人干劲足,要多鼓励。 -Original Message- From: zhigang mao [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2008 9:03 PM To: Tapestry users Subject: Re: Tapestry5Chinaforum(中文论坛欢迎大家加入)and some words to Howard Lewis Ship 你想太多了,很敏感,多做事,少胡思乱想。too young, too simple,sometimes naive. 2008/8/20

Re: Tapestry5Chinaforum(中文论坛欢迎大家加入)and some words to Howard Lewis Ship

2008-08-19 Thread zhigang mao
你想太多了,很敏感,多做事,少胡思乱想。too young, too simple,sometimes naive. 2008/8/20 孟凡振 <[EMAIL PROTECTED]> > > 我已经感谢了给我意见的前辈,对你我不知道以哪一种心情回复你! > > 因为中国人太多了,随之而来的是各式各样的心态,比如持观望态度的,肆意挖苦别人的,爱看热闹的,跟大流的,爱愤世嫉俗的so many!! > > 从你的"same suggestion "我不能看出什么,所以也不知道您持那种心态。 > > 呵呵,还是谢谢您的回复! > -- > View this message in co

Re: Tapestry5Chin aforum(中文 论坛欢迎 大家加入) and some words to Howard Lewis Ship

2008-08-19 Thread 孟凡振
thank u for replying. -- View this message in context: http://www.nabble.com/Tapestry5Chinaforum%EF%BC%88%E4%B8%AD%E6%96%87%E8%AE%BA%E5%9D%9B%E6%AC%A2%E8%BF%8E%E5%A4%A7%E5%AE%B6%E5%8A%A0%E5%85%A5%EF%BC%89and-some-words-to-Howard-Lewis-Ship-tp19042909p19061521.html Sent from the Tapestry - User m

Re: Tapestry5Chin aforum(中文 论坛欢迎 大家加入) and some words to Howard Lewis Ship

2008-08-19 Thread 孟凡振
我已经感谢了给我意见的前辈,对你我不知道以哪一种心情回复你! 因为中国人太多了,随之而来的是各式各样的心态,比如持观望态度的,肆意挖苦别人的,爱看热闹的,跟大流的,爱愤世嫉俗的so many!! 从你的“same suggestion ”我不能看出什么,所以也不知道您持那种心态。 呵呵,还是谢谢您的回复! -- View this message in context: http://www.nabble.com/Tapestry5Chinaforum%EF%BC%88%E4%B8%AD%E6%96%87%E8%AE%BA%E5%9D%9B%E6%AC%A2%E8%BF%

Re: Tapestry5Chin aforum(中文 论坛欢迎 大家加入) and some words to Howard Lewis Ship

2008-08-19 Thread 孟凡振
Firstly,thank u for your suggestion!! 学习是一个过程,不管你现在多牛x,你也是从中国式的英语过度过来的吧,呵呵。况且,俺还不知道您的英语如何。 我只是一个刚毕业的学生,有了想法,所以提出来,没有掺杂任何社会上的肮脏的思想。 也许你是前辈,经历的事情比较多,没有高调成功,所以说要低调。呵呵 我是年轻人,当然,做事冲动是缺点,但是年轻人敢于创新,敢于说出来。 年轻人没有什么不可以!!呵呵 最后,还是感谢你给的宝贵意见!!我会吸取可取之处,加以人格完善。 -- View this message in context: http://www.nabb

Re: 2 T4 web application together

2008-08-19 Thread Howard Lewis Ship
Deploying two war files is the easiest way to go. In theory you can divide up your folders, one for each app. But it gets complicated and there's some unwanted ambiguities. Tapestry 5 doesn't even support this ... just use mulitple WARs is the only real way to go. On Tue, Aug 19, 2008 at 11:07

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-19 Thread Howard Lewis Ship
Using exceptions for control flow was never one of Tapestry great ideas; that's why its gone in Tapestry 5. Exceptions are exceptions, representing things that have failed. In any case, the activate event is a good place to perform checks. The return vaslue from onActivate() (the name of the even

Re: [T5]How to make indentical validation on the client side.

2008-08-19 Thread zack.manning
What would be awesome is if you could just specify a validation method name, and the client side validation would execute that method via ajax on the server side (with form data submitted as well). The method would return a specific json response and the client would be updated with a failure mes

Trying to Implement RedirectException in Tapestry 5

2008-08-19 Thread Ben Wong
Hi everyone, We have been using Tapestry 3 + Spring + Acegi for the last three years and had a pretty decent integrated architecture going. Now we are trying to replace Tapestry 3 with Tapestry 5. One of the things I am trying to do is duplicate a base Tapestry page class that checks if the u

Re: [T5]How to make indentical validation on the client side.

2008-08-19 Thread Filip S. Adamsen
Well, he could. But then he wouldn't get all the advantages of using the proper validation system. -Filip On 2008-08-19 22:19, zack.manning wrote: Maybe I'm missing something but why cant you just create a mixin with this functionality instead of using a validator? Zack Filip S. Adamsen wro

[RESOLVED] Re: Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread tnodev
That's it !! Thanks a lot zack.manning a écrit : Yep, tapestry acegi: http://www.localhost.nu/java/mvn-snapshot tnodev wrote: It is not about acegi, but tapestry5-acegi, I'm using this repository and there is no 1.1.1-SNAPSHOT localhost.nu http://www.localhost.nu/java/mvn

Re: Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread zack.manning
Yep, tapestry acegi: http://www.localhost.nu/java/mvn-snapshot tnodev wrote: > > It is not about acegi, but tapestry5-acegi, > > I'm using this repository and there is no 1.1.1-SNAPSHOT > > > localhost.nu > http://www.localhost.nu/java/mvn > > > I think tapestry5-acegi use Tap

Re: Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread tnodev
It is not about acegi, but tapestry5-acegi, I'm using this repository and there is no 1.1.1-SNAPSHOT localhost.nu http://www.localhost.nu/java/mvn I think tapestry5-acegi use Tapestry classes with package name yyy.tapestry.Xxx instead of yyy.tapestry5.Xxx. So I have a no class found

Re: [T5] Class contains field(s) (_$configAttributeDefinition_14) that are not private.

2008-08-19 Thread zack.manning
By completely disabling acegi I came to java.lang.ClassCircularityError: com/inavero/pulse/pages/survey/question/Index, which then led me to an @InjectPage that was an @Inject. Changing that fixed it. Strange that it would only present itself after that had been there for a while and with those

Re: Hibernate's FullTextSession against Session - howto?

2008-08-19 Thread Sven Homburg
i have add a Marker "HibernateCore" to all Session parameters in the build calls in HibernateModule now my application works again, but is this the right/only way ? 2008/8/19 Sven Homburg <[EMAIL PROTECTED]> > Hi there, > > i used Tapestry's hibernate module and wrote an application that use the

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
perfect thanks! On Tue, Aug 19, 2008 at 4:09 PM, Robert Zeigler <[EMAIL PROTECTED]> wrote: > ah... Sorry... > Change: > beginRender > to > afterRender > > in the ensureid mixin. > > Alternatively, you might be able to get away with writing ensureid as a > "@MixinAfter". > > The problem is exactly

Re: [T5]How to make indentical validation on the client side.

2008-08-19 Thread zack.manning
Maybe I'm missing something but why cant you just create a mixin with this functionality instead of using a validator? Zack Filip S. Adamsen wrote: > > Looking further into this, it doesn't even seem to be possible... > > Not as far as I can tell, anyhow. But then it's late here. > > Anyone

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Robert Zeigler
ah... Sorry... Change: beginRender to afterRender in the ensureid mixin. Alternatively, you might be able to get away with writing ensureid as a "@MixinAfter". The problem is exactly what tapestry is saying: the component hasn't been rendered yet (the component's beginRender hasn't been ca

Re: Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread zack.manning
I actually was able to successfully upgrade to T5.0.14 and have everything working alright in testing with acegi. I am using 1.1.1-SNAPSHOT. However, I saw your post right after I posted my issue which I think is related to aceg W/ 5.0.14i: http://www.nabble.com/-T5--Class-contains-field(s)-(_%2

Hibernate's FullTextSession against Session - howto?

2008-08-19 Thread Sven Homburg
Hi there, i used Tapestry's hibernate module and wrote an application that use the FullTextSession from the hibernate search module. since howards svn commit (release 686850 / TAPESTRY-2571: Add configuration to turn off the automatic creation of ValueEncoders for Hibernate entities) my applicatio

[T5] Class contains field(s) (_$configAttributeDefinition_14) that are not private.

2008-08-19 Thread zack.manning
Hi All, Seemingly without provocation Tapestry is throwing this error that I cannot figure out. My page simply has an beaneditform and some text when a refresh threw this. Can't get it to go away even after removing what I had been working on. The field it is referring to seems to belong to ace

Re: Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-19 Thread Howard Lewis Ship
Tapestry mostly captures this on the output side; that is, when you output a string (using, say ${property} expansion), the output is filtered; the key HTML entities, "<", "&" and ">", are converted to proper entities: "<", etc. On Tue, Aug 19, 2008 at 11:11 AM, Eric Rogers <[EMAIL PROTECTED]> wro

Pattern or strategy to sanitize input for cross-site scripting characters.

2008-08-19 Thread Eric Rogers
Hello All, I am using Tapestry 5.0.14 and am looking to filter input in my Tapestry application for characters related to cross-site scripting. Some input is from regular form submission, while other input is received using AJAX event listeners and JSON. I realize that one can use a custom trans

2 T4 web application together

2008-08-19 Thread learner
my first web application is used for the front end , and my second web application (CMS) is used for the back end. Both applications use same database. 1. should I put the 2nd application (cms) as jar to the first web application . If yes, can give me the guideliness? i think 2 application with

Re: Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread Mark Horn
I was looking into this today and fond the following post http://www.nabble.com/-T5--Spring-Security-2-Integration-td18877587.html haven't had a chance to look into it further yet though. On Tue, Aug 19, 2008 at 1:43 PM, tnodev <[EMAIL PROTECTED]> wrote: > Hello, > > it seems that the new versio

Tapestry5-acegi1.1.0 doesn't work with T5.0.14

2008-08-19 Thread tnodev
Hello, it seems that the new version of Tapestry doesn't work with *tapestry5-acegi... ...package name problems... any news of an update of **tapestry5-acegi**? thanks * - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
That gets me much closer, I changed my tml to look like this ... ${product.name} but now I'm getting the following exception. org.apache.tapestry5.ioc.internal.util.TapestryException: Client id for product/List:details is not available as it did not render yet (or

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Robert Zeigler
Check out the second comment by HLS: "Or, here's a better idea; an id should only be generated if getClientId() is invoked, at which point the id attribute of the element may be set. Dynamic updates to the DOM are a great thing. " That's the behavior that ended up getting implemented. You s

Re: How to control column sorting in GRID?

2008-08-19 Thread Filip S. Adamsen
Hi, See Providing the BeanModel in the docs: http://tapestry.apache.org/tapestry5/guide/beaneditform.html -Filip On 2008-08-19 17:36, tiptip wrote: Thanks for the Reply. But I dont know how to implement your suggestion. Can u please provide some example? Here is code snippet from my tml file

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Filip S. Adamsen
Weird. According to TAPESTRY-2294 the value should be uniqued via RenderSupport... -Filip On 2008-08-19 17:42, Mark Horn wrote: hhmm... that is a problem as my links are in a loop. so they used to be remove, remove_0, etc. if I set id="remove" then all links have the id of 'remove' which does

Re: Osgi trouble - the next level- solved

2008-08-19 Thread Filip S. Adamsen
Hi, Application reloading sounds very nice! I'm not really familiar with OSGi, though. Is it hard to setup? If you could share what you did to make this work that'd be awesome. -Filip On 2008-08-19 17:44, Atle Prange wrote: As usual, a closer look reveals the errors... anyway, my applicati

Re: UTF-8 in tapestry 5.0.13

2008-08-19 Thread Argo Vilberg
Thanks! 5.0.14 works very vell! Argo 2008/8/19 SergeEby <[EMAIL PROTECTED]> > > Hi, > > This is non longer needed in 5.0.14. > Try upgrading if you can. > > /Serge > > > Ulrich Stärk wrote: > > > > I believe http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding is still > > needed to convert

Re: Osgi trouble - the next level- solved

2008-08-19 Thread Atle Prange
As usual, a closer look reveals the errors... anyway, my application is up and running... -atle Atle Prange wrote: Okay, i have figured out the simple way of changing the resource url so the tapestry framework is able to scan the pages , componenents and mixins. Now i get a load of except

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
hhmm... that is a problem as my links are in a loop. so they used to be remove, remove_0, etc. if I set id="remove" then all links have the id of 'remove' which does not work for my tests ether. Any other ideas? On Tue, Aug 19, 2008 at 11:32 AM, Mark Horn <[EMAIL PROTECTED]> wrote: > right.. how

Re: How to control column sorting in GRID?

2008-08-19 Thread tiptip
Thanks for the Reply. But I dont know how to implement your suggestion. Can u please provide some example? Here is code snippet from my tml file: ${pool.programYear.prgYear} ${pool.region.code}

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
right.. how did I miss that. thanks! On Tue, Aug 19, 2008 at 11:27 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi, > > As far as I can tell from the issue you linked to, you need to bind the id > (not t:id) parameter of the link. > > -Filip > > On 2008-08-19 17:11, Mark Horn wrote: >> >> I j

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Filip S. Adamsen
Hi, As far as I can tell from the issue you linked to, you need to bind the id (not t:id) parameter of the link. -Filip On 2008-08-19 17:11, Mark Horn wrote: I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http:

ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html It looks like this change in 5.0.12, https://issues.apache.org/jira/browse/TAPESTRY-2294?page=com.atla

Re: T5: Warning on grid reorder

2008-08-19 Thread Howard Lewis Ship
It's a windows thing. The colon in the URL is giving Jetty (and perhaps Tomcat) fits, as it tries to see if there's a physical file for the URL and the file system doesn't like it, because colons are meaningful to Windows. I don't see this on Mac or Linux. On Mon, Aug 18, 2008 at 11:10 PM, Mich

Re: Tapestry5Chinaforum(中文论坛欢迎大家加入)and some words to Howard Lewis Ship

2008-08-19 Thread Howard Lewis Ship
I don't have specific plans for China vs. the rest of the world. I'm keen on doing Tapestry training everywhere ... and my wife has been learning Mandarin which could help :-) 2008/8/18 孟凡振 <[EMAIL PROTECTED]>: > Hi,,,folks !! > A tapestry5 forum was built for Chinese people. > So , join thi

Re: [t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Chris Lewis
Hello, This is a classic case of needing client-side behavior with server-side knowledge, and would be handled well by OO javascript. You could create a component for this but is seems like a mixin might be more appropriate. Checkout this article: http://wiki.apache.org/tapestry/Tapestry5AndJavaS

Re: How to control column sorting in GRID?

2008-08-19 Thread Filip S. Adamsen
Hi, BeanModel#add returns a PropertyModel that has a sortable method to set whether or not the column representing the property is sortable. For properties you don't add explicity, you can use BeanModel#get or BeanModel#getById to get the PropertyModel. -Filip On 2008-08-19 16:12, tiptip w

How to control column sorting in GRID?

2008-08-19 Thread tiptip
Hi I am working on my first Tapestry application with T5. I am using Grid for reports pages and I found that it provide few columns as sortable but not all (those that are added in bean model with "add" are not seen as sortable column). My question is how do I enable all columns as sortable column

Re: [t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Filip S. Adamsen
Hi, I assume the URL you set on window2 is for a page. In that case you can get the base URL from componentResources.createPageLink("pagename", true) and attach the form and field ids in your JavaScript: ${window2.componentResources.id}.setURL("${basehelpurl}/" + formId + "/" + fieldId); Y

Re: UTF-8 in tapestry 5.0.13

2008-08-19 Thread SergeEby
Hi, This is non longer needed in 5.0.14. Try upgrading if you can. /Serge Ulrich Stärk wrote: > > I believe http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding is still > needed to convert form submissions from/to UTF-8. > > Uli > > Argo Vilberg schrieb: >> Hello! >> >> >> I have pos

Re: UTF-8 in tapestry 5.0.13

2008-08-19 Thread Filip S. Adamsen
Hi, Uli is correct in that regard, at least for Tapestry 5.0.13. Tapestry 5.0.14 simplifies things *considerably* by using a single, configurable character set across the entire application, that just so happens to default to UTF-8. https://issues.apache.org/jira/browse/TAPESTRY-2543 -Filip

Re: T5: url localization

2008-08-19 Thread Filip S. Adamsen
Hi, This isn't directly supported by Tapestry. And I can't see how you would make it possible without rewriting a lot of Tapestry services. -Filip On 2008-08-19 08:41, Leon Derks wrote: I know that localization support is well integrated into Tapestry 5, but is it also possible to get locali

Re: [T5] Injecting page into nested layouts

2008-08-19 Thread Filip S. Adamsen
Hi, You're right - casting componentResources#getPage works fine. ComponentResources is your friend. :) @InjectContainer does indeed inject the "parent" of the component. For InnerLayout this is the page alright, but for Layout it's actually the InnerLayout because Layout is contained in In

Re: UTF-8 in tapestry 5.0.13

2008-08-19 Thread Ulrich Stärk
I believe http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding is still needed to convert form submissions from/to UTF-8. Uli Argo Vilberg schrieb: Hello! I have postgreSQL 8.1 with utf-8 charset and also web application with tags. But all estonian letters õüäöÕÜÄÖ are going to crazy.

[t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Daniel Alonso Sanchez
Sorry for the strange subject :D, but i don't know the correct way to name it. I have something that looks like this: function showWindow2() { ${window2.componentResources.id}.setTitle("Ayuda") ${window2.componentResources.id}.setURL("${generarEnlace}");

UTF-8 in tapestry 5.0.13

2008-08-19 Thread Argo Vilberg
Hello! I have postgreSQL 8.1 with utf-8 charset and also web application with tags. But all estonian letters õüäöÕÜÄÖ are going to crazy. If i use simple text edit field to save value and then query some value from database then i got strange symbols. Why so? Argo

Re: [T5] Injecting page into nested layouts

2008-08-19 Thread Richard Hoberman
You're right - casting componentResources#getPage works fine. > @InjectContainer does indeed inject the "parent" of the component. For > InnerLayout this is the page alright, but for Layout it's actually the > InnerLayout because Layout is contained in InnerLayout. Could you clarify the meanin