Re: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-09-12 Thread soir
Hello, I've found same problem recently. Try to use DropdownDatePicker component instead. Igor Anders Cessner wrote: Hi, I recently upgraded from 4.0.2 to 4.1 and noticed that the datepicker doesnt work anymore. when the page is loaded i get this error: Could not load

contrib:Table sorting and links

2006-09-12 Thread Bastian Voigt
Hello List, currently I'm trying to make a sortable table based on an O/R Mapper backend. Until now I was using my own IBasicTableModel implementation which allowed to get results fast. However, it does not allow to sort columns (sorting has no effect) and it also does not allow to display

How to pass a parameter to my translator?

2006-09-12 Thread soir
Hello, I need some help from hivemind gurus. I'd like to pass an additional parameter to my own translator, something like this: contribution configuration-id=tapestry.form.translator.Translators bean name=document class=ee.tallink.docman.web.tapestry.translators.DocumentTranslator

Re: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-09-12 Thread Robert Binna
But be aware that you can't change the input dateformat at the moment, because the dojo DropdownDatePicker doesn't support it yet (but should from version 0.4 on) regards, Robert soir schrieb: Hello, I've found same problem recently. Try to use DropdownDatePicker component instead. Igor

WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Michael Wölm
Hi, Sadly, nobody have helped me with my problem. I dont know why. Am I too noob or is my question incomprehensible? I would be pleased, if anybody could give me an advice for my problem. Greettings from Germany, Michael Wölm Original message is under this. -Ursprüngliche Nachricht-

Re: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Jesse Kuhnert
I'd say because user.getState() returns null. Right? On 9/12/06, Michael Wölm [EMAIL PROTECTED] wrote: Hi, Sadly, nobody have helped me with my problem. I dont know why. Am I too noob or is my question incomprehensible? I would be pleased, if anybody could give me an advice for my problem.

Re: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Martin Strand
Well, if you get a NPE on this line: user.getState().equals(admin) then either user or getState() is null, right? And, since user is definitely not null, your private String state is obviously null. Perhaps you should add something like this: private String state = initial state; Martin On

Re: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Steve Shucker
As a general rule, it's safer to put the literal first in statements like this: admin.equals(user.getState()) If anyone wants to say that it looks/reads a bit funny, I'll agree. It's an odd syntax, but it protects you from NPEs. -Steve Martin Strand wrote: Well, if you get a NPE on this

EventListener: How to send values to the listener :)

2006-09-12 Thread Vinicius Carvalho
Hello there! I've seen examples (and tried it, really cool, I'm still amazed, and all my co-workers with your job Jesse) using the EventListener. I'd like to know if it is possible to send some values to the listener? Also, is there a way, maybe a callback or something, to interact within it? I

Re: Asynchronous form submission

2006-09-12 Thread Vinicius Carvalho
Hum, thanks but nope. Didn't work either. I can't get the @For to get updated. When I nested it inside an @Any, it almost work :). I mean that because it only the last value inserted in the list is returned. Even with the list being persisted to the session. Anyone done this before? Regards

Re: EventListener: How to send values to the listener :)

2006-09-12 Thread Jesse Kuhnert
To answer number 1, I'm not sure...I guess that depends on what you are trying to send. Since this isn't a direct component used it is harder to find a good way to provide DirectLink parameters to the listener. If you have a specific example in mind I can be more helpful. For number 2, is this

Re: Asynchronous form submission

2006-09-12 Thread Jesse Kuhnert
Hmmm... If you have debug turned on you should be able to see the content returned by the server...Does it return a partial list or everything you expected? If it's returning content for the area you are requesting but the content isn't exactly what you expect it's possible you are having other

RE: Asynchronous form submission

2006-09-12 Thread Denis Souza
I think the problem is the way that the For component renders. You're trying to update a component named userList where: span jwcid=[EMAIL PROTECTED] source=ognl:users value=ognl:userDetail tr ... /tr /span My guess is the for component is rendering it's body but not it's own tag.

Re: Asynchronous form submission

2006-09-12 Thread Jesse Kuhnert
Ahh..Good call..You can also give For the element parameter to have it render itself as an html dom node. On 9/12/06, Denis Souza [EMAIL PROTECTED] wrote: I think the problem is the way that the For component renders. You're trying to update a component named userList where: span jwcid=[EMAIL

Re: Asynchronous form submission

2006-09-12 Thread Jesse Kuhnert
Does the server return valid html in your areas though? FireBug or tapestry browser debug (via Shell) should be able to show you this. Either way I don't think you can add tr elements like this in IE anyways..You'd have to do it through the dom interface. On 9/12/06, Vinicius Carvalho [EMAIL

RE: Asynchronous form submission

2006-09-12 Thread Denis Souza
I guess you can always refresh the entire table. I do it in one of my pages and it works pretty well. The downside is that on a really large table it would defeat part of the purpose of using ajax in the first place since it wouldn't be so efficient. -Original Message- From: Jesse Kuhnert

Re: Asynchronous form submission

2006-09-12 Thread Vinicius Carvalho
Jesse, I've enable debug but it is only working when something bad happens. The last system I've developed (the chat application) I was using ajax, but bare, on the hand dealing with all dom elements. Is it possible to do so? I guess that's what I was asking in another thread, about having other

Expired Session message

2006-09-12 Thread Greg.L.Cormier
Hi. When the session expires, how can I handle this and redirect to a customized page saying Your session has expired In my BorderEngine class, I've tried this but maybe it's the wrong way, or the wrong place to put it protected void handleStaleSessionException(IRequestCycle cycle,

Re: Expired Session message

2006-09-12 Thread Daniel Jue
I would also like to see how this is done. Perhaps even with a javascript popup telling the user the session is about to/has expired. I imagine this type of active checking could be done through ajax, or through a client side timer, rather than waiting for the user to refresh a page and find out

Re: Asynchronous form submission

2006-09-12 Thread Vinicius Carvalho
Forget about debug, sorry, just saw the browserLogLevel option :P On 9/12/06, Vinicius Carvalho [EMAIL PROTECTED] wrote: Jesse, I've enable debug but it is only working when something bad happens. The last system I've developed (the chat application) I was using ajax, but bare, on the hand

AW: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread m-woelm
hey, lot of thanks, the state field was really null because the parameters were passed to the constructor but I never saved the value... By the reason I am a novice in tapestry, I had searched it everywhere but not in that simple way... Greetings, Michael Wölm -Ursprüngliche

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-12 Thread Jorge Quiroga
Thanks for your responses, but I still has the problem to put the parameters into the ASO. I tried putting that into web.xml but the examples to read the InitParams involve init() procedure and the argument is the ServletContext. so I don't know how to access it if Tapestry wrap it and the

Re: Expired Session message

2006-09-12 Thread Bryan Lewis
The one difference I see between your code and what's been working for me in my custom Engine class is one more line: cycle.activate(page); renderResponse(cycle); [EMAIL PROTECTED] wrote: Hi. When the session expires, how can I handle this and redirect to a customized

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-12 Thread Jorge Quiroga
Hello: Finally I can do it using a Tomcat approach to configure the Logger (with context) that is instanciated by hivemind and now works the logging into pages. Thanks a lot Peter and Kevin for your help and time. JQ Peter Dawn escribió: i use log4J. try using that.

Re: Expired Session message

2006-09-12 Thread andyhot
There's another way... Create a custom page in your application, named StaleSession Bryan Lewis wrote: The one difference I see between your code and what's been working for me in my custom Engine class is one more line: cycle.activate(page); renderResponse(cycle);

Re: Expired Session message

2006-09-12 Thread Peter Dawn
what about tap3. any way of implementing this in the older version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Expired Session message

2006-09-12 Thread andyhot
Peter Dawn wrote: what about tap3. any way of implementing this in the older version. no need to... http://t-deli.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-12 Thread Gerald Schöffel
Yippee ! Thank you for this link ! Now I understood the concept and encapsulated the plain dojo-widgets (like SortableTable, Dialog etc.) with 'Tapestry-widgets' and everything is running like intended ... that's really cool ! Together with the IDirect interface I found in your code it got

Re: Contrib Table Summarize

2006-09-12 Thread andyhot
Mael Caldas wrote: If I implement the decorator pattern by myself, how can I let the row only on the last position, even if the user change the sorter collumn? You're right. If you need sorting, you can't do it this way. You'll probably have to create your own IBasicTableModel and make it add