Re: Component parameters & events

2009-04-02 Thread DH
Should be void onHello() { // ... } Tapestry has complained that you don't supply a event handler 'hello' which is like onHello. Thanks, DH - Original Message - From: "Jason Tan" To: "Tapestry users" Sent: Friday, April 03, 2009 8:48 AM Subject: Re: Component parameters & events

Re: Component parameters & events

2009-04-02 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Apr 2009 21:48:30 -0300, Jason Tan escreveu: Sorry, should've been more specific -- the URLs that you POST and GET to from within the javascript will usually have hardcoded URLs. You was specific enough in your last message. You do not need to have hardcoded URLs. Take a look at

Re: Component parameters & events

2009-04-02 Thread Jason Tan
Sorry, should've been more specific -- the URLs that you POST and GET to from within the javascript will usually have hardcoded URLs. Perhaps it is broken than I am using event methods on embedded components to act as the server-side AJAX handler, and maybe each ajax handler should be its own page.

Re: Component parameters & events

2009-04-02 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Apr 2009 21:03:54 -0300, Jason Tan escreveu: Unfortunately, in AJAX scenarios, the URL has to be hard-coded (though I suppose you could write use an EventLink to render the URL as a global variable inline in the TML, but that seems nasty). Not quite. You can use methods from Compo

Re: Component parameters & events

2009-04-02 Thread Jason Tan
Thanks for the speedy response. That all makes sense, and I am aware of the ActionLink and EventLink components, and use them as much as I can. Unfortunately, in AJAX scenarios, the URL has to be hard-coded (though I suppose you could write use an EventLink to render the URL as a global variable in

Re: Component parameters & events

2009-04-02 Thread Howard Lewis Ship
On Thu, Apr 2, 2009 at 4:30 PM, Jason Tan wrote: > I must be going crazy. > Well, you are finding the hard way to do things. > On the 5.0.18 docs for component > rendering, > it clearly states that in setupRender(), "This is a good place

[ANNOUNCE] Tapestry 5.1.0.2

2009-04-02 Thread Howard Lewis Ship
The latest alpha release of Tapestry 5.1, Tapestry 5.1.0.2, is now available for download and via Maven. Please download it and give it a try; we're especially interested in any problems related to the upgrade from 5.0.18 to 5.1.0.2. Big features added in 5.1.0.2 include automatic combining of Ja

Component parameters & events

2009-04-02 Thread Jason Tan
I must be going crazy. On the 5.0.18 docs for component rendering, it clearly states that in setupRender(), "This is a good place to read component parameters and use them to set temporary instance variables.". So I did exactly that. I ma

Re: [daniel.a.jo...@gmail.com: Hibernate.cfg or persistence.xml?]

2009-04-02 Thread daniel joyce
how well does this play with the existing Tapestry-Hibernate integration? Can I still grab the Session easily? -Daniel On Thu, Apr 2, 2009 at 2:26 AM, Christine Karman wrote: > >> From: daniel joyce >> To: users@tapestry.apache.org >> X-Virus-Checked: Checked by ClamAV on apache.org >> >> I wan

Re: multiple context values

2009-04-02 Thread Howard Lewis Ship
Marcelo has the right answer for Tapestry 5.0.18: you must create a property of your page to assemble the context values into a List or array. In 5.1, there's new property expression syntax for creating a list: context="[ productId, categoryId ]" On Mon, Apr 28, 2008 at 8:53 AM, Leon Derks w

Re: multiple context values

2009-04-02 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 2, 2009 at 11:37 AM, Fernanda C. Carmo wrote: > Is there any other way to have only one parameter ProjectVersion like this? > >    public Object onActionFromEditProjectVersion(ProjectVersion > projectVersion) { > >        editProjectVersionPage.setProjectVersion(projectVersion); >    

Re: IoC TestBase, IOCTestCase and others

2009-04-02 Thread Howard Lewis Ship
They are meant for reuse. They are quite stable. On Thu, Apr 2, 2009 at 2:04 AM, Massimo Lusetti wrote: > Hi, >  does these classes which belongs to src/main/java and not > src/test/java within the tapestry-ioc module are there to provide > helps to framework's users test classes? > I mean, may i

Re: [T5] Gotcha when working with Groovy and T5

2009-04-02 Thread Howard Lewis Ship
Well, the intent of those constants is not to shield against a change (we aren't going to rename "literal" to "fixed" or something), but to help the compiler catch typos that would otherwise be discoverred at runtime. On Thu, Apr 2, 2009 at 7:19 AM, Otho wrote: > Just thought that might interest

Re: multiple context values

2009-04-02 Thread Fernanda C. Carmo
Thiago and Filip, thank you very much! Actually, I have an object ProjectVersion with the composite primary key. So in ListProjectVersionPage I would like to go to EditProjectVersionPage this way: public Object onActionFromEditProjectVersion(EventContext context) { Integer

Re: T5: Block with Form + Submit

2009-04-02 Thread Peter Kanze
Sorry my fault. I solved it. I didn't used id="mailForm" instead of t:id='"mailForm" Thanks anyway! Peter On Thu, Apr 2, 2009 at 4:24 PM, Peter Kanze wrote: > Hello > > I have a tabset, that works with a zone and blocks. > > In one block I have a form to send mail and in another block a form f

T5: Block with Form + Submit

2009-04-02 Thread Peter Kanze
Hello I have a tabset, that works with a zone and blocks. In one block I have a form to send mail and in another block a form for registration. De problem is that I cannot catch submit in the correct onSuccessFrom... Form. I can only catch the submit events in a general onSuccess() method. But

[T5] Gotcha when working with Groovy and T5

2009-04-02 Thread Otho
Just thought that might interest some people. I stumbled over a bug in Groovy's handling of annotations while translating some components from Java. It is known and already filed here: http://jira.codehaus.org/browse/GROOVY-3278 You can't use static constant variables in annotations, so @Paramet

Re: Multiple zone updater

2009-04-02 Thread Thiago H. de Paula Figueiredo
Just remembering you that multiple zone AJAX update suppport was added to Tapestry in 5.1.0.x (I don't remember what version exactly). -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comm

Re: help with tapestry hibernate.

2009-04-02 Thread Andrea Chiumenti
Well, after litigating a bit, and browsing the source code (I know that soon or later one have to :P ) I've found this solution that works pretty well and is pretty immediate to use: @BeforeSuite public void initSuite() { SymbolProvider provider = new SingleKeySymbolProvider(Intern

Re: Multiple zone updater

2009-04-02 Thread amol
hi, I m just trying to update a multiple zone but i m confused that what value I need to pass for parameter zoneTriggerCssIdentifiers Thanks Hi all, I remember a discussion here a few weeks ago on updating multiple zones on one request. I had such a need myself and developed a MultipleZoneUpd

Re: multiple context values

2009-04-02 Thread Thiago H. de Paula Figueiredo
On Wed, Apr 1, 2009 at 7:45 PM, Filip S. Adamsen wrote: > What about contributing a ValueEncoder that converts between a ProductId > and a String? I haven't needed to work with composite primary keys, so I > can't say if it'd work, but it's worth a shot. This is a more reusable solution than the

T5: Form NoSuchElementException

2009-04-02 Thread Peter Kanze
Can someone explain the error below? The page is loading correctly, but when I hit the search button I get this error. the onPrepare is the last method, after that I get the exception. java.util.NoSuchElementException # java.util.AbstractList$Itr.next(Unknown Source) # org.apache.tapestry5.core

Re: [daniel.a.jo...@gmail.com: Hibernate.cfg or persistence.xml?]

2009-04-02 Thread Christine Karman
From: daniel joyce To: users@tapestry.apache.org X-Virus-Checked: Checked by ClamAV on apache.org I want to use persistence annotations in my tapestry application, but the documentation on the hibernate-tapestry integration is sparse and contradictory. Do I need to use Hibernate.cfg.xml, or c

IoC TestBase, IOCTestCase and others

2009-04-02 Thread Massimo Lusetti
Hi, does these classes which belongs to src/main/java and not src/test/java within the tapestry-ioc module are there to provide helps to framework's users test classes? I mean, may i use that without to much worry? For the records they're not in an *.internal.* package... Regards -- Massimo htt

Re: help with tapestry hibernate.

2009-04-02 Thread Tapestry Infodea
I use Tapestry 5.0.18 and I can test Hibernate. The classes that I use for testing are as follows: //A Test Module in order to use a specific configuration on test environment @SubModule( { AppModule.class }) public class AppTestModule { public static void contributeApplicationDefaults(Mapped

Re: Tapestry 5 on top of GORM with Maven

2009-04-02 Thread Otho
Ahhh, my bad. I am so used to create new classes via the IDE that I didn't think of including the package directive in the displayed code. But nice it works for you now. Regards, Otho 2009/4/1 emilis > > Thank you a lot! > I'm shame. My misstake was: > > import grails.persistence.Entity > > @E

T5:How to add a callback function which will be called after zone finish updating block

2009-04-02 Thread amol
Hi, I am using zone to update a block but i want a callback function for some other processing at client side. Anyone knows how to do this Please Help. Thanks, amol -- View this message in context: http://n2.nabble.com/T5%3AHow-to-add-a-callback-funct

RE: Hibernate.cfg or persistence.xml?

2009-04-02 Thread Newham, Cameron
I am just using hibernate.cfg.xml and it all works very well. -Original Message- From: daniel joyce [mailto:daniel.a.jo...@gmail.com] Sent: 02 April 2009 05:14 To: users@tapestry.apache.org Subject: Hibernate.cfg or persistence.xml? I want to use persistence annotations in my tapestry