Re: T5: Accessing entities/services in another app

2008-02-21 Thread Angelo Chen
Hi Davor, I'm thinking of jar file dependency, say, entities and t5 services(interfaces and implementations) packaged into a jar file, so app B can declare it as dependency in the maven, of course app B has to bind those services in appModule, just not figure out how to structure app A in such a

Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-21 Thread Angelo Chen
i post a jira for this: https://issues.apache.org/jira/browse/TAPESTRY-2184 https://issues.apache.org/jira/browse/TAPESTRY-2184 Davor Hrg wrote: plese post a JIRA issue -- View this message in context:

Re: T5: Accessing entities/services in another app

2008-02-21 Thread Davor Hrg
one way is to separate the central part into sa different project C so A depends on C and B depends on C Davor Hrg On Thu, Feb 21, 2008 at 9:43 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Davor, I'm thinking of jar file dependency, say, entities and t5 services(interfaces and

Re: [t5] NPE in createActionLink

2008-02-21 Thread Joachim Van der Auwera
Tried that, it doesn't work, gives Event 'action' from ObjectEdit:edit.organizations.add received an event handler method return value of [EMAIL PROTECTED] This type of event does not support return values from event handler methods. Robert Zeigler wrote: In that case, why not just trigger

Re: updateComponent from JavaScript

2008-02-21 Thread Paul Stanton
Thanks Andreas, that works great on Firefox, not sure why but not working with ie. The listener method is being called, but the component (contrib:TableView) is not its self does not change as it should. Your ClientLink is working perfectly though, I've tried the same thing using a button and

Re: [t5] NPE in createActionLink

2008-02-21 Thread Ted Steen
Try to create the action link in setupRender(). I remember having trouble creating the actionlink too early (onActivate) after upgrading from 5.0.6. I'm looking it to it this weekend. 2008/2/20, Joachim Van der Auwera [EMAIL PROTECTED]: Does anybody have an idea what I am doing wrong? Using

[4.1.5] Suggest component

2008-02-21 Thread Andy Pahne
Hi, I try to imlement a suggest feature with the Suggest component. Unfortunatly the suggestions do not render properly. I had a look at the TimeTracker demo and copied all relevant parts into my test application, but the generated result looks different and the suggestions are not visible.

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
This is the rendered code, could you please provide the corresponding template and page class code? Uli Am Do, 21.02.2008, 13:28, schrieb Andy Pahne: Hi, I try to imlement a suggest feature with the Suggest component. Unfortunatly the suggestions do not render properly. I had a look at the

Re: [t5] NPE in createActionLink

2008-02-21 Thread Davor Hrg
if the event can return a value add a handler as the last parameter instead of null resources.triggerEvent(action,contextArray,null); Davor Hrg On Thu, Feb 21, 2008 at 10:25 AM, Joachim Van der Auwera [EMAIL PROTECTED] wrote: Tried that, it doesn't work, gives Event 'action' from

Re: T5: Multiple File Upload

2008-02-21 Thread Filip S. Adamsen
Hi, Are you sure that using the same t:formdata is what's causing the issue? There seems to be a Flash bug that causes SwfUpload to send the wrong session id with the request. Could this be why your session persisted list isn't behaving as expected? -Filip Michael Lake skrev: I'm

Re: [4.1.5] Suggest component

2008-02-21 Thread Andy Pahne
Ulrich Stärk schrieb: This is the rendered code, could you please provide the corresponding template and page class code? There's almost no difference beetwenn the source of the TimeTracker demo and mine: span jwcid=@DemoBorder style type=text/css div.autocomplete {

Stream Text File with StreamResponse

2008-02-21 Thread MoritzGilsdorf
Hello, I'm trying to stream a text file I created with Velocity very similar to the way it is done http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF here but it doesn't work. The text is stored in a OutputStreamWriter object. Is it possible to stream something else than binary

Re: [t5] NPE in createActionLink

2008-02-21 Thread Joachim Van der Auwera
Thanks for the help. That is exactly what I am doing now. Joachim Ted Steen wrote: Try to create the action link in setupRender(). I remember having trouble creating the actionlink too early (onActivate) after upgrading from 5.0.6. I'm looking it to it this weekend. 2008/2/20, Joachim Van der

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread Christian Gorbach
sure. if you post your streaming snippet we can take a look... Hello, I'm trying to stream a text file I created with Velocity very similar to the way it is done http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF here but it doesn't work. The text is stored in a

Re: Grid in form and pager

2008-02-21 Thread Francois Armand
Adriaan Joubert wrote: Hi, Hello [...] Is there an easy way to force a submit with the page navigation? Seems to me that it is going to be tricky to both navigate and submit data in the same request? Only solution I could think of up to now is to use javascript on the fields to force a

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread Davor Hrg
ByteArrayOutputStream out = new ByteArrayOutputStream(); OutputStreamWriter osw = new OutputStreamWriter(System.out); velocityContext.put(desc, this.description); template.merge(velocityContext, osw); osw.flush(); osw.close(); return new

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread Christian Gorbach
ok, what you will need is a datapump which converts an output stream to an input stream. See: http://ostermiller.org/convert_java_outputstream_inputstream.html Method 1 is the simplest: let velocity write to abytearrayoutputstream and use the byte array to construct an input stream object.

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread MoritzGilsdorf
The thing is that I don't know how to get my OutputStreamWriter into InputStream so that StreamResponse is able to stream it to the user. This is probably a very basic problem but I'm not very experienced with that. Right now there is nothing streaming but writing to System.out. But I want to do

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
Almost no is not none :) Your code is absolutely correct and works perfectly. Please make sure that you have a Shell and a Body component on your page. In your case those would be included with your DemoBorder component, so have a look at that template. Also make sure that you don't include

Re: [4.1.5] Suggest component

2008-02-21 Thread Andy Pahne
Ulrich Stärk schrieb: Almost no is not none :) Your code is absolutely correct and works perfectly. Please make sure that you have a Shell and a Body component on your page. In your case those would be included with your DemoBorder component, so have a look at that template. Also make sure

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread MoritzGilsdorf
Thanks a lot! There's just a little typo: OutputStreamWriter osw = new OutputStreamWriter(out); Davor Hrg wrote: ByteArrayOutputStream out = new ByteArrayOutputStream(); OutputStreamWriter osw = new OutputStreamWriter(System.out); velocityContext.put(desc,

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
Correct - everything. And it works here... I don't get it. It might be possible that your browser can't find ../css/demo.css depending on your path layout but that would make it just look different. The suggest list should still be rendered if you enter something into the input field. I can't

Re: [4.1.5] Suggest component

2008-02-21 Thread Andy Pahne
Ulrich Stärk schrieb: Correct - everything. And it works here... I don't get it. It might be possible that your browser can't find ../css/demo.css depending on your path layout but that would make it just look different. The suggest list should still be rendered if you enter something into

Re: [4.1.5] Suggest component

2008-02-21 Thread Andy Pahne
Damn, just found out that it works in IE 7, but not in FF 2. But that's not the case with with the demo which is available at http://opencomponentry.com:8080/timetracker/LocaleSuggest.html That demo wors nicely in both browsers... Andy

NoClassDefFoundException

2008-02-21 Thread Joachim Van der Auwera
Once I added t5components in my projects, I get the following : java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/services/ThreadCleanupHub at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2395) at

Re: T5: Multiple File Upload

2008-02-21 Thread Michael Lake
Filip - You are exactly right. The session id wasn't being passed - and shame on me for not actually comparing the t:formdata values because they are indeed the same even when using the normal t:formt:upload //t:form multiple times. Thank you and thanks to Francois Armand for showing me

Re: T5: Multiple File Upload

2008-02-21 Thread Filip S. Adamsen
So, does this mean it's working for you now? If so, would you mind sharing? :) -Filip Michael Lake skrev: Filip - You are exactly right. The session id wasn't being passed - and shame on me for not actually comparing the t:formdata values because they are indeed the same even when using

[T5] RuntimeException if extends pages/components

2008-02-21 Thread Sven Homburg
Hi there, do i understand that right, that i dont can extends pages/components from other libraries? - Caused by: java.lang.RuntimeException: Base class de.hsofttec.tapestry.base.AbstractBasePage (super class of de.hsofttec.testapp.p ages.Start) is not in a controlled package and is

Re: NoClassDefFoundException

2008-02-21 Thread Howard Lewis Ship
That service was renamed between 5.0.9 and 5.0.10. Looks like you have a bit of a mismatch going on somewhere. As we ramp up towards a stable release, we're keeping more careful track of such changes. Once we hit a stable release, we'll be shackled somewhat to the existing APIs, to enable

Re: t5components InPlaceEditor for GridData

2008-02-21 Thread Sven Homburg
snapshots now availble 0.5.11-SNAPSHOT based on tapestry daily checked out trunk 2008/2/20, Sven Homburg [EMAIL PROTECTED]: please add an issue in http://code.google.com/p/tapestry5-components/issues/list 2008/2/20, Andreas Pursian [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE-

[T4.1.5] Strange page within page rendering with only particular errors

2008-02-21 Thread Anna Vo
This is more of an irritation than a major issue, but I am curious to know why it occurs. To reproduce, delete a script file that a page calls and forget to remove the script call from the html. (script jwcid=@Script script=/scripts/something.script /). When you try to load the page, it starts

Re: [T4.1.5] Strange page within page rendering with only particular errors

2008-02-21 Thread Ben Dotte
http://issues.apache.org/jira/browse/TAPESTRY-1690 On Thu, Feb 21, 2008 at 11:43 AM, Anna Vo [EMAIL PROTECTED] wrote: This is more of an irritation than a major issue, but I am curious to know why it occurs. To reproduce, delete a script file that a page calls and forget to remove the

Re: [T5] RuntimeException if extends pages/components

2008-02-21 Thread Ted Steen
It should be possible. Make sure that the AbstractBasePage is controlled by Tapestry by ensuring that the module for that library is loaded and that it contains this contribution public static void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) {

T5: Using resources

2008-02-21 Thread MoritzGilsdorf
Hi, I'm trying to find a good place to store auxiliary files inside my project. I'm using velocity templates to generate simple text-files and in my development folder they are stored in CLASSPATH/src/main/resources/templates/. When I deploy my Project, the template directory is stored in my

Re: [T5] RuntimeException if extends pages/components

2008-02-21 Thread Sven Homburg
ted, you are the man, i ve fogotten to implement the Manifest.mf thanx 2008/2/21, Ted Steen [EMAIL PROTECTED]: It should be possible. Make sure that the AbstractBasePage is controlled by Tapestry by ensuring that the module for that library is loaded and that it contains this contribution

T4: example of using @EventListener to capture a javascript method call

2008-02-21 Thread carlos f
using tap 4.1.3 I am trying to tie an arbitrary client side JS method call to a server side listener method as per Accessing intercepted functions' parameters on the server-side on the tap 4.1 event listener page (http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html) i can't get the

Re: NoClassDefFoundException

2008-02-21 Thread Joachim Van der Auwera
Not sure if nothing else was playing tricks with me, but removing tapestry-hibernate from the deployment seems to have fixed it (using 5.0.11-snapshot). Anyway, thanks for the help, Joachim Howard Lewis Ship wrote: That service was renamed between 5.0.9 and 5.0.10. Looks like you have a bit

Tacos or equivalent for T5

2008-02-21 Thread Pablo Ruggia
Hi! Are there any development efforts to create an library of ajax widgets/components for T5 ? It doesn't matter on which library (dojo, yui, extjs, jquery, etc). Thanks !

Re: Tacos or equivalent for T5

2008-02-21 Thread Igor Drobiazko
Here http://tapestry.apache.org/tapestry5/ are listed all know libs :) On Thu, Feb 21, 2008 at 11:03 PM, Pablo Ruggia [EMAIL PROTECTED] wrote: Hi! Are there any development efforts to create an library of ajax widgets/components for T5 ? It doesn't matter on which library (dojo, yui, extjs,

Re: Tacos or equivalent for T5

2008-02-21 Thread Joachim (PROGS)
Have a look at the tapestry home page http://tapestry.apache.org/tapestry5 , it contains a list of libraries Kind regards, Joachim Pablo Ruggia wrote: Hi! Are there any development efforts to create an library of ajax widgets/components for T5 ? It doesn't matter on which library (dojo, yui,

Re: [T4.1.*] Update initialization of .script file only

2008-02-21 Thread Pai911
Could someone please help me with this question Thank you so much! Pai911 wrote: Dear all: I was doing some async calls in T4. After the components is updated asynchronously, the javascript event associated with it will by broken. Thus, I have to specify the script component in

Re: [T5] slashes in context parameters messing up

2008-02-21 Thread Fernando Padilla
So on further testing it looks like it works on production ( tomcat ), but doesn't work on dev ( jetty ). So sorry for the fire alarm tone; it doesn't look to be anything about tapestry. But I would still like some ideas to figure this out and make sure that it won't bite me/us later.. :)

T4 AutoCompleter onkeypress event never triggered

2008-02-21 Thread Paul Stanton
Hi all, I'm using the AutoCompleter component and noticed that hitting the enter key submits the form in IE. I've tried disabling keyCode 13 but since the component actually creates a select field, onkeypress, onkeydown and onkeyup are never triggered! Does anyone know of a way to disable

[T5] slashes in context parameters messing up

2008-02-21 Thread Fernando Padilla
I have a url like this going into Tapestry. /fbracket/groups.canvaslayout.analyticsiframe:hbx/Groups/%2Ffbracket/M030 And it's parsing it into the EventContext as: groups.canvaslayout.analyticsiframe:hbx; [ Groups, , fbracket, M030 ]; [ ] ) So it's for some reason double decoding the url,

Re: [T5] slashes in context parameters messing up

2008-02-21 Thread Howard Lewis Ship
Ugh. Jetty and Tomcat often disagree. Jetty is always right, but that doesn't help ... we end up having to patch for one or the other. On Thu, Feb 21, 2008 at 7:10 PM, Fernando Padilla [EMAIL PROTECTED] wrote: So on further testing it looks like it works on production ( tomcat ), but doesn't

Re: [T5] slashes in context parameters messing up

2008-02-21 Thread Fernando Padilla
Wait.. so what is the expected/correct behavior?? the url coming in is /%2Fblah/ how should that be interpreted? and how can we make it so that it works on both jetty and tomcat? Do you not have any unit tests for funky looking context values? Howard Lewis Ship wrote: Ugh. Jetty and

Re: T5: Using resources

2008-02-21 Thread Angelo Chen
Hi, here is what I did: store it under resources, then add: p.setProperty(resource.loader, class); p.setProperty(class.resource.loader.class, org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader); engine.init(p); MoritzGilsdorf wrote: Hi, I'm trying to find a good

t5: utf8(chinese) in form

2008-02-21 Thread Angelo Chen
Hi, I encoded some chinese in utf 8 and submit, the data saved to mysql is garbage, if I encode the data directly into mysql table using a native client, then display back in t5 app page, it shows correctly, i tried adding the wiki's approach: public RequestFilter buildUtf8Filter(

Re: T5: Using resources

2008-02-21 Thread MoritzGilsdorf
Hi, I have that. Here is my code: props.setProperty(VelocityEngine.RESOURCE_LOADER, classpath); props.setProperty(classpath. + VelocityEngine.RESOURCE_LOADER + .class,ClasspathResourceLoader.class.getName()); engine.init(props); Then I load my template with this: Template template =