Re: [T5] Interesting bug of link render?

2008-04-04 Thread Ted Steen
A fix is committed, this issue will close when the commit goes through. https://issues.apache.org/jira/browse/TAPESTRY-2333 2008/4/4, Howard Lewis Ship <[EMAIL PROTECTED]>: > I think it's a bug; I believe there's an error related to the > RequestPathOptimizer ... the code that generates relative

T5: BeanEditForm validation for properties on objects outside tapestry

2008-04-04 Thread Bill Holloway
Like Kevin Menard who submitted JIRA 1932 on this, I'm working on data objects coming from our app's business layer. We may need to support several front end or web service technologies with our domain objects, so we don't want them to know about Tapestry. I want (badly) to be able to use BeanEdi

Re: Mixin rendering a component

2008-04-04 Thread Josh Canfield
I don't see any way to render a component from a mixin. I'm not sure of a use case where you'd want to do that with a mixin. Can you tell us what you are trying to do? Then maybe someone can offer another solution. Josh On Fri, Apr 4, 2008 at 3:22 PM, Imants Firsts <[EMAIL PROTECTED]> wrote: > An

Re: Mixin rendering a component

2008-04-04 Thread Imants Firsts
Anyone has any idea? Maybe some other solution? Quoting Imants Firsts <[EMAIL PROTECTED]>: > Can mixin render a component, for example TextField? I > know that that it does not support templates and that > it can render the tag directly. > But I would like the mixin to add a component to form, >

Re: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Josh Canfield
Tapestry only takes care of the objects that you tell it to manage. So while you won't be able to make "new User()" work that way, you can register a UserFactory (or UserSource or UserBuilder or whatever) in Tapestry and call _userFactory.newUser(); public static void bind(ServiceBinder binder) {

Re: [T5] Interesting bug of link render?

2008-04-04 Thread Howard Lewis Ship
I think it's a bug; I believe there's an error related to the RequestPathOptimizer ... the code that generates relative URLs from Link instances; I think there's a bug there related to a trailing slash in the request. I noticed it because with a trailing slash, relative URLs to assets are often br

RE: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Nguyen, Michael
Thanks for your response. I actually already did this. What I wanted to get away from was passing the request object around so much. I should be able to say new User() without having to worry about getting a reference to the request. I guess I should have included that in my initial email. T

RE: Coercion error in grid

2008-04-04 Thread Jonathan Barker
It sounds like the underlying data (from the page) is in a Set, whereas your component wants a List. Try converting your Set to a List before passing to the component. > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2008 2:58 PM > To: T

Re: T5: FormInjector example

2008-04-04 Thread Shing Hing Man
Have you looked at the example org.apache.tapestry.integration.app1.pages. FormInjectorDemo in the latest Tapestry 5 distribution. SubmitNotifier combines with FormInjector is awesome! The following wiki on how to look up examples in the source coce is useful. http://wiki.apache.org/tapestry/

RE: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Jonathan Barker
It sounds like a reasonable way to approach things. Personally, I use Acegi for security, but it doesn't address your particular use case. It would be an interesting feature to add. I noticed that Josh Canfield just replied. If that solves your problem, great. I found it difficult initially un

Re: [T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Peter Beshai
I am actually doing stuff like that inside the component already. The problem is that my main component is generic, so I can't include it directly in the template. i.e. I have: base component: ManageEntity child component: ManageApplications extends ManageEntity ManageApplications doesn't add an

Re: afterUpdateElement for AutoCompleter of Tapestry 4.1.5

2008-04-04 Thread Andreas Andreou
Perhaps you'd want to use http://tapestry.apache.org/tapestry4.1/components/scriptaculous/suggest.html which is exactly the same component as the 'old' tacos autocompleter On Fri, Apr 4, 2008 at 7:44 AM, Sumanth Dupuguntla <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm working on migration of tapes

Re: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Josh Canfield
Take another look at Dispatcher 2. It takes an ApplicationStateManager as a parameter to the constructor. Add your RequestGlobals to the constructor in the same way. Tapestry will wire up the configured object. public SingletonAccessControllerImpl(ApplicationStateManager asm, RequestGlobal

RE: Zone and block : xmlns problem

2008-04-04 Thread Andy Blower
Thank you for this post, although I just spent 2 hours scratching my head on this because I was having the error: ERROR (RequestExceptionHandler:45 ) - Processing of request failed with uncaught exception: Namespace prefix for URI 'http://www.w3.org/1999/xhtml' is not defined. java.lang.RuntimeE

Re: T4.1.5: Fill the autocompleter field from a popup window

2008-04-04 Thread Stef
Hi! I now found this: https://issues.apache.org/jira/browse/TAPESTRY-1450 Didn't only I found this problem :( Best regards, Stef > -Original Message- > From: [EMAIL PROTECTED] > Sent: Fri, 28 Mar 2008 13:50:12 -0800 > To: users@tapestry.apache.org > Subject: Re: T4.1.5: Fill the autocomp

RE: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Nguyen, Michael
The code I uploaded was there to illustrate. I stepped through with a debugger to find that those instance variables are null once I am inside any method. I figured that I was doing something wrong so I didn't want to confuse matters and put references to the objects in the sample. Thanks for th

Re: Re : T5: Layout question

2008-04-04 Thread Howard Lewis Ship
This is not the case. T4 had the $content$ and $remove$ directives. These are useful features that have not yet made it into Tapestry 5. On Wed, Apr 2, 2008 at 3:49 AM, Julien HENRY <[EMAIL PROTECTED]> wrote: > Hi Onno, > > You don't need to do anything else. Everything outside of > > >

Re: Form fragments and radio buttons

2008-04-04 Thread Howard Lewis Ship
This was fixed recently: https://issues.apache.org/jira/browse/TAPESTRY-2261 On Fri, Apr 4, 2008 at 2:55 AM, Adriaan Joubert <[EMAIL PROTECTED]> wrote: > Hi, > > I had an issue with triggering a form fragment with a radio button. I > came up with the following solution, and thought I'd share a

Re: Coercion error in grid

2008-04-04 Thread Howard Lewis Ship
That is really, really odd. A stack trace (and the exact version of Tapestry you are using) would be helpful.ß On Fri, Apr 4, 2008 at 3:06 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > Hi all, > > When i try to show a list of my objects in a grid, i get the following > error : > "Could not

RE: accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread Jonathan Barker
Michael, This is not a page class, so Tapestry will not process your injections. You also haven't used either of your injected properties, so why are they there? Jonathan > -Original Message- > From: mnguyen21 [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2008 2:29 PM > To: users

accessing requestglobals inside dispatcher and other data support classes

2008-04-04 Thread mnguyen21
Hi everybody, I'm basically starting to learn T5 all over again. I'm trying to implement an AccessController based on Chris Lewis' articles and have hit a roadblock. http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher Dispatcher1 http://wiki.apache.org/tapestry/Tapestry5HowToCrea

Re: [T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Josh Canfield
No... you can't extend the template file, at least not yet that I've heard of. You may be able to consider instead of extending the component you could create a container for it that passes the block as a parameter, along with whatever other configuration. Parent template: default stuff in

Re: T5: Strategy for pages that edit beans

2008-04-04 Thread Josh Canfield
On Thu, Apr 3, 2008 at 5:28 AM, Andy Blower <[EMAIL PROTECTED]> wrote: > > I have encountered a similar issue, and the use of onPrepare() doesn't make > sense to me. Surely there's no point persisting any fields and then > resetting in onPrepare() is there? May as well just remove the @Persist. > >

Re: [T5] Interesting bug of link render?

2008-04-04 Thread Peter Beshai
I think this may work (as a workaround at least): public class Start { private Integer _result; public Integer getResult() { return _result; } public void setResult(Integer result) { _result = result; } Integer onPassivate() { return _result; } Object

Re: T5, newbie: [Solved] Component parameter passing problems

2008-04-04 Thread Alec Leamas
Thanks to Josh this problem has been solved. The culprit was how I invoked the components. I was using I should use Thanks for all help! And a special thank to Josh! --Alec Davor Hrg wrote: how is getRows declared in your page class ? OK, thanks... In my page, I have The columns

Re: T5 Tapestry.onDOMLoaded internet explorer 7

2008-04-04 Thread Josh Canfield
You don't mention seeing javascript errors in IE, are there any when you load the page and nothing displays? If there is a syntax error in your javascript (so that IE can't parse it) then the whole script block is ignored. One debugging technique that I use is to view the source of the misbehavin

T5: using T5's IOC in a console app.

2008-04-04 Thread Angelo Chen
Hi, Lately I use T5's IOC in a console application, it really makes programming easier, I can focus more on the classes, not worrying that I have to take care of more classes as IOC automatically handles the dependency issues. It seems to me that IOC's job in a console app is purely the dependen

[T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Peter Beshai
I have a parent component Base and a component Child which extends Base. If I want Child to use Base's template, I cannot include a template file for Child. However, I am interested in overriding just one block of Base's template with Child and I was wondering if there is anyway to do this. Thanks

Coercion error in grid

2008-04-04 Thread Stephane Decleire
Hi all, When i try to show a list of my objects in a grid, i get the following error : "Could not find a coercion from type org.hibernate.collection.PersistentSet to type com.mycompany.MyType" Here is my component code : public class UserAdsList { @Parameter(required = true) private L

Form fragments and radio buttons

2008-04-04 Thread Adriaan Joubert
Hi, I had an issue with triggering a form fragment with a radio button. I came up with the following solution, and thought I'd share and ask for comments - perhaps it is possible to come up with something that can be included in Tapestry. The .tml looks as follows:

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-04 Thread caarney
Thank you. Finally I found the reason for some strange errors I encountered (components not updating after AJAX :) ... Btw, I need to close the IMG tags, otherwise it doesn't work. Igor Drobiazko wrote: > > The ajax response is XHTML. Since your template is rendered to create the > response, i

Re: T5 Tapestry.onDOMLoaded internet explorer 7

2008-04-04 Thread Riccardo Ruffilli
Hi josh, I've checked again the html generated by IE7 and it's exactly the same of the code generated by ff (I make a mistake because I delete a CR sorry! :( ) and this is what I see

RE: [T5]: Default TextField size?

2008-04-04 Thread Kristian Marinkovic
i use CSS to set the VISUAL size of my input fields :) g, kris Andy Huhn <[EMAIL PROTECTED]> 04.04.2008 11:03 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema RE: [T5]: Default TextField size? Hi Kris, Thanks for the response. Yes, I knew about the annotation, an

RE: [T5]: Default TextField size?

2008-04-04 Thread Andy Huhn
Hi Kris, Thanks for the response. Yes, I knew about the annotation, and that's a handy feature...but I'm looking for a setting I can set once that will affect the default width used for all textfields. If I don't use the @Width annotation, all of my text boxes are rendered pretty small...and I d

Passing parameter to @EventListener

2008-04-04 Thread Rohan Kalyan
hi all, we are migrating from tapestry 4.0.2 to 4.1.5 while migrating we are using @EventListener annotation instead of @AjaxEventSubmit, we were passing parameter to @AjaxEventSubmit in 4.0.2, and in @EventListener annotation we want to pass the same parameter. I tried setting the parameter throu

RE: [T5]: Default TextField size?

2008-04-04 Thread Kristian Marinkovic
you can annotate your property with a @Width annotation containing the length it is interpreted when using a BeanEditor... i think it is also used when a page property is passed in (eg. a String with a @Width annotation) Page { @Width(100) @Property private String s; } g,kris

Re: T5:calendar component problem

2008-04-04 Thread Natia Gdzelishvili
Can anyone tell me how to work with dateField, how to change styles, I am trying to change date format but it doesn't changes, and again it doesn't work in Internet Explorer Thanks in advance On Thu, Apr 3, 2008 at 4:34 PM, Natia Gdzelishvili <[EMAIL PROTECTED]> wrote: > hi, > I have a problem

[T5]: Default TextField size?

2008-04-04 Thread Andy Huhn
Hello, Is there a way to configure the default size parameter that will be generated for TextFields? Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 Tapestry.onDOMLoaded internet explorer 7

2008-04-04 Thread Riccardo Ruffilli
Many many thanks for your quick response! Yes we are using 5.0.10 so I'm going to try the latest release just now then I let you know. Bye -Rick joshcanfield wrote: > > The problem is that IE doesn't see javascript on the same line as the > opening html comment. What version of tapestry are