Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jean-Philippe Bouchard
I read the doc for the 'For' element and I find it pretty clear what volatile means. I was used to the T3 'Foreach' element which relied on the rewind cycle to rebuild the list... Thanks for all the help. Jesse Kuhnert wrote: Maybe this deserves its own quick specific section in the t4/t5 doc

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jesse Kuhnert
Maybe this deserves its own quick specific section in the t4/t5 docs. I seem to remember wondering "wtf does 'volatile' mean anyway?" a couple times a long time ago. Maybe it'll help shed more light on the importance of using efficient squeezers/key converters/etc... On 2/25/07, Howard Lewis Ship

Re: tapestry-core 5.0.2-snapshot BUILD FAILURE

2007-02-24 Thread Howard Lewis Ship
My current theory is that there's more than one bug here. One was the ClassLoader threading issue which is still hard to track down. There seems to be another issue inside tapestry-ioc related to instantiating of service implementations. There's code that should be impossible to trigger that's

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Howard Lewis Ship
That's what the Loop's volatile parameter is for, that is, for turning off that "record state into the form" behavior. On 2/24/07, Jean-Philippe Bouchard <[EMAIL PROTECTED]> wrote: Hi Howard, I don't need to squeeze it. I just happen to iterate a list ContextAsset in a "For" component rendered

Re: T5: Module builder discovery

2007-02-24 Thread Howard Lewis Ship
Documented here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html On 2/13/07, Hugo Palma <[EMAIL PROTECTED]> wrote: I couldn't find in the docs how Tapestry finds the module builder(s) for the running application. I can see that for packaged modules it gets the info from META-

Re: T5 equivalent of $content$

2007-02-24 Thread Howard Lewis Ship
Yep, I think there will be a t:content element soon, but not yet. And remember the difference between well formed (tags balanced, attributes quoted, etc.) and valid (conforms to a DTD or schema). Templates needs to be well formed only, they are not validated. On 2/24/07, Peter Beshai <[EMAIL PR

Re: T5: Module builder discovery

2007-02-24 Thread [EMAIL PROTECTED]
?? Wed, 14 Feb 2007 05:00:44 +0800??Hugo Palma <[EMAIL PROTECTED]> ?? ??: Thanks. I was i bit confused about how you could load more than one module in the application. I've just found the subModule concept and everything makes sense now. @Id("module_id") Thanks again Massimo Luse

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jean-Philippe Bouchard
Works! Thanks Jesse. Ciao JPB Jesse Kuhnert wrote: Try adding volatile="true" to your For . On 2/24/07, Jean-Philippe Bouchard <[EMAIL PROTECTED]> wrote: The squeeze happens in org.apache.tapestry.components.ForBean#getStringRepFromValue() which is called from org.apache.tapestry.components.F

Re: tapestry-core 5.0.2-snapshot BUILD FAILURE

2007-02-24 Thread Adrian Bele
It's still not working. Tests run: 762, Failures: 2, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO]

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jesse Kuhnert
Try adding volatile="true" to your For . On 2/24/07, Jean-Philippe Bouchard <[EMAIL PROTECTED]> wrote: The squeeze happens in org.apache.tapestry.components.ForBean#getStringRepFromValue() which is called from org.apache.tapestry.components.ForBean.StoreSourceDataIterator#next() which is called

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jean-Philippe Bouchard
The squeeze happens in org.apache.tapestry.components.ForBean#getStringRepFromValue() which is called from org.apache.tapestry.components.ForBean.StoreSourceDataIterator#next() which is called from the ForBean renderComponent() method. Ciao JPB Jean-Philippe Bouchard wrote: Hi Howard, I do

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Jean-Philippe Bouchard
Hi Howard, I don't need to squeeze it. I just happen to iterate a list ContextAsset in a "For" component rendered in a form. Tapestry tries to squeeze it by adding it to a form hidden component. When the component is not used in a form, it works perfectly. This is the HTML page for the compo

Re: T5 equivalent of $content$

2007-02-24 Thread Peter Beshai
Err.. it seems to work fine if I remove the and tags. How about that. :-) On 2/24/07, Peter Beshai <[EMAIL PROTECTED]> wrote: I have created a component and when I add it into a page, I want only a specific part of the template to be added, not the whole thing (since it must be a well-formed

T5 equivalent of $content$

2007-02-24 Thread Peter Beshai
I have created a component and when I add it into a page, I want only a specific part of the template to be added, not the whole thing (since it must be a well-formed document..it seems I have to include and what not in the component class). Basically I am looking for the equivalent behaviour of

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread Kalle Korhonen
That's right. I had read somewhere create was default but that's false. It's mostly a Spring/Hibernate issue.. solved with some remarks, read more at http://forum.springframework.org/showthread.php?t=35274. Kalle On 2/24/07, James Carman <[EMAIL PROTECTED]> wrote: Just omit the setting. If h

Re: T4: ContextAsset is unsqueezable, bug?

2007-02-24 Thread Howard Lewis Ship
This is not a bug per-se, it could be an enhancement. There's nothing in the description of ContextAsset to indicate that it is supposed to be serializable and, generally, only serializable objects can be "squeezed" into a URL. It's possible to extend the DataSqueezer, via HiveMind contributions

Re: weird persister not found bug in hibernate introduced by recent-ish snapshot..

2007-02-24 Thread Jesse Kuhnert
I think that's my fault. Should be resolved on the next deploy (today), but the next deploy might break you in other ways as well...(new ognl ) On 2/23/07, Josh Long <[EMAIL PROTECTED]> wrote: Hello list, A long shot... I've run into an issue and I could use some help. I have a hibernate/spri

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread James Carman
Just omit the setting. If hibernate doesn't see hibernate.hbm2ddl.auto, it does nothing. On 2/24/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: In practice, no. I would have to mark a whole bunch of beans as lazy inited, give up on auto wiring etc. But it does help to post your thoughts. I was

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread Kalle Korhonen
In practice, no. I would have to mark a whole bunch of beans as lazy inited, give up on auto wiring etc. But it does help to post your thoughts. I was close before.. I don't see hibernate.hbm2ddl.auto=false documented anywhere (I see one(!) dodgy google result for it), but that works, and then I c

Re: tapestry-spring lazy initialize everything?

2007-02-24 Thread James Carman
Can you just mark your session factory bean as lazy init in your spring application context file? Or, mark the whole xml file as lazy by default? On 2/24/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: Using Tapestry 4.0.2 and this is much more a hivemind question really, but I wonder if anybody