RE: weird problem, link sometimes no response.

2005-07-28 Thread Henry Chen
? My problem was that the serialized parameter was too long. On 7/28/05, Henry Chen <[EMAIL PROTECTED]> wrote: > > I found this is really weird. When I clicked some DirectLinks, I got > stuck and the page didn't proceed. But if I click the same link once > more, the result show

weird problem, link sometimes no response.

2005-07-27 Thread Henry Chen
I found this is really weird. When I clicked some DirectLinks, I got stuck and the page didn't proceed. But if I click the same link once more, the result showed up immediately. It didn't quite noticable when I developed the website on my own machine. It happened a lot especially when I access the

RE: Acegi login

2005-07-18 Thread Henry Chen
Thanks alot! Henry -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Pesochinskiy Sent: Sunday, July 17, 2005 3:33 PM To: tapestry-user@jakarta.apache.org Subject: Re: Acegi login AuthenticationFileter has authenticationFailureUrl, this is were Acegi redirects i

Acegi login

2005-07-17 Thread Henry Chen
I used Acegi in my project. When user type in the incorrect authentication information, how can I tell? Acegi would just redirect it back to login. I want to show some error information to user. I had a look at the hispacta, but it doesn't have a login screen.:( Also, can I get the error message

RE: Difference between getPage().getEngine().getVisit() and getPage().getVisit()?

2005-07-15 Thread Henry Chen
() creates the visit if it doesn't exist. getPage().getEngine().getVisit() only returns an active visit if it already exists, it returns null otherwise. Danny Henry Chen wrote: >Hi, can somebody tell me the difference between >getPage().getEngine().getVisit() and getPage().getVisit()?

Difference between getPage().getEngine().getVisit() and getPage().getVisit()?

2005-07-15 Thread Henry Chen
Hi, can somebody tell me the difference between getPage().getEngine().getVisit() and getPage().getVisit()? Thanks alot. Henry

RE: About engine

2005-07-14 Thread Henry Chen
Others can correct me if I'm wrong, but I think > Tapestry won't attach an engine to your session until it's needed. > Perhaps your setlocale isn't sticking until you've got a Tapestry > session going. Try exploring that direction. > > > > Henry Chen

RE: About engine

2005-07-14 Thread Henry Chen
7;s needed. Perhaps your setlocale isn't sticking until you've got a Tapestry session going. Try exploring that direction. Henry Chen wrote: > I asked the following question yesterday and nobody so far gave me a hint > yet. Let me describe it in a different way. When I opened the websi

RE: About engine

2005-07-14 Thread Henry Chen
7;s needed. Perhaps your setlocale isn't sticking until you've got a Tapestry session going. Try exploring that direction. Henry Chen wrote: > I asked the following question yesterday and nobody so far gave me a hint > yet. Let me describe it in a different way. When I opened the websi

About engine

2005-07-14 Thread Henry Chen
I asked the following question yesterday and nobody so far gave me a hint yet. Let me describe it in a different way. When I opened the website, if the first thing I do is to click on the link that is supposed to do engine.setLocale(), this change would fail. But if I do something first, like login

Weird problem when changing Locale

2005-07-13 Thread Henry Chen
I have a link on my login page that can change the language of the website. I developed the website on a windowsXp machine with tomcat-5.0.28/java5. When I tested it by clicking on the language change link, it worked perfectly. But when I moved the whole thing to a live server, it didn't work any

RE: components in the page won't reload

2005-05-27 Thread Henry Chen
nts in the page won't reload Just create a method named for example, clean() and at the fist tapestry element of that component (before any other), call it. That is the simple way to do it. Please visit: www.tapestryforums.com and join us! A. Lepe 2005/5/26, Henry Chen <[EMAIL PROTECTED]&g

components in the page won't reload

2005-05-26 Thread Henry Chen
Hi, I have a page that uses a component that I wrote. In the pageBeginRender() of that component I need to do some initialization every time it is shown. But I found the pageBeginRender() was actually been called only once, when I first visited the page. How can I work around this? I need to c

Hibernate+Spring: OpenSessionInViewFilter problem

2005-05-17 Thread Henry Chen
, it gave me the LazyInitialization exception - owning session was closed. Is there any way around it now? Thanks a lot! -- Thanks, Henry Chen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: How to split data into rows in a table given a number for each row

2005-05-11 Thread Henry Chen
I found tapestry automatically complete the "closing tag " even I didn't' ask it to. So this was solved by removing the line: This worked and produced desired output. But I'm not sure whether it is the correct way to do it. Henry _ From: Henry Chen

RE: Simple loop for Select

2005-05-10 Thread Henry Chen
ublic Object next() { > int x = this.i; > this.i++; > return new Integer(x); > } > }; > > -Original Message- > From: Henry Chen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 10, 2005 2:14 PM &g

Simple loop for Select

2005-05-10 Thread Henry Chen
Hi, I have a question about constructing a simple "SELECT" element. For example, I need something like this: 1 2 3 4 5 ... 100 I know @Foreach can do it but I still need to create an array for it. Is it possible that I can just l

How to use Contrib:table with Spring/Hibernate?

2005-05-07 Thread Henry Chen
Hi, Does anybody know whether there is any example about how to use the table component with Spring/Hibernate? Many thanks! Henry

RE: Problem with ServletContext.getResource()

2005-05-05 Thread Henry Chen
ontextPath + File.separator + "abc.zip"; or about the same: String somefile = contextPath +"/abc.zip"; Henry Chen wrote: >Hi, > > > >I want to write to a file. I use the following method: > > > >String contextPath = >cycle.getRequestContex

Problem with ServletContext.getResource()

2005-05-05 Thread Henry Chen
Hi, I want to write to a file. I use the following method: String contextPath = cycle.getRequestContext().getRequest().getContextPath(); ServletContext context = cycle.getRequestContext().getServlet().getServletContext(); String somefile = contextPath +"abc.zip"; String outFileName = con

RE: How to read " " from properties files?

2005-04-11 Thread Henry Chen
that text into your page? With @Insert use raw="true": On Apr 11, 2005, at 11:30 AM, Henry Chen wrote: > Hi, > > I want to output white space, so I tried " " and "\ " in my > properties file. But it was changed to "&nbsp;&

How to read " " from properties files?

2005-04-11 Thread Henry Chen
Hi, I want to output white space, so I tried " " and "\ " in my properties file. But it was changed to " ". Can anybody help me with this? Thanks a lot. Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Is there a Dynamic Image Asset?

2005-04-02 Thread Henry Chen
Hi, I want to load links from the database, and bind with @Image component. But this is not possible because the image property requires an IAsset type object. This can be provided by component but it only support static path. Does Tapestry already have something that can return an asset set dur

RE: Multiple propertyselection: how to judge which of them is changed

2005-04-01 Thread Henry Chen
: Multiple propertyselection: how to judge which of them is changed ? Henry Chen: > Use separate forms. You are right. But there is a problem. I used > separate forms for each of the property selection. When I select in > one of them, the rest were all "reset" to the initial as

RE: Multiple propertyselection: how to judge which of them is changed

2005-03-31 Thread Henry Chen
: Re: Multiple propertyselection: how to judge which of them is changed Henry Chen buzzsponge.com> writes: > So there are there propertyselections in the form. For all of them, > set "submitOnChange" to true. Then how do I know which component fire > the submit? I know tha

RE: Multiple propertyselection: how to judge which of them is changed

2005-03-31 Thread Henry Chen
ner method on each list. ????? Henry Chen: > So there are there propertyselections in the form. For all of them, > set "submitOnChange" to true. Then how do I know which component fire > the submit? I know that I can get the option and save it, then next > time when submit,

Multiple propertyselection: how to judge which of them is changed

2005-03-31 Thread Henry Chen
So there are there propertyselections in the form. For all of them, set "submitOnChange" to true. Then how do I know which component fire the submit? I know that I can get the option and save it, then next time when submit, get the value again and compare. But I don't know if this is the right way.