Re: Basic queries about Tapestry

2008-01-28 Thread Onno Scheffers
I think you will find all your answers here: http://tapestry.apache.org/tapestry5/tapestry-ioc/index.html - Onno 2008/1/28, HHB <[EMAIL PROTECTED]>: > > > Hi. > Why Tapestry5 came with its own DI container? why not using Spring or > Guice > as the default container? > What are the advantages of

Re: Tapestry is not working

2008-02-14 Thread Onno Scheffers
27;t working yet. > Can you tell me where's the problem? > > Thanks > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Onno Scheffers Sr. Java Software Developer Piraya - http://www.piraya.nl

T5: Layout question

2008-04-02 Thread Onno Scheffers
I created a Layout component called Border. According to the documentation, I have to setup my page something like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content I want the template to be previewable though so the webdesigners can work with the pages more easily. Fo

Re: Re : T5: Layout question

2008-04-02 Thread Onno Scheffers
TECTED]>: > > Hi Onno, > > You don't need to do anything else. Everything outside of > > > Page content > > > will be discarded and the Layout component will be used instead. Is it not > the case? > > Regards, > > Julien > > - M

Re: T5: Layout question

2008-04-02 Thread Onno Scheffers
> > You don't need to do anything else. Everything outside of > > Page content > > will be discarded and the Layout component will be used instead. Is it not > the case? > > Regards, > > Julien > > - Message d'origine >

Re: Re : Re : T5: Layout question

2008-04-02 Thread Onno Scheffers
.java: > @Parameter > @Property > private Block _content; > > > > > > On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY <[EMAIL PROTECTED]> wrote: > > > Sorry Onno, I was wrong. > > > > Because Layout is basically component it doesn't work t

Re: Re : Re : T5: Layout question

2008-04-02 Thread Onno Scheffers
gt; > > > > > > > > > > On Wed, Apr 2, 2008 at 11:56 AM, Onno Scheffers <[EMAIL PROTECTED]> wrote: > > > Hi Peter, > > > > thanks, but this still doesn't seem to solve the

Re: Getting Answers on the User List

2008-04-11 Thread Onno Scheffers
> Take for example Kent Tong, the former Tapestry commiter. He has now even > written a book on > Wicket. ..and he has written yet another one on JSF after that. So clearly he must not like Wicket very much :o) Seriously though: I have used Tapestry 3 on several projects. I've used Tapestry 4 o

Re: AW: AW: Getting Answers on the User List

2008-04-17 Thread Onno Scheffers
> > I want you to take a close look at the following points I've been making > and > tell me which one is a misinformation. > > 1. Every Tapestry major release is backward incompatible with previous > releases. That's true and really inconvenient. On the other hand I also complain about framewor

Re: what we need: tutorials like this

2006-08-15 Thread Onno Scheffers
m-woelm schreef: Hey folks, this is my first mail, so I shortly present my self. I am a student from germany and my job is to evaluate Tapestry for my professorship. Therefore, I have to write a simple application (small web-shop). Welcome :o) Especially, how can I handle form-values of a

Re: Passing on information from one page to another

2006-09-17 Thread Onno Scheffers
Peter Dawn schreef: guys, i have a form which a user fills in with their information. now when they click on submit, i want to display a confirmation page, displaying all the information the user has already filled in and once they confirm process the information. now how can i pass on informa

T5: Is the tml-extension configurable?

2007-12-29 Thread Onno Scheffers
Hi, it's been a while since I last used Tapestry. My last couple of projects were based on Wicket, simply because that's what the customer wanted. I prefer Tapestry myself and I've just started looking at Tapestry 5. It looks very promising so far. The only real annoyance for me is the fact t

Re: T5: Is the tml-extension configurable?

2007-12-29 Thread Onno Scheffers
- org.apache.tapestry.internal.services.StaticFilesFilter but i think its not recommendable to do this, because you must change some internal services. Onno Scheffers-3 wrote: Hi, it's been a while since I last used Tapestry. My last couple of projects were based on Wicket, simply because that's what the customer wanted.

Re: T5: Is the tml-extension configurable?

2007-12-30 Thread Onno Scheffers
if your designers are only designing "pages" and not "components" that will end up in your app's context root (not packaged away in a jar) then you could probably get away with just contributing a PageTemplateLocator in your AppModule. Hi Michael, Thanks for your reply. The designers do ind

Re: T5: Is the tml-extension configurable?

2007-12-30 Thread Onno Scheffers
Michael Lake schreef: I've testing this with 5.0.8-SNAPSHOT and I am able to .html "page" files from the context root. I don't think this will work with 5.0.6, but maybe 5.0.7 Hi Michael, I was still working with Tapestry 5.0.6 and, indeed, it doesn't work on that version. After upgrading t

Re: [T5] Layout and $remove$

2008-07-08 Thread Onno Scheffers
Hi Fabio, it looks like you're looking for the same thing I was looking for a while ago. http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-tc16448904.html#a16448904 Look for Peters' responses in that Thread. He really helped me out. regards, Onno Scheffers 2008/7/8 Fab

[T5] How to forward validation-results from LoginBox to LoginPage?

2008-07-21 Thread Onno Scheffers
Hi, I have a small LoginBox component on all of my public pages. If credentials are entered okay, the users logs in. No problem here. If the credentials are wrong however, I want the user to be forwarded to a full LoginPage that shows the validation errors and the LoginBox component so the user c

Re: [T5]

2008-08-07 Thread Onno Scheffers
Hi Kace, I use IntelliJ and Jetty (not Maven though, since I really don't like it). Make sure you go to the compiler settings and change the resource pattern to !?*.java. This will deploy all resources except for .java files to your build-folder. Optionally you can also go to Project Settings ->

Re: [T5]

2008-08-07 Thread Onno Scheffers
etty is watching. Either make Jetty watch your source-folders or auto-deploy to a folder that Jetty is watching. I did the last thing and it works very well. regards, Onno Scheffers 2008/8/7 kace <[EMAIL PROTECTED]> > > Thanks, > > I run process-resources for .tml files

[T5] How to handle DAOs?

2008-08-08 Thread Onno Scheffers
Hi, I am having some troubles figuring out the proper way to use DAO services using tapestry-hibernate. The documentation describes how to write the DAO service interfaces and how to register them, but it doesn't show an example of an actual DAO implementation. As far as I know I cannot inject a

Re: [T5] How to handle DAOs?

2008-08-09 Thread Onno Scheffers
Hi Sven, you are right, that does help me, thanks a lot! It's quite different from the directions the official tapestry-hibernate user guide gave me about DAOs, but it works very well. Just wondering if the code in the t5c-contrib package is production-ready? regards, Onno Scheffers 2

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

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: 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

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: 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

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: 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] 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: [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:

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: 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

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: 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: 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: 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: T5: which way do you prefer?

2007-02-02 Thread Onno Scheffers
Kent Tong wrote: Alternatively, a type-safe setter style: I would personally love type-safety. Currently my biggest gripe with Tapestry is the lack compile-time error-checking (and on-the-fly error-checking of my IDE) and lack of code-completion. A lot of stuff is currently (T4) configured u

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: 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: 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: 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-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
> > 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: 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: 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: [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: 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: 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: [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: 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

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: 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

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: [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-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: 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: [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: [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: [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'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: 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: [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: 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

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: 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

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

[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

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'

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
> > 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
> > 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
> > 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
> > 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
> 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: 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
> 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: 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-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: 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-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-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-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-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: 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

[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: 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

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
really > > bennefit. > > > > Althought keep the excelent work... > > > > Regards, > > > > *Pedro Januário* > > -- > > *Delivering Innovation and Technology* > > > > > > > > 2009/6/16 Onno Scheffers > > &g

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

  1   2   >