T5: contributing a validator?

2008-03-20 Thread Angelo Chen
Hi, Learning how to make a Validator, here is a simple one, not even functioning, just want to see if it is being called: public class UpperCase extends AbstractValidator { public UpperCase() { super(String.class, Object.class, "uppercase-string"); } public void validate(Fiel

Re: T5: generic, onActivate and onPassivate

2008-03-20 Thread Howard Lewis Ship
Yes, I think the generics logic isn't smart enough for this case, that is, to identify and convert the parameter of the event handler method. You can add this as a bug, but I'm not even sure how to start making this work correctly! On Thu, Mar 20, 2008 at 9:04 PM, Angelo Chen <[EMAIL PROTECTED]>

Re: disable JSON response

2008-03-20 Thread Howard Lewis Ship
This may be handled under the ability to programatically render a page, and outstanding issue I'm going to look into. On Thu, Mar 20, 2008 at 5:43 PM, Joosts Mailing lists <[EMAIL PROTECTED]> wrote: > On 3/21/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > > The content type is set as a c

T5: Display action message

2008-03-20 Thread Joshua Jackson
Dear all, How do we implement action message in T5? I want to display a message after an event occur, whether on success or on failure. Can anyone give me and insights on this. I've searched the document for the component reference but I could not find it. Thank you in advance -- Let's show the

T5: generic, onActivate and onPassivate

2008-03-20 Thread Angelo Chen
Hi, I'm trying out generic in 5.0.11, I have a base class ObjectEdit, then public class ObjectEdit { private T object; public T getObject() { return object;} public void setObject(T object) { this.object = object;} public void onActivate(T obj) { object = obj;} public T on

Re: disable JSON response

2008-03-20 Thread Joosts Mailing lists
On 3/21/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > The content type is set as a consequence of what is returned from the > event handler method. What exactly are you returning? When you return a block or a component, Tapestry will send a JSON > response, with the "content" key set to th

Re: disable JSON response

2008-03-20 Thread Howard Lewis Ship
The content type is set as a consequence of what is returned from the event handler method. What exactly are you returning? When you return a block or a component, Tapestry will send a JSON response, with the "content" key set to the character stream derived from the partial render. You can stil

Re: Tapestry-Test and WYSIWYG

2008-03-20 Thread Mark W. Shead
I scoured OpenQA's forums and I tried those methods before posting here. I figured someone using tapestry-test may have already solved the problem already. The solutions that look like they would work involve invoking javascript, but it doesn't look like this is possible through tapestry-

disable JSON response

2008-03-20 Thread Joost Schouten (ml)
Hi, We are in the process of migrating from T5.0.5 to T5.0.11. In our app we choose to disable all of T's javascripts and and do all AJAX ourselves. However, Tapestry seems to be a bit too clever in this area and detects our prototype AJAX request, overwrites our @ContentType("application/xml

Re: Tapestry-Test and WYSIWYG

2008-03-20 Thread Josh Canfield
Hi Mark, This is more of a Selenium/FCKeditor or Selenium/TinyMCE question... Have you seen this? http://forums.openqa.org/thread.jspa?messageID=21845 or http://forums.openqa.org/thread.jspa?messageID=20341 Josh On Thu, Mar 20, 2008 at 2:10 PM, Mark W. Shead <[EMAIL PROTECTED]> wrote: > The Ta

T5: Categorized sorting in "grid"

2008-03-20 Thread Bill Holloway
We want to use a grid with categorized items like this: first row in grid: column 1: Category name column 2: column 3: second row in grid: column 1: column 2: Item 1, name column 3: Item 1, some property that extends Comparable third row in grid: column 1: co

Tapestry-Test and WYSIWYG

2008-03-20 Thread Mark W. Shead
The Tapestry testing capabilities are really great. I'm having good luck with everything except for dealing with WYSIWYG text areas. I can't seem to get Selenium to fill these in. I've tried both TinyMCE and FCKeditor. Has anyone found a way to do this? Mark ---

Re: IntelliJ and tml Files

2008-03-20 Thread Josh Canfield
Interesting... One way to get rid of the jsp:useBean in the output would be to wrap it in a . Josh On Thu, Mar 20, 2008 at 8:05 AM, Bob Hopwood <[EMAIL PROTECTED]> wrote: > Of course, duh, you now have that jsp tag with class name in the html > file. > > > On Mar 20, 2008, at 11:00 AM, Bob Hopwoo

Re: T5: tapestry-test in 5.0.11?

2008-03-20 Thread Howard Lewis Ship
I decided at the last minute not to package it with the download binaries because doing so would drag in all of Selenium as well. It's available via Maven, of course. Please add a JIRA issue and we'll figure something out. On Thu, Mar 20, 2008 at 10:17 AM, ryanskow <[EMAIL PROTECTED]> wrote: > >

T5: tapestry-test in 5.0.11?

2008-03-20 Thread ryanskow
It appears as though tapestry-test is not packaged in the 5.0.11 release. Does it live somewhere else now or did it get missed somehow? -- View this message in context: http://www.nabble.com/T5%3A-tapestry-test-in-5.0.11--tp16184206p16184206.html Sent from the Tapestry - User mailing list archi

Re: T5: Using ajax to get a value for a form prior to its submission

2008-03-20 Thread Denis McCarthy
Not to worry, I've managed to modify the autocomplete code from tapestry-core, as well as altering the javascript in the scriptaculous control.js file to writer a custom ajax mixin for myself. Cheers Denis On 20/03/2008, Denis McCarthy <[EMAIL PROTECTED]> wrote: > Hi, > I've a form that has sever

Re: [T5] Why is TextField a final class?

2008-03-20 Thread Adam Zimowski
Hmmm but this way requires I have a markup, doesn't it? All I want is to "decorate" existing text field to carry attached map which can be populated with arbitrary bits of data. This isn't even a change to how the component works visually. Plus, assuming that this works, I'm loosing all the met

Re: IntelliJ and tml Files

2008-03-20 Thread Bob Hopwood
Of course, duh, you now have that jsp tag with class name in the html file. On Mar 20, 2008, at 11:00 AM, Bob Hopwood wrote: I remember a thread about editing .tml files in IntelliJ 7. Just thought maybe I'd throw this out there as I've found it useful so far (I'm new to Tapestry tho). I

IntelliJ and tml Files

2008-03-20 Thread Bob Hopwood
I remember a thread about editing .tml files in IntelliJ 7. Just thought maybe I'd throw this out there as I've found it useful so far (I'm new to Tapestry tho). I actually set .tml files to be viewed as a JSP. The following allows auto-completion and suggestions on tapestry attributes

Re: HibernateEntityPackageManager contributions not being processed in 5.0.12

2008-03-20 Thread Hugo Palma
Just to close this thread and answer myself. It's not supposed to work as reported in this issue https://issues.apache.org/jira/browse/TAPESTRY-1318 Also, the hibernate integration is working just fine, i just got mixed up using hibernate core in some projects and entity manager in others... Sorry

Re: HibernateEntityPackageManager contributions not being processed in 5.0.12

2008-03-20 Thread Hugo Palma
Just to close this thread and answer myself. It's not supposed to work as reported in this issue https://issues.apache.org/jira/browse/TAPESTRY-1318 Also, the hibernate integration is working just fine, i just got mixed up using hibernate core in some projects and entity manager in others... Sorry

T5 : Spring/Hibernate - data not updated

2008-03-20 Thread Stephane Decleire
Hi all, In my Tapestry 5 application, i have several services that use Spring to access Hibernate. Those services are declared as transactional in Spring. @Transactional (readOnly = false) public Account signon(String pseudo, Password password) { Account account = accountDao.load(pseudo, pa

Re: [T5] Detailed error report page disappeared

2008-03-20 Thread Dragan Djuric
Yes, that was it! I know that in the early versions it worked right without touching, but it seems that the default was changed to production mode = true somewhere around 5.0.5. I switched to false and I got the detailed report page again. Thanks! Robert Zeigler wrote: > > Check on the value o

Re: AW: Component event handlers

2008-03-20 Thread José Paumard
Howard, Thank you for your answer. From what I understand, if a zone B is nested in a zone A, its id will change in a partial update of A. Thus the existing links on the page, oustide of A, that used to point to B, wont point to it anymore after that partial update of A. This explains the beh

T5: Using ajax to get a value for a form prior to its submission

2008-03-20 Thread Denis McCarthy
Hi, I've a form that has several values for submission. One of these values (a foreign currency amount) is dependent on the value input by the customer in a different input box (the base currency amount). I'd like if possible to use AJAX to populate the foreign amount, after the base amount field h

Re: [T5] Adding form fields on the fly

2008-03-20 Thread Jens Pfau
Hey Kris, thanks for the help. I took this way but now I am wondering how I could link those values extracted from the request object to their respective form fields. This would be useful to get validation errors rendered by tapestry for example. Is there any way, for example to add those fields

[T4.1] Setting the value of a DatePicker clientside

2008-03-20 Thread Andy Pahne
I wonder how to set the date of a DatePicker in Javascript. I tried sth. like document.forms[0].departureDatePicker.value='x.x.x' which works partly. The text field is updated, but when I click on the DatePicker icon the picker is still set to the old value. I had a look at DatePicker.js

Re: [T5] Why is TextField a final class?

2008-03-20 Thread Kristian Marinkovic
there is a new way in tapestry (i think since 5.0.11) to inherit from (core) components. all you need to do is let your component have a reference to the component it wants to extend. futhermore the inheritInformalParameters of the @Component annotation has to be set to true... public class M

Re: [T5] Why is TextField a final class?

2008-03-20 Thread Adam Zimowski
Is this the situation where Mixin could be of good use? On Thu, Mar 20, 2008 at 5:55 AM, Adam Zimowski <[EMAIL PROTECTED]> wrote: > I need to save some additional state into textfield, something similar > to form context. I would have simply done: > > public class TextFieldWithMap extends TextF

AW: AW: AW: T5 Reasons for Using Tapestry / Comparison

2008-03-20 Thread Martin Kersten
My English is quite a deal breaker. Please go ahead and change it yourself. There also some comparism charts for mostly commercial frameworks available. Check these out and put something together. Maybe Howard will feature those on the front page :-). But maybe not, the flame war rate raises if

[T5] Why is TextField a final class?

2008-03-20 Thread Adam Zimowski
I need to save some additional state into textfield, something similar to form context. I would have simply done: public class TextFieldWithMap extends TextField { @Parameter(defaultPrefix="prop") private Map _dataMap; public void setDataMap(Map aDataMap) {

Re: AW: AW: T5 Reasons for Using Tapestry / Comparison

2008-03-20 Thread Francois Armand
Martin Kersten wrote: [... a lot of usefull comments...] Thank you for all these in insight, your post was very interesting. Do you want to complete the wiki here : http://wiki.apache.org/tapestry/FrameworkComparisons ? I can do it for you if you wish, but it will be almost a copy/paste of yo

trouble with paged grids

2008-03-20 Thread Jesper Zedlitz
I still have trouble with paged grids... To make the problem clearer I wrote a minimal testcase. http://www.comsys.informatik.uni-kiel.de/~jze/tapestry5-table.zip The app shows several (mocked) addressbooks. The problem is that you do not get the first tab of a grid after changing to a different

Re: Make Tapestry a "full" web framework?

2008-03-20 Thread Chris Lewis
sounds fun - i'll lay it on thick next time Patrick Moore wrote: > A suggestion -- > > rather than scream at suspected trolls smother them with love :-) > > trolls thrive on hate and die with love ... sweet and kind drive them ape > shit > > On Wed, Mar 19, 2008 at 6:03 AM, Christian Edw

Re: Make Tapestry a "full" web framework?

2008-03-20 Thread Patrick Moore
A suggestion -- rather than scream at suspected trolls smother them with love :-) trolls thrive on hate and die with love ... sweet and kind drive them ape shit On Wed, Mar 19, 2008 at 6:03 AM, Christian Edward Gruber < [EMAIL PROTECTED]> wrote: > Fair enough. I'm convinced. Sorry f

Re: [OT] Dubai

2008-03-20 Thread Patrick Moore
Turns out Andy will really be in Germany so look for him in frankfurt or dusseldorf ... On Wed, Mar 19, 2008 at 3:56 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > Hi, > i'll be in Dubai for the next 6 days, so, if any Tapestry fan > (that resides there) wants to meet, just send me a priva