Re: T5.1: parent/children Spring non singleton beans integration

2009-05-18 Thread Valentin Yerastov
Hello! I've found following workaround: use external spring context like in T5.0. I add in web.xml tapestry.use-external-spring-context true In beans I use it like: If you want request scope in spring: org.springframework.web.context.request.RequestContextListener Define in applicatio

Re: Tapestry 5.1 and multivalued parameters

2009-05-18 Thread R. Duval
Otho, Thanks, the link was very useful and cleared my doubts. I just think it's a too trivial question and was kinda hard to find any answer... Anyways, I already bookmarked the link you sent. Otho wrote: > > You can find the answer here: > > http://jumpstart.doublenegative.com.au:8080/jumps

T5.1: parent/children Spring non singleton beans integration

2009-05-18 Thread Stephane Decleire
I've got non singleton beans in a parent/children relation. For example : - a Folder bean with a property Files which point on a Set of File beans. - several File beans with a property Folder which point on a Folder bean. Until Tapestry 5.0.18, i used to implement those non singleton beans as Spri

Re[5]: page & components activation contexts

2009-05-18 Thread Yury Luneff
sorry :) i managed to make it work ok. The problem was really on the JS part (as you suggested). As I don't have possibility to make event links on client-side I did it by hand and it revealed, that the one case I used to make an event-handler url is not the only case tapestry has. Another is when

Message catalog encoding

2009-05-18 Thread Christian Senk
Hi, it seems that i have a serious problem with the message catalog encoding. the default eclipse encoding creating new and saving *.properties files seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it to ISO-8859-1. i have two message catalogs "Login.properties" and "Login

Re: Checkboxes within a loop in a form

2009-05-18 Thread Shing Hing Man
You might like to check out the example at http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Shing --- On Tue, 19/5/09, mark99 wrote: > From: mark99 > Subject: Checkboxes within a loop in a form > To: users@tapestry.apache.org > Date: Tuesday, 19 May, 2009, 1:1

Re: Memory consumption

2009-05-18 Thread Yuri Ushakov
Figured out what was wrong. It *was* so much components per page, actually. We have this page, user dashboard, and a dozen pagelinks within it. Each pagelink fully loaded the page it was pointing to, causing that page to load its components in turn, etc. I modified CPEI and PageImpl to be able to l

Re: Cleaning up AJAX dashboard

2009-05-18 Thread Thiago H. de Paula Figueiredo
Em Mon, 18 May 2009 13:44:44 -0300, Chuck Kring escreveu: Hi everybody, Hi! I need to cleanup the persistent fields when the page is no longer in use and I'm considering using the window onunload event and a hidden eventlink to trigger the page to clean up. You don't need a hidden eve

Re: In Ajax request to component causing another component a chance to render

2009-05-18 Thread Thiago H. de Paula Figueiredo
Em Mon, 18 May 2009 14:28:59 -0300, ownedthx escreveu: Oh. I think I get it. If the zone contains another component, then that'd cause it to render, right? Yes. The zone, and everything inside it, is rerendered. Your pseudomarkup looks correct. ;) -- Thiago H. de Paula Figueiredo Indepen

Re: In Ajax request to component causing another component a chance to render

2009-05-18 Thread ownedthx
Oh. I think I get it. If the zone contains another component, then that'd cause it to render, right? Let me see if I get this right with some pseudomarkup: Root page (that contains the two components, searchForm and searchResults): Search Form component:

Re: Checkboxes within a loop in a form

2009-05-18 Thread Dave Greggory
I believe you will need a submit notifier component. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/SubmitNotifier.html Wrap the submit notifier around and use the AfterSubmit event to capture its values. - Original Message From: mar

Checkboxes within a loop in a form

2009-05-18 Thread mark99
Hi I've got a problem implementing a form which renders checkboxes within a loop, and then posts back the values of the checkboxes on form submission. In my form submission handler, I need to know which checkboxes the user checked. What I'm looking to do is something like this: Page:

Re: In Ajax request to component causing another component a chance to render

2009-05-18 Thread Thiago H. de Paula Figueiredo
Em Mon, 18 May 2009 13:44:05 -0300, ownedthx escreveu: Let me try an example. Take a pretty rich web app like markmail: http://tapestry.markmail.org/search/?q=tapestry When you search on markmail, it causes a whole page refresh. (not what I'm trying to do). But, what if instead it updated

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Thiago H. de Paula Figueiredo
Em Mon, 18 May 2009 13:31:43 -0300, Andy Buckley escreveu: One final, final (I hope) thing: the decoded context appears to be shared between pages using the same session, They aren't. Maybe you're populating persisted fields . . . private Map _params = new TreeMap(); . . . or falli

Cleaning up AJAX dashboard

2009-05-18 Thread Chuck Kring
Hi everybody, I have a page that implements a dashboard-like functionality in which various AJAX calls update charts and other data. This page is has several persistent variables in order to support the AJAX functionality. All of the elements in the page are surrounded for a form but the us

Re: In Ajax request to component causing another component a chance to render

2009-05-18 Thread ownedthx
Let me try an example. Take a pretty rich web app like markmail: http://tapestry.markmail.org/search/?q=tapestry When you search on markmail, it causes a whole page refresh. (not what I'm trying to do). But, what if instead it updated just the applicable components on the page, such as the se

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > On Mon, May 18, 2009 at 11:48 AM, Andy Buckley > wrote: >> XML >> >> but as mentioned elsewhere in the thread, this generates a URI without >> the parent page's context (which magically still works), i.e. the URI >> generated by the above is >> .../view/xml >

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
Don't worry about it, turns out our internal network is screwed up... connections between users and the load balancer is secure, but not between load balancer and app server. - Original Message From: Dave Greggory To: Tapestry users Sent: Monday, May 18, 2009 11:56:56 AM Subject: R

Re: In Ajax request to component causing another component a chance to render

2009-05-18 Thread Thiago H. de Paula Figueiredo
On Mon, May 18, 2009 at 12:47 PM, ownedthx wrote: > One note: I'm avoiding using zone updates to > orchestrate this cross-component behavior, because in my understanding, the > bulk of the logic has to then live in Javascript in the client. Why? Just curious. :) -- Thiago -

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
obviously, it is. - Original Message From: Martin Strand To: Tapestry users Sent: Monday, May 18, 2009 11:40:40 AM Subject: Re: [t5.0.18] Secure Annotation / BaseURLSource Just a guess... perhaps baseSecureURL is not an https url? On Mon, 18 May 2009 15:15:50 +0200, Dave Greggory

In Ajax request to component causing another component a chance to render

2009-05-18 Thread ownedthx
Here's my scenario... I want to create a component with an embedded form that has a textfield, and on submit, fires an Ajax request to the component. However, I have this idea that I'd like to let this component fire a custom event (using triggerEvent) back up to the page, and the page could te

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Martin Strand
Just a guess... perhaps baseSecureURL is not an https url? On Mon, 18 May 2009 15:15:50 +0200, Dave Greggory wrote: > > I've been using BaseURLSource(since behind a firewall/load balancer) fine all > this time, and recently I needed a secure page, so I added the @Secure > annotation on that

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Thiago H. de Paula Figueiredo
On Mon, May 18, 2009 at 11:48 AM, Andy Buckley wrote: > XML > > but as mentioned elsewhere in the thread, this generates a URI without > the parent page's context (which magically still works), i.e. the URI > generated by the above is > .../view/xml > rather than the hoped-for > .../view/p1234/xml

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > On Mon, May 18, 2009 at 10:57 AM, Andy Buckley > wrote: >> Thanks for the advice. I'd rather avoid using separate pages, as >> mentioned, but including the format handling in the activation context >> is certainly possible. It prompts another question, though

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Thiago H. de Paula Figueiredo
On Mon, May 18, 2009 at 11:19 AM, Andy Buckley wrote: > public EventContext onPassivate(EventContext context) { >  return context; > } In onPassivate(), you should return the activation context value for that page request (i.e. the value you pass to the context parameter of PageLink). In your cas

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Robert Zeigler wrote: > 1) If you're using action links, then > onXML won't work. The proper "magic method" naming is: > on[from] > > as: > onActionFromXml, and so forth. > > If you want: > onXML() {} then you need to use an event link with the event name of xml. Thanks, I hadn't noticed EventLi

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Thiago H. de Paula Figueiredo
On Mon, May 18, 2009 at 10:57 AM, Andy Buckley wrote: > Thanks for the advice. I'd rather avoid using separate pages, as > mentioned, but including the format handling in the activation context > is certainly possible. It prompts another question, though: how do I > return the "normal" page render

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Fri, 15 May 2009 14:39:23 -0300, Robert Zeigler > escreveu: > >> PS: I don't see EventContext implementing Iterable. It just >> doesn't make sense from a semantic POV, even it makes things a bit >> more convenient. It's also a "public" interface; it's n

Re: T5: Passing named/structured-type params in URLs?

2009-05-18 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Fri, 15 May 2009 12:36:34 -0300, Andy Buckley > escreveu: > >> Any replies to this (see below, or my previous mail in this thread)? >> >> Specifically, can I use Tapestry components to link "bookmarkably" to >> page events as a way of displaying the page

[t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
I've been using BaseURLSource(since behind a firewall/load balancer) fine all this time, and recently I needed a secure page, so I added the @Secure annotation on that page. But that page is no longer working because @Secure annotation ends up sending continuous redirects. What am I doing wrong

Re: The way I found to debug tapestry source..

2009-05-18 Thread Andrea Chiumenti
run mvn with -DdownloadSources=true On Mon, May 18, 2009 at 12:20 PM, hari ks wrote: > > Hi, > > 1.First of all I downloaded tapestry-src-5.0.18.zip. > 2. did a "mvn install" after commenting out all testng.xml , and copying > pom.xml to project root. > 3. Created a dummy tapestry project in e

The way I found to debug tapestry source..

2009-05-18 Thread hari ks
Hi, 1.First of all I downloaded tapestry-src-5.0.18.zip. 2. did a "mvn install" after commenting out all testng.xml , and copying pom.xml to project root. 3. Created a dummy tapestry project in eclipse that was working with tapestry binaries. 4. copied all jars from /.m2/repository and created