Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Hmmm...I added the async attribute and it's working but I'm noticing a small side effect that I don't like. I'm going to have to table this for tomorrow/this weekend. (haven't eaten yet today and it's midnight now ) On 7/13/06, James Carman <[EMAIL PROTECTED]> wrote: You da man, Jesse! Thank y

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Oops...Forgot to mention that you don't have to target components only. You can say targets={comp id list} or elements={html element id list} or any combination of the two. On 7/13/06, James Carman <[EMAIL PROTECTED]> wrote: You da man, Jesse! Thank you for your responsiveness. Looking forwar

RE: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread James Carman
You da man, Jesse! Thank you for your responsiveness. Looking forward to the new feature(s). As I said on IM, I'll get that exception handler chain submitted as a patch to JIRA soon. Thanks again! -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thursday, July 1

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Hmm don't know. I guess I can look at that real quick while I'm doing the other things. On 7/13/06, Jun Tsai <[EMAIL PROTECTED]> wrote: html: page: But I find it call doSaveEntityAction method.Wha't wrong? Thank you! 2006/7/14, Jun Tsai <[EMAIL PROTECTED]>: > >

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Yes: @EventListener(targets="your propertyselection component id", events="onChange", submitForm="your form component id", async="true/false") public void yourListenerMethod() { } But, as I said on IM, give me about 30 more minutes before async is a valid option. (Currently defaults to true) Al

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jun Tsai
html: page: But I find it call doSaveEntityAction method.Wha't wrong? Thank you! 2006/7/14, Jun Tsai <[EMAIL PROTECTED]>: Thank you! 2006/7/14, Jesse Kuhnert <[EMAIL PROTECTED]>: > sighh.. in the last example, "this" should be "this.form". > > On 7/13/06, Jesse

RE: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread James Carman
Is there any way to specify, via JavaScript what "listener" method to call upon form submit? That'd be just as good as having an EventSubmit component. -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 10:32 PM To: Tapestry users Subject: Re:

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jun Tsai
Thank you! 2006/7/14, Jesse Kuhnert <[EMAIL PROTECTED]>: sighh.. in the last example, "this" should be "this.form". On 7/13/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Oops...That doesn't help you as much in the context of the example you > gave, you can also do it this way ~if~ the c

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
sighh.. in the last example, "this" should be "this.form". On 7/13/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way ~if~ the context is within an html on attribute (such as your example.P.S.

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way ~if~ the context is within an html on attribute (such as your example.P.S. you don't need to add javascript: anymore): onClick="tapestry.form.submit(this,'cancel')" The first parameter will t

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Ah. You have got me there, I've failed to provide explicit function calls for cancel/refresh. For now, you can call: tapestry.form.submit("your form name/id", "cancel"); So, if your rendered page had a form element that looked like: , the script would be: tapestry.form.submit("MyTapForm", "can

How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jun Tsai
In Tapestry 4.0.2,I use onClick="javascript:this.form.events.cancel();",But after I upgrade to 4.1,I find the method doesn't work? How to ? Thanks -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net

RE: suggestions on a conditonal render in the rewind

2006-07-13 Thread James Carman
Don't put a listener on the form itself and put one on the submit button (or @LinkSubmit or whatever). That's what I'm doing. I am implementing my own validation delegate which only displays error message indicators if its "validated" flag is set (which I do in my "submit" button listeners). --

Re: suggestions on a conditonal render in the rewind

2006-07-13 Thread Dan Adams
Perhaps I could phrase it another way. I've got a set of fields that I only want to be validated against when a particular submit button is clicked. Any ideas? On Thu, 2006-07-13 at 21:30 -0400, Dan Adams wrote: > Okay, I've got a component that is used in a form and basically to solve > some vali

suggestions on a conditonal render in the rewind

2006-07-13 Thread Dan Adams
Okay, I've got a component that is used in a form and basically to solve some validation problems i need to have the component not render a couple form fields when performing validation based on which submit button was clicked. my question is, have people had experience with this and what's the lea

RE: Inject and the infrastructure namespace GENERALIZED

2006-07-13 Thread James Carman
No, you can't do that. The "object providers" use "locator strings" (the stuff after the ':' to find/create objects). It is entirely up to the object provider how it wants to interpret them. Here's a description of the "canned" object providers that come with HiveMind. For a listing of all obje

RE: Inject and the infrastructure namespace

2006-07-13 Thread James Carman
Take a look at the Infrastructure interface. Any property from the interface is available via the infrastructure: prefix. -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 7:07 PM To: Tapestry users Subject: Inject and the infrastructure names

Access to PortletConfig (init-param and friends)

2006-07-13 Thread Epstein, Ezra
So I think I found the code that handles the PortletConfig: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-portlet/src/java/org/apache/tapestry/portlet/PortletApplicationSpecificationInitializer.java?view=markup public void initialize(PortletConfig portletConfig) { Str

RE: Inject and the infrastructure namespace GENERALIZED

2006-07-13 Thread Epstein, Ezra
More generally, how does one introspect the entire HiveMind registry? I'd really like to list out the top level entry points (namespaces) and then crawl those printing out what I find. Is there some sample code to do that? Thanks, Ezra Epstein -Original Message- From: Epstein, Ezr

Inject and the infrastructure namespace

2006-07-13 Thread Epstein, Ezra
This: @InjectObject("infrastructure:context") works fine. And of course there's the 'request' available from infrastructure. Can someone kindly point me to the docs that list all the possible values that may be placed after the "infrastructure:" tag/namespace for a default tapestry+portlet d

Tapestry and a portlet's init-param

2006-07-13 Thread Epstein, Ezra
So the portlet spec lists a way to get the init-params set in the portlet.xml file. How does one access these from a Tapestry (portlet) page? I've been perusing the javadocs and seem to only get 1/2 way there. Thanks, Ezra Epstein --

Re: tacos double submit (add) problem

2006-07-13 Thread Mike Oestereter
Will log the bug and use part1 And thanks alot. On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Yep, i also saw the single 'add' behaviour. Your exact code results in the following issues: - when add is pressed once, submit behaves like add - when add is pressed more than once, submit

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Epstein, Ezra
The problem isn't with DirectLink it's with the method being invoked which expects a single parameter. I could, of course, write a special method that takes no params and then calls the extant method with a null parameter but that's a kludgy hack. Jim S. got the best answer: ognl:{} does th

Re: tacos double submit (add) problem

2006-07-13 Thread andyhot
Yep, i also saw the single 'add' behaviour. Your exact code results in the following issues: - when add is pressed once, submit behaves like add - when add is pressed more than once, submit triggers the delete button. I've already added your files to reproduce this, but SF wouldn't let me commit

Re: tacos double submit (add) problem

2006-07-13 Thread Mike Oestereter
On 7/13/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: - if you change everything to update part1, it works normally... Why do you say 'without the partial updates' ? You're right - I mean of course "without the partial updates" of only the recurring items. - if you leave it as is, the proble

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Jim Steinberger
I forgot to mention: I tried that, too (leaving out 'parameters'). Got the exact-same error, that it couldn't find the matching listener. That's why I'm inclined toward Ezra's intuition that this portion of Tapestry doesn't differentation between a null value and no value at all, when using the si

Re: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Jesse Kuhnert
I don't think parameters is a required "parameter" of DirectLink. What happens when you don't define that portion at all? On 7/13/06, Jim Steinberger <[EMAIL PROTECTED]> wrote: Ezra, While looking for a workaround for you, I found out it's not just /explicit/ nulls: To my page class, I added:

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter SOLVED

2006-07-13 Thread Epstein, Ezra
The OGNL incantation is: Parameters="ognl:new java.lang.String[1]" Thanks, Ezra Epstein -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 1:39 PM To: Tapestry users Subject: Tapestry 4: @DirectLink with parameter="ognl:null" not handled

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Jim Steinberger
Ezra, While looking for a workaround for you, I found out it's not just /explicit/ nulls: To my page class, I added: public Integer getBip() { return null; } And changed my template to: parameters="ognl:bip" And got the same error as you. Good to know. But you can still do this. The "para

Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Epstein, Ezra
I've got working @DirectLink tags for a listener that takes a single String parameter. In one case I want to pass in null as the parameter. How does one do this? Using Link Causes: org.apache.tapestry.BindingException Exception invoking listener method setCurrentNodeId of component View: N

Re: ZipException

2006-07-13 Thread Howard Lewis Ship
Could this be a bookmark from the T3 app that you are trying to use under T4? The stack trace indicates parsing a query parameter that is a gzipped encoding of a serialized Java object. That's a red flag right there (just because you can do it, doesn't mean you should ... Serialization is a very

Re: Open Web Application Platform

2006-07-13 Thread Lennart Benoot
Yes, I've seen it the past. In my opinion it's a different kind of concept. I should have a second look tough because quite a lot has changed apparently. Thanks for the info. No comments on the second part of the mail? Regards, Lennart On 7/12/06, FTP <[EMAIL PROTECTED]> wrote: Have you seen

Re: tacos double submit (add) problem

2006-07-13 Thread Andreas Andreou
- if you change everything to update part1, it works normally... Why do you say 'without the partial updates' ? - if you leave it as is, the problem is that the doRemoveItem listener is somehow triggered when you click on the submit button. This results in an item removed and the iteration failin

Re: Element type "property-specification" must be declared.

2006-07-13 Thread Rui Pacheco
Many thanks. I was following a tutorial that used Tapestry 3.0 and got lost in these small details. On 7/13/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: If you want to use the 4.0 DTD, take a look at this doc first http://tapestry.apache.org/tapestry4/UsersGuide/spec.html Rui Pacheco wrote:

Re: Can you find the typo

2006-07-13 Thread Chris Chiappone
THANK YOU!! I wasn't looking at the jwcid at all, thanks a lot. On 7/13/06, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: i found it :) should be kris "Chris Chiappone" <[EMAIL PROTECTED] com>

Re: Element type "property-specification" must be declared.

2006-07-13 Thread Andreas Andreou
If you want to use the 4.0 DTD, take a look at this doc first http://tapestry.apache.org/tapestry4/UsersGuide/spec.html Rui Pacheco wrote: Hi all This is strange. Yesterday I tried to declare a context-asset on a .page file and received the same error as today, except instead of property-speci

Antwort: Can you find the typo

2006-07-13 Thread Kristian Marinkovic
i found it :) should be kris "Chris Chiappone" <[EMAIL PROTECTED] com>

Element type "property-specification" must be declared.

2006-07-13 Thread Rui Pacheco
Hi all This is strange. Yesterday I tried to declare a context-asset on a .page file and received the same error as today, except instead of property-specification it obviously mentioned context-asset. Today I created a select on my template, named it query (jwcid=query), and declared it to be

Can you find the typo

2006-07-13 Thread Chris Chiappone
Ok I have been staring at this code for hours now and can't seem to find what is wrong. I am trying to create a Table using TableView but I get this exception: 'The component assessorValues must be contained within an ITableRowSource component, such as TableRows' here is my html:

Re: DirectLink in TableValue

2006-07-13 Thread Kosarev A.V.
Mind Bridge wrote: > Hi, > > Can you also send your XML (.page or .jwc), in particular the definition of > the "tableView" component? > > http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>

Re: DirectLink in TableValue

2006-07-13 Thread Mind Bridge
Hi, Can you also send your XML (.page or .jwc), in particular the definition of the "tableView" component? -mb -- View this message in context: http://www.nabble.com/DirectLink-in-TableValue-tf1935446.html#a5306976 Sent from the Tapestry - User forum at Nabble.com. --

Re: DirectLink in TableValue

2006-07-13 Thread Kosarev A.V.
Update: I wish to place in a column two DirectLink components. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ZipException

2006-07-13 Thread Reto Hotz
Hello, I try to upgrade our application from T3 to T4. Most of it is working, but I have one strange error, I cannot figure out how to fix it. We have a rather complex component that worked fine in T3, but in T4 it throws this exception: org.apache.hivemind.ApplicationRuntimeException Unable to

tacos double submit (add) problem

2006-07-13 Thread Mike Oestereter
Hello My code below works for the item delete - but a normal "submit" button click after an "add" button click gives me an unexpected and additional "add". Also, if I do more than one "add" followed my a final "submit" the whole thing goes out of sync with a.. Caused by: ognl.MethodFailedExceptio