t5.0.17: Tapestry-upload exception?

2008-12-03 Thread Angelo Chen
Hi, I have a request filter which works in 5.0.15 but not working any more in 5.0.17, the purpose is to capture exceptions in the uploading of files when using tapestry-upload module and redirect to a specific page when it encounter FileSizeLimitExceededException. Problem now in 5.0.17 is, if the

Re: [T5] Palette NPE

2008-12-03 Thread zack1403
Happening again using GenericSelectModel for model and encoder. Anyone have any clue what I might be doing wrong? I discarding persistent field changes after a certain action so I have a fresh start when it happens each time. I seems completely random why this is showing up. Zack zack1403 wro

Re: IoC registry survives between JUnit tests?

2008-12-03 Thread Stephan Schwab
Never mind. Apparently it's too late and I don't see my own mistakes. Sorry for wasting bandwidth. - -- http://www.caimito.net - Caimito One Team - Agile Collaboration and Planning tool http://www.stephan-schwab.com - Personal blog http://code.google.com/p/tapestry-sesame - Authentication ext

IoC registry survives between JUnit tests?

2008-12-03 Thread Stephan Schwab
Hi! I have several JUnit tests that instantiate org.apache.tapestry5.ioc.Registry via the RegistryBuilder before tests run. Now I'm observing that services registered in one test are still available in other tests although I did call registry.shutdown(). My test runner does not fork a new JVM. C

rendering unclosed tags - a petition to fix before 5.1

2008-12-03 Thread Steven Woolley
Can I petition that the closing tags not being rendered also be fixed before 5.1? Not only did it cause invalid html, but also it actually affected the rendering (or at least the browser's attempt to compensate did) of visual layout (I had div's that were wrapped inside of the unclosed anchor abov

t5 tree component

2008-12-03 Thread Yiqun Shi
Is there a better implementation of tree component in T5? The one on wiki is not finished, and it is not easy to have it down. Tapestry has little example to follow... SYQ

Re: [T5] 5.0.16 Spanish special characters

2008-12-03 Thread dh ning
That's true, native2ascii is unnecessarily any more. Try to locate the issue whether it is caused at server side or by html page encoding. What's that value in tapestry page.java level? If it is correct, then this should be the html encoding problem. 2008/12/4 Thiago H. de Paula Figueiredo <[EMAIL

Re: [T5] Palette NPE

2008-12-03 Thread zack1403
Unfortunately I was passing it a List :( Hasn't happened since I stared using GenericSelectModel for both model and encoder but thats not to say it wont. Thanks anyways! Zack James Hillyerd wrote: > > Probably not related to your problem, but I was seeing an NPE from the > exact > same line

T 5.0.17: problem with grid inside a zone

2008-12-03 Thread Weisu
Hi All, I have a grid component inside a zone component. Every time when I click the sort or next page on the grid, the whole zone disappear, it looks it refresh the whole page instead of refreshing the zone only. Thanks in advance! Weisu -- View this message in context: http://www.nabble.com/T-

Re: [T5]: RESTful "File" Extensions (Multiple Templates per Page)

2008-12-03 Thread Howard Lewis Ship
This is not a feature of Tapestry currently. A URL such as "1.html" would indicate (to Tapestry) a page named "1" (an illegal name) and a component with id "html". Tapestry will pass on such URLs and let the servlet container handle them (with a 404). I think a later release of Tapestry will "op

[T5]: RESTful "File" Extensions (Multiple Templates per Page)

2008-12-03 Thread Thilo Tanner
Hi All, I have a question concerning T5 and RESTful URLs: We'd like to create RESTful URLs with virtual "file" extension like: /articles/1.html /articles/1.json /articles/1.pdf It would be perfect to have just one page class (e.g. pages/articles/ Edit.java) and several templates like: articl

[T5]: RESTful "File" Extensions (Multiple Templates per Page)

2008-12-03 Thread Thilo Tanner
Hi All, I have a question concerning T5 and RESTful URLs: We'd like to create RESTful URLs with virtual "file" extension like: /articles/1.html /articles/1.json /articles/1.pdf It would be perfect to have just one page class (e.g. pages/articles/Edit.java) and several templates like: articles/

Re: [T5] 5.0.16 Spanish special characters

2008-12-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Dec 2008 14:58:39 -0300, Imants Firsts <[EMAIL PROTECTED]> escreveu: Hi Ray! The properties files should be in ascii encoding and the unicode characters should be escaped with \u, for example "\u0161" for š character. JDK comes with native2ascii tool that does the conversion.

Re: [T5] Palette NPE

2008-12-03 Thread James Hillyerd
Probably not related to your problem, but I was seeing an NPE from the exact same line of code when passing the palette a Set (instead of a List). -james On Wed, Dec 3, 2008 at 11:27 AM, zack1403 <[EMAIL PROTECTED]> wrote: > > Ive overridden both equals and hashCode (neither were overridden befo

Re: [T5] Palette NPE

2008-12-03 Thread zack1403
Ive overridden both equals and hashCode (neither were overridden before) and have been waiting for the issue to reproduce. It is very intermittent and a simple f5 makes it go away which is frustrating. I also am trying using GenericSelectModel as the encoder and model which might make the issue

Re: ASOs and Clustering

2008-12-03 Thread Howard Lewis Ship
I'm working on this bug; there will be a 5.0.18 release for this bug (and the deadlock bug which may have resurfaced). https://issues.apache.org/jira/browse/TAP5-399 On Wed, Dec 3, 2008 at 5:07 AM, Cliff Willsher <[EMAIL PROTECTED]> wrote: > > Hi, > > We are trying to cluster several instances of

Re: [T5] 5.0.16 Spanish special characters

2008-12-03 Thread Imants Firsts
Hi Ray! The properties files should be in ascii encoding and the unicode characters should be escaped with \u, for example "\u0161" for š character. JDK comes with native2ascii tool that does the conversion. I have seen an eclipse property editor plugin which saves properties files in this form

How to get DAO while we're relying on a context object (that is being passed in)

2008-12-03 Thread vins
Hi, I'm trying to get DAO that is relying on the context object as per the example of http://tersesystems.com/post/9700064.jhtml But I'm not getting. Kindly anybody tell me how to do this. Thanks in advance... My code goes like this. - public class Log

Re: T5: how to detect session timeout?

2008-12-03 Thread tapestryphoto
Thanks Peter. The problem was in the dispatcher code that disassembles the URL. The code that I grabbed from the wiki (as I recall) checks for / but doesn't account for . when attempting to obtain the page name. While I've had a security dispatcher working for some time that uses that cod

ASOs and Clustering

2008-12-03 Thread Cliff Willsher
Hi, We are trying to cluster several instances of our Tapestry application using Tapestry 5.0.17 and Tomcat 5.5. When running the application I can see the ASOs being added to the session when they are created and replicated across the other Tomcat instances, however when the existing ASOs are

Re: T5: how to detect session timeout?

2008-12-03 Thread Peter Stavrinides
I use a RequestFilter instead of a dispatcher to achieve same thing... but it should work just the same for you (before:PageRender is fine). In your dispatcher you need to check your state object for null and redirect to your login page. For example: if(applicationStateManager.get(SiteSessionA

T5: how to detect session timeout?

2008-12-03 Thread tapestryphoto
Hi, I am trying to deal with session timeouts in T5. Rather than extend a base class I was hoping I might be able to use an Annotation. However, I find that when the user activates a link or presses a button on a timed-out session that the dispatcher is not being called early enough to det

t5: editable

2008-12-03 Thread sonar
Greetings, Sorry for newbie question, but is there a component out there that allows user to type some value into in addition to ones already present there? Thanks in advance, Alex -- View this message in context: http://www.nabble.com/t5%3A-editable-%3Ct%3Aselect%3E-tp20810669p20810669.htm

RE: t5: getting checkbox value

2008-12-03 Thread Juan Salamanca
You can use the clientId attribute of the component, which is the same as the HTML ID that tapestry generates. One way of doing it would be to inject the component in your class, e.g.: @Component Private Checkbox processed And then write a getter method like: Public String getProcessedClientId()

t5: getting checkbox value

2008-12-03 Thread Angelo Chen
Hi, I put following form in a look, so the rendered text will have id="processed_01", id="processed_02", etc. and I'd like to capture the id and pass it to updateProc javaScript function, any idea? actually I need to pass the state of the check box to updateProc, maybe there is other way? thanks.