Re: ProgressiveDisplay in a custom component?

2011-06-24 Thread Massimo Lusetti
On Thu, Jun 23, 2011 at 2:20 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: ProgressiveDisplays should handle the events and trigger them again. I guess you can find some examples in the mailing list or in JumpStart. Nice memory Thiago... ;-) Cheers -- Massimo

T5 Select Menu with Other Option

2011-06-24 Thread gchristman
Hello, I'm trying to add an other option to my select menu and have the other option trigger a zone reload when selected. You can find a UI example here http://drupal.org/node/330740 . I'm currently using T5.2.5 with hibernate. My user interface uses two AjaxFormLoops, one nested inside the other

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
Hi! On Fri, 24 Jun 2011 09:44:42 -0300, gchristman gchrist...@cardaddy.com wrote: Hello, I'm trying to add an other option to my select menu and have the other option trigger a zone reload when selected. I get the following error [ERROR]entities.Funding Unable to convert client value

Re: T5: Theming Support

2011-06-24 Thread Igor Drobiazko
Please read this post: http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ On Sat, Jun 18, 2011 at 6:35 AM, Angelo C. angelochen...@gmail.com wrote: Hi, T5.3.0 has Skin and Theming Support, any reference to these two great features? Thanks, Angelo -- View this message in

Re: T5 Select Menu with Other Option

2011-06-24 Thread George Christman
Hi Thiago, You are correct with it being done by the ValueEncoder tapestry-hibernate automatically which is why I'm receiving that error. Not entirely sure how to get around it. I'm using the blankOption=always, blankLabel=Funding Source parameters already. I guess I'm not clear with what your

T5.2.5 - loop, zones and a save button

2011-06-24 Thread Alexander Rosemann
Hi, I asked this before but couldn't resolve the issue based on the information that Taha forwarded me. (http://tapestry.1045711.n5.nabble.com/loops-zones-and-encoders-td4425814.html#a4425945) I have a loop that creates textareas within a form. Each textarea is wrapped by a zone. Outside the

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 10:23:53 -0300, George Christman gchrist...@cardaddy.com wrote: Hi Thiago, Hi! You are correct with it being done by the ValueEncoder tapestry-hibernate automatically which is why I'm receiving that error. Not entirely sure how to get around it. I'd get the Funding

Re: T5.2.5 - loop, zones and a save button

2011-06-24 Thread Taha Hafeez
Hi Whenever you use a zone in a loop, you should provide the javascript id yourself. You can use the index to create a unique one e.g. t:zone t:id='textareaZone' id='textareaZone_${index}' /t:zone If you are using a non-ajax form, what is the use of zone here ?? regards Taha On Fri, Jun 24,

Re: [ANN] Tapestry-breadcrumbs version 1.4 is released

2011-06-24 Thread David Canteros
Now works. Nice component! Thanks! David 2011/6/23 Joakim Olsson joa...@unbound.se Hi, My bad. You need this in the page/layout-class as well: @Property private BreadCrumbInfo breadCrumb; I'll update the readme. Regards, Joakim On Thu, Jun 23, 2011 at 4:35 PM, David

Re: T5 Select Menu with Other Option

2011-06-24 Thread George Christman
Would you mind elaborating a bit on getting the Funding ValueEncoder from ValueEncoder source, or point me to an example? I'm not very familiar with the ValueEncoder and not finding much doc on your method. Thanks Thiago. -- View this message in context:

Re: T5.2.5 - loop, zones and a save button

2011-06-24 Thread Alexander Rosemann
Hi Taha, I should have put more thought in my example. The zone gets its unique id and is updated by a set of actionlinks that I have omitted in my previous example. This is the full one: t:form t:loop t:id=criteria value=currentCriteria source=criteria encoder=cEncoder t:loop

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 10:57:43 -0300, George Christman gchrist...@cardaddy.com wrote: Would you mind elaborating a bit on getting the Funding ValueEncoder from ValueEncoder source, or point me to an example? I'm not very familiar with the ValueEncoder and not finding much doc on your method.

Tapestry 5.25 with Tynamo 0.4.0 onActionFromLogout not redirecting to index page.

2011-06-24 Thread cablepuff
So i have many pages that implements onActionFromLogout @InjectPage private Index index; public Object onActionFromLogout() { SecurityUtils.getSubject().logout(); try { // the session is already invalidated, but need to cause an exception since tapestry

Re: T5.2.5 - loop, zones and a save button

2011-06-24 Thread Taha Tapestry
Can you share the code of the event handler for the action. I think all the textareas are getting bound to the last object of the loop's source Regards Taha On Jun 24, 2011, at 7:35 PM, Alexander Rosemann alexander.rosem...@gmail.com wrote: Hi Taha, I should have put more thought in

Re: LinkSubmit outside Form

2011-06-24 Thread Dmitriy Vsekhvalnov
Gentelmen, anyone? I ended writing clone of LinkSubmit, which detects form on the client and submits it. To distinguish what action to trigger i'm encoding input type=hidded name=action value=my-action / when triggering submit, and in the event handler i have to do switch: @CommitAfter

Re: T5 Select Menu with Other Option

2011-06-24 Thread George Christman
Other than a few typos, code compiled and worked, however doesn't seem to be solving the issue. I'll show you exactly what I'm doing, maybe I'm missing something small. The value never seems to equal OTHER in your method. I really appreciate everything thus far. Thanks ! tml t:AjaxFormLoop

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 12:35:51 -0300, George Christman gchrist...@cardaddy.com wrote: void onPrepareFromPR() { ListFunding _fundings = session.createCriteria(Funding.class).add(Restrictions.eq(purchaseRequest.id, purchaseRequest.getId())).list(); funding = new Funding();

Re: T5 Select Menu with Other Option

2011-06-24 Thread George Christman
Seems like we are super close now. Hopefully I'm doing this correctly ListFunding _fundings = session.createCriteria(Funding.class).add(Restrictions.eq(purchaseRequest.id, purchaseRequest.getId())).list(); _fundings.add(OTHER); ValueEncoder is returning -1 as expected and the

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 13:34:59 -0300, George Christman gchrist...@cardaddy.com wrote: Seems like we are super close now. Hopefully I'm doing this correctly ListFunding _fundings = session.createCriteria(Funding.class).add(Restrictions.eq(purchaseRequest.id,

Re: T5 Reference page attributes from a component

2011-06-24 Thread Tony Nelson
On Jun 23, 2011, at 6:27 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 23 Jun 2011 18:18:39 -0300, Tony Nelson tnel...@starpoint.com wrote: In our T4 app we made a lot of use of this type of construct: parameter name=selectedColumn default-value=ognl:page.selectedColumn / This

Re: T5 Reference page attributes from a component

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 14:17:43 -0300, Tony Nelson tnel...@starpoint.com wrote: Thank you very much for your help. I was able to get my form to display properly using the Environmental Service and adding the following to my base class: void beginRender() {

Re: T5 Reference page attributes from a component

2011-06-24 Thread Taha Tapestry
Hi There are two phases after you submit a form. First comes the action phase and then the render phase. You are pushing an object in the render phase so at the time of action the object is not there. Regards Taha On Jun 24, 2011, at 10:47 PM, Tony Nelson tnel...@starpoint.com wrote: On

Re: T5: Theming Support

2011-06-24 Thread Howard Lewis Ship
Nice. Like the graphs. On Fri, Jun 24, 2011 at 6:16 AM, Igor Drobiazko igor.drobia...@gmail.com wrote: Please read this post: http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ On Sat, Jun 18, 2011 at 6:35 AM, Angelo C. angelochen...@gmail.com wrote: Hi, T5.3.0 has Skin and

Re: T5 Select Menu with Other Option

2011-06-24 Thread George Christman
Thiago, it looks like that did the trick. I'm running into a couple issues, sorry to keep bothering you :-/ I'm setting the funding id / name ListFunding _fundings = session.createCriteria(Funding.class).add(Restrictions.eq(purchaseRequest.id, purchaseRequest.getId())).list();

Re: T5 Select Menu with Other Option

2011-06-24 Thread Thiago H. de Paula Figueiredo
On Fri, 24 Jun 2011 15:48:08 -0300, George Christman gchrist...@cardaddy.com wrote: ListFunding _fundings = session.createCriteria(Funding.class).add(Restrictions.eq(purchaseRequest.id, purchaseRequest.getId())).list(); NEW_FUNDING.setName(NEW_FUNDING_NAME);

[ANNOUNCE] Tapestry 5.3.0

2011-06-24 Thread Howard Lewis Ship
Apache Tapestry version 5.3.0 is now available. This is the first alpha release of Tapestry 5.3. It is designed to be a drop-in replacement for Tapestry 5.2, adding new components and features, with lower memory utilization, and event faster startup. However, as many deprecated classes have been

Conversion from 5.1 to 5.2

2011-06-24 Thread Norman Franke
I just finished converting our company's back-office application from Tapestry 5.1.0.5 to 5.2.5. I had been putting it off because I knew it would take some time and there was always something to add to the application. The application has functions for sales, customer support and billing

Re: Conversion from 5.1 to 5.2

2011-06-24 Thread Kalle Korhonen
On Fri, Jun 24, 2011 at 3:33 PM, Norman Franke nor...@myasd.com wrote: After I had everything working pretty well, I put it onto the production server where it ran for a few hours and then died with a PermGen exception. Previously, my app would run for months with the 64 MB of PermGen allocated