Re: is there a way to programatically add the declaration of a components library ?

2007-02-21 Thread Tapestry User List
ok kiuma, I will have a look. Thanks. D. 2007/2/20, Andrea Chiumenti <[EMAIL PROTECTED]>: Ok I think that what you need is here www.jfly.org. ciao, kiuma On 2/20/07, Tapestry User List <[EMAIL PROTECTED]> wrote: > > Let me explain why I need that: > I'm developing web application with the noti

Where am I going wrong ?

2007-02-21 Thread Peter Stavrinides
In Web.xml I have defined an initialization parameter, IRM org.apache.tapestry.ApplicationServlet 1 myParam 777 I tried to get to it with the following: @InjectObject("service:tapestry.globals.ServletContext") public abstract ServletContext getServletContext(); get

Re: Record locking

2007-02-21 Thread Robert Zeigler
The main problem with using a session timeout for the lock is that it doesn't allow you to detect events where a user starts to edit an object, does not finish, but remains active in the webapp; the session won't die, and neither will your lock. You have to incorporate time at least to some

Re: Record locking

2007-02-21 Thread Peter Stavrinides
Hi Robert I like your idea, "you say that periodic ajax calls are sent to the server to inform of the fact that the user is still editing" how exactly do you track if a user is still editing? Robert Zeigler wrote: The main problem with using a session timeout for the lock is that it doesn't

Programmatic DirectLink with updateComponents and parameter

2007-02-21 Thread Andreas Pardeike
Hi, I've seen some examples on how to generate a DirectLink programmatic but so far, I couldn't get it to work. Especially because I need it to update a component via ajax. Quick overview: I parse external static html text with fake links and replace those links with the correct versions. One

Re: New line in properties file

2007-02-21 Thread Shing Hing Man
A backslash \ ? Shing --- Peter Dawn <[EMAIL PROTECTED]> wrote: > guys, > > within my properties file, there is certain text > which i want to flow > over onto multiple lines. so how can i specify a new > line (aka enter) > within the properties file, so that the text breaks > up there and > s

Re: Record locking

2007-02-21 Thread Robert Zeigler
In my case, it was straightforward: the user is considered to be "still editing" if they have a browser window open to the edit page for the object in question; if they navigate away from that page, the system considers their edit session over. Robert On Feb 21, 2007, at 2/212:47 AM , Pet

Tapestry 5 NPE in PageTester

2007-02-21 Thread Matt Ayres
I'm running into a NullPointerException in PageTester if a element exists in the page template. Here's a snippet of the stack trace: Exception in thread "main" java.lang.NullPointerException at $Request_110d9536317.getContextPath($Request_110d9536317.java) at $Request_110d95362e3.getContextPath($

Re: Record locking

2007-02-21 Thread Andrea Chiumenti
... But if the browser dies for some reason (very frequent especially with MS products), then the record will remain locked, the only possibility with this solution would be to add a locking timeout with application scope. On 2/21/07, Robert Zeigler <[EMAIL PROTECTED]> wrote: In my case, it was

Re: Where am I going wrong ?

2007-02-21 Thread Shing Hing Man
Try removing in org.apache.tapestry.ApplicationServlet 1 myParam 777 And add the following to Web.xml. myParam Shing --- Peter Stavrinides <[EMAIL PROTECTED]> wrote: > In Web.xml I have defined an initialization > parameter, > > > IRM >

Re: Where am I going wrong ?

2007-02-21 Thread Peter Stavrinides
Brilliant... thanks Shing! Shing Hing Man wrote: Try removing in org.apache.tapestry.ApplicationServlet 1 myParam 777 And add the following to Web.xml. myParam Shing --- Peter Stavrinides <[EMAIL PROTECTED]> wrote: In Web.xml I have de

T5 BeanEditForm screencast

2007-02-21 Thread Jiri Mares
Hi Howard, T5 looks very good. I would like to ask about the screencast #4 where you presented BeanEditForm component. For validation there is the annotation, which causes me problems. I don't want to annotade my business objects with tapestry annotation (they start to depend on tapestry). At

Re: Record locking

2007-02-21 Thread James Carman
If the browser dies, then the session will timeout. The record will not stay locked (if you just keep an in-memory record of who is editing what). You could use a "do you want to save your changes" notification (a la GMail and others) to either save the data or send a request to clear the lock w

Re: Record locking

2007-02-21 Thread Robert Zeigler
Actually, no, if the browser dies, the record won't stay locked. The updating happens from the edit page; if the browser crashes, there's no edit page, so no updating, so the lock expires. Cheers, Robert On Feb 21, 2007, at 2/214:03 AM , Andrea Chiumenti wrote: ... But if the browser dies f

Re: Record locking

2007-02-21 Thread Robert Zeigler
To clarify, by "updating" I'm referring to the ajax notifications that the user is still editing the object. Robert On Feb 21, 2007, at 2/215:50 AM , Robert Zeigler wrote: Actually, no, if the browser dies, the record won't stay locked. The updating happens from the edit page; if the browser

Re: Record locking

2007-02-21 Thread Andrea Chiumenti
But session is user specific and you want to lock the record accross the application, how whould you do this ? On 2/21/07, Robert Zeigler <[EMAIL PROTECTED]> wrote: Actually, no, if the browser dies, the record won't stay locked. The updating happens from the edit page; if the browser crashes,

OT: sourceforge svn browse

2007-02-21 Thread Andrea Chiumenti
Hello, I'm currently in a condition where I'm not able to get files from the sf.ne svn of my project. Is any tools out there that can download files from svn browse of sf.net ? kiuma

Problem with including static javascript file

2007-02-21 Thread Kristian Marinkovic
hi all, i'm not able to include a static javascript file into my page. could someone point me the right way how can i include a static javascript file into my page when using the @Body and @Shell component? thats what i have so far: .script file located at WEB-INF/web:

Re: Record locking

2007-02-21 Thread Peter Stavrinides
Andrea, You can do this If you create a state object that has an application scope... you can wire your session listener to it to add and remove the session id's. Andrea Chiumenti wrote: But session is user specific and you want to lock the record accross the application, how whould you do

Re: Record locking

2007-02-21 Thread Andrea Chiumenti
nice to know ;) On 2/21/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: Andrea, You can do this If you create a state object that has an application scope... you can wire your session listener to it to add and remove the session id's. Andrea Chiumenti wrote: > But session is user specific a

Re: [WARNING] ASO auto-startup (Tap 4)

2007-02-21 Thread Renat Zubairov
You can also consider registeing tapestry ApplicationInitializer See hivemodule of the tapestry.init http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.init.ApplicationInitializers.html http://tapestry.apache.org/tapestry4/tapestry/hivedocs/module/tapestry.init.html On 21/

Re: Problem with including static javascript file

2007-02-21 Thread Kristian Marinkovic
ok sometimes you just need to leave your computer for a while the easiest way to use is to put the static .js file into the classpath, lets say "/common/js". The resource-path attribute then requires an ABSOLUTE classpath to this resource, like"/common/js/static.js". if the .script is locate

Re: Record locking

2007-02-21 Thread James Carman
You use the session id so that you don't maintain the reference to the actual session. When the session listener sees that the session dies, he removes all object locks for that session. Now, this still doesn't solve the problem of one user opening multiple windows and trying to edit the same ob

client side interception of responce to 'updateComponent()'

2007-02-21 Thread Alexander Haritonov
i'd like to trigger a javascript-function after a Tapestry-component is updated with 'cycle.getResponseBuilder().updateComponent()' Does somebody know, how one can do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

State Application Object ( Session ) from constructor method

2007-02-21 Thread Bruno Mignoni
I am use Tapestry 4.02 and Tomcat 5. How access a state Application Object ( Session ) from de constructor method? package com.unicred.tapestry.ib.pages; import java.sql.SQLException; import org.apache.tapestry.annotations.InjectState; import com.unicred.tapestry.ib.InternetBankingBasePage; i

Using EventListener to submit unknown form

2007-02-21 Thread Daniel Tabuenca
I have a component that is meant to be used inside a form. I would like to have an eventListener that submits the enclosing form but I have no way of knowing what the name of the form component will be. Is there any way to have eventListener submit the enclosing form rather than specifying a form

tapestry-simple Archetype

2007-02-21 Thread Borut Bolčina
Hello, I think there is an error in creating package names in this archetype. When running mvn archetype:create -DarchetypeGroupId=org.apache.tapestry-DarchetypeArtifactId=tapestry-simple -DarchetypeVersion= 5.0.1 -DgroupId=*org.example* -DartifactId=*myapp* -DpackageName=* org.example.myapp* -D

Re: tapestry-simple Archetype

2007-02-21 Thread Howard Lewis Ship
Could you carefully double check this. I haven't tried this using the maven plugin (in fact, I'm using 0.0.9 which may not even have that feature). I've tested this from the command line. On 2/21/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Hello, I think there is an error in creating packa

Re: My crap development environment

2007-02-21 Thread Richard Clark
Nobody asked one of the more obvious questions: How much free RAM do you have? How full and/or fragmented is your drive? Heavy and/or ineffcient swapping could also slow you down. (Also, what kind of machine? Some Java implementations are faster than others.) ...R On 2/14/07, Murray Collingwo

Re: State Application Object ( Session ) from constructor method

2007-02-21 Thread Howard Lewis Ship
You can't. The page is not fully "baked" at the time the constructor is invoked. What you want is a PageLoadListener. Just implement the interface and the pageDidLoad() method and Tapestry will invoke it. That's where you can do the initialization you want. On 2/21/07, Bruno Mignoni <[EMAIL P

Re: T5 BeanEditForm screencast

2007-02-21 Thread Howard Lewis Ship
The code that builds up the field validation is pluggable; originally I was thinking in terms of Hibernate/EJB3 annotations, but it should be reasonble to handle all kinds of approaches. This part of the code and design is still very alpha (in flux). On 2/21/07, Jiri Mares <[EMAIL PROTECTED]> wr

Re: Tapestry 5 NPE in PageTester

2007-02-21 Thread Howard Lewis Ship
Nope, you tend to backtrack to the chunk of code that dynamically built the Javassist class. Here, I'd start looking at line 78 and see what's going on there. On 2/21/07, Matt Ayres <[EMAIL PROTECTED]> wrote: I'm running into a NullPointerException in PageTester if a element exists in the page

Re: [WARNING] Tap 5 redirect after onActivate

2007-02-21 Thread Howard Lewis Ship
Just checked in the changes to SVN. On 2/20/07, bueggers <[EMAIL PROTECTED]> wrote: ok, thanks Howard Lewis Ship wrote: > > Your snippet is what I have in mind, but I haven't had a chance to > implement it, yet. > > I suspect a 5.0.2 is around the corner, but I'm fighting some fires right > n

Re: Tapestry 5 NPE in PageTester

2007-02-21 Thread Howard Lewis Ship
Oh, and from memory, I'm guessing this has something to do with the code that adds the default Tapstry stylesheet to rendered pages. On 2/21/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Nope, you tend to backtrack to the chunk of code that dynamically built the Javassist class. Here, I'd st

Putting hivemind configuration files outside the WAR

2007-02-21 Thread Tapestry User List
Hi, I have configuration data (hivemind.xml) which may change reasonably often, and which I'd like to be able to change without rebuilding the war file. What's the best way to make this available to HiveMind in Tapestry? Is there a easy way to do that or do I have to subclass ApplicationServlet

Re: My crap development environment

2007-02-21 Thread Markus Eberle
hi, as you are using windows, there are some new options what can slow down your system. We have expirience such slow downs, when using tortoisesvn and an on-access virus-scanner. It is always a good thing trying to disable these scanners if there are performance issues with saving files. Cheers,

Foreach, iterate over several collections at once

2007-02-21 Thread Darío Vasconcelos
Hi, I'm trying to solve a problem that might be trivial in JSP, but I can't find a way to do it in Tapestry without some collection munching in Java. My problem is that I have three ArrayLists that hold very similar information, and need to be displayed inside the same table. To explain this bet

RE: Foreach, iterate over several collections at once

2007-02-21 Thread Mark Stang
Hi, The Foreach can call your class with the "current" index and set it. The "getters" use that value to return the "current" value for each list. HTH, Mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From:

Re: Foreach, iterate over several collections at once

2007-02-21 Thread Darío Vasconcelos
Sorry Mark, I didn't quite understand what you're saying, although it sounds very interesting. I can't imagine how I could make Foreach update the current value for each list, using only one Foreach. Or could I use nested Foreachs? If you would be so kind as to give me a small example, I would be

Re: tapestry-simple Archetype

2007-02-21 Thread Borut Bolčina
Here is a 3.7 MB screencast on a slow connection http://svarog.homeip.net/screencast/archetype.avi 2007/2/21, Howard Lewis Ship <[EMAIL PROTECTED]>: Could you carefully double check this. I haven't tried this using the maven plugin (in fact, I'm using 0.0.9 which may not even have that featur

RE: Foreach, iterate over several collections at once

2007-02-21 Thread Mark Stang
Dario, The Foreach component T3.x, which I presume you are using (If you are not,check the components for your version), contains a parameter named "index". index int out no Used to store the index of the current value within the stream of elements provided by the source p

Re: Foreach, iterate over several collections at once

2007-02-21 Thread Darío Vasconcelos
Wow! OK, now I get it. Yes, I'm using T3.x. I never thought about that use for the index parameter, I had used only to display the current row's number. Your solution is very attractive because it will be trivial to add new columns to the table in case I need to, which was a major problem with th

Re: State Application Object ( Session ) from constructor method

2007-02-21 Thread Bruno Mignoni
Tks. It´s a live. ;-) On 2/21/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: You can't. The page is not fully "baked" at the time the constructor is invoked. What you want is a PageLoadListener. Just implement the interface and the pageDidLoad() method and Tapestry will invoke it. That'

Re: tapestry-simple Archetype

2007-02-21 Thread Howard Lewis Ship
Well, I didn't have the right codec on my Mac, so all I get is the sound of keys clicking! Here I tried it at the command line: $ mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=tapestry-simple -DarchetypeVersion=5.0.1 -DgroupId=org.example -DartifactId=itworks

Re: Problem with Number Translator in Tapestry 4.1.2 Snapshot

2007-02-21 Thread Julian Wood
I've just updated an app from 4.0.2 to 4.1.2-SNAPSHOT, current as of Feb 23rd, and can confirm that this is still a problem. Previously (in 4.0.2) if you left a text field (say it was a score) empty, the field would take on the value of 0 (can't imagine why you would ever want this, but tha

Re: T5 BeanEditForm screencast

2007-02-21 Thread Jiri Mares
Very good design ... Howard Lewis Ship napsal(a): > The code that builds up the field validation is pluggable; originally > I was thinking in terms of Hibernate/EJB3 annotations, but it should > be reasonble to handle all kinds of approaches. This part of the code > and design is still very alph

Request character encoding

2007-02-21 Thread wong wayne
Dear all I'm developing a system with multi-languages using Tapestry 4.0. Checked with official web, default http request would be UTF-8 but I found some problem when Simplified Chinese input. All the data changed into ???. Below are my coding and configuration. application file: meta key="org.ap

Re: tapestry-simple Archetype

2007-02-21 Thread Borut Bolčina
Hello, this is my console output C:\Documents and Settings\Borut\Desktop\work>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArti factId=tapestry-simple -DarchetypeVersion=5.0.1 -DgroupId=org.example-DartifactId=myapp -DpackageName= org.example.myapp -Dversion=1.0.0-SNAPS