Re: T5: how to circumvent t:formdata

2009-01-27 Thread Michael Capper
Thank you, it works now :handshake: For reference, my Input class now includes: @Inject private RequestGlobals requestGlobals; @OnEvent(value = "onMobileSubmit") public StreamResponse onMobileSubmit() { HttpServletRequest request = request

Re: T5/Jetty: disabling jsessionid?

2009-01-27 Thread Andy Huhn
Hi Lutz, Somehow I missed your original post...when I went back today to google fo solutions to this issue again, I found your post to my original question! Thanks so much for this. That's a really good thought. I'm not sure at this point why these pages think they need state, but I'll take a l

Re: [T5] Expression Language

2009-01-27 Thread Francois Armand
iberck wrote: Hi, I'm developing an application with tap 5.. Great, good new. Welcome on board ! I don't understand why I can't use OGNL inside tap5 and with tap4 yes ! That's a design choice made by HLS. OGNL suffer some drawbacks, including a performance penalty (even after the amazi

Re: T5: how to circumvent t:formdata

2009-01-27 Thread Massimo Lusetti
On Mon, Jan 26, 2009 at 7:39 PM, Howard Lewis Ship wrote: > If you use a Form component, you need the t:formdata. > > If you don't use Form (and therefore, don't use TextField, Select, > etc.) you can easily submit directly into a component event handler > method; it's a step back towards servlet

Re: Palette-base component not showing

2009-01-27 Thread Thiago H. de Paula Figueiredo
On Tue, Jan 27, 2009 at 3:41 AM, Davor Miku wrote: > I've solved it. > Bean class MUST override equals() and hashCode() methods! > 4 hours of my life ;) It's always nice to learn something new. :) Overriding equals() and hashCode() is not just a Tapestry best practice, it is a Java best practice,

Re: Palette component

2009-01-27 Thread Thiago H. de Paula Figueiredo
On Tue, Jan 27, 2009 at 1:30 AM, Davor Miku wrote: > This method returns list of OptionModel objects. If you meant on this, this > list is not empty. I'm not sure I'm following you. I said that some OptionModel seemed to be *null*. I didn't say that the list of OptionModels was *empty*. By the w

RE: Palette component

2009-01-27 Thread James Sherwood
Hello, I just ran into the same problem. You are probably creating the available and select lists in 2 different methods, you need to do it in the same method with the SAME object(or at least with a list that doesn't reload when you pull your select) otherwise you get that null error(or at least

Re: T5/Jetty: disabling jsessionid?

2009-01-27 Thread Adam Zimowski
You wouldn't have to write a filter of your own. There is a very flexible url filter which you just plug in and configure expression (perl5 style or wilecard) for filtering (rewriting): http://tuckey.org/urlrewrite/ -adam On Tue, Jan 27, 2009 at 3:12 AM, Andy Huhn wrote: > Hi Lutz, > > Somehow

Not able to save objects at a certain point

2009-01-27 Thread James Sherwood
Hello, I am using the in place editor component created in the tapestry for non believers tutorial. http://www.infoq.com/articles/tapestry5-intro In the setEdit() method in my java I am trying to do _session.save(Object) but it will not save. I have tried @CommitAfter as well as creating

Re: Anyone got Jetty-T5-OpenEJB-Hibernate working?

2009-01-27 Thread Adam Zimowski
Hi Geoff, I didn't have a chance to download jumpstart yet, but I spent some time looking at your EJB3 example and source code. It's a very elegant solution you have but what I was looking for more was to avoid JNDI lookups in favor of native EJB DE via @EJB. In general, I would like to be able to

Re: Anyone got Jetty-T5-OpenEJB-Hibernate working?

2009-01-27 Thread Adam Zimowski
"use all of EJB3 annotations within Jetty" - I meant "within Tapestry pages/components in favor of @Inject" Sorry... to much Jetty lately :) -adam On Tue, Jan 27, 2009 at 6:56 AM, Adam Zimowski wrote: > Hi Geoff, > > I didn't have a chance to download jumpstart yet, but I spent some > time look

Re: T5: RESTful web services module

2009-01-27 Thread Nicolas Charles
Bill Holloway wrote: Well, against my better judgment, I've posted the little jar I use to make T5 services serve RESTful web service requets. It does this by shooting a RequestFilter into the pipeline that you contribute your service classes to via the IoC. The code and some documentation are

Re: [T5] Expression Language

2009-01-27 Thread iberck
thank you of your response and your time Now I understand the concept. Francois Armand wrote: > > iberck wrote: >> Hi, I'm developing an application with tap 5.. >> > Great, good new. Welcome on board ! >> I don't understand why I can't use OGNL inside tap5 and with tap4 yes ! >> > > Th

Re: [T5] Expression Language

2009-01-27 Thread Francois Armand
iberck wrote: thank you of your response and your time Now I understand the concept. No problem :) -- Francois Armand Etudes & Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- http://fanf42.blogspot.com InterLDAP - http://interldap.org Fed

Re: OnActivate question

2009-01-27 Thread Ville Virtanen
Hi, Also take a look at PageAttached. (http://tapestry.apache.org/tapestry5/guide/lifecycle.html) - Ville Chris Lewis-5 wrote: > > > > James Sherwood wrote: >> Hello, >> >> >> > Hi. >> I have security through page Activate. >> >> >> >> All my pages extend a page that has a method: >

Forum software with good Tapestry integration

2009-01-27 Thread TapestryBob
I would like to integrate a fully featured forum (administrators, preview messages, avatars etc) into my tapestry web app. The site has an existing registered user base so the forum software should provide single sign on (i.e. once logged in to the main site you dont have to login seperately to t

RE: Not able to save objects at a certain point

2009-01-27 Thread James Sherwood
Hello, I figured it out. Apparently if it's an existing object you need to use _session.saveOrUpdate(Object), or at least that fixed it for me. An error should be thrown if it's not able to save IMO. --James -Original Message- From: James Sherwood [mailto:jsherw...@rgisolutions.com]

[T5] Something like GlazedLists for T5?

2009-01-27 Thread Otho
Hi all! I was wondering if there is something like GlazedLists List transformations for T5. In Spring richclient it is for example possible to have a table filtered by multiple columns by typing in a textfield which is very neat for usecases where you have to narrow down a list/grid by several cri

Re: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Thiago H. de Paula Figueiredo
Some creative usage of Tapestry's Grid and Zone components, together with a TextField, can already do the most part of what you're describing here. Em Tue, 27 Jan 2009 15:09:18 -0300, Otho escreveu: Hi all! I was wondering if there is something like GlazedLists List transformations for T

Re: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Kalle Korhonen
You can do that easily with Dojo's FilteringTable / Grid. Kalle On Tue, Jan 27, 2009 at 10:09 AM, Otho wrote: > Hi all! > > I was wondering if there is something like GlazedLists List transformations > for T5. In Spring richclient it is for example possible to have a table > filtered by multip

Re: Not able to save objects at a certain point

2009-01-27 Thread Ulrich Stärk
That's normal Hibernate behaviour. I suggest to read the Hibernate docs if you plan to integrate Hibernate into your application. Cheers, Uli James Sherwood schrieb: Hello, I figured it out. Apparently if it's an existing object you need to use _session.saveOrUpdate(Object), or at least t

RE: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Robert, Brice
I was able to use SmartClient with T5 through GWT and plan to use its grid feature intensively. http://www.smartclient.com/smartgwt/showcase/#grid_sortfilter_live_filte r http://www.pmdit.se/blog/2008/04/08/tapestry_5_and_gwt_part_2.html but I am mostly at the beginning and I must be sure if f

Re: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Otho
Yes, you can model that in a way. But the beauty of GlazedLists is the use of the Decorator pattern which makes the use a breeze. Have your EventList, which is basically a beefed up version of an ArrayList, decorate it and get all the filtering functionality alsmost automatically (only a few lines

Re: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Thiago H. de Paula Figueiredo
Em Tue, 27 Jan 2009 15:34:57 -0300, Robert, Brice escreveu: but I am mostly at the beginning and I must be sure if fits my need since SmartGwt uses lazy rendering compare to T5 grid wich uses static pagination. Tapestry's Grid, with its inplace parameter set to true, loads data via AJAX.

RE: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Robert, Brice
I also use T5 grid and its Ajax feature, by static I meant fixed number of rows retrieve with GridDataSource (using Pager). I really like this T5 feature since in T4 I had to create my own component to allow data pagination through JPA/Hibernate. Lazy rendering doesn't need a Pager widget, scroll

Re: Palette component

2009-01-27 Thread Davor Miku
I'm using AbstractSelectModel, and ValueEncoder interface. Palette is internally using two lists: one for available options and one for selected. Problem was I needed to change available options (for presentation purpose) So, selectedSet.contains(value); (from Pallete.java) retuned false even if

Re: [T5] Something like GlazedLists for T5?

2009-01-27 Thread Otho
Thanks for all the info! Again a lot to read up and try out :) Regards, Otho 2009/1/27 Robert, Brice > I also use T5 grid and its Ajax feature, by static I meant fixed number > of rows retrieve with GridDataSource (using Pager). I really like this > T5 feature since in T4 I had to create my ow

Registration for ApacheCon Europe 2009 is now open!

2009-01-27 Thread Howard Lewis Ship
ApacheCon EU 2009 registration is now open! 23-27 March -- Mövenpick Hotel, Amsterdam, Netherlands http://www.eu.apachecon.com/ Registration for ApacheCon Europe 2009 is now open - act before early bird prices expire 6 February. Remember to book a room at the Möve

Re: [T5] component for displaying tree like structure

2009-01-27 Thread Joachim Van der Auwera (PROGS bvba)
There is also a TreeTable component which is part of the latest equanda-tapestry component. See http://equanda.org/equanda-tapestry5/treetable.html Or look at the example (which unfortunately is not live at the moment) : http://equanda.svn.sourceforge.net/viewvc/equanda/t5-equanda-example/src/m

Session creation

2009-01-27 Thread Tomas Kolda
Hi, is there a simple way to detect which part or component of my page forces Session creation? I do not have @Persist or @ApplicationState in page class and it still create session. Thanks Tomas - To unsubscribe, e-mail: u

Re: Session creation

2009-01-27 Thread Thiago H. de Paula Figueiredo
Em Tue, 27 Jan 2009 19:40:13 -0300, Tomas Kolda escreveu: is there a simple way to detect which part or component of my page forces Session creation? I do not have @Persist or @ApplicationState in page class and it still create session. I wish I knew, but, by default, the Form component

Re: Session creation

2009-01-27 Thread Andreas Andreou
Use httpsessionlistener http://www.xyzws.com/servletfaq/when-do-i-use-httpsessionlistener/7 In the sessionCreated method, just create an Exception and log it to examine the traces - or even throw it if you don't want any sessions at all and want to be 100% sure :) On Wed, Jan 28, 2009 at 1:49 AM

Re: T5: Tapestry and Tomcat

2009-01-27 Thread Howard Lewis Ship
Not at this time; we have to do a number of odd things, such as creating new classloaders, that are normally prohibitted. One area that is lacking in Tapestry is that we do not do such operations inside AccessController.doPrivileged() which makes it harder to simply specify the access that Tapestr

[T5] programmatically setting/getting @Property values

2009-01-27 Thread manuel aldana
hi, @Property is used, so setters/getters are generated in runtime. As an example take PageLink, it is usually set through .tml file (with t:page="xxx"). How is it possible to set @Property fields programmatically in a consise and short way? Or is it always better to use .tml templates for s

Re: [T5] programmatically setting/getting @Property values

2009-01-27 Thread Thiago H. de Paula Figueiredo
Em Tue, 27 Jan 2009 21:15:36 -0300, manuel aldana escreveu: hi, Olá! @Property is used, so setters/getters are generated in runtime. As an example take PageLink, it is usually set through .tml file (with t:page="xxx"). How is it possible to set @Property fields programmatically in a co

Re: [T5] programmatically setting/getting @Property values

2009-01-27 Thread Howard Lewis Ship
I think you are asking two different things. You can use the PropertyConduit service to create PropertyConduit instances; these allow you to dynamically read and update an expression on any object; it doesn't even have to be a component. So propertyConduitSource.create(foo.getClass(), "stuff").s

Re: [T5] programmatically setting/getting @Property values

2009-01-27 Thread manuel aldana
To give you some background why I would like to use to set the PageLink component programmatically: In a navigation-component (which is built up dynamically) I want to refer to a main-content page. For that I'd like reuse the PageLink component, so I can use tapestry facilities for link creati

Re: [T5] programmatically setting/getting @Property values

2009-01-27 Thread Howard Lewis Ship
... @Inject private ComponentResources resources; public Link getNavLink() { return resources.createPageLink("SomePage", false); } On Tue, Jan 27, 2009 at 4:34 PM, manuel aldana wrote: > To give you some background why I would like to use to set the PageLink > component programmatically: >

onChange event

2009-01-27 Thread Davor Miku
Quick question: How to catch onChange event of select component?

Re: T5: Reading context before persistent fields are read

2009-01-27 Thread Kalle Korhonen
Just FYI for those interested; I made the initial implementation of my conversation-within-page concept available as an independent Trails module: trails-conversations (for T5). More information at http://markmail.org/message/42mxcp3ioiv5tdug#query:conversations%20in%20trails+page:1+mid:42mxcp3ioiv

Re: Transmitting a javascript-value to the server using JSON

2009-01-27 Thread Kalle Korhonen
Well well, looks like Chenillekit's OnEvent is pretty close to what I want. I think you still got to make your Javascript thing a component though, but otherwise it functions similarly to T4's EventListener. Kalle On Sat, Jan 17, 2009 at 9:46 AM, Kalle Korhonen wrote: > On Sat, Jan 17, 2009 at