Re: Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-04 Thread karthik G
works like a charm thanks! Karthik On 1/4/07, Jeff Lubetkin <[EMAIL PROTECTED]> wrote: This is because ApplicationStateManager requires that the WebRequest in RequestGlobals is set, but it doesn't normally get set until the terminator of the filter chain. In order to get around this, I usuall

Re: ComponentBeginRenderListener?

2007-01-04 Thread Martin Strand
Thanks, but finishLoad() is also invoked regardless of whether the component is used or not. :( Martin On Fri, 05 Jan 2007 03:53:44 +0100, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: I haven't done this but just from looking at the IComponent interface you could probably just override the

Re: Tapestry/Hivemind + Terracotta

2007-01-04 Thread KEGan
Hi, Unfortunately, I am no expert in Hivemind. Would anyone from the Hivemind's contributor be willing to champion this project ? On 1/4/07, Eugene Kuleshov <[EMAIL PROTECTED]> wrote: Hi, I am one of the developers of Terracotta for Spring and will be glad to help anyone who want to work on

Re: ComponentBeginRenderListener?

2007-01-04 Thread Daniel Tabuenca
I haven't done this but just from looking at the IComponent interface you could probably just override the finishLoad() method. Simply do your initialization and then call super.finishLoad(). On 1/4/07, Martin Strand <[EMAIL PROTECTED]> wrote: Hi guys. I want to initialize some stuff before a ce

Re: HTTP headers setting through WebResponse is stopped working

2007-01-04 Thread Jesse Kuhnert
This sounds related to another issue I had fixed regarding cookies. That issue was related to Tapestry not always flushing the IO stream out soon enough for any written cookies to actually make it back out to the client. I know I remember hearing other people discuss this in the past so I didn't h

ComponentBeginRenderListener?

2007-01-04 Thread Martin Strand
Hi guys. I want to initialize some stuff before a certain component renders, but there's no ComponentBeginRenderListener. What alternatives do I have? I don't want to use pageBeginRender, because that gets invoked regardless of whether the component is used on the page or not (perhaps it's i

User sessions overlapping ....

2007-01-04 Thread Stephane Decleire
Hi, I have implemented a small application using the new possibilites of T4.1.1 (EventListener / ResponseBuilder) but when i made some tests from 2 differents computers, the properties of my session N°2 are impacted by the modifications made on the session N°1 using EventListener and vice ver

EventListener: Weird js duplicate problem

2007-01-04 Thread Henry Chen
Hi, I have a button with an EventListener bound to onclick() like below. It works well. Now the weird thing is if I activate any other page in the web app, all javascript related events/actions won't work anymore. In the parsed html file I found that Tapestry duplicate dojo.Connect(dojo.byId("R

Question on overriding T41 client-side validation

2007-01-04 Thread Joe Chen
Hi all, I'd like to override the default client-side validation behavior in T41 to be more like the implementation in Tacos (or the validation examples in the Dojo toolkit). The client side dojo Dialog widget that pops up isn't a good default in certain situations. For instance, we are using a

Re: CamelCase page names/URLs in Tapestry

2007-01-04 Thread Howard Lewis Ship
I know I have one potential client, The Name Withheld Corporation, that's interested in Tapestry but needs the URLs to be case-insensitive. Back in the Tapestry 2.x days, this wouldn't be so difficult. You started with the application specification, which matched each possible page name to a spe

Re: ID of DOJO objects?

2007-01-04 Thread andyhot
Well, it should generally work, though datepicker = dojo.widget.byId(''); is safer. Take a look at the generated html to see what exactly is happening. [EMAIL PROTECTED] wrote: > If I have a Datepicker, > > > > Does that mean the name of it is startDate? Or am I missing something el

Re: making links :visited across components

2007-01-04 Thread andyhot
Do you have to use direct links? They expose too much of the inner workings of tapestry - that's why they're not got for bookmarks as well... Anyway, can you code around this using ExternalLinks ? RonPiterman wrote: > I have a nice usability problem with direct links nested inside > components:

Re: Problems with components IF & For

2007-01-04 Thread Roberto Ramírez Vique
Sorry, but now I am testing and I get the correct situation the first time I execute the ajax, but when I try to execute it again, I get the described exception. On 1/4/07, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: Hello everybody! I am playing with tapestry 4.1.2 and the @EventListener

Problems with components IF & For

2007-01-04 Thread Roberto Ramírez Vique
Hello everybody! I am playing with tapestry 4.1.2 and the @EventListener annotation. I am using tomcat 5.5 and jdk 5. I have a form, after submit this form using ajax I build a list in the server side, then I want to show this list in a For component to show all the found information. But I can'

Re: standardized way of detecting Window Close event in IE & Firefox ?

2007-01-04 Thread sunilmanu
Hi, I could solve the problem... - onBeforeUnload /onUnload is not good if we need to navigate within the pages of the newly opened window. If you navigate from Page A -> B in the same window, it causes to fire the unload event. So I open the new window in an IFRAME and do the logic onUnload o

Tapestry-acegi auth

2007-01-04 Thread Kevin Menard
Hi, I'm having some difficulty using tapestry-acegi. I can secure a page fine, but I can't figure out how to allow a user to auth. Unfortunately, my experience with Acegi in general is practically non-existent, so I may just be doing something dumb there. I have a page marked @Secured("ROLE_USER"

RE: Tapestry 4.1.1: incorrect dojoPath, tapestryPath - session id is appended

2007-01-04 Thread Anna Vo
Stefan- We actually had two issues. The first issue is that we had overridden the EngineServiceLink (to include a check for https port 443) in a prior release. Our version did not have the _stateful parameter. Once this parameter was added I was able to remove our AjaxShellDelegate override and th

RE: Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-04 Thread Jeff Lubetkin
This is because ApplicationStateManager requires that the WebRequest in RequestGlobals is set, but it doesn't normally get set until the terminator of the filter chain. In order to get around this, I usually inject the RequestGlobals service into my filter and add these lines at the beginning of t

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Shing Hing Man
I have used the following piece of code to retrieved an application ASO in a HttpSessionListener.sessionCreated method. It might work in ServletContextListener as well. // context is the servlet context Registry registry = (Registry) context .getAttribute(ApplicationServ

RE: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Ben Dotte
Crap.. I forgot about that dependency on the web request. That never made sense to me for the case of application-scope ASOs. In any case, here is a wild idea. If you can capture and hold onto the Hivemind-created instance of the ASO, you could then give out access to it through a static getter, s

ID of DOJO objects?

2007-01-04 Thread Greg.L.Cormier
If I have a Datepicker, Does that mean the name of it is startDate? Or am I missing something else? I'm getting errors trying to do : datepicker = dojo.widget.byId('startDate'); It's staying undefined. Thanks, Greg -

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Mahmut Izci
Hi, how about using an InjectState annotation: @InjectState("MyApplicationObject") public abstract MyApplicationObject getMyApplicationObject(); Maybe this works. Regards Mahmut Tapestry User List schrieb: It doesn't work. Registry registry = (Registry)context.getAttribute("org.apache.

Re: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Tapestry User List
It doesn't work. Registry registry = (Registry)context.getAttribute("org.apache.tapestry.Registry:app"); returns null. D. 2007/1/4, James Carman <[EMAIL PROTECTED]>: I don't think that'll work. The ApplicationStateManager needs a reference to the current web request (eventually the session).

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread James Carman
I don't think that'll work. The ApplicationStateManager needs a reference to the current web request (eventually the session). On 1/4/07, Ben Dotte <[EMAIL PROTECTED]> wrote: Hi, You could do something like this: ((ApplicationStateManager) ((Registry) context.getAttribute("org.apache.tapestr

RE: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Ben Dotte
Hi, You could do something like this: ((ApplicationStateManager) ((Registry) context.getAttribute("org.apache.tapestry.Registry:app")).getService(App licationStateManager.class)).get("myStateObject"); Where "myStateObject" is the name of your ASO. HTH Ben -Original Message- From: Tape

how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Tapestry User List
Hi, Happy new year I have created a class that implements ServletContextListener. In the method public void contextDestroyed(ServletContextEvent event), I need to retrieve an Application State Object (ASO) of tapestry 4 with an application scope (not session). My question is how to retriev

making links :visited across components

2007-01-04 Thread RonPiterman
I have a nice usability problem with direct links nested inside components: I have a pager component, which takes an in-out "page" parameter. The pager component generates direct links, which invoke a listener in the component with the page number as parameter. The listener calls the set meth

RE: Tapestry 4.0 and Expires header on images

2007-01-04 Thread Michael Prescott
Oh, of course. *wince* Thanks. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: January 4, 2007 3:55 AM To: users@tapestry.apache.org Subject: RE: Tapestry 4.0 and Expires header on images I think context-Assets are not served by the tapestry servlet at a

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
ok...seems to happen somewhere earlier...also no tables are created: 15:01:30.390 INFO [SocketListener0-1] org.hibernate.cfg.annotations.Version.(Version.java:15) >89> Hibernate Annotations 3.2.0.CR1 15:01:30.406 INFO [SocketListener0-1] org.hibernate.cfg.Environment.(Environment.java:499)

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread James Carman
Actually, Marcus, you can use the text value of an XML element in your schema. You use the push-content rule. On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thanksgetting closer! Now I only have to solve the id generator problem. Error building service honeycomb.hibernate.Hibern

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
...about the Generation Type. inside TemplateEntity I have tried: @Id @GeneratedValue(strategy=GenerationType.AUTO) public long getId(){ return id; } all possible valuesbut all produce the same error. Original-Nachricht Datum: Thu, 4 Jan 2

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
Thanksgetting closer! Now I only have to solve the id generator problem. Error building service honeycomb.hibernate.HibernateSessionFactory: Error at jar:file:/C:/home/me/.m2/repository/com/javaforge/honeycomb/HoneycombHibernate/0.3.3/HoneycombHibernate-0.3.3.jar!/META-INF/hivemodule.xml, l

RE: Error Message Handling

2007-01-04 Thread Balachandran
Thanks Marcus. This is what exactly i want.Now i am using the validation delegate to record these kinds of exceptions,by setting the formComponent to null. >From where can i find more details about the below specified approach? Schulte Marcus wrote: > > the second is a Message-property of th

Re: Tapestry 4.1.1: incorrect dojoPath, tapestryPath - session id is appended

2007-01-04 Thread Stefan Esterer
I'm having the same problems with the snapshots.. Did you find the problem? thx stefan Anna Vo wrote: > > A little while ago I had posted this error, which occurs the first time > our site is loaded: > > Could not load 'dojo.logging.Logger'; last tried '__package__.js' > dojo.js;jsessioni...

RE: Error Message Handling

2007-01-04 Thread Marcus.Schulte
It's perfectly Ok, to record your own cross-field validation errors in the delegate. At least as long as you can associate the error sensibly with a particular (set of) field (s). I use an error display component in my @Border, which actually checks two different sources for errors. The first is

RE: Tapestry 4.0 and Expires header on images

2007-01-04 Thread Marcus.Schulte
I think context-Assets are not served by the tapestry servlet at all, but by your containers default file-servlet. You may be able to configure this or maybe not. For Tomcat, at least, it's not so easy, if I remember correctly. > -Original Message- > From: Michael Prescott [mailto:[EMAIL P

RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread Marcus.Schulte
Oh, now I see it: Instead of org.hibernate.dialect.MySQLDialect you need to write since in HiveMind descriptors text-elements are alway treated as comments, contrary to the syntax in hibernate.cfg.xml > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Se