Re: persists session "set"

2007-11-07 Thread cometta
my mistake. hashset dont add object if it's null. it's working now. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: persists session "set"

2007-11-07 Thread cometta
i used the method that you provided and like the workbeach example. my hashset is always have size of only 1 ? i dont understand, since the selectcheckboxmethod is call so many times, why the size is only 1 all the time. //this method is called many times ,but the persists on sysem.out.print(l

RE: T5 how to control login state

2007-11-07 Thread Joost Schouten
Hi, Though I'm still in the design phase of my work flow mechanism I would like to share it here as it seems you are looking for something similar. I store a Workflow Object in ASO containing a List containing the pages to walk though, and a child WorkFlow containing a potential sub WorkFlow. I

asset from byte array or stream

2007-11-07 Thread Paul Stanton
Hi all, I need a little help (4.1) I have an object with a byte array which contains data for a small image. I'm printing a summary of this object in a page and need to display the image as well. Is there a way I can create an asset and use it with the Image componet to display the image? so

T5: @Injectpage and ajax

2007-11-07 Thread Angelo Chen
Hi, I have this problem http://www.nabble.com/T5%3A-why-this-not-working-in-IE--tf4759162s302.html why-this-not-working-in-IE , took quite a long time to find a fix to this: if you inject a page and return as object to a xmlhttprequest, it works in Safari, Firefox but not in IE, IE works only t

RE: T5: Preparing a pristine object for re-use

2007-11-07 Thread Andy Huhn
Bless you, Kris! This is exactly what I needed! I've been reading the mailing list religiously, and trying to dig through the documentation. I saw the discussion you referenced, but a lot of it went over my head. Thanks very much! Andy On Wed, 2007-11-07 at 09:05 +0100, Kristian Marinkovic wro

RE: T5 how to control login state

2007-11-07 Thread Nguyen, Michael
Chris/Thiago: Thanks for the responses. What I'm getting at is trying to see if it is at all possible to allow page flow control reside outside of code. The reason for this is that I don't want to have to make code changes if I want a different flow. Externalizing the workflow makes t

Re: Moving on from 4.0.*

2007-11-07 Thread Jim
Sounds perfect! Thanks, guys; I really appreciate the response. Jim Andreas Andreou wrote: Yes, I want to commit this for 4.1.4... I just want to polish what i have and send it in till the weekend - stay tuned ;) On 11/7/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I can't speak to whethe

Re: T5 how to control login state

2007-11-07 Thread Chris Lewis
Michael, I'm pretty sure tapestry has no such mechanism. The short answer to your question is that you'd have to store these things (page names of failed/unauthorized access attempts) as an ASO, and then pull it out after logging in. I've not worked with a system like you're talking about, bu

Re: T5: why this not working in IE?

2007-11-07 Thread Angelo Chen
Hi, This problem comes out only if the request to the page is a XMLHTTPRequest call, ordinary httprequest works in IE too, any idea how to fix this? seems a problem when using T5's page with Ajax. Thanks, A.C. Angelo Chen wrote: > > Hi, > > I have this code : > > @InjectPage > private F

Re: T5: how to past two parameters to pageLink?

2007-11-07 Thread Filip S. Adamsen
Or you could use this list binding prefix: http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix -Filip Angelo Chen skrev: found a old posting, return a list from a method in the page class, then context="myList" Angelo Chen wrote: Hi, here i pass one param, how to pass two? let'

Re: Moving on from 4.0.*

2007-11-07 Thread Andreas Andreou
Yes, I want to commit this for 4.1.4... I just want to polish what i have and send it in till the weekend - stay tuned ;) On 11/7/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I can't speak to whether or not you should upgrade to T5 or how stable > it is relative to your requirements, but can me

Re: Moving on from 4.0.*

2007-11-07 Thread Jesse Kuhnert
I can't speak to whether or not you should upgrade to T5 or how stable it is relative to your requirements, but can mention some things about Dojo versions. The packaged version of Dojo is "sort of" Dojo 0.4.3 but contains many local fixes not available in the official distribution - most being s

Re: T5 how to control login state

2007-11-07 Thread Thiago H. de Paula Figueiredo
Em Wed, 07 Nov 2007 18:31:35 -0200, Nguyen, Michael <[EMAIL PROTECTED]> escreveu: Thiago, Hi, Michael! I know that on pages or components navigation is controlled by the return type. ( page class, String, etc) My question has to do with how to deal with navigation before any page or

Moving on from 4.0.*

2007-11-07 Thread Jim
Howdy, I've been using Tapestry since 2.*, and am currently working with the 4.0.12 release. I've been very happy until recently, and I guess now I'm looking for reassurance/guidance. My issue is that Tapestry 5 is still -- it appears to me -- changing significantly between releases, and I'

RE: T5 how to control login state

2007-11-07 Thread Nguyen, Michael
Thiago, I know that on pages or components navigation is controlled by the return type. ( page class, String, etc) My question has to do with how to deal with navigation before any page or component renders. In other frameworks you can have a workflows specified outside the application in XM

Re: T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-07 Thread Dom Couldwell
FYI, if we remove the PopupLinkSubmit component we don't get the errors appearing in the logs so it's definitely related to something in that component Dom --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail

Re: T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-07 Thread Jesse Kuhnert
No ideas are coming to mind right away, other than it looks like it's trying to do Map related functions without casting to map first. It is not a critical bug but it could potentially cause problems for you. Or at least be annoying to see during development and not as fast as it could be in p

Re: T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-07 Thread Andreas Andreou
On 11/7/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I think you need to pass in "this" to your script execute call, the > current method you are executing is deprecated. In fact, I removed it in 4.1.4-SNAPSHOT... it was deprecated since 4.1.1 > > For the javascript calls you can refer to > >

Re: T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-07 Thread Dom Couldwell
OK we updated the generated Javascript with the new version of the Javascript function function submitPopupLink(form, elementId, url) { var windowName = 'RDQGraphPopup'; var randomNumber = Math.floor(Math.random()*1000); windowName = windowName+randomNumber; aWindow = window.open(url, wind

Re: T5 how to control login state

2007-11-07 Thread Thiago H de Paula Figueiredo
On Wed, 07 Nov 2007 16:40:45 -0200, Nguyen, Michael <[EMAIL PROTECTED]> wrote: Chris, Is it standard practice in Tapestry for page redirects to throw exceptions? That's true for Tapestry 4.x, but not for Tapestry 5. -- Thiago H. de Paula Figueiredo Desenvolvedor, Instrutor e Consultor de Te

Re: persists session "set"

2007-11-07 Thread Jesse Kuhnert
public void setCheckboxSelected(boolean bSelected) { Set locales = getSelectedLocales(); TheLocale objLocale = getCurrentLocale(); if (bSelected) locales.add(objLocale); else locales.remove(objLocale); setSelectedLocales(locales); <-

RE: T5 how to control login state

2007-11-07 Thread Nguyen, Michael
Chris, Thanks for your insightful wiki on this subject. This seems a much lighter weight solution to the Acegi Authentication. ( the latter requires many more jar file downloads related to Spring) I do have a question that's been on my mind for some time now. Is it standard practice in T

Re: T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-07 Thread Jesse Kuhnert
I think you need to pass in "this" to your script execute call, the current method you are executing is deprecated. For the javascript calls you can refer to http://tapestry.apache.org/tapestry4.1/javascript/index.html and http://tapestry.apache.org/tapestry4.1/jsdoc/index.html where you should

persists session "set"

2007-11-07 Thread cometta
is this the correct way to persists session? .page .java public abstract Set getSelectedLocales(); public abstract void setSelectedLocales(Set set); public void setCheckboxSelected(boolean bSelected) { TheLocale objLocale = getCurrentLocale(); if (bSelected) ge

Re: T5 how to control login state

2007-11-07 Thread Chris Lewis
I've created a new article to supplement the first, showing how to access thread-specific ASOs from a singleton service. It's on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 sincerely, chris Angelo Chen wrote: Hi Chris, I'm interested in your approach and read a

Re: T5 - change to .TML file picked up automatically

2007-11-07 Thread Howard Lewis Ship
That may be an issue with Eclipse WTP. That's why I use JettyLauncher. On Nov 7, 2007 1:21 AM, trekmbikes <[EMAIL PROTECTED]> wrote: > > Hi, > Is Tapestry 5 supposed to pick up changes I make to my .tml files > automatically? Eclipse WTP does the hot code swapping of the Java class > correctly but

Re: Simple servlet with xml output - to tapestry

2007-11-07 Thread thanos
Turns out the patch is too big to apply. Fernando, is it possible to share a build with the patch applied? I am sure other people will have the save need and would surely appreciated it thanks Thanos Fernando Padilla wrote: > > Yes you can output XML directly from the template with some caveat

Re: T5 how to control login state

2007-11-07 Thread Angelo Chen
Hi Chris, I'm interested in your approach and read already the wiki, you spent a lot to explain the concept behind, can you also provide a simple/complete sample code for that? thanks. A.C. Chris Lewis-5 wrote: > > > I'll update the wiki. > > chris > > > lyifan wrote: >> Thanks a lot ever

HandyTapestry 1.3, Tapestry IntelliJ Idea plugin

2007-11-07 Thread Alexei Orishchenko
HandyTapestry 1.3 released If you develop a http://tapestry.apache.org Tapestry web application using http://www.jetbrains.com/idea IntelliJ Idea then try http://handyedit.com/handytapestry.html HandyTapestry plugin! The HandyTapestry plugin for IntelliJ Idea helps you to develop Tapestry

Re: T5 how to control login state

2007-11-07 Thread Angelo Chen
Hi Chris, Is the wiki article updated? I'd like to try that approach. the wiki site seems down as of this moment. A.C. Chris Lewis-5 wrote: > > Marcus, > > I would like to expand on this as it does seem perferable. > > chris > > Marcus wrote: >> Hi Massimo, >> >> Can you post some code abo

T5 - change to .TML file picked up automatically

2007-11-07 Thread trekmbikes
Hi, Is Tapestry 5 supposed to pick up changes I make to my .tml files automatically? Eclipse WTP does the hot code swapping of the Java class correctly but when I change the contents of the .TML file they don't seem to be picked up. Thanks! -- View this message in context: http://www.nabble.com

RE: T5: Preparing a pristine object for re-use

2007-11-07 Thread Kristian Marinkovic
the default scope of a service is "singleton". i you want a new DAO on every request you can annotate you method with : @Scope(IOCConstants.PERTHREAD_SCOPE) if you are using tapestry-hibernate you can have your session injected into a "singleton" scoped service and tapestry will take care of