Re: templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Howard Lewis Ship
A well established Tapestry style in Tap3 + Tap4 was: ... I really liked that style, especially for teaching Tapestry and wanted to allow something that immediately understandable but even more concise. On Wed, Mar 4, 2009 at 10:33 AM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 04 Mar 200

T5: not all hibernate records saving

2009-03-04 Thread Jsherwood
Hello, I have a page that you load an excel file and read each line converting it to records. It works fine with no errors anywhere but out of 15855 lines it only actually puts in 11272 records but my count on the loop shows 15855 and I cannot figure out why these records are not saving wit

Re: T5: alternative template

2009-03-04 Thread Angelo Chen
Hi Thiago, The block approach sounds right to me, will try that, thanks. Thiago H. de Paula Figueiredo wrote: > > Em Wed, 04 Mar 2009 23:23:14 -0300, Angelo Chen > escreveu: > >> Hi Thiago, > > Hi! > > >> Thanks, Inject page is an option, it will look like this: >> localhost/mycars >> l

Re: T5: alternative template

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 23:23:14 -0300, Angelo Chen escreveu: Hi Thiago, Hi! Thanks, Inject page is an option, it will look like this: localhost/mycars localhost/mycarsaqua You're right . . . is there a way that, even I inject MyCarAqua, its url still localhost/mycars? I've never actua

Re: T5: alternative template

2009-03-04 Thread Angelo Chen
Hi Thiago, Thanks, Inject page is an option, it will look like this: localhost/mycars localhost/mycarsaqua is there a way that, even I inject MyCarAqua, its url still localhost/mycars? Thiago H. de Paula Figueiredo wrote: > > Em Wed, 04 Mar 2009 22:17:07 -0300, Angelo Chen > escreveu:

Re: T5: alternative template

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 22:17:07 -0300, Angelo Chen escreveu: Hi, Hi! I know T5 always team up template with java class using the same name, say, MyCars.java, then you need a MyCars.tml, is it possible we can have MyCarsAqua.tml, MyCarsClassic,tml, and we can programatically chose which tml

T5: alternative template

2009-03-04 Thread Angelo Chen
Hi, I know T5 always team up template with java class using the same name, say, MyCars.java, then you need a MyCars.tml, is it possible we can have MyCarsAqua.tml, MyCarsClassic,tml, and we can programatically chose which tml to be rendered at runtime? this will bring a degree of configurability

Re: @Inject'ing Generic Services

2009-03-04 Thread Luther Baker
Explicit discussion about generics and ioc eludes me on that page - but I'll keep looking around. Thanks. -Luther On Wed, Mar 4, 2009 at 7:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 04 Mar 2009 21:47:31 -0300, Luther Baker > escreveu: > > Can I safely @Injec

Re: @Inject'ing Generic Services

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 21:47:31 -0300, Luther Baker escreveu: Can I safely @Inject this encoder into multiple/different pages? class MoviePage { @Inject private ValueEncoder encoder; Java does not let you do that because of the way it implemented generics. Anyway, Select (and maybe s

@Inject'ing Generic Services

2009-03-04 Thread Luther Baker
The following is illegal Java ... so I cannot bind the following in my AppModule: binder.bind(ValueEncoder.class, GenericValueEncoder.class); binder.bind(ValueEncoder.class, GenericValueEncoder.class); binder.bind(ValueEncoder.class, GenericValueEncoder.class); bind

Re: Tapestry 5.1 session invalidate misbehaving

2009-03-04 Thread Robert Zeigler
Try switching the order of homePage.setIsSignOut(true) and request.getSession(false).invalidate(); It looks like the homePage is being lazily evaluated right there, and the page load is failing; if you switch the order, I think you'll be set. Robert On Mar 4, 2009, at 3/48:39 AM , Peter St

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Luther Baker
> By the way, you can use Hibernate cache features to deal with that instead of implementing it yourself. Ahh ... I knew this ... but it is something I need to read up on. > Again: each ValueEncoder method is invoked in different requests and it's not a good idea to put object lists in memory (s

Re: Services injection and decoration problems

2009-03-04 Thread Andrea Chiumenti
Thank you, this solves a lot of things kiuma On Wed, Mar 4, 2009 at 7:36 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 04 Mar 2009 15:13:34 -0300, Andrea Chiumenti > escreveu: > >> What I need is do create a DojoRequire annotation for components and >> pages. > > Wouldn't a mixin be a bette

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 16:50:21 -0300, Luther Baker escreveu: ... my encoder implements this method: public T toValue(String clientValue) So in my case, the encoder needs data from the database. I've spent cpu cycles in getModel() to pull a list of items. It seems like I should leverage

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Luther Baker
Thiago, You are like superman on this forum. Thanks for spending so much time here ... I for one don't know what I'd do without these discussions. I know it is a tangent but I've posted to other groups like the Grails nabble group and NEVER EVER get any responses. A framework is worthless to me

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Luther Baker
> > Your encoder shouldn't depend on a pre-fetched list. Just fetch the encoded > object in your encoder. ... my encoder implements this method: public T toValue(String clientValue) So in my case, the encoder needs data from the database. I've spent cpu cycles in getModel() to pull a li

Re: Services injection and decoration problems

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 15:13:34 -0300, Andrea Chiumenti escreveu: What I need is do create a DojoRequire annotation for components and pages. Wouldn't a mixin be a better way to do that? You can inject the component using @InjectContainer. Then I don't know how and where to inspect compo

Re: templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 13:18:46 -0300, Ivano Luberti escreveu: pheeew ! Thanks for the quick answer to all of you. You're welcome! I was afraid I had made one of the biggest mistake in my life. Maybe you just made one of the best decisions in your life.. :) But can you tell me why the ch

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 13:52:22 -0300, Luther Baker escreveu: If Block Edit isn't a page and it isn't a component ... is there a predictable way to initialize it each time it is requested? In my case, I have a Hibernate entity ... with a reference @ManyToOne - to another entity. It is this chi

Services injection and decoration problems

2009-03-04 Thread Andrea Chiumenti
Hello, I'm trying to integrate dojo into Tapestry5 For this purpose I've crated a DojoPage annotation that handels dojo initializations script and then I've decorated PageMarkupRenderer renderPageMarkup method, and this works. I'm finding the next step more difficult also because I'm new to T5.

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Luther Baker
If Block Edit isn't a page and it isn't a component ... is there a predictable way to initialize it each time it is requested? In my case, I have a Hibernate entity ... with a reference @ManyToOne - to another entity. It is this child entity that has an edit block associated with it. When I go to

Re: Invoking a custom show javascript method for a Zone

2009-03-04 Thread Dave Greggory
yeah I tried both show and update methods, didn't really work. I finally got it to work by just adding the following to my event link. onclick="editWindow.show('editWindow'); resizeWindow(500, 500);" So right after (or is it before) it calls the event method it also shows the Window. Not ideal

Re: templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Ivano Luberti
pheeew ! Thanks for the quick answer to all of you. I was afraid I had made one of the biggest mistake in my life. But can you tell me why the choice to abandon the old syntax has been taken: to me from the web designer point of view it is still the most clean way to implement the call to tapest

Re: Any T5's tree component hint?

2009-03-04 Thread Otho
Hi all! My answer to a question was rejected as spam. Is this a temporal or a permanent issue? The error message follows: This is an automatically generated Delivery Status Notification Delivery to the f

Re: [OT] Problem using eclipse+maven+jetty

2009-03-04 Thread Szemere Szemere
Just to complete my story, I've got JNDI working again by reverting to a prior version of the maven-jetty-plugin. I forced maven to use version 6.1.7 (by adding a version tag), viz: org.mortbay.jetty maven-jetty-plugin 6.1.7

Re: Q: deprecated for createActionLink method in ComponentResources ?

2009-03-04 Thread Howard Lewis Ship
So the JavaDoc saying "use createEventLink()" instead wasn't clear enough for you? On Tue, Mar 3, 2009 at 11:43 PM, dwi ardi irawan wrote: > Hi... > could anyone help me bout this deprecated method > is there any replacement for this method ?? > I tried it for my JFreeChart on TapestryIt Work

Tapestry 5.1 session invalidate misbehaving

2009-03-04 Thread Peter Stavrinides
Hi, The following code worked in all versions before 5.1, but now I get the exception listed below: @Inject private Request request; @InjectPage private Home homePage; @OnEvent(component = "signOut") Object onEventFromSignOut() { try {

hi, about the remotelink minixs

2009-03-04 Thread nile black
hi i write a simple minixs call remotelink, it look like grails's remotelink. maybe minixs greate! you can simple use action page result will show here. but i confused by the return. My first question is : what should ajax action return? json? html fragment? xml? One of t5's bene

Re: templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 4, 2009 at 11:18 AM, Ivano Luberti wrote: > Can someone explain me wether I'm wrong or not ? I really hope I am. You're wrong! :D You can use components using have two different sintaxes: (the one used in most examples) or (the one I use almost exclusively). Take a look at the "Inv

Re: templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Kristian Marinkovic
hi, T5 offers you 3 choices to add components: 1) you can use the t:id attribute (as T4s jwcid) template: ... class: @Component private ActionLik link; 2) invisible instrumentation ... 3) component elements ... the tutorials use invisible instrumentation and/or component elements because th

templates changes from tapestry 4.1 to tapestry 5

2009-03-04 Thread Ivano Luberti
Hello I'm new to the mailing list but I have been using Tapestry 4.1 since the end of last year. I started recently looking to Tapestry 5 and I've been struck by the changes made in the html templates. I had chosen Tapestry because it was component based and because there was no need to use speci

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-04 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 4, 2009 at 1:42 AM, Luther Baker wrote: > Yes -- necessity *is* the mother of invention :) You're right. :) I also just learned how to use BeanModel/BeanEditForm when I started a project that has a lt of forms. On the other hand, writing an edit block is something that req

Re: component parameter binding question

2009-03-04 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 4, 2009 at 5:15 AM, dhning wrote: > 1. Do in java > public Object [] getContextValue() { >    return new Object[2]{user.id, user.name}; > } You can also return a List. -- Thiago - To unsubscribe, e-mail: users-uns

Re: component parameter binding question

2009-03-04 Thread 丁振波
Got it! thanks! - Original Message - From: "dhning" To: "Tapestry users" Sent: Wednesday, March 04, 2009 5:28 PM Subject: Re: component parameter binding question welcome:) Like context="contextValue">Delete Since context is prop binding, it will map getContextValue() method in j

Re: component parameter binding question

2009-03-04 Thread dhning
welcome:) Like Delete Since context is prop binding, it will map getContextValue() method in java. Thanks, DH - Original Message - From: "丁振波" To: "Tapestry users" Sent: Wednesday, March 04, 2009 5:23 PM Subject: Re: component parameter binding question > Thanks for your reply :)

Re: component parameter binding question

2009-03-04 Thread 丁振波
Thanks for your reply :) I used 5.0.18 release version. What param should set in tml's context field when I use the way do in java? Delete - Original Message - From: "dhning" To: "Tapestry users" Sent: Wednesday, March 04, 2009 4:15 PM Subject: Re: component parameter bindin

Re: Q: deprecated for createActionLink method in ComponentResources ?

2009-03-04 Thread dwi ardi irawan
Thnx U On Wed, Mar 4, 2009 at 3:26 PM, Kristian Marinkovic < kristian.marinko...@porsche.co.at> wrote: > hi, > > _resource.createEventLink() is the replacement > > g, > kris > > > > dwi ardi irawan > 04.03.2009 08:43 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie

Re: Q: deprecated for createActionLink method in ComponentResources ?

2009-03-04 Thread Kristian Marinkovic
hi, _resource.createEventLink() is the replacement g, kris dwi ardi irawan 04.03.2009 08:43 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Q: deprecated for createActionLink method in ComponentResources ? Hi... could anyone help me bout this deprecated metho

Re: component parameter binding question

2009-03-04 Thread dhning
Are you using latest t5 snapshot or 5.0.X.X release? If latest snapshot, just use like context="[user.id,user.name]" If not, there are 2 ways: 1. Do in java public Object [] getContextValue() { return new Object[2]{user.id, user.name}; } 2. Use list binding in t5commons library http://code.go