RE: How to pass custom arguments to @EventListener

2007-05-07 Thread Marcus.Schulte
I'm now working around this by doing the tapestry.bind directly from my JavaScript calling the directevent service. Of course, my component now implements IDirect and the @EventListener annotation is not used anymore. Nevertheless, I think passing a stringified version of the intercepted functions

About isDisabledDate() in [EMAIL PROTECTED] 4.1.X & Dojo4.1

2007-05-07 Thread Linus Tseng
Hi Dojo4.1 is integrated into Tapestry 4.1.X. Will the function isDisabledDate in the DatePicker be availabled in the Tapestry DatePicker Componenet? The function is very useful to us if we just want user to select just only the available day,if won't be integrated, how can I writ

Re: T5: SelectModel - a real world example

2007-05-07 Thread Bill Holloway
I'm just hoping for a stable, best-practice, and relatively simple way to set things up like Selects. Whatever you think is the best approach and put in the documentation. Things like selects should be a snap, IMHO. Bill On 5/7/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: My approach has

Re: Tap3 - Page URL lost

2007-05-07 Thread Howard Lewis Ship
That is the complete URL, it's just that most of the information is being passed inside POST request has hidden form field data. With some work in T3, you can force a redirect-after-post. It's easier in T4 and automatic in T5. You have to be aware of what data will persist from one request to t

Re: Tapestry 5.0.4 Release

2007-05-07 Thread Joshua Jackson
I recommend you use T5. IMHO it is a major breakthrough in tapestry. So many simplicity it provides On 5/8/07, John Lee <[EMAIL PROTECTED]> wrote: Dear List, I am also new to Tapestry, should I go directly to 5, or is it easier to begin with 4? Best regards John - Original Message -

T5 - JDBC path

2007-05-07 Thread Marcus
Hi, Using T5 and Jetty, where should I put my JDBC jar? With T4 and Tomcat I just put on /common/lib or WEB-INF/lib and it works. Thank's Marcus

Re: Tapestry 5.0.4 Release

2007-05-07 Thread John Lee
Dear List, I am also new to Tapestry, should I go directly to 5, or is it easier to begin with 4? Best regards John - Original Message - From: "Juan Maya" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, May 08, 2007 9:48 AM Subject: Re: Tapestry 5.0.4 Release The best way

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Jesse Kuhnert
I hope that app of yours is huge and unwieldy. ;) there may be a fix out now.I won't be using my "heavy dev" computer tomorrow so if there's a problem starting tomorrow it won't be resolvable until at least tomorrow night.. On 5/7/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Ah...Ok. Thank

Tap3 - Page URL lost

2007-05-07 Thread Peter Dawn
guys, i am running tap3. i have a page which contains a form and the form contains a check. if the check is not successful i reload the page and display an additional error message using the @Conditional tags. now my problem is that when the user first comes to the page, the URL of the page is

Re: T5: Caching of javascript

2007-05-07 Thread Howard Lewis Ship
It's a matter of setting the right headers; please add a bug to JIRA and we'll get this working. On 5/7/07, Yann Ramin <[EMAIL PROTECTED]> wrote: It seems the T5 asset javascript files (such as prototype, scriptalicous) are not being cached by browsers (tested IE6 and FF). Using Firebug and ha

Re: Tapestry 5.0.4 Release

2007-05-07 Thread Juan Maya
The best way to start is the tutorial ( http://tapestry.apache.org/tapestry5/t5-tutorial.pdf) It still not complete but it give u the basics to start. Then i recommend u the streamcast http://tapestry.apache.org/tapestry5/screencast.html and the tapestry-core docs: http://tapestry.apache.org/tapes

Re: Tapestry 5.0.4 now available via Maven

2007-05-07 Thread eko
> 2007/5/6, Howard Lewis Ship <[EMAIL PROTECTED]>: >> Yep, I managed to screw up the quickstart archetype AGAIN. I forgot to >> update one version number before cutting the release. >> > > had fixed it? > > Jun Tsai > -- > Welcome to China Java Users Group(CNJUG). > http://cnjug.dev.java.net > > -

Re: Tapestry 5.0.4 Release

2007-05-07 Thread eko
Dear Community, As I am new to Tapestry, what is the best way to learn Tapestry 5 ? Is going through the source code enough in building say, rich Ajax based web application ??? I am planning to build simple login and crud web application. Best Regards, Eko SE ---

Re: T5: page redirect

2007-05-07 Thread Howard Lewis Ship
In Tapestry 5, the component templates must be in WEB-INF not in the web application root. On 5/7/07, Sven Homburg <[EMAIL PROTECTED]> wrote: Hi Howard, here my the deployment directory listing Best regards Sven Howard Lewis Ship schrieb: > So, an << ls -lR >> of your workspace would be h

Re: T5: page redirect

2007-05-07 Thread Sven Homburg
Hi Howard, here my the deployment directory listing Best regards Sven Howard Lewis Ship schrieb: So, an << ls -lR >> of your workspace would be helpful, to see that files are named correctly and in the proper places. On 5/5/07, Sven Homburg <[EMAIL PROTECTED]> wrote: i spend some hours t

Re: Anybody have the FCKEditor working in IE7?

2007-05-07 Thread Robert Zeigler
You might try: https://tapestryfckeditor.dev.java.net/servlets/ProjectDocumentList? folderID=3052&expandFolder=3052&folderID=0 Robert On May 7, 2007, at 5/75:05 PM , Mark Stang wrote: Anyone used FCKEditor with Tapestry 3? Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mob

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Jesse Kuhnert
Ah...Ok. Thanks for the additional info. I think the new spec resource type change is here to stay, so it's just matter of cleaning up whatever pieces used to work the old way. The overall result being that Tapestry no longer ignores classpath resources (except for assets / things it has always

Re: T5: SelectModel - a real world example

2007-05-07 Thread Howard Lewis Ship
My approach has to been to keep everything internal if possible. Thus an interface is public, the implementation is internal. If something is truly necessary, such as OptionModelImpl, there are two approaches: 1) Make the implementation class public (possibly breaking existing code that extends

T5: Caching of javascript

2007-05-07 Thread Yann Ramin
It seems the T5 asset javascript files (such as prototype, scriptalicous) are not being cached by browsers (tested IE6 and FF). Using Firebug and having the server on a slow (= cable modem upload) connection shows this problem very well, with about 2-3s page delay in transferring the .js file

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Ben Dotte
Fair enough, it has to do with the way we handle client-specific functionality. Eclipse copies everything, templates, .class files, and .properties files to the classpath that Jetty uses (for local deployments). We have a separate process that builds the context for us that includes client-specific

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Jesse Kuhnert
RightI get that it's looking in the classpath first - but why is that a problem ? On 5/7/07, Ben Dotte <[EMAIL PROTECTED]> wrote: As an example, we have a component collective.md.ui.components.AssetEdit. For the NLS keys on that component, we want Tapestry to look for AssetEdit.properties u

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Ben Dotte
As an example, we have a component collective.md.ui.components.AssetEdit. For the NLS keys on that component, we want Tapestry to look for AssetEdit.properties under the context root/WEB-INF/app before it looks under the class path root/collective/md/ui/components. This is the behavior Tapestry use

RE: Anybody have the FCKEditor working in IE7?

2007-05-07 Thread Mark Stang
Anyone used FCKEditor with Tapestry 3? Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: jake123 [mailto:[EMAIL PROTECTED] Sent: Wed 4/18/2007 2:24 PM To: users@tapestry.apache.org Subject: Anybody have the FCK

Re: T5: SelectModel - a real world example

2007-05-07 Thread Bill Holloway
I've written similar code -- while remembering that OptionModelImpl is an "internal" class that Howard, in the documentation, has admonished us not to use. Community, what's the better solution? Bill On 5/7/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Eureka! Finally got it all working. What

Re: How to store the rendering of a page in a String

2007-05-07 Thread Jesse Kuhnert
It's a little more complicated looking than saying it just "stores a string" but you could easily cut && paste (or extend - but carefully as this impl is a moving target) http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAj

T5: Continuations?

2007-05-07 Thread Bill Holloway
Any thoughts to having support for continuations in Tapestry 5? My guess is Howard could do more simply and elegantly than Spring Webflow. Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional --

Re: EventListener fails to update PropertySelection in IE

2007-05-07 Thread Jesse Kuhnert
Oh - that is easy to fix. Drop the "prop" binding and use ognl. You won't need that library anymore anyways.. On 5/7/07, RobertSchreiber <[EMAIL PROTECTED]> wrote: Hi Jessek, Thanks for your ultra fast response. The latest snapshot works. Since I get always lost with downloading Tapestry via

Re: How to pass custom arguments to @EventListener

2007-05-07 Thread Jesse Kuhnert
I've been wary of trying to serialize function parameters as that could get very tricky on non simple object structures. (json recursion and such) I guess if they were acceptable to send to the server "as is" doing the equivalent of a toString() on them I could add that in. (but not be happy abou

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Jesse Kuhnert
It's fine, report things as much as you like. Spec resolution logic has changed so it makes sense that there are side effects. What is the exact problem (expected vs. actual) happening now? I know generally what you mean but properties get resolved by a completely different service so the pattern

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-07 Thread Ben Dotte
Our templates are still getting resolved on WEB-INF/app just fine, but I just found out we have a problem with NLS .properties files getting resolved that is the same as the template resolution problem. So it looks like Tapestry is now looking on the classpath first for .properties files whereas i

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
Eureka! Finally got it all working. What caused the drop down to not be defaulting is the fact that I declared my "Brand" list in two separate lists... One for the ValueEncoder and one for the SelectModel. Big no no! An "equals" is called on the value from the SelectModel and the value from the

RE: [T4.0.2][Tacos 4.0.1] Problem submitting a form with Tacos in FireFox

2007-05-07 Thread Denis Souza
I've seen this happen to me on IE and Firefox. With me it's usually some javascript error, most of the time related to an ajax tag that javascript can't find. Take a look at Firefox's javascript error console to see if it'll shed some light. It always solves it for me. Denis -Original Message

Tapestry 5.0.4 Release

2007-05-07 Thread Howard Lewis Ship
Tapestry 5.0.4, a preview ("alpha") release of the next generation Tapestry web application framework is now available. This release streamlines deployment, simplifies and improves the built-in inversion of control container, and a bunch more besides. http://tapestry.apache.org/tapestry5/ -- How

Re: render() around advice

2007-05-07 Thread Jesse Kuhnert
I would do what Howard suggests - but if for some reason you really have to do it this other way there is a service point that allows you to do this without having to write an EnhancementWorker: http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/module/tapestry.render.html On 5/7/

Re: render() around advice

2007-05-07 Thread Howard Lewis Ship
The link components all have a disabled parameter, so it's just a matter of hooking that up. Depending on the rules for determining enabled vs. disabled, you may want to try creating your own binding prefix. For example, let's say you are basing this upon the user's role. Reset the Database In

render() around advice

2007-05-07 Thread Carlos.Fernandez
Java 5 Tapestry 4.0.x I would like to make runtime checks to determine if a link will render. To avoid configuration tedium we do not want to use custom link renderers. The desired solution would behave like around advice, it would: - intercept the render() call (or some other method with HTML

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
Nope... Just using the "standard" Jetty/Maven desktop environment. I've created and attached a simple demo if you'd like to see the problem in action. Only three small files... the HTML page, the Java file, and the Brand POJO. You'll need to change the package of the Java files to fit your appli

Re: tapestry throws exception when paging?

2007-05-07 Thread Andreas Andreou
You have to ensure that source="ognl:modaltest" never returns null, which is what's happening in this case. So, you don't have to use session, it's just the easiest way out of it :) On 5/7/07, li li <[EMAIL PROTECTED]> wrote: hi Marcus.*Schulte , *You are right! Now it works property. however

RE: tapestry throws exception when paging?

2007-05-07 Thread li li
hi Marcus.Schulte , You are right! Now it works property. however I  don't know why to set the datamodal to persist in page. I mean that if I want to display a list in page,need I have to set the resultSet persist to "session" ?   From: <[EMAIL PROTECTED]>Reply-To: "Tapestry users" To: Subje

Re: T5: SelectModel - a real world example

2007-05-07 Thread Howard Lewis Ship
Odd that you lost your value; the field is itself persistent (@Persist). Unless you are testing on a multi-machine cluster, you shouldn't see any problems along these lines! On 5/7/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Impressive! I was injecting that value via Spring to bootstrap it. Ma

how to do custom client-side validation in Tapestry 4.0?

2007-05-07 Thread Liam Morley
I have two forms on a particular page. Both of them work fine independently. Now, I want to attach a javascript function to the onsubmit action of one of the forms to check to see if the OTHER form has been filled out but not submitted yet. My problem is that onsubmit seems to be reserved by Tapest

RE: T5: SelectModel - a real world example

2007-05-07 Thread Joel Wiegman
Impressive! I was injecting that value via Spring to bootstrap it. Makes sense I should have removed that... No errors now... However, the field doesn't appear to be binding on a form submission. The encoder and the model appear to be receiving and returning the correct values, the brand getter

[T4.0.2][Tacos 4.0.1] Problem submitting a form with Tacos in FireFox

2007-05-07 Thread Jacob Bergoo
Hi, I am new to Tacos and I have built my first page with a couple of Tacos/Dojo components. I have a issue with the AjaxSubmit in FireFox. When I try to submit my form nothing happens unless I click the submit button 4 times in a row... then the form get submittet. Has anybody notice this behavio

Re: Tapestry 5 and Template Reloading

2007-05-07 Thread bjornharvold
Version 5.0.3 works fine. This is what I get when starting up Jetty with JettyLauncher inside eclipse 3.2.2. I have cleaned eclipse and built from scratch. main] INFO 2007-05-07 09:43:05,703 http.SocketListener - Started SocketListener on 0.0.0.0:8080 org.mortbay.util.MultiException[java.l

RE: tapestry throws exception when paging?

2007-05-07 Thread Marcus.Schulte
Try making the property "modaltest" @Persistent. Most probably, it's not properly initialised for the paging request. Hi everyone: I want to use tapestry's Table . But when I click the next page's link,tapestry throws exception: org.apache.hivemind.Applicatio

How to store the rendering of a page in a String

2007-05-07 Thread Stephane Decleire
Hi, I'd like to store the rendering of a page in a String instead of sending it back to the client. Has anybody already implemented such a task ? Any idea is welcome :-) Thanks -- Stéphane Decleire www.bebe-nounou.com

Re: EventListener fails to update PropertySelection in IE

2007-05-07 Thread RobertSchreiber
Hi Jessek, Thanks for your ultra fast response. The latest snapshot works. Since I get always lost with downloading Tapestry via Maven, I downloaded the latest Workbench WAR file and copied the libs. JFYI: I caught another error which I could fix. Obviously JavaAssist 3.4 cannot handle array in

How to pass custom arguments to @EventListener

2007-05-07 Thread Marcus.Schulte
I'm successfully listening to a custom javacript method being called on an element. Now, I'd like to access the argument(s) that were passed to this method. Is there an easy way to achieve this? I've looked at the BrowserEvent object passed to the listener, but this didn't help. Thanks for any hint

Re: EventListener fails to update PropertySelection in IE

2007-05-07 Thread Martino Piccinato
I'm not completely sure but I think your problem is that the component you are updating does not refer to the entire select "block" but just to the label. As the eventlistener/ajaxdojoresponse basically rely client side on the innerHTML (or similar) javascript function to replace inner html we had