Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Otho
2009/7/14 Howard Lewis Ship > I am loathe to have the framework manage this automatically because it > causes its own problems. > > For example, it is reasonable to process multiple Ajax requests in > parallel if they only read data. Exactly. Concurrent write access to data should be handled wh

RE: Dynamic service binding based on symbol source

2009-07-14 Thread Alfie Kirkpatrick
Hi Massimo, thanks for the reply. Unfortunately neither of these patterns works for me because they rely on the chained service(s) being instantiated in the normal way, ie. via bind or build. Looking at DefaultModuleDefImpl there doesn't seem any reason in principle why it's too early in the bind(

Re: How do you display a HashMap> in a .tml table

2009-07-14 Thread Igor Drobiazko
Just convert your Map into a GridDataSource which you pass to the component. Take a look at Tapestry's internal implementation of GridDataSource which is constructed from a collection. http://tapestry.formos.com/nightly/tapestry5/apidocs/src-html/org/apache/tapestry5/internal/grid/CollectionGridD

Re: Testify + Testng

2009-07-14 Thread Paul Field
Hi Christian, > It might make sense to have a "hit" annotation for Testify that > follows @Inject which allows the injection to be beforeMethod or > beforeClass. Unfortunately, we can't re-use the jUnit ones because > (if I recall correctly) they are not suitable for Field annotation, > just

Re: Testify + Testng

2009-07-14 Thread Paul Field
> > I have been playing with Testng and the Testify library but i am > > having a small issue. It seems that the injection of services occurs > > after the @BeforeSuite. > > > However, it does seem reasonable to process the @Inject annotations at the > start of the TestNG suite, so the latest Te

How do you display a HashMap> in a .tml table

2009-07-14 Thread cajmrn
Hello all, I am once again stuck and unsure as to how to implement the following. I have a HashMap that contains a String id for the Key and an ArrayList as the value. What I need to do is to display in a table or grid each arrayList as it corresponds to a Key. How would you go about iterating

Re: t5: Using Tapestry5 with JavaFx

2009-07-14 Thread Howard Lewis Ship
Probably not; to Tapestry, JavaFX looks like any other applet however. On Tue, Jul 14, 2009 at 5:07 PM, Angelo Chen wrote: > > Hi, > > anybody has done this? > > Angelo > -- > View this message in context: > http://www.nabble.com/t5%3A-Using-Tapestry5-with-JavaFx-tp24489896p24489896.html > Sent f

Re: T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread kartweel
New thoughts. Could it be the session cookie not being renewed on the browser?. That would also make sense as I set the session timeout to 900 minutes in the web.xml and it didn't make any difference... So yes as you say appears to be a servlet container / browser problem. Thanks! Thiago H. de

t5: Using Tapestry5 with JavaFx

2009-07-14 Thread Angelo Chen
Hi, anybody has done this? Angelo -- View this message in context: http://www.nabble.com/t5%3A-Using-Tapestry5-with-JavaFx-tp24489896p24489896.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsub

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Howard Lewis Ship
On Tue, Jul 14, 2009 at 3:10 AM, kristjankelt wrote: > > Hi, > > > Peter Stavrinides wrote: >> >> Kristjan, as Nille has explained to you that is simply not the case, what >> is happening is multiple requests are being generated when the submit >> button is clicked more than once, each of these Req

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
Hi, Ok, here is a example with a immutable object. http://www.nabble.com/file/p24485700/Person.java Person.java http://www.nabble.com/file/p24485700/NotSafe2.java NotSafe2.java http://www.nabble.com/file/p24485700/NotSafe2.tml NotSafe2.tml You can test how many times you see SAME and how man

Re: How to set a meta header tag in template?

2009-07-14 Thread Markus Joschko
OK. Let's say your template has a corresponding java class Site.java which is a component. This component has a parameter defined like @Parameter(required=false) @Property private Block httpTags; you can use this block in your Site.tml via To pass a block to the Site component you can either de

Re: How to set a meta header tag in template?

2009-07-14 Thread learningtapestry
Markus, Thanks for your response. Could you please provide a small example of how you can pass a block as a parameter into the template? Let's assume the template is Site.tml and the page is NoCachePage.java/NoCachePage.tml. Let's also assume I have the String parameter called "httpMetaTags" defi

Re: Just trying to get an Active Transaction

2009-07-14 Thread newtonik
Thanks, that makes sense. I also actually meant HibernateSessionManager's getSession. Howard Lewis Ship wrote: > > When you @Inject the session, you get a global proxy to the real > per-thread Session, which is created on demand. Using > HSF.getSession() you get the rea per-threadl Hibernate

Re: Just trying to get an Active Transaction

2009-07-14 Thread Howard Lewis Ship
When you @Inject the session, you get a global proxy to the real per-thread Session, which is created on demand. Using HSF.getSession() you get the rea per-threadl Hibernate session. I think the Envers code is written in such a way that it requires the real Session. On Tue, Jul 14, 2009 at 8:48

Re: Just trying to get an Active Transaction

2009-07-14 Thread newtonik
newtonik wrote: > > Hey, > I am trying to do auditing/versioning using the Hibernate > http://www.jboss.org/files/envers/docs/index.html Envers module. I look > around, didn't really see much doc on versioning by tapestry users. > However, I got it work, as in, It automatically saves new revi

Re: T5 SSOs and Hibernate

2009-07-14 Thread Norman Franke
On Jul 13, 2009, at 9:17 PM, Thiago H. de Paula Figueiredo wrote: Em Mon, 13 Jul 2009 20:04:12 -0300, Norman Franke escreveu: I have a Session State Object that will hold some cached values from a database. I was hoping I could just inject Hibernate's Session into the SSO and use that, bu

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread P . Stavrinides
> Multiple threads accessing the same data concurrently => potential > threading issues. Yes its true that multiple requests can occur when referencing a session, so technically there is a thread safety design flaw in the Servlet spec, but an HttpSession is tied to a particular user and browse

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Robert Zeigler
Alfie, actually, many people have done just that. And for the record, Kristjan is right in that this is very much a threading issue. Multiple threads accessing the same data concurrently => potential threading issues. In the case of non-persisted field and values on a page, you don't have th

Re: t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Jul 2009 10:19:49 -0300, Newham, Cameron escreveu: If I don't include: org.apache.tapestry tapestry-ioc ${tapestry-release-version} In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which always downloads the 5.0

Re: T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Jul 2009 04:44:40 -0300, kartweel escreveu: Hi, Hi! I'm scratching my head a bit with my "user" object expiring in the session. I'm using the dispatcher method for setting up access control as in the wiki ( http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 )

RE: t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Newham, Cameron
Thanks Otho, but I'm still having no luck. Ok, I haven't been keeping up with events and didn't know 5 was the latest, so now I have 5.1.0.5, but... If I don't include: org.apache.tapestry tapestry-ioc ${tapestry-release-version} In the

Just trying to get an Active Transaction

2009-07-14 Thread newtonik
Hey, I am trying to do auditing/versioning using the Hibernate http://www.jboss.org/files/envers/docs/index.html Envers module. I look around, didn't really see much doc on versioning by tapestry users. However, I got it work, as in, It automatically saves new revisions if I ask it to. However,

RE: T5 Page field persistance and multithread problems

2009-07-14 Thread Alfie Kirkpatrick
Hi Kristjan, I think your mail is interesting but tend to agree with the other posters who say this is not a Tapestry issue per se. I do not know of any framework that queues up requests from a particular session to ensure they are not executed in parallel. This would seem to be a bad idea in prin

Re: Dynamic service binding based on symbol source

2009-07-14 Thread Massimo Lusetti
On Tue, Jul 14, 2009 at 2:43 PM, Alfie Kirkpatrick wrote: > I would like to instantiate a different service implementation depending > on property file configuration, eg. a stub for testing and a real > service for deployments. I'd like to put the FQN in my property file > which is then wrapped i

Dynamic service binding based on symbol source

2009-07-14 Thread Alfie Kirkpatrick
Hi, am trying to do something similar to that outlined in this thread... http://markmail.org/thread/55zw3cg6n7zbfehn, but there was no firm conclusion to it I can see. I would like to instantiate a different service implementation depending on property file configuration, eg. a stub for testing

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-14 Thread P . Stavrinides
Hi Christian, > Not off-hand, but maybe try doing a "mvn help:effective-pom" to see > what the underlying system is interpreting about your pom setup. That is what I have included in my previous post > Frankly, I'm confused. So am I, what happens in your workspace when you create an .xml resour

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
Hi, Otho wrote: > > Thatswhy you normally use a transactional storage for entity beans. > My mistake that I mentioned word "entity". Well, I actually meant any bean as example of immutable object. Because there may be cases when I want to hold persisting into database until I have all the r

Re: t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Otho
Why don't you update to the official final version 5.1.0.5? @Inject is in org.apache.tapestry5.ioc.annotations definitely but in the maven artifact tapestry5-annotations which should be automatically included from tapestry5-core 2009/7/14 Newham, Cameron > I think I'm going mad... > > > > I'm

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-14 Thread Christian Gruber
Not off-hand, but maybe try doing a "mvn help:effective-pom" to see what the underlying system is interpreting about your pom setup. You might then be able to see if there is some sort of exclusion going on or something. Frankly, I'm confused. Christian. On Jul 14, 2009, at 3:06 AM, p.st

Re: Removing SSO after successfull submit

2009-07-14 Thread jose luis sanchez
Ups .-.. thanks .. i might need to re-read the documentation again :) From the docs: Assigning a value to an SSO field will store that value. Assigning null to an SSO field will remove the SSO (reading the field subsequently will force a new SSO instance to be created). Uli On 14.07.2009 1

Re: Removing SSO after successfull submit

2009-07-14 Thread Ulrich Stärk
From the docs: Assigning a value to an SSO field will store that value. Assigning null to an SSO field will remove the SSO (reading the field subsequently will force a new SSO instance to be created). Uli On 14.07.2009 13:21 schrieb jose luis sanchez: Hello. I'm using a Session Object to st

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Otho
Thatswhy you normally use a transactional storage for entity beans. Your case is working on the weaknesses of the http protocol which is inherently stateless. 2009/7/14 kristjankelt > > Hi, > > > Peter Stavrinides wrote: > > > > Kristjan, as Nille has explained to you that is simply not the case

Removing SSO after successfull submit

2009-07-14 Thread jose luis sanchez
Hello. I'm using a Session Object to store the data in a multipage creation wizard. After the last screen, th3e object is persisted in database, so i no longer need it. The problem arises when i hit again the "add new object" button, and the fields keep the previous data ... because the SSO

Re: weird error when passing select's model a list of hibernate entities

2009-07-14 Thread Ulrich Stärk
I'm sorry. I accidentally mapped the Documents inside Project as a Set, not a List. And since there is no coercion from Set to SelectModel I got this error. There could however be a more informative error message. Uli On 14.07.2009 11:34 schrieb Ulrich Stärk: I think I ran into some class load

Re: [Announce] ioko-tapestry-commons 1.3

2009-07-14 Thread Massimo Lusetti
On Tue, Jul 14, 2009 at 12:08 PM, Ben Gidley wrote: > ioko-tapestry-commons 1.3 has now been released - this adds That's nice... really nice to read! Regards -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: use

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
Hi, Peter Stavrinides wrote: > > Kristjan, as Nille has explained to you that is simply not the case, what > is happening is multiple requests are being generated when the submit > button is clicked more than once, each of these Requests spawns a new > thread, and triggers the events that modif

[Announce] ioko-tapestry-commons 1.3

2009-07-14 Thread Ben Gidley
ioko-tapestry-commons 1.3 has now been released - this adds - tapestry-javascript - provides an easy contribution point to register site wide javascript - tapestry-jquery - simply add this as a project dependency to get jquery site wide - tapestry-mixins - 3 mixins to disable sortin

Re: TextField component and body background attachement

2009-07-14 Thread shymon
Ok, to exclude influence of some other components I'm using in project, I have created new project using Tapestry 5 Quickstart Archetype (5.1.0.5) and put long placeholder text in Index.tml. In internet explorer background was scrolled _with_ the rest of content. So then I added following code t

Re: How to inform a user that a form is submitted?

2009-07-14 Thread Onno Scheffers
> Okay, but when I submit the form a second time, the user will see the > same view as before. After both submits the user will see the "Your > query was submitted"-box. So after the first submit he will see a change > on the page, but not after the second submit. Only if there was an actual chan

RE: Multiple submit button and client validations

2009-07-14 Thread Newham, Cameron
I had a dropdown box that in turn changed another field but this wouldn't work if the user left a text field blank. As I only needed the validation to occur when they did the final submit for the page, I used Javascript to perform the submit from the drop-down which gets around the client-side vali

weird error when passing select's model a list of hibernate entities

2009-07-14 Thread Ulrich Stärk
I think I ran into some class loader problem. I've got a hibernate managed entity Project that has a list of Documents. In a select component I want to choose one of the Documents. Unfortunately when trying to view the corresponding page, I get below exception (IllegalArgumentException: object is

t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Newham, Cameron
I think I'm going mad... I'm moving from 5.0.18 to 5.1.0.4 and after doing a dependency update with Maven, Eclipse gives me errors saying it can't find org.apache.tapestry5.ioc.annotations.Inject Looking in tapestry-ioc-5.1.0.4.jar it isn't there, but looking in the 5.0.18 jar I can't s

Re: How to inform a user that a form is submitted?

2009-07-14 Thread Stephan Windmüller
Onno Scheffers wrote: >> Another idea is displaying a "Your query was submitted"-box in top of >> the form, but after the second submit the effect would be the same: none. > What about using a FLASH-persisted boolean flag that is set to true when > your submit-handler detect a change and updates t

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Peter Stavrinides
Kristjan, as Nille has explained to you that is simply not the case, what is happening is multiple requests are being generated when the submit button is clicked more than once, each of these Requests spawns a new thread, and triggers the events that modify the affected values accordingly. Pers

Re: T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread Massimo Lusetti
Have a look at chenillekit-access source code, there could be hints for you. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h.

Re: How to inform a user that a form is submitted?

2009-07-14 Thread jose luis sanchez
I can only think of one way of doing this : You should have two buttons, a 'submit button' one, and a 'confirm button'. Everytime you hit the submit button, the form should be saved, to a SessionState object and return TO THE SAME page. Then, on second page refresh ( after the hit button ),

Re: How to inform a user that a form is submitted?

2009-07-14 Thread Onno Scheffers
> But when he clicks on the submit button, there is no visual response > that the submit happened. What I would expect is that the page blanks > and rebuilds after the submit is done. > > Another idea is displaying a "Your query was submitted"-box in top of > the form, but after the second submit t

Multiple submit button and client validations

2009-07-14 Thread jose luis sanchez
Hi all. I have a form with two grid components inside. i fill every grid with data input from several textfields, using its own submit button. Name Surname [ GRID ] CarPlate CarName [ GRID ] Every field has required validation constraints, and this is the problem. When i hit whichever '

Re: Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
Hi, I think that this is definitelly thread issue because data is shared between multiple threads. Even when every page instance would have it's own *copy* of the data, it is still shared between multiple instances at the end. Of cource yes - every page will run in it's own thread but this does

How to inform a user that a form is submitted?

2009-07-14 Thread Stephan Windmüller
Hello! On a page I have a form which I want to redisplay after it has been submitted. The user should be able to change/submit it many times until he is satisfied with the result. But when he clicks on the submit button, there is no visual response that the submit happened. What I would expect is

Re: Problems deploying tapestry App in Tomcat 5.x/6.x

2009-07-14 Thread jose luis sanchez
Yes, that was the problem !! Thanks .. now, i have excluded the javassist that chenillekit depends on .. and old one, and everything looks and works ok :-) Maybe you have dublicate javassist jar in your classpath. - To u

T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread kartweel
Hi, I'm scratching my head a bit with my "user" object expiring in the session. I'm using the dispatcher method for setting up access control as in the wiki ( http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 ). Now everything is working great except that after around the 20 minute

Re: authentication: remember me feature

2009-07-14 Thread Massimo Lusetti
On Mon, Jul 13, 2009 at 7:15 PM, Sergey Didenko wrote: > Is it true that the only ways to have "remember me" feature for > authentication are > > 1) to use spring security > 2) to implement it manually (and call it in Dispatcher or RequestFilter) > > As I understand chenillekit-access does not sup

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-14 Thread P . Stavrinides
Hi Christian, I have a very simple setup, I don't do anything unusual in my POM If I rename the file to use another extension it magically appears and gets copied. The maven resource filtering mechanism doesn't seem to work correctly, it just ignore xml files. I also did a test to copy the