Re: Problems with Tapestry 5 and JBoss

2007-02-22 Thread Howard Lewis Ship
Have you tried building lastest from SVN? I was able to get things working locally (Mac OS X, JBoss 4.0.5). The solution I came up with is documented at the tapestry5 site: use Maven to package your classes into an additional jar in WEB-INF/lib. On 2/22/07, Aslak Gronflaten <[EMAIL PROTECTED]

Re: Problems with Tapestry 5 and JBoss

2007-02-22 Thread Aslak Gronflaten
Hi again, I tried hacking around in the tapestry code, replacing the part that dynamically finds the page classes with some hardcoding, to see if that would help, but alas, it just brings me to the next error, which is the following: java.lang.RuntimeException: No object of type org.apache.tapes

Autocompleter Questions

2007-02-22 Thread Chris Chiappone
I am trying to get the autocompleter component to work with tap 4.1.1 I used to have tacos:Autocompleter working and wanted to replace it with the new default component. I am not getting any exceptions but there are no values in my drop down. Here is my page class and html public IAutoc

Re: T5 Grid with interfaces as source

2007-02-22 Thread Howard Lewis Ship
I've found a bug. One thing I can't work around: for interfaces, Javassist can't find a line number, so you'll want to @Order the properties to keep them from just coming out in alphbetical order. On 2/22/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: I'll create a test case around this examp

Re: T5 Grid with interfaces as source

2007-02-22 Thread Howard Lewis Ship
I'll create a test case around this example and check it out. On 2/22/07, Peter Beshai <[EMAIL PROTECTED]> wrote: Thanks for the fast reply... I tried it out, but I got a NullPointerException: java.lang.NullPointerException Stack trace - org.apache.tapestry.internal.TapestryUtils.computeDep

Re: Tapestry 4.1.2: (server side) Input Validation has no effect

2007-02-22 Thread andyhot
http://tapestry.apache.org/tapestry4.1/components/form/form.html Notice the difference between the success and the listener parameter. When using listener, you have to manually check for validation errors... ... by getting the form's delegate and checking it for errors http://tapestry.apache.org/

T4: ContextAsset is unsqueezable, bug?

2007-02-22 Thread Jean-Philippe Bouchard
Hi, I have a component which iterates over an array of context assets (images) using the "For" component. This component works fine, except when put it in a form. In a form, it fails with "java.lang.IllegalArgumentException: Could not find a strategy instance for class org.apache.tapestry.a

Re: Trying to upgrade from 4.02 to 4.1.1

2007-02-22 Thread Chris Chiappone
Nevermind, missed a dependency... On 2/22/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I am trying to upgrade my Tapestry from 4.02 to 4.1.1 but get the following exception: 14:19:01.525 WARN!! [SocketListener0-1] org.apache.tapestry.error.RequestExceptionReporterImpl.reportRequestException(R

Trying to upgrade from 4.02 to 4.1.1

2007-02-22 Thread Chris Chiappone
I am trying to upgrade my Tapestry from 4.02 to 4.1.1 but get the following exception: 14:19:01.525 WARN!! [SocketListener0-1] org.apache.tapestry.error.RequestExceptionReporterImpl.reportRequestException(RequestExceptionReporterImpl.java:45) 50> Unable to present exception p age: Unable to con

Re: T5 Grid with interfaces as source

2007-02-22 Thread Peter Beshai
Thanks for the fast reply... I tried it out, but I got a NullPointerException: java.lang.NullPointerException Stack trace - org.apache.tapestry.internal.TapestryUtils.computeDepth( TapestryUtils.java:375) - org.apache.tapestry.internal.TapestryUtils.orderProperties( TapestryUtils.java:35

Re: T5 BeanEditForm screencast

2007-02-22 Thread Howard Lewis Ship
I think good design is sometimes about knowing what you DO know, and knowing what you DON'T know, and negotiating between the two. On 2/21/07, Jiri Mares <[EMAIL PROTECTED]> wrote: Very good design ... Howard Lewis Ship napsal(a): > The code that builds up the field validation is pluggable; or

Re: tapestry-simple Archetype

2007-02-22 Thread Howard Lewis Ship
Yes, this is seriously looking like a Maven bug. On 2/21/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Hello, this is my console output C:\Documents and Settings\Borut\Desktop\work>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArti factId=tapestry-simple -DarchetypeVers

Re: T5: Howto add additional packages with components

2007-02-22 Thread Howard Lewis Ship
Contribute to the tapestry.ComponentClassResolver service's configuration. The contribution for the core library is: public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMapping("core", "org.apache.tapestry.corelib")); }

Re: T5 Grid with interfaces as source

2007-02-22 Thread Howard Lewis Ship
@Inject private BeanModelSource _modelSource; @Inject private ComponentResources _resources; public BeanModel getModelForGrid() { return _modelSource.create(MyInterface.class, false, _resources); } ... and bind the Grid's model parameter to the modelForGrid property. On 2/22/07, Peter Beshai

T5 Grid with interfaces as source

2007-02-22 Thread Peter Beshai
I am running into difficulty getting Grid to work with my data. I have a collection of MyInterface which is filled with objects of MyInterfaceImpl. The problem is that MyInterfaceImpl is package-private, which causes PropertyConduit to throw an exception:: java.lang.IllegalAccessError tried to ac

T5: Howto add additional packages with components

2007-02-22 Thread Dennis Kempin
Hello, I want to make a bunch of components available to my application, but these are not inside the [root].components package. How can i add additonal packages to the search path for components? thanks, Dennis - To unsubscri

Tapestry 4.1.2: (server side) Input Validation has no effect

2007-02-22 Thread Andy
I am trying to use Input Validation with tapestry-4.1.2-SNAPSHOT. I don't know what I am doing wrong. Validation has simply no effect, in the TextField for the email address I can enter anything or nothing... The Form component, defined in the page class. As you can see I don't have client

Re: DateFormat in contrib:table

2007-02-22 Thread Daniel Jue
Here is the link. http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.html It worked great for me. On 2/22/07, Michael Siebert <[EMAIL PROTECTED]> wrote: Hi All, I want to format the date values in a contrib:table colum. The actual output is "-mm-dd" and I want to

Re: DateFormat in contrib:table

2007-02-22 Thread Daniel Jue
I have code that can do this, but it is pretty involved. You may want to look at the Tapestry Tables demo war file. It has a tutorial page that uses a custom column, with it's own column comparator. In my code I have a backend 2d array of the data in it's raw format. (usually string and doubles)

AW: German validator Messages not UTF-8?

2007-02-22 Thread Maximilian Weissboeck
Message comes from Tapestry minLength validator. It's the built in message from the validator. They are not UTF-8, at least I think so. All our own messages are UTF-8 encoded and display correctly. > -Ursprüngliche Nachricht- > Von: Peter Schröder [mailto:[EMAIL PROTECTED] > Gesendet:

RE: User submit confirmation

2007-02-22 Thread Kristian Marinkovic
hi marcos, in case you use the EventListener with the elements attribute (dom nodes) kind of [EMAIL PROTECTED](events={"onclick"},elements="domNode") you can see that the dom node has an event listener attached for "onclick". using dojo it is possible to add a function to this dom node that gets

User submit confirmation

2007-02-22 Thread Marcos Chicote
Hi! I'm using Tapestry 4.1 and I can't get a async form submit to work as I would like. What I want is that when the user clicks on the submit button a javascript confirm window pops up and the user confirms his decision to submit the form or not. If he clicks the "Cancel" button I don't want any

Re: OutOfMemoryError after serving N pages

2007-02-22 Thread James Carman
Are you disabling page/component class caching? Of course, I think that causes the permgen stuff as mentioned before, but it may be part of your problem. On 2/22/07, Joe Trewin <[EMAIL PROTECTED]> wrote: If you're using Tomcat and have access to the startup scripts, I'd suggest turning on JMX s

RE: OutOfMemoryError after serving N pages

2007-02-22 Thread Joe Trewin
If you're using Tomcat and have access to the startup scripts, I'd suggest turning on JMX so that you can have a look inside the memory heaps using jconsole. To do this add a line to tomcat/bin/startup.sh just before the exec at the end: export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.

RE: OutOfMemoryError after serving N pages

2007-02-22 Thread Thomas.Vaughan
Yeah, that is more sinister. Try dropping a lambdaprobe.war in your container and watching what happens to your app as you serve up N pages. It isn't as detailed as JProbe or anything like that, but you'll be up and running in 5 minutes and it may give you a better overview of your runtime enviro

Re: OutOfMemoryError after serving N pages

2007-02-22 Thread Arjan Verstoep
[EMAIL PROTECTED] wrote: We had the same thing, and in our case it was related to a small PermGen Space setting in our Tomcat container. My understanding of the Sun JVM is that it partitions up its allocated memory into heap, perm gen, etc. chunks and that the Perm Gen space is where all "meta d

RE: OutOfMemoryError after serving N pages

2007-02-22 Thread Thomas.Vaughan
We had the same thing, and in our case it was related to a small PermGen Space setting in our Tomcat container. My understanding of the Sun JVM is that it partitions up its allocated memory into heap, perm gen, etc. chunks and that the Perm Gen space is where all "meta data" about classes gets sto

AW: German validator Messages not UTF-8?

2007-02-22 Thread Peter Schröder
where do your messages come from? within the java code? -Ursprüngliche Nachricht- Von: Maximilian Weissboeck [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Februar 2007 18:38 An: tapestry-user@jakarta.apache.org Betreff: German validator Messages not UTF-8? Tapestry 4.1.1 It seems l

Re: Bug using multiple "parent" components

2007-02-22 Thread Dennis Kempin
I made some more debugging.. The element is added to the end of the template instead, using addToBody: Dennis Kempin wrote: > Hi, > > I want to create a component that wraps all page common html layout into > one template. Just like this: > > RootComponent: > ... > >

OutOfMemoryError after serving N pages

2007-02-22 Thread Arjan Verstoep
Hi, I'm building an application with the Tapestry 4.0.2 framework, which manages my music-collection. I'm getting OutOfMemoryErrors since I've created a small ajax-ish component that refreshes every 10 seconds to show the song that is currently playing. A piece of javascript gets the Tapestry

Re: Antwort: client side interception of responce to 'updateComponent()'

2007-02-22 Thread Alexander Haritonov
thank you very much :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Bug using multiple "parent" components

2007-02-22 Thread Dennis Kempin
Hi, I want to create a component that wraps all page common html layout into one template. Just like this: RootComponent: ... ... TestPage: This is the content Works great as long as i dont have two Wrap-around components like this: R

DateFormat in contrib:table

2007-02-22 Thread Michael Siebert
Hi All, I want to format the date values in a contrib:table colum. The actual output is "-mm-dd" and I want to change it to "dd.mm." How ca I format the Date within the page-File? Or are there better and easier ways? Thank you very much in advance for your help. Regards Mike --

Antwort: client side interception of responce to 'updateComponent()'

2007-02-22 Thread Kristian Marinkovic
will be called after any ajax resoibse has been received dojo.event.connect(tapestry,"load",function(e) { alert("loaded");} ); g, kris Alexander