Re: T5: Hibernate and threaded service

2008-02-06 Thread Andy Huhn
Hi Angelo, The MyCreate service creates a new record, but doesn't commit until after MyThread is started. The MyThread service automatically gets a different Hibernate Session, and thus can't see the record that hasn't been committed yet by the other session. I'm not that familiar with MySQL, bu

T5: Hibernate and threaded service

2008-02-06 Thread Angelo Chen
Hi, I have two services, namely MyCreate and MyThread, what they do is: MyCreate will append a new record using Tapestry-Hibernate's session and MyThread will look it up, MyThread is in a thread while MyCreate is not, the problem is, the newly created record can not be located by MyThread, if My

Re: T5: trouble with OrderedConfiguration

2008-02-06 Thread Will Norris
On Feb 6, 2008, at 10:10 PM, Will Norris wrote: If I add the same method (changing the configuration ID slightly), it works just fine. err, that should be... If I add the same method to my application, it works just fine. I only have the problem when contribution is made exclusively fro

T5: trouble with OrderedConfiguration

2008-02-06 Thread Will Norris
I'm running into a problem where I am unable to properly order contributions based on the order in which two modules are loaded. I am using Robin Helgelin's Tapestry5-Acegi along with my own module Tapesty-Shib which adds my own HttpServletRequestHandler. In my module, I have the followin

Re: T5.0.9: Upgrading from 5.0.6 and If-Modified-Since is killing me....

2008-02-06 Thread Howard Lewis Ship
Definately a bug. On Feb 6, 2008 8:05 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm looking at upgrading from 5.0.6 to 5.0.9. The problem is that I'm > getting the old version of tapestry.js every time I load the page. > > I tracked the problem back through the AssetDispatcher, R

T5.0.9: Upgrading from 5.0.6 and If-Modified-Since is killing me....

2008-02-06 Thread Josh Canfield
Hey all, I'm looking at upgrading from 5.0.6 to 5.0.9. The problem is that I'm getting the old version of tapestry.js every time I load the page. I tracked the problem back through the AssetDispatcher, ResourceCacheImpl and finally the URLChangeTracker. It looks like requests coming in for the cs

Re: T5 template selection based on the current request (e.g. request parameters)

2008-02-06 Thread Renat Zubairov
Hello Martin, What isn't clear, is what is the question? If it's how to implement it I guess the post you've already found describes it good enough. Renat On 06/02/2008, Martin Grotzke <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a question concerning the relation between template and page >

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Howard Lewis Ship
The premature optimization was thinking that resolving dependencies once, and storing them in instance variables, was going to be appreciably faster than using static methods. Actually, the real savings was in terms of typing those same parameters and annotations ... and that's gone away with the

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
No need to concern yourself too much about it... use static or instace as you see fit. speed difference is neglible... Davor Hrg On Feb 6, 2008 9:40 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > except for bind() which i

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > except for bind() which is static. Bummer! :-) > Just part of the strategy for deferring, or avoiding, instantiation of > the module class. > > In retrospect, premature optimization. If I were starting that from > scratch, al

Re: question to building own components and passing parameters

2008-02-06 Thread Davor Hrg
your code looks ok, is it possible that any of the alements is actualy null, how does your java code look like currentProduct and getCurrentProduct ans setCurrentProduct ... Davor Hrg On Feb 6, 2008 5:43 PM, T. Papke <[EMAIL PROTECTED]> wrote: > Hello, > > i want just to get the current id of t

T5 template selection based on the current request (e.g. request parameters)

2008-02-06 Thread Martin Grotzke
Hello, I have a question concerning the relation between template and page class, which admittedly has already been raised sometimes :) Especially, the thread "T5: Personalizing page and component template" (http://www.nabble.com/T5%3A-Personalizing-page-and-component-template-td14098291.html) se

Re: Improving Component Reference

2008-02-06 Thread Franz Amador
Better, but the example on the doc for TextField doesn't actually show the form. (Sorry; hope I'm not being a pain. I drive my coworkers nuts, but they love me anyway.) Franz - Original Message From: Howard Lewis Ship <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, February

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Howard Lewis Ship
except for bind() which is static. Just part of the strategy for deferring, or avoiding, instantiation of the module class. In retrospect, premature optimization. If I were starting that from scratch, all the methods on a module class would be static. What you see is that the module may be insta

Re: Improving Component Reference

2008-02-06 Thread Howard Lewis Ship
On Feb 6, 2008 9:39 AM, Franz Amador <[EMAIL PROTECTED]> wrote: > Two minor nits: > > - On the index page, listing every component class as its fully qualified > name makes it hard to read. I agree with the suggestion that the package > name be shown only once and the class names be listed witho

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:08 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > module methods can be both static and instance methods, > you choose ... > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Great! :-) That's very nice. I think the examples should use instance methods then, shouldn't t

[T4] @For produces strange id values

2008-02-06 Thread Richard Hoberman
Hi All I'm trying to use the "index" and "id" attributes of the "For" component to create predictable (parseable) ids. I'm getting the following sequence: item_0, item_0_0, item_1. I was expecting item_0, item_1, item_2, etc. Relevant code below. Am I doing something silly? Richard Hober

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
module methods can be both static and instance methods, you choose ... http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Davor Hrg On 2/6/08, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > > http://wiki.apache.org/tapestry

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly > http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Oh, nice! I had not noticed these. Is there a reason that the Module needs to have a *static* bind(ServiceBinder)?

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Christian Edward Gruber
Kinda liking picocontainer, but tapestry-ioc is becoming my favorite for non-embedded circumstances. christian. On 6-Feb-08, at 13:26 , Hilco Wijbenga wrote: On Feb 5, 2008 2:39 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: Indeed T5's IoC can be used without T5 core, although IMHO you're bet

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 2:39 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: > Indeed T5's IoC can be used without T5 core, although IMHO you're better > of using Google Guice. If you're already familiar with T5 IoC, using Guice > isn't that hard. Yes, I noticed that T5 IoC and Guice are *very* similar. But Gui

Re: Improving Component Reference

2008-02-06 Thread Franz Amador
Two minor nits: - On the index page, listing every component class as its fully qualified name makes it hard to read. I agree with the suggestion that the package name be shown only once and the class names be listed without their package-name prefixes. - The doc for Form says, "Examples of t

[Tapestry 5]-JSCookMenu

2008-02-06 Thread Anteneh Alemayehu
Hi Everyone, Is there any one who use a cool menu in Tapestry 5? Is JSCookMenu can be used for Tapestry 5? If yes, how? Thank you, Anteneh -- View this message in context: http://www.nabble.com/-Tapestry-5--JSCookMenu-tp15307078p15307078.html Sent from the Tapestry - User mailing list archi

Re: Improving Component Reference

2008-02-06 Thread Howard Lewis Ship
On Feb 6, 2008 8:10 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > 2 comments: > - How is the 'introductory text' for each component derived? I'm > asking cause it looks like it > doesn't have any formatting in it... see for instance > http://tapestry.formos.com/nightly/tapestry5/tapestry-core/re

Re: Improving Component Reference

2008-02-06 Thread Howard Lewis Ship
Partly generated right off the JavaDoc, partly generated by hand. The xdoc files contain the examples and notes and are merged into the file generated from the JavaDoc. For most of the examples, I have a side project that I used to write and test the code and from which I generated the screenshot

question to building own components and passing parameters

2008-02-06 Thread T. Papke
Hello, i want just to get the current id of the product from earch row into my own component (carthandler). But i always got a nullpointer because currentProduct ist null? But wuy? CurrentPorduct is not null for the column, where they render the pagelink for productdetailpage? (with "prop:cu

question to building own components and passing parameters

2008-02-06 Thread T. Papke
Hello, i want just to get the current id of the product from earch row into my own component (carthandler). But i always got a nullpointer because currentProduct ist null? But wuy? CurrentPorduct is not null for the column, where they render the pagelink for productdetailpage? (with "prop:cu

Re: Improving Component Reference

2008-02-06 Thread Sven Homburg
+1 2008/2/6, Andreas Andreou <[EMAIL PROTECTED]>: > > 2 comments: > - How is the 'introductory text' for each component derived? I'm > asking cause it looks like it > doesn't have any formatting in it... see for instance > > http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache

Re: Improving Component Reference

2008-02-06 Thread Andreas Andreou
2 comments: - How is the 'introductory text' for each component derived? I'm asking cause it looks like it doesn't have any formatting in it... see for instance http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Palette.html it's very difficult to

Re: Improving Component Reference

2008-02-06 Thread Daniel Jue
Great Job!

Re: Improving Component Reference

2008-02-06 Thread Igor Drobiazko
Looks very, very good. On Feb 5, 2008 5:41 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I've extended the component reference to allow images as part of the > documentation ... so far, its all screen shots. > > http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/index.html > > Fe

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Richard Hoberman
Thanks Jesse. I was looking in the HTTP Protocol and didn't think of checking the Servlet specification. For those who are interested, here it is in 4.1 of version 2.4 of the Java Servlet Specification: SRV.4.1 HTTP Protocol Parameters Request parameters for the servlet are the strings sent b

Re: Default Error/Exception Page

2008-02-06 Thread Howard Lewis Ship
For T4 or for T5? You can override the default ExceptionReport page. In Tapestry 5 you can override the RequestExceptionHandler service to handle request exceptions however you want. On Feb 6, 2008 7:19 AM, Mahen Perera <[EMAIL PROTECTED]> wrote: > Hi all, > > > > I need to get rid of the defaul

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Jesse Kuhnert
Yeah, this is covered by the servlet container implementors. public Object[] HttpServletRequest.getParameterValues(String key) {..} It's how radio groups / multiple select choices / checkboxes all work. On Feb 6, 2008 10:15 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > I dont know definitely on w

Default Error/Exception Page

2008-02-06 Thread Mahen Perera
Hi all, I need to get rid of the default error page (which displays all the details relating to the exception/error) when doing a production release. I like to have a custom error page with a message and the Exception message,,, therefore, I need access to the exception inside this custom page.

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Davor Hrg
I dont know definitely on what the standard is (specialy because browsers choose to implement them how ever they want) but using same name for multiple inputs usualy means array .. php recognizes this if input name edns with "[]" Davor Hrg On Feb 6, 2008 12:27 PM, Richard Hoberman <[EMAIL PROTEC

Re: Improving Component Reference

2008-02-06 Thread Michael Lake
The docs look great! I've been helping people on IRC ( #tapestry @ freenode.net) and at least one user found it extremely helpful when I pointed out the integration test app located in the following folder(to see working examples): tapestry-core/src/test/java/org/apache/tapestry/integration/ap

Re: Improving Component Reference

2008-02-06 Thread Filip S. Adamsen
Fully agree. Thumbs up! -Filip Geoff Callender skrev: Wow! That was so worth doing. Nice work. Geoff On 06/02/2008, at 3:41 AM, Howard Lewis Ship wrote: I've extended the component reference to allow images as part of the documentation ... so far, its all screen shots. http://tapestr

Re: Improving Component Reference

2008-02-06 Thread Geoff Callender
Wow! That was so worth doing. Nice work. Geoff On 06/02/2008, at 3:41 AM, Howard Lewis Ship wrote: I've extended the component reference to allow images as part of the documentation ... so far, its all screen shots. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/index.ht

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Richard Hoberman
Thanks (again), Andreas. You are right and I have found a way that doesn't require using these pairs. I assumed that the POST protocol mandated unique names, but I haven't been able to turn up anything justifying my assumption. Best regards Richard Andreas Andreou wrote: Actually, that's

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Andreas Andreou
Actually, that's the correct behavior... at least that's how it's been since T3! All the For_0 hiddens values are used during rewind and they're expected this way I'm guessing you're trying to do some javascript that relates to those? Do you really need to use those values? I'd prefer not to tie t

[T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Richard Hoberman
Hi All Below is a form snippet followed by the html generated by Tapestry 4.1.5. The LI element ids are sensibly "For_0" through "For_N". The hidden fields corresponding to these items are ALL named "For_0". Surely the appended digit should be incremented so as to correspond with the LI id

Re: Hidden input controls losing their position

2008-02-06 Thread Richard Hoberman
Andreas Andreou wrote: One solution is this: Use one hidden for all the values... Then, in java public String getOrdering() {return null} public void getOrdering(String value) { String[] order = value.split(','); .. } Then have your javascript set that value correctly before submit Tha

Announce new wiki page

2008-02-06 Thread Davor Hrg
Hi, I've created a new example on the wiki http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource2 hope you'll like it :) it is similar to http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource any feedback is welcome :) Davor Hrg -

Re: T5: Custom components are not statefull

2008-02-06 Thread Alexander Lamb
Hello, Indeed, the graph (my component) works fine outside of a loop when I have several of them on a page. The data to display (in that case a TimeSeries for a JFreeChart) is kept in the instance of the component so when the page display, the src value refers to the correct graph and dat

Re: Improving Component Reference

2008-02-06 Thread Davor Hrg
Yes, I saw the issue :) few days ago ... ok The grid docs should mention following caveat: If you have a datasource that is filtered and the size changes with some user action like submitting a search form... having pager set to a some page can brake the grid if number of rows gets smaller an