Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-06 Thread Onno Scheffers
> > > Some topics I'd be interested in: >> - Application security, authentication and authorization- best practices >> with several popular frameworks >> > > Several popular frameworks? Which ones? > I'd say the most popular ones are Shiro and Spring Security. So far I have only rolled my own bas

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-06 Thread Onno Scheffers
Looking forward to this. More books will be good for Tapestry, especially when they start covering more advanced topics such as in-depth Tapestry IOC. I will buy a copy. Some topics I'd be interested in: - Application security, authentication and authorization- best practices with several popular

Re: Hosting Tapestry App on Cloud

2012-10-26 Thread Onno Scheffers
> I looked into Amazon and it seems a bit pricey for a > small app, so I'm wondering if anybody has any other suggestions? I have deploying our Tapestry application to Jelastic. Works pretty well for me so far and not very expensive either. We are still in a closed pilot phase though, ironing ou

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Onno Scheffers
> That's why I said 'basically'. ;) I claim no knowledge in Vaadin besides > reading its website. > I also said 'basically' :) I'm currently working on my first Vaadin project, so I am in no way an expert. I do really like it though and I plan to also use it for an administrative section of an ex

Re: Tapestry5 vs Vaadin

2012-08-13 Thread Onno Scheffers
> And don't forget that Vaadin is basically GWT plus some server-side stuff. That's like saying Tapestry is basically Javassist plus some server-side stuff. Vaadin is a very mature framework that has been in development for many years and they built most of their client implementation and rich cl

Re: Tapestry 5 Book EAP Launched

2012-07-30 Thread Onno Scheffers
> What about Indiegogo since this isnt kickstarter? > I guessed it was the same: they'll only collect after the campaign is over and the goal has been reached, since refunding probably introduces fees. But it seems I guessed wrong. I only just signed up with Indiegogo and after reading a bit more

Re: Tapestry 5 Book EAP Launched

2012-07-30 Thread Onno Scheffers
> I'm not sure. Is there a way to withdraw a contribution? > I've been a backer on Kickstarter since the Double Fine Adventure thingy and they mentioned on their forums a handful of transactions failing. Theoretically people can max out their credit cards or block the cards before the end of camp

Re: Progress on Tapestry 5 Book

2012-07-26 Thread Onno Scheffers
Igor probably can't get to the money if he uses Kickstarter, so he's looking for an alternative: https://twitter.com/drobiazko/status/225857836217954304 On Thu, Jul 26, 2012 at 9:01 PM, Chris Collins wrote: > Whats happening with this? Igor mentions in the next few days it would be > on kicks

Re: best way to apply database upgrades at startup

2010-11-07 Thread Onno Scheffers
Have you tried LiquiBase (http://www.liquibase.org/)? It includes a ServletListener that allows you to update your database before you webapp fires up. I've only used it on a single project so far, but I'm pretty happy with it. regards, Onno On Sun, Nov 7, 2010 at 9:45 AM, Paul Stanton wrote

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-11-12 Thread Onno Scheffers
Definite purchase for me! On Wed, Nov 11, 2009 at 10:21 PM, Igor Drobiazko wrote: > Good news. My publisher made the first step towards the translation. They > contacted several publishers outside Germany to find one that is interested > in translation. If some of them is interested then we will

Re: ValidateForm Event

2009-08-31 Thread Onno Scheffers
> Thanks for your response. Could you explain what you mean by keeping my > validation "in the correct callback"? I think it's about writing clean and maintainable code. For other developers reading back your code it makes more sense if you add your validation errors in the ValidateForm event an

Re: Multiple Chart Images

2009-08-31 Thread Onno Scheffers
> 1. Passing the current object to ChartService > 2. Rendering different images for each row (At the moment, the image > component on each row is pointing to URL of the last image - this is > because > they get rendered from the stream once, after all the iterations are > completed.) It looks li

Re: [T5] Acces to current object in tab

2009-08-31 Thread Onno Scheffers
I am using jQuery UI for showing a modal dialog. In my case I use a PageLink to generate the links with the Object-ID as context. Then I add a custom Popup mixin to the PageLink. This mixin sets up the dialog on the client, puts an iFrame inside it and makes sure the link gets an onclick event that

Re: Securing files on the classpath/webapp context (was: Re: Running Tapestry 5.0.18 on Google App Engine)

2009-08-26 Thread Onno Scheffers
> > The Tapestry asset feature is used even when you use files from the context > (asset:context:something.jpg). Yes, but does that mean js-files and css-files etc. should be whitelisted by default? Normally if Tapestry encounters an asset:-statement, it knows the asset should be whitelisted. In

Re: Securing files on the classpath/webapp context (was: Re: Running Tapestry 5.0.18 on Google App Engine)

2009-08-26 Thread Onno Scheffers
On Wed, Aug 26, 2009 at 3:57 PM, Ulrich Stärk wrote: > I really like to hear what the other devs (apart from Thiago) are thinking > about this, whether there are objections against what I proposed or if you > think there are better solutions. This really needs fixing ASAP. I think not even css

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-26 Thread Onno Scheffers
> > I agree. My suggestion to TAP-815 was: > > "I would suggest to have a chain of command, each object in it receiving > the requested URL and responding true (ok), false (file is forbidden) or > null (this object doesn't handle this URL, ask the same thing to the next > object. This chain of comm

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-26 Thread Onno Scheffers
ather in spring. > > As for cleaning up an instance after it's not being used - I can't tell > you, > thats not my case. I've set up cron triggers for executing ping jobs and > those triggers actually invoke HTTP GET on my tapestry pages, so the app is > always warm. &

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-26 Thread Onno Scheffers
> Everyone is invited to contribute to the solution by posting all the ways we can have access to assets that shouldn't be available. ;) @Thiago How about allowing absolutely nothing from the classpath/WEB-INF initially? Directory listing should also be disabled. When a page or component comes alo

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Onno Scheffers
> > AFAIK, this issue doesn't affect T5.0.18, as it happens only with versioned > assets, something that was introduced in T5.1. Apparently it does, since Christian also provided example-links. I just checked and I can also publicly access resources like the web.xml and hibernate.cfg.xml on a we

Re: Cross Field Validation

2009-08-23 Thread Onno Scheffers
> > Have I overlooked something? Is there some other way to accomplish > this? With the current implementation it seems like my only real > option is to use: Have you thought about creating a custom errors component that does a better job at displaying equal error-messages for different componen

Re: creating new component+events

2009-08-21 Thread Onno Scheffers
> > I read http://tapestry.apache.org/tapestry5/guide/event.html... and I > understood that only pages can handle events... but I need the > component handle the event. Any help? Thanks in advanced, and sorry > for my english! Components can handle events as well. For pagination, you can create

Re: How to inform a user that a form is submitted?

2009-07-14 Thread Onno Scheffers
> Okay, but when I submit the form a second time, the user will see the > same view as before. After both submits the user will see the "Your > query was submitted"-box. So after the first submit he will see a change > on the page, but not after the second submit. Only if there was an actual chan

Re: How to inform a user that a form is submitted?

2009-07-14 Thread Onno Scheffers
> But when he clicks on the submit button, there is no visual response > that the submit happened. What I would expect is that the page blanks > and rebuilds after the submit is done. > > Another idea is displaying a "Your query was submitted"-box in top of > the form, but after the second submit t

Re: T5 remove prototype and scriptaculous

2009-06-28 Thread Onno Scheffers
> > There are some conflict with prototype and scriptaculous on my page. Is > that > possible to remove these javascript loading for specific pages? > Thanks. Not yet. What kind of conflicts do you have? regards, Onno

Re: Environmental annotation

2009-06-25 Thread Onno Scheffers
> > is it ok, that @Environmental does not work for user defined classes? > > I expected it to work after reading > http://tapestry.apache.org/tapestry5.1/guide/env.html. But it does > not. I use environment.peek() instead. The answer should be in the very last paragraph of that page. regards,

Re: Type-safe PageLink version

2009-06-21 Thread Onno Scheffers
I usually use something like this: @Component(parameters = { "page=prop:editEmployeePage", "context=prop: employee.id }) private PageLink pageLink; @Inject private ComponentClassResolver resolver; @Cached public String getEditEmployeePage() { resolver.resolvePageClassNameToPageName(EditEmploy

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Onno Scheffers
> > Of course this cannot work for frameworks like Tapestry, since they are > > bound to license-restrictions regarding distribution. > > Tapestry's license is Apache version 2, so I don't think there's any > problem regarding its distribution. I know, I actually meant the other way around :o)

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Onno Scheffers
> In a small operation you can get away with doing dependency management > manually, but not for enterprise applications or any development of scale. For complex projects especially, I try to keep things simple by adding all dependencies directly into the version-control system. New developers c

Re: integrating jQuery components

2009-06-17 Thread Onno Scheffers
> > I would prefer: Tapestry uses whatever javascript lib for it's internal > functions. But this "whatever" library should play nice with user's > libraries. (So, prototype, which is in internal use today should be patched > in a way not to hijack $ ). Sadly that would break pretty much any Prot

Re: integrating jQuery components

2009-06-17 Thread Onno Scheffers
> > I understand your solution, but that just introduces a second "tapestry > supported" javascript library. What if yet another library is better at some > point, or some people prefer another one like yui or dojo (remember this was > the "preferred" in t4 days, not that long ago). > Do we really

Re: integrating jQuery components

2009-06-17 Thread Onno Scheffers
> > In any case, the users should not required to be aware of the javascript > libraries it uses. > We only have a limited set of components as is, no use fragmenting this. End-users shouldn't, but we can expect a little more from developer, right? :o) I think most people working with Tapestry,

Re: integrating jQuery components

2009-06-17 Thread Onno Scheffers
> > I am curious how you managed to include jQuery with > @IncludeJavascriptlibrary. I only managed that with a patched version of > jQuery, adding jQuery.noConflict() at the end of the jQuery javascript file. > Otherwise there were Javascript bugs... (using current stable 5.1 Tapestry > release)

Re: integrating jQuery components

2009-06-17 Thread Onno Scheffers
> > However, in the current state, when you would include two jQuery based > components from different libraries, you would actually be including > prototype and two copies of jQuery. > > I think the first step would be to assure there is a common jQuery (and > possibly also other libraries like yi

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> > I think CSS selectors support in JS framework is a safe assumption > nowadays but I remember a post here talking about sizzlejs.com which > could be of interest for you. Hi Massimo. I'm familiar with Sizzle. It's created by John Resig, the author of jQuery. It will be (or maybe already is?)

Re: how to specify to say more than one java file to share same html

2009-06-16 Thread Onno Scheffers
It's been a while since I last used Tapestry 4, but maybe you can create a custom TemplateLocator that loads the proper template for you? regards, Onno On Tue, Jun 16, 2009 at 8:55 AM, kk4Nabble wrote: > > Hi all, > My problem is I have CalendarHome.java which extends Calendar.java. > But i w

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
really > > bennefit. > > > > Althought keep the excelent work... > > > > Regards, > > > > *Pedro Januário* > > -- > > *Delivering Innovation and Technology* > > > > > > > > 2009/6/16 Onno Scheffers > > &g

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> > I actually think you're doing really a nice work and that's great to read! Thanks Massimo. Still a long long way to go though. regards, Onno

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> Maybe I have lost something, but is there any other framework that > provide this kind of abstraction ? You will never get away from the fact that Tapestry has some specific needs that need to be custom programmed. I think it would be impossible to abstract everything the existing JavaScript fra

[T5] Extending Tapestry Fields

2009-06-15 Thread Onno Scheffers
I have a TextField component that takes quite a bit of configuration (several validators are assigned, maxlength is set and the localized label comes from the database). It doesn't feel right to have to copy the entire configuration into each page where I use that field. So I'd like to create my o

Re: best book for T5

2009-06-15 Thread Onno Scheffers
I would buy an English version of your book instantly. regards, Onno On Mon, Jun 15, 2009 at 8:33 AM, Igor Drobiazko wrote: > Well, this community can help to make the publisher's decision easier. If > somebody of you is interested in a book translation, just comment here. I > will forward this

Re: Switch from Prototype to jQuery?

2009-06-14 Thread Onno Scheffers
> > At the very least then we need a way to describe the "stack" used by a > component and guard against incompatibilities, i.e. Protoype needed by > component A and jquery by component B resulting in a conflict on the $() > function. For jQuery it shouldn't really be a problem. The $()-function

Re: Switch from Prototype to jQuery?

2009-06-14 Thread Onno Scheffers
> > In release X (say 5.2) we introduce a more complete Tapestry isolation > layer > and recode Tapestry's internal logic and components to use it. The > isolation layer maps to Prototype and includes parallels to the common > constructs of Prototype used by Tapestry (i.e., $(), observe(), and som

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Onno Scheffers
> Just one suggestion: instead of using Element.raw() for adding Javascript code inside a CDATA section, try using Element.cdata(). I tried that first. But the cdata node XML-encodes its content. So Javascript statements like if(a < b) becomes if(a < b). It also didn't seem to render out an actual

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Onno Scheffers
> > > Look forward to seeing what you come up with and I hope you enjoy the >> challenge! >> > > Me too! :) It's wonderful to know that people want to contribute to the > framework we love. ;) Thanks guys. If anyone is interested, I'll be documenting my progress here: http://piraya-blog.blogspo

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Onno Scheffers
On Thu, Jun 11, 2009 at 11:37 PM, Blower, Andy wrote: > I'd just like to echo everything Robert said in this message. Hi Andy, don't worry. I've read Roberts message and his concerns are valid. I'm aware this whole thing won't be easy but it's not impossible. Besides, if we keep ignoring the is

Re: Switch from Prototype to jQuery?

2009-06-11 Thread Onno Scheffers
> > Onno, I don't know how good are your javascript skills, but if you > have some hard problems with jQuery or javascript, you can write me. > > I coded some pretty complex javascript stuff in the past. I'm not John > Resig though :) Thanks Sergey, that might come in handy! I'm currently finish

Re: Difference between prop: and ${...} in PageLink

2009-06-11 Thread Onno Scheffers
${} is a shortcut to make it very easy to insert some property-value into your template without having to use a component for it. There are typically 3 ways to insert some content into your page: 1. The way you're using components, keeping most of the configuration in the Java class: Some title @

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> 1) Defining an framework-independent API to be used by Tapestry (events, > DOM manipulation, selectors, etc). Maybe there's something similar out > there, not necessarily Tapestry-related. Sizzle selector (http://sizzlejs.com/) might be a nice contender, but I haven't looked into it indepth yet

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> Does anyone volunteer to write this Javascript encapsulation layer? I think > it's a nice idea, but I don't have the time nor the Javascript knowledge > needed. I wouldn't mind helping out. I'm not an expert either, so I don't think I can do it all alone. But I think this is important enough f

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> switching js approaches in the middle of the game is definitely an idea > that needs to be approached with copious amounts of caution and > consideration. I think we all agree on that. And we also all want Tapestry to be the best it can be. Sadly that means something different to everyone :o)

Re: t5: protecting data from public access

2009-06-10 Thread Onno Scheffers
> > this is a good idea. which one is faster: > returning the image as a stream or a direct link to a physical file in the > file system? The physical file is much faster. It just gets a little troublesome to keep all files in sync if your application has to be distributed over multiple servers

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> > Maybe it doesn't have to be plain js since there's a lot to be gained from > these libraries. Perhaps all Tapestry's .js files could be moved to a > tapestry-prototype module, each of those files could then be reimplemented > in a tapestry-jquery module. > A problem remains with script snippets

Re: t5: protecting data from public access

2009-06-10 Thread Onno Scheffers
> > Hi, > your understanding is correct, photos are under protected folders. and the > scaling will be a problem, but do you think it is good to store photo in > the > database's blob field? and every rendering requires copying from database > to > a temporary file? You can spool the data from a

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> > The problem is: how would Tapestry do that? Not using any framework? > This would mean the committers would need to spend an awful lot of > time rewriting something that Javascript frameworks already do. Not > only this, but also to cope with the insonsistencies between browsers. > Defining an

Re: t5: protecting data from public access

2009-06-10 Thread Onno Scheffers
I didn't fully understand your exact requirement. Should the photo's be publicly accessible (as in published by the user) or do you need to be logged in to be able to access the photo? If public access it isn't allowed, you should move the photo's to a protected folder and you can create a Tapestr

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> > IMHO, the whole Prototype/jQuery compatibility problem is that both > define a $() function and they work differently, so you can't use code > based on both of them at the same time without modification. Some time > ago I used a jQuery color picker in a project. Even using the > jQuery.noConfli

Re: Switch from Prototype to jQuery?

2009-06-10 Thread Onno Scheffers
> > I agree with you. Most T5 users have projects that rely on Prototype > now, so plain switching to jQuery would break backward compatibility. I agree as well. But I don't think there's a need to play the backward-compatibility card here since removing the dependencies doesn't need to break ba

Re: blog, wiki, chat, alert, poll components

2009-06-09 Thread Onno Scheffers
> > But with this technique you replace only the stylesheets, > it is not possible in T5 to replace the generated HTML from skin to skin > like in Wordpress because the TML and the Java-class are strongly wired > together, or? Well, that's all a skin is required to do... change the appearance, n

Re: blog, wiki, chat, alert, poll components

2009-06-09 Thread Onno Scheffers
> Skinning means you drop in a skin to some folder and everything changes > automatically. With the layout component you have to manually adjust it. > Core support means, that there is a core mechanism to find skins > automatically and be able to change the looks at runtime for example with a > lis

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Onno Scheffers
Are you using the jQuery no-conflict mode? jQuery.noConflict(); Otherwise Prototype and jQuery will conflict. regards, Onno Scheffers On Fri, Jun 5, 2009 at 11:43 AM, Angelo Chen wrote: > > Hi, > > following error always show up in the error console of Firefo

Re: Authentification in Tapestry

2009-06-04 Thread Onno Scheffers
> Why don't you use annotations for that? Something like @PublicPage? If the > page hasn't it, it is protected. > > Unless there are pages that need some internal logic to decide if they're > public or protected (hence an interface with a isPublic() method), > annotations are a better solution for

Re: Authentification in Tapestry

2009-06-03 Thread Onno Scheffers
> > All you have to do is to annotate the desired page with > "@Secured(Role.ADMIN)" I'm also using a custom dispatcher. The thing I don't like about most of the current examples/solutions I've seen so far is that access is allowed by default if the developer forgets to add a specific annotation

Re: t5: previewability

2009-05-29 Thread Onno Scheffers
> > instead of I'd rather use You can do that as well: Click me You're telling Tapestry to bind the link to a component with id myLink. You should setup the component and configure it in your Java code: @Component(parameters = { "page=Home" }) private PageLink myLink; The only thing the web-de

Re: t5: previewability

2009-05-29 Thread Onno Scheffers
If you're going to start a new project you can use Tapestry 5.1. A new special tag was introduced to do precisely what you want: . There's more information in the Tapestry documentation: http://tapestry.apache.org/tapestry5.1/guide/templates.html Simple example: - Border template: http://www.w3.o

Re: My experiences upgrading from T5.0.18 to T5.1.0.5

2009-05-28 Thread Onno Scheffers
> > I use another approach: I wrote a JustBody and a Remove component. JustBody > only renders its body, not the HTML element it's declared in. Remove renders > nothing. They're included in Tapestry CRUD ( > www.arsmachina.com.br/project/tapestrycrud). > So my page templates always start like this:

Re: My experiences upgrading from T5.0.18 to T5.1.0.5

2009-05-28 Thread Onno Scheffers
> > Thanks for sharing the experience. You're welcome. > 1) Can you illustrate the structure of your pages that were using your > t:content workaround? Based on your description, and the error message, I > can't envision a scenario where this worked in 5.0.18 but not in 5.1.0, so > I'm curious

My experiences upgrading from T5.0.18 to T5.1.0.5

2009-05-28 Thread Onno Scheffers
I've just upgraded our application from T5.0.18 to 5.1.0.5. I thought I'd list my experiences here because they might help others. About the application: The application has about 90 pages. Some public, some require login and some even require specific roles (administrator/manager/editor/...). We'

[5.1.0.5] Unsupported Locales

2009-05-26 Thread Onno Scheffers
My AppModule configuration: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.SUPPORTED_LOCALES, "nl"); } In Tapestry 5.0.18 this meant injected Locales were always Dutch (nl) on all pages and components. I used that

Re: Upcoming IntelliJ IDEA release includes Tapestry support

2009-05-26 Thread Onno Scheffers
Great news. Looking forward to it. - Onno On Tue, May 26, 2009 at 8:55 PM, Hugo Palma wrote: > You can read the announcement here > http://blogs.jetbrains.com/idea/2009/05/maia-eap-is-finally-here/ > > I've already given it a try and although there's a critical bug (it still > tries to find tap

Re: Does T5.1.0.5 depend on Java6?

2009-05-26 Thread Onno Scheffers
> > While StAX is indeed part of JDK6, its more likely that you're simply > missing the stax-api and woodstox jars on your classpath. Woodstox is an > implementation > of StAX for JDKs <6. > > With maven they are correctly added to the classpath as transitive > dependencies. :) Hi Holger, thanks

Does T5.1.0.5 depend on Java6?

2009-05-26 Thread Onno Scheffers
I'm still on Java 5 and trying to upgrade Tapestry from 5.0.18 to 5.1.0.5. On startup I see the error-message: java.lang.NoClassDefFoundError: javax/xml/stream/XMLResolver The XMLResolver was only added to Java 1.6 according to its docs ( http://java.sun.com/javase/6/docs/api/javax/xml/stream/XMLR

Re: Exception while http://localhost:8080/myapp/index.pageForm

2009-04-27 Thread Onno Scheffers
You should type the url of your page in the browser and not the url of your component: http://localhost:8080/myapp/index Typing an URL in the browser typically causes a GET-request instead of a POST-request. The form-component is part of the page and wi

Re: [intellij support] how to faster update webapp-content?

2009-04-06 Thread Onno Scheffers
I don't start Jetty from within IDEA. I start it separately (when required I use the remote debugger to connect to the external process, which is quicker as well). When you combine this setup with the deploy-on-frame-deactivation option, clicking outside IDEA (on the browser-reload button for exam

Re: referring to prototype.js in html

2009-03-17 Thread Onno Scheffers
> > Why would you need to refer to prototype.js? It can be very useful if you want your template to be fully working and previewable. I copied the Prototype library into my js-folder so I can easily include it in the templates. This makes it much easier for the web-designers to work on the pages

Re: [DISCUSS] JavaScript, Degradation, Page Load, Script Placement

2009-02-28 Thread Onno Scheffers
I'm pretty happy about how it's coming out. > > On Sat, Feb 28, 2009 at 10:30 AM, Onno Scheffers wrote: > > I must admit that I haven't played around and tested it myself. It's > mostly > > theory: > > > > Everything in the head is loaded and/or exe

Re: [DISCUSS] JavaScript, Degradation, Page Load, Script Placement

2009-02-28 Thread Onno Scheffers
I must admit that I haven't played around and tested it myself. It's mostly theory: Everything in the head is loaded and/or executed before the page continues loading. Therefore any Javascript-block in the head is executed immediately. In the case of prototype that means the event is bound immedia

Re: [DISCUSS] JavaScript, Degradation, Page Load, Script Placement

2009-02-28 Thread Onno Scheffers
I do like the fact that Javascript will move back into the head with this solution. It's pretty much 'the way of internet'. Everyone knows how to use it and almost all Javascript examples show it that way. Moving the Javascript-includes to the bottom made some things more difficult; you cannot quic

Re: [T5] Struggling With Concepts

2009-02-14 Thread Onno Scheffers
> Specifically, I am trying to create an application which will be "site > aware" (where "site" is a made-up term which implies different > configurations/access/etc.). The "site" will need to be present in the URL > in some form. I don't know how many sites you are offering, but have you thoug

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Onno Scheffers
I'd guess the problem is that the LinkSubmit adds its own onclick-handler before your mixin gets a change to add it, so the ordering is wrong. If the ordering is wrong, stopping events or default behavior in Javascript won't do much good. Maybe you can play around with your Confirm mixin by adding

Re: Non-default custom String-Translator?

2009-01-31 Thread Onno Scheffers
e("lowercase") > > On Fri, Jan 30, 2009 at 2:30 PM, Onno Scheffers wrote: > >> > >> How about defining a "lowercase" translator, and using > >> @Validate("lowercase") on those fields? > > > > > > > > Hi Howard,

Re: [T5] metrics about tapestry-5 codebase quality

2009-01-30 Thread Onno Scheffers
Wow, this looks very good. My compliments to the Howard and the rest of the team. Every time I look an the Tapestry source code for something, I am impressed by how clean the code looks. Many commercial projects could learn a thing or two from Tapestry :o) regards, Onno On Fri, Jan 30, 2009 a

Re: Non-default custom String-Translator?

2009-01-30 Thread Onno Scheffers
> > How about defining a "lowercase" translator, and using > @Validate("lowercase") on those fields? Hi Howard, thanks for your response. I didn't know it was possible to use translator-names as arguments to the Validate annotation. Do I still have to contribute the translator in some way or i

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Onno Scheffers
On Fri, Jan 30, 2009 at 5:32 PM, Chris Lewis wrote: > that it is less than ideal for building front end widgets That's not true. As a matter of fact, jQuery is currently one of the most popular Javascript libraries for developing frontend widgets and I see very cool widgets popping up all over

Non-default custom String-Translator?

2009-01-25 Thread Onno Scheffers
Is there a way I can setup a custom String validator that is only added to fields I explicitly set the translator for? I want to make sure some TextFields (username and email-address) are converted to lowercase Strings. I figured a Translator would be useful for that. But when I create a Lowercas

Re: Pages vs Components

2009-01-16 Thread Onno Scheffers
> > I don't understand when I would use a Component and what they are for. Typically a web-application is built from a number of pages. And each page is different. Many elements on the pages will be the same or similar though. For those elements it is usually wise to create a separate component

Re: example BaseURLSource: T5

2009-01-14 Thread Onno Scheffers
@InjectService("RequestGlobals") final RequestGlobals requestGlobals, final Configuration configuration) { AliasContribution aliasContribution = new AliasContribution( BaseURLSource.class, new SSLBaseURLSource(productionMode, requestGlobals) );

Re: Rapid turnaround with Tapestry 5 blog post

2009-01-06 Thread Onno Scheffers
ing bug I'm still on IDEA 7 waiting for those two issues to be resolved in IDEA8. regards, Onno Scheffers On Tue, Jan 6, 2009 at 9:25 AM, Angelo Chen wrote: > > Hi, > > I noticed that using Maven Build in IDEA8, there is no option to have > 'build > on frame de

Re: IntelliJ IDEA and Tapestry Pages

2008-12-17 Thread Onno Scheffers
> Has any one had any success? I don't have a real solution for this either. The 'dynamic'/custom tags like , , are considered illegal markup by IntelliJ and highlighted as errors. But you can tell IntelliJ to accept custom attributes. I usually try to keep the HTML as friendly to the designer

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Onno Scheffers
> > I think that i'm not the only > tapestry user without maven high skills ... If you're using the Tapestry binaries, there's no real reason you need to use Maven if if gives you so much troubles. When you lose days figuring out how to get your builds to work properly, it might be a good reaso

Re: Javascript frameworks

2008-11-03 Thread Onno Scheffers
39 3179 98 119 140 173 346 regards, Onno Scheffers On Thu, Oct 30, 2008 at 6:17 PM, César Lesc <[EMAIL PROTECTED]> wrote: > I did the tests with Windows and Mac, with FF, Safari and IE and > prototype only is the slowest with IE but not too far fr

Javascript frameworks

2008-10-30 Thread Onno Scheffers
I just stumbled upon this link that lets you test the performance of selectors in different Javascript libraries: http://jamesdonaghue.com/static/peppy/profile/slickspeed/ Prototype doesn't look very good from that tests and that's pretty much in line with my own feeling after having used JQuery

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Onno Scheffers
Great sum up. There has been talk in the past about the missing $remove$, $body$ etc. which we had in Tapestry 4 if I'm not mistaken. There are work-arounds in T5, but I would expect those to be available in a release candidate of T5. regards, Onno Scheffers On Mon, Oct 13, 2008 at 11:

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-11 Thread Onno Scheffers
Hi Francois, I agree with your suggestions. I would like to be able to configure Javascript to be included in the head section rather than at the bottom of the page. We recently had a discussion about it here: https://issues.apache.org/jira/browse/TAPESTRY-2364. Without it you need hacks to exec

Re: Javascript at the bottom of page

2008-10-04 Thread Onno Scheffers
Hi Howard, including Javascript files at the end of the page may increase page-load times, but for me it introduces an unwanted usability issue. I am rendering a couple of questions on a single page and answering them should work for the user without Javascript. If Javascript is enabled, I want t

Re: T5: RadioGroup and null?

2008-10-01 Thread Onno Scheffers
Hi Uli, I figured any Object-type, including a Boolean, could be set to null, but indeed when I change the type to a String it works. Thanks a lot. regards, Onno Scheffers On Wed, Oct 1, 2008 at 3:18 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > Boolean values cannot be set to

Re: T5: RadioGroup and null?

2008-10-01 Thread Onno Scheffers
I just upgraded to T5.0.15. Still the same problem. Anyone? On Tue, Sep 30, 2008 at 12:21 AM, Onno Scheffers <[EMAIL PROTECTED]> wrote: > I'm using T5.0.14 and I'd like to get back null from a RadioGroup if the > user didn't click on any radio-buttons, but it s

T5: RadioGroup and null?

2008-09-29 Thread Onno Scheffers
I'm using T5.0.14 and I'd like to get back null from a RadioGroup if the user didn't click on any radio-buttons, but it seems the RadioGroup doesn't support this? This return false if no selection was made by the user. regards, Onno Scheffers

Re: subpackages under .pages

2008-09-25 Thread Onno Scheffers
That's pretty much how I do it and it works just fine. Have you tried accessing the url /customer/Data in your browser? Tapestry might just try and clean the duplication away to keep your urls tidy and short. regards, Onno Scheffers

Re: On $content$ again

2008-08-18 Thread Onno Scheffers
+1 Having $content$ is much better IMHO. I'm using the other approach currently as a work-around, but it doesn't feel as clean or as easy as having $content$. I'm adding a commentblock to the elements to make clear what is happening there so future developers on the project don't get confused. re

Re: [T5] How to handle DAOs?

2008-08-10 Thread Onno Scheffers
> > The thing to know about tapestry-hibernate is that it creates a proxy > for the actual hibernate session. When you use the injected session it > actually gets the session for the current thread, via the > HibernateSessionManager I believe. So when you instantiate your DAO with > a session in th

  1   2   >