Re: How to update a list from a checkbox in a loop in t5

2008-04-23 Thread Peter Stavrinides
Sorry, let me try rephrasing my question: When I click on the checkbox, how do I modify the corresponding object in the loop? The only way I can see of doing this is to iterate manually, in which case a Tapestry checkbox component is not usable in a loop. Peter Peter Stavrinides wrote: Hi

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-23 Thread Peter Stavrinides
Tomcat in eclipse has an Automatic publishing feature, which is not to be confused with live class reloading. Publishing requires a partial restart and republishes the war, you will notice the difference when your web application grows, running the same app under jetty reloading reloading is in

Is it possible to receive uploaded files from non-tapestry pages?

2008-04-23 Thread Ken
Hi. I wrote simple HTML like below start.html: and very very simple tapestry codes. Upload.java: public class Upload {} When I press submit button in the HTML file, following error is occurred. What I should to do? Thanks for advice. [ERROR] RequestExceptionHandler Processing of reques

t5.0.11 help in update my own components

2008-04-23 Thread 孟凡振
in my component a html tag is rendered,and I want to add a onchange envent to it. below is some code ... select.attribute("onchange","alert(this.options[this.selectedIndex].value);" ); select is a element created by /*writer.element("select")*/ trigering a javascript event is ok here .. but

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
Thanks, Peter and Chris, for your help. I finally figured out what it was...I had two conflicting copies of javax.mail installed. I had it included in my pom.xml, and I had a Debian package installed libgnumail-java. (I'm on a Debian server). For some reason, the two didn't play nice together.

Re: T5: question about onValidate and form reset

2008-04-23 Thread Thiago HP
On 4/23/08, Thiago HP <[EMAIL PROTECTED]> wrote: > You can use the @OnEvent(component = "componentName", > value="eventName") annotation > > (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/annotations/OnEvent.html) > instead of method name conventions and then you can name yo

Re: T5: question about onValidate and form reset

2008-04-23 Thread Thiago HP
On 4/22/08, Kevin C. Dorff <[EMAIL PROTECTED]> wrote: > NOW, to help with some future questions: With T3/T4 it was pretty easy to > determine what methods to use for what, just look at the objects I was > extending or implementing and I could see what method to implement or > override to get w

Re: My breadcrumb component from T4 to T5

2008-04-23 Thread Josh Canfield
> I'm not sure if I understand... > Do you mean to say that manipulating the breadcrumb path (adding or > removing crumbs) should/could all go into one event handler? Sure, couldn't they? I'm not sure why they are split up into the two different event handlers. Except in the case of action links a

Re: My breadcrumb component from T4 to T5

2008-04-23 Thread Jan Vissers
Hi, I'm not sure if I understand... Do you mean to say that manipulating the breadcrumb path (adding or removing crumbs) should/could all go into one event handler? -J. > Ah, by workflow I meant to ask when you expected the events to get > fired, which you answered for the onactivate handler. >

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Jan Vissers
I've already sent a direct e-mail out to Stephane Decleire with the info of this small error. I'll keep an eye out for the change on the wiki and if it doesn't get thru, do the extra effort of signing-up and trying to make the change myself ;-) Anyways - another great example of the building T5 co

Re: T5: Forms - Best Practice

2008-04-23 Thread Christoph Jäger
Hi Geoff, it seems your JIRA describes just what I would like to have. I especially like the idea with the conversation id, because my next thought would have been: what happens if the user edits two different persons in two different windows of his web browser at the same time (over a sl

Re: [T4]hivemind variables in components

2008-04-23 Thread Patrick Moore
too much work. the alternative is just read env var On 4/23/08, Igor Drobiazko <[EMAIL PROTECTED]> wrote: > What about a new binding? You could inject a service into the binding which > is responsible for resolving HiveMind symbols. > > On Wed, Apr 23, 2008 at 1:12 AM, Patrick Moore <[EMAIL PROTEC

Re: tooltips (hints) for form components

2008-04-23 Thread Chris Lewis
Hello, The Tooltip component of tapestry5-components (http://code.google.com/p/tapestry5-components/) may help you: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Tooltip.html ice96 wrote: > Hello, > is it way to extend all form input components wi

Re: T5: Forms - Best Practice

2008-04-23 Thread Christoph Jäger
Hi Jim, I like to use the primary key, because it is short and by definition unique, and usually the quickest way to retrieve an object from the database. For the problem you describe, users are only allowed to view people in their own department, three different solutions come to my mind

tooltips (hints) for form components

2008-04-23 Thread ice96
Hello, is it way to extend all form input components with function witch onFocus shows hint (tooltip) onBlur hides? Any suggestions? -- View this message in context: http://www.nabble.com/tooltips-%28hints%29-for-form-components-tp16834806p16834806.html Sent from the Tapestry - User mailing list

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Chris Lewis
Peter, Thanks fo jumping in :-) - I was away and I wouldn't have readily known the answer anyway, so I along with Jan appreciate your sharing. Jan, So is there something incorrect in the wiki, or perhaps something that would be worth adding as a warning? chris Jan Vissers wrote: > Great Peter,

Re: My breadcrumb component from T4 to T5

2008-04-23 Thread Josh Canfield
Ah, by workflow I meant to ask when you expected the events to get fired, which you answered for the onactivate handler. So, why not do this all in one event handler, perhaps setupRender? On Wed, Apr 23, 2008 at 11:44 AM, Jan Vissers <[EMAIL PROTECTED]> wrote: > > I used T4 for a short period a

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Jan Vissers
Great Peter, This was indeed the problem. As I pointed out earlier - I use(d) Chris great writeup on dispatchers on the wiki and also another follow up article by Stephane Decleire - http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Which contains the same anomaly. Thx again, -J. > > S

Re: My breadcrumb component from T4 to T5

2008-04-23 Thread Jan Vissers
> I used T4 for a short period a long time ago, so I'm not understanding > the parallels that you are making. Can you describe the workflow that > you are shooting for? I'm not clear why you'd remove the breadcrumb in > the activate event and the add it again the beginrender event. beginRender wil

Re: My breadcrumb component from T4 to T5

2008-04-23 Thread Josh Canfield
I used T4 for a short period a long time ago, so I'm not understanding the parallels that you are making. Can you describe the workflow that you are shooting for? I'm not clear why you'd remove the breadcrumb in the activate event and the add it again the beginrender event. Josh On Wed, Apr 23,

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Peter Stavrinides
Sorry to jump in here Chris... Jan not exactly sure what you are doing since you haven't shown your code, but the exception is telling you "the response has been committed" , which means you are trying to modify a Response that is being processed, i.e.: it is read only. If you interrupt the

Re: Form with a Zone -> ComponentEventException

2008-04-23 Thread Alex.Hon
Maybe because IE you need edit tapestry.js about linkZone:function... element.onsubmit = handler; replace to: Event.observe(element, 'submit', handler); and element.onclick = handler; replace to:Event.observe(element, 'click', handler); and need add line :Event.stop(event); after new Ajax.Request

Re: Dynamic list of strings in a form

2008-04-23 Thread Michael Dukaczewski
Thank you very much, that was exactly what I was looking for. I am new to tapestry and it was not clear for me how loops are working, but now I understand it. :-) Also many thanks to the other guys that replied. @Marcus: Grid didn’t work for me, because I didn't have any Bean that I could pass.

My breadcrumb component from T4 to T5

2008-04-23 Thread Jan Vissers
Hi, Need some advice. In T4 I had a breadcrumb component that got its information from a breadcrumb model structure. Each page that needed to go onto the crumb path would implement some base page class. This page class implemented PageRenderListener and IExternalPage. The former to add info to the

RE: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-23 Thread Blower, Andy
Tomcat 5.5 live reloading works for me with Eclipse. I followed the setup process from the Tapestry 5 - Building Web Applications book and it works fine. I've not really got into figuring out how a real dev environment should be set up yet - I'm just evaluating/prototyping so far. I've not tried

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-23 Thread Peter Stavrinides
Hi Josh, I am pleasantly surprised to hear it works in IntelliJ, has anyone got it working in eclipse? Josh Canfield wrote: Hmm... after reading the title again I guess the fact that it works in Tomcat 5.5 is irrelevant... sorry for the sidetrack. On Thu, Apr 17, 2008 at 10:01 AM, Josh Canfi

Re: How to update a list from a checkbox in a loop in t5

2008-04-23 Thread nicholas Krul
try adding an index to the loop, and then using this index to do the translation b/n the getters/setters. (but I don't know anything about encoders) --nK On Wed, Apr 23, 2008 at 3:24 PM, Peter Stavrinides < [EMAIL PROTECTED]> wrote: > Hi All > > I this scenario: > > > > > How do I

How to update a list from a checkbox in a loop in t5

2008-04-23 Thread Peter Stavrinides
Hi All I this scenario: How do I use the checkbox correctly when the user clicks it? 'I want to associate it with an object' via a primary key perhaps...but the checkbox only seems to have a value property of the type boolean: http://tapestry.apache.org/tapestry5/tapestry-core/

Re: Problems with Javascript in Tapestry 4.1.5

2008-04-23 Thread Andreas Andreou
You need to do something like: document.thArray = new Array(); On Wed, Apr 23, 2008 at 3:43 PM, Rohan Kalyan <[EMAIL PROTECTED]> wrote: > Hi all, > We moved from tapestry 4.0.2 to 4.1.5 > we were using a script file and in had used the > tag to initialize the values used in > script function

Problems with Javascript in Tapestry 4.1.5

2008-04-23 Thread Rohan Kalyan
Hi all, We moved from tapestry 4.0.2 to 4.1.5 we were using a script file and in had used the tag to initialize the values used in script functions. The variables defined in this tag were working as global variable and we used to get the value of these variables in any script function. After shift

RE: T5: Forms - Best Practice

2008-04-23 Thread Jonathan Barker
Jim, I have a T4 application that uses domain-object level security implemented using the Acegi framework. I have used custom authorization code more appropriate for my task, rather than the built-in Acegi method. It works beautifully, and I've certainly seen people attempting to access things t

Is it possible to prevent the render method in parent component from being invoked?

2008-04-23 Thread dhning
Hi, First I know it is a feature that parent method is prior to child's. I need to extend GridPager component because the action link in GridPager doesn't have a context parameter, so the context info of the link is very limited(only the page No.). And I don't like to persist context in sessi

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Peter Stavrinides
Sounds like an issue with the server configuration, I suggest you get the logs to work first, then you might get a better idea of why the mail isn't working... if it works in development then chances are you are missing a host entry or something small like that, which will pop up in the logs.

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
I thought about that, but wouldn't tcpdump show the packets, even if they were being blocked? I was looking for all packets with port 25. Also, my code that's using javax.mail to send a message is looking for exceptions, and writing to the log file if that happens. I haven't seen anything in the

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Jan Vissers
Hi Chris, Thank you. As a matter of fact I used your wiki entries as my main inspiration. So what I do now is: use: "before:RootPath" for the contributation and return 'false' on the dispath for '/login and '/assets/' This works but in the background the following stuff is logged (To be more pre

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Chris Lewis
Hi Andy, If exceptions aren't being thrown from the services/pages that use the mail classes, then the javax.mail is present. Is it possible that your server (or it's network) is blocking outbound smtp connections? chris Andy Huhn wrote: > Hello, > > In my dev environment (running jetty6 from in

Re: T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Chris Lewis
Hi Jan, The first 2 paragraphs of this article cover what you want to do: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher Included also are relevant links to javadocs, as well as references to the TapestryModule, where you can see how it influences dispatcher ordering. chris Ja

[T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
Hello, In my dev environment (running jetty6 from inside Eclipse), I'm able to use javax.mail classes and successfully connect to my mail server to send a message. But when I migrate the code to my production server (jetty6 also), everything seems to work correctly except that the app doesn't con

T5 contributeMasterDispatcher - how to have default rootContext access be part of it

2008-04-23 Thread Jan Vissers
Hi, Just posted a question on dispatcher chain - but I think the subject line was way to unclear - so sorry for asking the question again. I want all of my pages (also the one that is shown when I access root context without anything - so no '/start') to be passed thru my dispatcher. How can I do

Is it possible to prevent the render method in parent component from being invoked?

2008-04-23 Thread dh ning
Hi, First I know it is a feature that parent method is prior to child's. I need to extend GridPager component because the action link in GridPager doesn't have a context parameter, so the context info of the link is very limited(only the page No.). And I don't like to persist context in session.

Is it possible to prevent the render method in parent component from being invoked?

2008-04-23 Thread dhning
Hi, First I know it is a feature that parent method is prior to child's. I need to extend GridPager component because the action link in GridPager doesn't have a context parameter, so the context info of the link is very limited(only the page No.). And I don't like to persist context in sessi

How to have default /app rootContext web access pass the dispatcher chain

2008-04-23 Thread Jan Vissers
Hi, I've written an adapter - inspired by work by Chris. However when I access my application the 'rootContext' web access, doesn't pass thru this dispatcher. Basically what I want is for every request to be introspected by my dispatcher. Is that possible? -J.

Is it possible to prevent the render method in parent component from being invoked?

2008-04-23 Thread dhning
Hi, First I know it is a feature that parent method is prior to child's. I need to extend GridPager component because the action link in GridPager doesn't have a context parameter, so the context info of the link is very limited(only the page No.). And I don't like to persist context in sessi

Re: [T4]hivemind variables in components

2008-04-23 Thread Igor Drobiazko
What about a new binding? You could inject a service into the binding which is responsible for resolving HiveMind symbols. On Wed, Apr 23, 2008 at 1:12 AM, Patrick Moore <[EMAIL PROTECTED]> wrote: > Hi there -- > > O.k. I feel silly -- but how do I use hivemind variables directly in a > component

Re: Tapestry 5.0.12

2008-04-23 Thread Tobias Marx
Hi Howard! Don't forget to release Tapestry 5.0.12 together with a useful demo application once the time is ripe. The more demos, the bettermaybe even a "Petshop 2.0" with Ajax widgets? So long Tobias Original-Nachricht > Datum: Tue, 22 Apr 2008 20:20:49 -0700 > Von: