Re: T5: Multiple clicks causing NPE

2008-01-12 Thread Howard Lewis Ship
I've added https://issues.apache.org/jira/browse/TAPESTRY-2037 On Jan 8, 2008 4:47 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I'll have to look into whether there is a workaround for that > ThreadLocal bug, and figure out a way to test this. > > > On Jan 8, 2008 2:08 PM, jason lea <[EMAIL

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Robert Zeigler
What you /might/ be able to do (to avoid the java code), is to use var here... I haven't played with the var prefix yet, so this is a "try and see" idea. :) But. Something like: , $ {var:string} If that works, you could even write your own DelimittedLoop component and not have to du

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Sven Homburg
Hi Chris, may i advise you the listbinding from t5components ? ${element} 2008/1/13, Chris Lewis <[EMAIL PROTECTED]>: > > That would work of course, but I'd like to do something like this: > > delimit=", "> >context="var:string">${var:string} > > > And then each eleme

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Chris Lewis
That would work of course, but I'd like to do something like this: delimit=", "> context="var:string">${var:string} And then each element would be separated by my delimiter without any extra java code. Robert Zeigler wrote: How about testing the value of index? Something like: .java: pr

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Robert Zeigler
How about testing the value of index? Something like: .java: private int index; public int getIndex() { return index; } public void setIndex(int i) index = i; } public boolean isFirst() { return index==0; } .tml: , $ {var:string} Robert On Jan 12, 2008, at 1/124:41 PM , Chris

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Chris Lewis
Sorry, I missed the "check if first" part. How can you do such a check in Loop? The "If" can test, but what can you test in a Loop? nothing that I know of will tell you where in the iteration you are. chris Davor Hrg wrote: just reverse where you write the "," instead of checking if last and

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Chris Lewis
That will just 'reverse' the problem (a leading comma instead of a trailing one). Suppose I have a list of strings like: { "one", "two", "three" } And a Loop to display: context="${var:string}">${var:string}, This renders: one,two,three If do as you suggest: context="

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Davor Hrg
just reverse where you write the "," instead of checking if last and putting comma behind check if first and put comma in front Davor Hrg On Jan 12, 2008 11:04 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > So this ticket has been implemented in svn: > https://issues.apache.org/jira/browse/TAPESTR

T5: 5.0.8 whitespace

2008-01-12 Thread Chris Lewis
So this ticket has been implemented in svn: https://issues.apache.org/jira/browse/TAPESTRY-2028 And now I need whitespace... so how can I get it back? Is there or isn't there a way to disable this? Im using loop to output links (pagelinks), and i have whitespace behind in the body so there is

Re: T4.1.3 Tapestry-hibernate problem

2008-01-12 Thread Alejandro Scandroli
Hi Grigoris I will assume that your form is surrounding the @For component. Advices: * remove the updatePassenger it will confuse things. * persist "passengerList" in the session * populate "passengerList" on pageBeginRender * add a "keyExpression" to the For component * then save all the pas

Re: T5 naming and case peculiarities

2008-01-12 Thread Howard Lewis Ship
Very good research. On Jan 11, 2008 2:13 PM, Daniel Jue <[EMAIL PROTECTED]> wrote: > I wanted to throw together a list of naming peculiarities (I hesitate > to call them pitfalls), to put on the wiki. > Some are documented on the API website, some of these are mailing list > documented, some are o

JS Library Inclusion Idea

2008-01-12 Thread adamh
Hi All, I love T5. However I'm not over the moon with being force-fed protoype/scriptaculous when I'm developing say a dojo app, I don't want proto/scrpt downloaded as well to do stuff that dojo can do, so here is my suggestion with dealing with this. Normally all the standard functionality is

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread osamuo
Hi, I had mistaken. I had set 'hibernate.transaction.auto_close_session' instead of 'hibernate.connection.autocommit'. But I encountered the same condition again when I set 'hibernate.connection.autocommit' to false. -- org.hibernate.dialect.PostgreSQL

Re: Help: checkbox selection

2008-01-12 Thread Sven Homburg
without java script impossible. 2008/1/12, harish v <[EMAIL PROTECTED]>: > > Hi all > > I am new to web development and tapestry. > > Please help/guide me to achive this > > I have check box headers (disabled ) as 1 2 3 4 > and from next row checkbox (not disabled)as5

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread Sven Homburg
i miss the autocommit property in your config 2008/1/12, osamuo <[EMAIL PROTECTED]>: > > > Hi, > > Yes, I have. > I created 'hibernate.cfg.xml' like the following. > > -- > > > > name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect > > > nam

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread osamuo
Hi, Yes, I have. I created 'hibernate.cfg.xml' like the following. -- org.hibernate.dialect.PostgreSQLDialect jdbc:postgresql://192.168.0.103/Test test testtest org.postgresql.Driver net.sf.ehcache.hibernate.EhCacheProvider false true true true tru

Help: checkbox selection

2008-01-12 Thread harish v
Hi all I am new to web development and tapestry. Please help/guide me to achive this I have check box headers (disabled ) as 1 2 3 4 and from next row checkbox (not disabled)as5 6 7 8 and

T4.1.3 Tapestry-hibernate problem

2008-01-12 Thread Grigoris Ioannou
Hi all, I have a dynamic form where the user can set a dynamic number of passengers. The html looks like: Title Name Surname

Re: T5 naming and case peculiarities

2008-01-12 Thread Andy Huhn
Josh, I've been looking for that! Thanks for the tip! Andy > This is configurable in Eclipse. Under Window | Preferences look at Java | > Code Style there is a "Conventions for variable names" section where you can > tell eclipse what your prefix/suffix preferences are... Then it will make > ni

Re: T5: tapestry-hibernate: rollback

2008-01-12 Thread Sven Homburg
have you set autocommit to off in hibernate config like this: false osamuo wrote: > > Hi, > > I used the following code in order to rollback the current transaction. > But its transaction was committed after the calling > HibernateSessionManager.abort(). > > What's wrong? > >

Re: T5.0.8: Too much space being removed from rendered file

2008-01-12 Thread Sven Homburg
sorry, wrote nonsense in last message. the link dont be stripped, but the produced page effect is the same: page is unusable, firefox says: Tapestry not found: Tapestry.onDOMLoaded(function() Sven Homburg wrote: > > same as here: > tapestry strips the last "/>" at the end of the link tag

Re: T5.0.8: Too much space being removed from rendered file

2008-01-12 Thread Sven Homburg
same as here: tapestry strips the last "/>" at the end of the link tag sample: > I was playing around with the 5.0.8 snapshot and it looks like an effort > has > been made to compact the html. The problem is that it's a little > over-zealous about the job and spaces between text nodes and eleme

DWR compatible with T5?

2008-01-12 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, Can I use DWR for Ajax calls with my Tapestry5 application? Thanks and Regards Yeeswara N DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confi

Re: [T5] - slash (/) in ActionLink context value causes error.

2008-01-12 Thread Sven Homburg
its an known bug, i dont know if it cleared out in a newer release/snapshot of tapestry look in jira 2008/1/12, Mohammad Shamsi <[EMAIL PROTECTED]>: > > hi all, > > i have a actionlink my page like this : > > context="literal:secure/Home">${message: > app.welcome} > > when i clik this link i jus

[T5] - slash (/) in ActionLink context value causes error.

2008-01-12 Thread Mohammad Shamsi
hi all, i have a actionlink my page like this : ${message: app.welcome} when i clik this link i just see this url in browser without any content http://localhost:8080/app/secure/home.layout.list/secure%2FHome thats bacause of "/" in context variable. when i remove this "/", application works

Re: T5: Packaging 3rd Party Javascript Libraries

2008-01-12 Thread Sven Homburg
Hi Michael, only for clarification: t5componets dont use extJs for now. i have tried out to implement it some months ago, but i struggled with diffrent prototype versions that tapestry/extJs used. i think the best way to standardize the symbol abstraction is, that howard (or any one else) implem