Re: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-22 Thread Ulrich Stärk
As dbms choice and database setup (dialect, connection, pool configuration) are highly individual and need to be done manually either way, I don't see the need to include a dependency on tapestry-hibernate in the quickstart just so that a potential user doesn't have to add it to his POM by hims

T5.0.18: Component Event Handler is not called in a nested page for SWFUpload component

2009-01-22 Thread buckofive
Hi all, I'm working on a SWFUpload component (based on http://www.swfupload.org/ for multiple file uploads at once) which works great if the component is used inside the root Index page but if the component is used in a nested page it no longer works. During the rendering of the component I cr

RE: [ANN] JumpStart 4.0 released - uses Jetty!

2009-01-22 Thread 刘平华
Thank you very much.It is my expect. 刘平华 广州从兴电子开发有限公司 :: *:ialy_2...@hotmail.com +:广州市广州大道南368号12F 510300 ::网站:http://www.searchfull.net博客:ht

Re: T5: Component Suggestion/Question

2009-01-22 Thread Thiago H. de Paula Figueiredo
Em Thu, 22 Jan 2009 22:12:03 -0300, James Sherwood escreveu: Thank you, :) However I believe I have solved it and can still just use form fragments. Below is my class which basically just keeps the checkbox hidden and fires the click from the button(I believe the reason only a checkbox

Re: [T5] .tml files not recognized in IntelliJ

2009-01-22 Thread manuel aldana
yes, this made the trick (never used this before, because patterns were always matching my things so far). thanks Lubor Gajda schrieb: IntelliJ resource patterns can be defined in Settings/Compiler/Resource patterns (just add ?*.tml). But I'm not sure if this will work in combination with Mave

RE: T5: Component Suggestion/Question

2009-01-22 Thread James Sherwood
Thank you, However I believe I have solved it and can still just use form fragments. Below is my class which basically just keeps the checkbox hidden and fires the click from the button(I believe the reason only a checkbox or radio is used is because the element itself keeps track of the state, i

Re: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-22 Thread Howard Lewis Ship
I'm of the opinion that it's easier to remove unwanted stuff than add it in. I really don't want to maintain two archetypes, but the other developers are beginning to be more active, so maybe my bandwidth shouldn't be the deciding factor. On Thu, Jan 22, 2009 at 5:41 PM, Thiago H. de Paula Figuei

Re: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-22 Thread Thiago H. de Paula Figueiredo
Em Thu, 22 Jan 2009 21:32:21 -0300, Howard Lewis Ship escreveu: The title says it all. It would be very easy to include tapestry-hibernate as a dependency, and a minimal hibernate.cfg.xml file as well. Thoughts? What about having two quickstarts, one with Hibernate and other with Hibern

Re: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-22 Thread Christian Edward Gruber
If you're going to do that, you should probably include a basic value object with a sample property and a DAO configured as a T5 service to allow someone to know what you're talking about. Just wiring up Hibernate isn't as helpful. Though we're starting to talk about a jump- start-esque thi

[DISCUSS] Should the quickstart archetype include tapestry-hibernate?

2009-01-22 Thread Howard Lewis Ship
The title says it all. It would be very easy to include tapestry-hibernate as a dependency, and a minimal hibernate.cfg.xml file as well. Thoughts? -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsu

Re: [T5] .tml files not recognized in IntelliJ

2009-01-22 Thread Lubor Gajda
IntelliJ resource patterns can be defined in Settings/Compiler/Resource patterns (just add ?*.tml). But I'm not sure if this will work in combination with Maven (I'm not using it). On Fri, Jan 23, 2009 at 12:04 AM, manuel aldana wrote: > hi, > > sorry if I am posting framework-unrelated ide rela

[T5] .tml files not recognized in IntelliJ

2009-01-22 Thread manuel aldana
hi, sorry if I am posting framework-unrelated ide related stuff, but I guess you can help more and I am sure some of you are IntelliJ users and maybe have had similar problem. Unfortunately IntelliJ does not recognize my .tml files in src/main/resouces and they aren't copied to output folde

Re: [T4.1] OGNL performance problem (serialization)

2009-01-22 Thread Aaron Kaminsky
Hello Andreas, Thank you for spending the time to look at this, I appreciate it. I can confirm that I do not have (actually have never had) org.apache.tapestry.disable-caching set, so it should be using the default of false. I believe this is true because I can see in my debugger that pages

Re: Hibernate in background thread

2009-01-22 Thread Kalle Korhonen
Chenillekit already has Quartz integration, sort of similar to what Spring offers (but easier): http://www.chenillekit.org/chenillekit-quartz/index.html Kalle On Thu, Jan 22, 2009 at 1:44 PM, Daniel Honig wrote: > What about using Quartz for such a task? > http://www.opensymphony.com/quartz/ > >

Re: Hibernate in background thread

2009-01-22 Thread Daniel Honig
What about using Quartz for such a task?http://www.opensymphony.com/quartz/ On Thu, Jan 22, 2009 at 4:43 PM, Tomas Kolda wrote: > Hi, > > I need to do something in background (import data once a day). I'm using > Tapestry-Hibernate package. User should be able to run import from web page > also.

Hibernate in background thread

2009-01-22 Thread Tomas Kolda
Hi, I need to do something in background (import data once a day). I'm using Tapestry-Hibernate package. User should be able to run import from web page also. What is the right way to get Hibernate session in background thread? I found nice howto on wiki. http://wiki.apache.org/tapestry/Tape

Re: Table and carriage return

2009-01-22 Thread Cathy_123
Peter, Thank you Peter for this information. Temporally, I resolve the problem by formatting all data before sending to the Table component. I will try this solution the next occasion I will have probably. I have some problems of Tapestry I have to resolve again before (example see the message

Re: Doubts in Tapestry

2009-01-22 Thread Sid Ferreira
package fastSupport.data; public class AllertContext { @ApplicationState(create=false) private DataContext dataContext; private boolean dataContextExists; @ApplicationState protected Clientes cliente; private boolean clienteExists; @ApplicationState(create=false) private UsuariosClientes

Re: Doubts in Tapestry

2009-01-22 Thread Thiago H. de Paula Figueiredo
Em Thu, 22 Jan 2009 13:58:54 -0300, Sid Ferreira escreveu: Im sorry but, I readed twice today, more two or tree times before... I can't see a reason to not work. The key sentence is this: "Any other component or page that declares a field of the *same type*, regardless of name, and marks

Re: Doubts in Tapestry

2009-01-22 Thread Sid Ferreira
Im sorry but, I readed twice today, more two or tree times before... I can't see a reason to not work. On Thu, Jan 22, 2009 at 12:19 PM, Thiago HP wrote: > Read http://tapestry.apache.org/tapestry5/guide/appstate.html and you > find out what's wrong. :) > > On Thu, Jan 22, 2009 at 12:12 PM, Sid

Re: Disabling onBlur field validation

2009-01-22 Thread Peter Stavrinides
Hi Russell Exactly, its a bit intrusive... one option (although not ideal in some cases) is to use your own validate handler: //My custom validator void onValidateFromMyFormField(String value) throws ValidationException { if (value == null) throw new ValidationException("Pl

Re: Fields on a zone always keep the same value

2009-01-22 Thread Hugo Palma
Answering my own question, all i needed was to clear the validation tracker right after the form on the zone was submited. On Thu, Jan 22, 2009 at 3:20 PM, Hugo Palma wrote: > I have a form inside a zone that gets updated on some event. I'm setting > the default values of some fields in that for

Fields on a zone always keep the same value

2009-01-22 Thread Hugo Palma
I have a form inside a zone that gets updated on some event. I'm setting the default values of some fields in that form on the setupRender event. This works fine the first time the zone gets updated but in subsequent updates (without a full page refresh in between) the value that shows up in the fo

Re: Table and carriage return

2009-01-22 Thread Peter Stavrinides
Hi Cathy, Wow its been a while since I did Tapestry 4, I can hardly recall this stuff now, but just looking at the stack trace I notice that it is in fact a parser error, it is looking for a missing property... which leads me to conclude it could me the method scope, unusual I know, but I remem

Re: Doubts in Tapestry

2009-01-22 Thread Thiago HP
Read http://tapestry.apache.org/tapestry5/guide/appstate.html and you find out what's wrong. :) On Thu, Jan 22, 2009 at 12:12 PM, Sid Ferreira wrote: > Seen today your mail and followed your words. A lot of changes later I just > have an ASO problem... > My dispatcher > (http://wiki.apache.org/t

Re: Doubts in Tapestry

2009-01-22 Thread Sid Ferreira
Seen today your mail and followed your words. A lot of changes later I just have an ASO problem... My dispatcher (http://wiki.apache.org/tapestry/Tapestry5HowToControlAccessbased) sets the objects in ASM (this.asm.set() ) successfully. But my meta-class wich has @ApplicationState(create=false) to t

Table and line selected

2009-01-22 Thread Cathy_123
Hi, I would like to do a table that I can let user selecting then sorting the lines. Like this example: http://picasaweb.google.com/giaotienromang2008/MonAlbum?authkey=IQT560A1HTU#5294104227402091730 can you tell me if it's possible to do it thank you for your help cathy -- View this message

Re: Complex Component Tutorial

2009-01-22 Thread Peter Stavrinides
If you want to know how to build a grid component of your own then its worth the trouble to get the source code and study how the grid is built, once you understand that you can see exactly how to extend it. Peter - Original Message - From: "Thiago HP" To: "Tapestry users" Sent: Mond

Re: [ANN] JumpStart 4.0 released - uses Jetty!

2009-01-22 Thread Thiago HP
On Thu, Jan 22, 2009 at 2:23 AM, Christian Edward Gruber wrote: > The ability to change your .tml and .java classes (for components and pages) > and have them take effect without a restart. That's what Tapestry 5 calls "live class reloading". It is a huge productivity boost. -- Thiago ---

Re: Weird error

2009-01-22 Thread Sid Ferreira
Done :D On Thu, Jan 22, 2009 at 8:56 AM, Ulrich Stärk wrote: > It's a wiki - go ahead... > > Sid Ferreira schrieb: > > Indeed... anyone should fix the docs... >> >> On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo < >> thiag...@gmail.com> wrote: >> >> Em Wed, 21 Jan 2009 22:36:4

Re: Weird error

2009-01-22 Thread Ulrich Stärk
It's a wiki - go ahead... Sid Ferreira schrieb: Indeed... anyone should fix the docs... On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira escreveu: http://pastebin.com/m43c165fd didn't included dat

Re: Weird error

2009-01-22 Thread Sid Ferreira
Indeed... anyone should fix the docs... On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira > escreveu: > > http://pastebin.com/m43c165fd >> didn't included database, components or pages, just what matte

debugging question

2009-01-22 Thread Ulrich Stärk
Hi, I'm decorating one of my services in order to intercept a method call and store the result as an ASO. Unfortunately I'm getting a NPE while the ApplicationStateManager is trying to acquire a Session. I don't know where exactly in the Request object this happens because the Request object

Re: T5: Component Suggestion/Question

2009-01-22 Thread Jonathan O'Connor
James, I just did this yesterday. Its based on the code found in the WIKI: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained My Javascript code sets the class of an element to "vanished" that does display:none in my stylesheet. // A class that hides and shows the simple and com

Re: Multi-select list

2009-01-22 Thread Peter Stavrinides
you would need to use some JavaScript, something like this: var selected = new Array(); for (var i = 0; i < ob.options.length; i++) if (ob.options[i].selected) selected.push(ob.options[i].value); The palette gives you this list already though... so I still can't see what the benefit is