Re: For the one at the Devoxx

2010-11-23 Thread Piero Sartini
> Of course, we always are more productive with the tools we already are used > to them. But this doesn't mean you couldn't be more productive if you learn > a better tool. Oh - its not that I did not learn Tapestry ;-) > You don't need to create components to use JavaScript at all. If you don't

Re: For the one at the Devoxx

2010-11-23 Thread Piero Sartini
>> It's my choice in projects where tapestry would be overkill. > For example ? Projects where the component model does not pay off the increased complexity. Maybe its just because I am doing webapps for so long that action based is more natural to me.. but my feeling is that its much easier to u

Re: For the one at the Devoxx

2010-11-23 Thread Piero Sartini
> Play! team - and people around who believe on the project - are very good on > marketing and buzz. I've tried it before and beside being good in marketing and buzz, they created an excellent action based web framework. It's my choice in projects where tapestry would be overkill. Pi

Re: For the one at the Devoxx

2010-11-23 Thread Piero Sartini
2010/11/19 Andreas Andreou : > So, i think it makes sense to brainstorm some ideas on how to > reverse that perception. The new website+documentation will > surely help, but what other actions can significantly affect the > average developer? For the average developer it helps a lot if he knows th

Re: Fwd: [Announce] Tapestry 5.2 Demo application

2010-10-21 Thread Piero Sartini
Very nice effort! Is the captcha a tapestry core component? Just because on the first page it reads: "This version of the application uses only Tapestry's core components, thus you will find here a *realistic* demonstration of Tapestry's power." Piero --

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Piero Sartini
> Well that's definetely not a bug. Andreas talked right, he said > "ideally",  but tapestry-hibernate is a library around (very near) the > core framework so if it choose to depend on an "internal" > implementation it's a library's owner choice. What has not to be done > is to public (in any way)

Re: How to disable Client-Side-Error-Message-Bubbles

2010-06-02 Thread Piero Sartini
I've done something like this some time ago with help from this list. It was needed to integrate the YAML [1] form css framework, which shows errors below the input fields. The plan was to refactor the functionality into a yaml-module, but this was never finnished and I am not sure if it works. Bu

Re: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources

2010-04-29 Thread Piero Sartini
Great news! Thanks for all the hard work! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-15 Thread Piero Sartini
maybe PDFBox could be used? -> http://pdfbox.apache.org/ - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Job offer for tapestry developer (m/f)

2010-04-12 Thread Piero Sartini
Hello Andreas. > AGEF (www.agef.net) is a german non-profit organisation, who is working > in the field of international development cooperation. For one of our > projects (www.alumniportal-deutschland.org) we are looking for a part > time tapetry5 (Java Web) developer. The work will mostly invol

inject services with custom annotation

2010-04-10 Thread Piero Sartini
Is it possible to use custom annotations to inject services? background: I am building some support libraries for JPA that should work inside tapestry as well as EJB projects. What I want to make happen is to somehow enable @PersistenceContext inside the tapestry-jpa module. I don't want to suppo

Creating Module with CSS and JS resources

2010-04-05 Thread Piero Sartini
I want to create a module which consists of several parts: - a JS which overrides tapestry's client side validation - a collection of css files forming a CSS Framework Now I am facing a problem: 1. How to make all the css assets available through the module? 2. How to automatically include the JS

Re: Google Summer of Code 2010

2010-03-26 Thread Piero Sartini
2010/3/26 Ulrich Stärk : > I can't tell since I didn't have a look. One of the tasks for a student > would be to assess existing third-party code and work with the author > towards an integration... You should have a look, there really is not much work left for a student to do. I would propose to

Re: Google Summer of Code 2010

2010-03-25 Thread Piero Sartini
> Of course we have come up with some Tapestry-specific tasks as well which > can be found at [3]. They include JPA and EJB3 integration and more nifty > components. Thiago and I will be mentoring students that whish to carry out > those tasks. What do you miss from the existing JPA integration [1

Re: Documentation Request/Suggestion

2010-03-24 Thread Piero Sartini
> So a community-driven documentation effort is out of the question unless we > come up with a system or procedure that complies with ASF rules. We could just require to sign a CLA for people that want to help out with documentation. This would mean to give rights to modifiy/create only to people

Re: Better EJB3.1 integration?

2010-03-23 Thread Piero Sartini
>  Has anyone done any work on doing better EJB3.1 integration with Tapestry? I > know that the Jumpstart does it by using a context lookup, and I'm copying > that pattern right now (though without the service) but I thought I'd ask if > anyone has gone one better. I tried to integrate tapestry

Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)

2010-03-15 Thread Piero Sartini
>> One other thing that stopped working is this: >> http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects > > The approach used in that wiki page (using a list even when handling a form > submission) is far from recommended. I advise anyone to not use it. Why? I am using it in some pro

Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)

2010-03-15 Thread Piero Sartini
> The class transformation API was changed in Tapestry 5.2-SNAPSHOT. Is it planned to provide the old API work in 5.2 as well? (and not break backward compatibility) One other thing that stopped working is this: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects Piero

Re: Name of application module class too complicated?

2010-03-11 Thread Piero Sartini
+1 for Josh's suggestion as well. Backward compatibility is a must. If both modules are present, the old behaviour (Module) should take precedence. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-25 Thread Piero Sartini
> I'd rather leave the home of Tapestry at Apache. +1. Leave Tapestry at Apache - everything else would just create problems about licensing and maybe even hold back contributors. - To unsubscribe, e-mail: users-unsubscr...@tapes

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> There is one in Nabble (new version at > http://n2.nabble.com/Tapestry-Users-f832.html, old one at > http://old.nabble.com/Tapestry-f302.html), OSDir, MarkMail, etc. Yep - now the question is how to nicely integrate them into http://tapestry.apache.org >From a user's perspective, SSO would be gr

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> I think Tapestry has a very healthy community around it. I guess you're > talking about the size of it. The mailing list has many messages per day, > people contribute packages, etc. You are propably right - but it does not 'feel' / look that healthy. Maybe the problem again is visibility. We ha

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> I've just spent whole January, four hours a week, teaching Tapestry in a > large company with lots of people working in large projects, including one > that will be used nationwide in Brazil. The standard argument doesn't > convince me: JSF is a mess and it is a standard. It suffers from the > ev

Re: Why can't component classes be abstract? [5.1]

2010-02-22 Thread Piero Sartini
> Yeah, I understand the limitation. But how should I access a property which > is defined in my base class in one of the subclasses with these limitations? Just don't use @Property - provide getXXX and setXXX methods. > As far as I understand, I cannot make my base classes property protected, >

Re: Intellij reloading page and components templates not working

2010-02-21 Thread Piero Sartini
> .tml changes work fine, is the java changes that never get reloaded even > after compiling. When running from maven from the console it works fine, but > when running from intellij from a running config it can only pick up regular > hot swapable changes that are in packages not watched by tapestr

Re: integrating a web services stack

2010-02-16 Thread Piero Sartini
> That would be for RESTful web services only. Did you ever have to expose a > service via SOAP? You are right, this is useful for RESTful services only. Never had to expose a SOAP service within a pure tapestry application, but a few where I am doing this from an EJB backend. But that's overkill

Re: integrating a web services stack

2010-02-16 Thread Piero Sartini
> Which solution are you using and why? Are there others I haven't thought of? I am using tapestry-resteasy if I need to make a service available. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org Fo

Re: Plugin registry

2010-02-10 Thread Piero Sartini
> Why not an specific page in the Tapestry wiki and link it from the site? This is what I've thought about - Struts2 does it within a wiki as well. However, they are using confluence. I am pretty sure we are able to accomplish something similar with MoinMoin... but I am getting Internal Server err

Plugin registry

2010-02-10 Thread Piero Sartini
Hello list, I've thought about creating some kind of plugin list for tapestry5. My feeling is that its hard to find integrations or functionality or know what kind of modules are available - especially for new users. What do you all think about creating a place where these plugins can be easily fo

Re: Adding textfields to a form dynamically

2010-02-10 Thread Piero Sartini
> This sounds very promising, thanks for the link! > > The demo does not work without JavaScript, I hope it is not a general > problem with the project. This is because zones are used to refresh the page. It has nothing to do with the conversation stuff. Piero --

Re: Adding textfields to a form dynamically

2010-02-10 Thread Piero Sartini
>> Why don't you want to use @Persist? > > It breaks tabbed browsing. The user would not be able to open two tabs and > edit separate lists before submitting them. Therefore I banned the use of > @Persist in my application. You may want to have a look at tynamo's tapestry-conversation: http://tyna

Re: New Tapestry Website - http://www.seesaw.com/

2010-01-29 Thread Piero Sartini
Just a short note: the GA stuff seems to be loaded twice. In the header as well as in the footer. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry

[ANNOUNCEMENT] Tapestry JPA 2.0.0

2010-01-26 Thread Piero Sartini
I am proud to announce the first release of tapestry-jpa which is now part of the tynamo[1] project. It features full JPA2 integration and provides you with all the functionalities known from tapestry's hibernate support. To get started, you may want to take a look at our Tapestry JPA Guide[2]. Ma

Re: tapestry-jpa

2010-01-25 Thread Piero Sartini
Hi Peter, nice to hear people are trying out tapesry-jpa. You may want to have a look at the new documentation wiki as well: http://docs.codehaus.org/display/TYNAMO/Tapestry+JPA > After i followed the quickstart infos on > http://kenai.com/projects/tapestry-jpa/pages/Quickstart (which says, in >

Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Piero Sartini
Forget about what I said. Just needed to do the same thing, and the packaging is: InjectSelectionModel outside of any controlled package, for example: your.app.package.annotations GenericSelectionModel inside a controlled package, ie your.app.package.base InjectSelectionModelWorker inside your.app

Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Piero Sartini
> but the article you sent me is exactly the same article I used before!!! > > I just dont get why tapestry complaints about its own class > AbstractSelectModel... Because you extended it. I assume your GenericSelectionModel sits in a controlled package: base, components, or one of the others. Thi

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
>> [ERROR] TapestryModule.RequestExceptionHandler Processing of request >> failed with uncaught exception: java.lang.ExceptionInInitializerError >> java.lang.ExceptionInInitializerError >>        at >> de.pierosartini.tynamo.services.impl.TynamoComponentClassResolverImpl$6.invoke(TynamoComponentCla

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
>> It would be great to just override ComponentClassResolver - but this >> does not seem to work?! > > What exactly do you mean by "does not seem to work"? binder.bind(ComponentClassResolver.class, TynamoComponentClassResolverImpl.class).withId("Override"); For now, TynamoComponentClassResolverIm

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
>>> - if not, make tapestry think there is a page which is in fact located >>> somewhere else >> >> You could advice ComponentSource to change the getPage(String name) method >> parameter value before its invoked. > > I will try this, thanks! I think it could work if I advise to ComponentClassReso

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
> This seems to me more of a Tynamo issue than a Tapestry one itself, so I > guess you'll have a better answer from the Tynamo team. ;) I don't think so. This issue is about implementing a specific functionality missing in tynamo right now ;) We are discussing the issue within http://jira.codehaus

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
>> The usecase is for tynamo's crud functionality. >> We want to provide generic Add/List/Edit pages inside our library. > > The normal, unchanged URL for your pages can still be used, so you shouldn't > worry about them. URL rewriting is aliasing, not overriding. Of course we could use "/tynamo/a

Re: UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
>> I want to use UrlRewriter in order to make a page appear in two locations. >> Now my problem is that I am not able to link to both destinations >> (with t:pagelink for example). > > Why would you want/like that in first place? The usecase is for tynamo's crud functionality. We want to provide g

UrlRewriter - t:pagelink to alias url

2010-01-19 Thread Piero Sartini
I want to use UrlRewriter in order to make a page appear in two locations. Now my problem is that I am not able to link to both destinations (with t:pagelink for example). Is there any way for me to make a page appear under two locations and be able to use it as it is available in both locations?

Re: Load page/component without ComponentClassResolver

2010-01-19 Thread Piero Sartini
After trying to override ComponentClassResolver (which did not work), I played with UrlRewriter infrastructure. I think most of what I need could be done by just using it. Thanks! - To unsubscribe, e-mail: users-unsubscr...@tapes

Re: Differentiate the Actionlink with in a loop

2010-01-18 Thread Piero Sartini
>   Thanks Piero, for the quick response yes i do have that method like > onActionFromShowDetails(long id){} > where i can set a property to boolean true /false. But my problem is as i > mentioned my application list is dynamic in that case if i have N > applications then i would need N such proper

Re: Differentiate the Actionlink with in a loop

2010-01-18 Thread Piero Sartini
> encoder="applicationEncoder"> > >         conntext="currentApplication.id">${currentApplication.applicationName} > >         > > Note: Values for the loop is loaded dynamically from database, so i cannot > have one property to check for If condition like . Please > suggest. In your page class y

Re: Load page/component without ComponentClassResolver

2010-01-18 Thread Piero Sartini
omp.mylib.pages and I contribute a new LibraryMapping("mylib", "org.comp.mylib") to the ComponentClassResolver, they would be available in the root path. (eg. /MyPage ). But what I want is to dynamically place my pages at a given location, configured by the user.

Load page/component without ComponentClassResolver

2010-01-18 Thread Piero Sartini
Hello list. I want to implement a library which provides standard pages for the users application. There are two requirements: 1. The user should configure the path where these pages will be available. 2. The user should be able to override them I think there are 2 things needed to accomplish th

Re: Is tapestry coupled with Hibernate API?

2010-01-12 Thread Piero Sartini
> Differently from JPA, it also allows one to use OODBMSs, Excel, Google > BigTable, Amazon EC2 and so on in addition to relational databases. > > By selecting JPA you cut of the possibility to use e.g., db4o as persistence > engine. I agree that JDO is a great technology. But I don't think it is

Re: Is tapestry coupled with Hibernate API?

2010-01-12 Thread Piero Sartini
> As far as I understand, javax.persistence.EntityManager is an interface, so, > there should be any mechanism to determine which impl will be used at > runtime, right? Right. This is part of the JPA specification. You define the implementation inside your persistence.xml: ... org.eclipse.persiste

Re: Is tapestry coupled with Hibernate API?

2010-01-12 Thread Piero Sartini
> My only question now, is "what about tapestry-jpa?" isn't it an abstraction > for my scenario? > It hasn't documentation yet, but Piero, correct me if I am wrong, if I use > the tapestry-jpa interfaces into my DAO implementation, I would be > de-coupled from the JPA implementation that I will be

Re: Is tapestry coupled with Hibernate API?

2010-01-12 Thread Piero Sartini
> I would need some mechanism, which knows about the current data layer > implementation I want to use (i.e. hibernate or any ohter else), then my DAO > impl will not need to be re-written for multiples technologies. > Anyway, that mechanism should know about the "supported" technologies and > how

Re: Is tapestry coupled with Hibernate API?

2010-01-11 Thread Piero Sartini
> So, do you think that the most flexible approach should be to have some > module like tapestry-jpa to interact with into the pages, and, the real > "data access layer" implementation could be inter-changable between > hibernate, db4o, and anyone which implements the JPA specification? If you use

Re: Is tapestry coupled with Hibernate API?

2010-01-11 Thread Piero Sartini
Hi Matias, you may be interested in tapestry-jpa which can be found at http://kenai.com/projects/tapestry-jpa The JPA1 version should work fine, I am using it in all of my projects. I am currently working on the JPA2 version - expect it to be working until the end of the week. I'll try to come up

Re: [ANNOUNCEMENT] Introducing Tynamo!

2010-01-10 Thread Piero Sartini
Very nice work, congratulations! Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Help with onActivate Page

2009-12-27 Thread Piero Sartini
>   2. If No, help me with the following scenario in my project. >   I need to show a page a page to the user, only when it has a context with >   it! Else i need to redirect the user to another page. Though i  link the >   page, only with the t:context, i just need to confirm no one has ever >   b

Re: About T5 integration modules

2009-12-24 Thread Piero Sartini
> I'm also a bit surprised at how eager people are to make use of > cumbersome solutions like Spring Security to accomplish simple tasks > such > as protecting pages.  The Spring Security logic is path-based, > requiring an awkward mapping from paths to Tapestry pages.  When I > need to implement t

Re: Example of overriding the default ValidationDecorator

2009-12-23 Thread Piero Sartini
Thanks Thiago, that helped me a lot. Unfortunately it seems that it does not help against these error-bubbles. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h.

Re: Discussion

2009-12-23 Thread Piero Sartini
> Agreed. Don't forget to check the third-party packages in the Tapestry home > page. Talking about these.. It would be great to tag them defining what they are about: * projects using tapestry (like InterLDAP) * projects providing extensions * showcase / tutorial projects Outdated: * Godcode Co

Re: Discussion

2009-12-23 Thread Piero Sartini
> Wicket itself doesn't. Nor does JSF. (all this as far as I know and I google > it) JSF does not qualify as framework IMHO. Seam brings security. Agreed on chenillekit. By the way, it would be nice to have something like wicketstuff.org :-) > Regarding JDO, its implementations need for class en

Re: Discussion

2009-12-23 Thread Piero Sartini
> More freedom, more control, more complex. Quite hard to avoid that. Agreed. The challange is to define what parts need to be customized often, and should be easy to change. For me, these bubbles should be easy to change.. but as always, others may have a different oppinion. > I cannot speak fo

Re: Discussion

2009-12-23 Thread Piero Sartini
> I wrote that because of the @PersistenceContext. That's the only thing, > AFAIK, that would be different from tapestry-hibernate. >From a users perspective, its a matter of injecting EntityManager instead of hibernate's Session. In the module itself there are more changes. > You can do this in

Re: Discussion

2009-12-23 Thread Piero Sartini
> Select models out of beans could be improved. My Tapestry CRUD package has a > solution for that. I know... but your CRUD package is not tapestry. > You're talking about a snapshot. This behaviour was changed and now > everything in the context is allowed. Hey.. this was no complain, you asked

Re: Discussion

2009-12-23 Thread Piero Sartini
> There's also JavaConfig and use of annotations instead of XML, but > Tapestry-IoC still looks better to me. And Spring doesn't have distributed > configuration. At the time I had a look at Spring it didn't have this ;-) > What I meant is that it is hard to find your >> way around the IoC concep

Re: Discussion

2009-12-23 Thread Piero Sartini
>> I've also thought about this, and my only conclusion is that Tapestry is >> too difficult to master. Especially when it comes to tapestry-ioc and >> getting productive with it. > > What exactly is difficult to master? I think Tapestry-IoC is easier to learn > than Spring. > Maybe there's a sensa

Re: Discussion

2009-12-23 Thread Piero Sartini
> Having seen some discussions in the past about the history of Tapestry, I'm > wondering what the status of Tapestry with CDI support will be. In other > words, is it again going to result a new major release incompatible with > previous versions? I think CDI in it's current form, if should be sup

Re: Christmas Wish List (was: Tapestry 5, JPA and Hibernate)

2009-12-16 Thread Piero Sartini
> The only reason I still use it is the transaction management. Having time to > implement something similar in Tapestry-IoC is in my wishlist > (tapestry-hibernate and @CommitAfter are not enough, as they're tied to > Hibernate), but I don't know when Santa will give me that . . . Yes.. transacti

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Piero Sartini
> I would say that Tapestry-IoC is not able to handle JPA fully > (@PersistenceContext) now, but someone can step up and implement this. :) That's what I meant with re-inventing the wheel ;-) One time we will have a working tapestry-jpa2 module. But then the next step is to support more than one p

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Piero Sartini
>  For both JPA/Hibernate, you have two ways to go: > >    1. Container-Managed EntityManagers and transactions. > > By this I mean that you're using @PersistenceContext and such in your classes > so that your web application container (i.e. GlassFish) manages the > EntityManagers and the transact

Re: T5 Multiple AppModules?

2009-12-07 Thread Piero Sartini
Ups. Just realized that is not what Howard said: Two seperate webapps that access one common module. My approach is only one webapp with 2 modules for the different app-pages/components. Sorry for the confusion. Piero

Re: T5 Multiple AppModules?

2009-12-07 Thread Piero Sartini
> Do I then create multiple filters in the web.xml for each sub-app? Or > just one for /*? Seems to require multiple filter definitions, but > then other stuff fails. Only one filter! > Further, it's claiming I have multiple IoCs. Removing the extra > filters from the web.xml eliminates the multi

Re: Customize markup of client side validation

2009-12-06 Thread Piero Sartini
> You would need to implement your own ValidationDecorator. I just thought > of it yet. It would be a better solution to your specific problem. There > were some messages in this mailing list about it. The Tapestry sources are > other nice places to see some examples about it. ValidationDecorator

Re: Customize markup of client side validation

2009-12-06 Thread Piero Sartini
Hi Thiago, > I can think of two ways: using your own component to get the validation > errors from the ValidationTracker or write a mixin that rewrites the > generated DOM. Thanks for the hint. I've thought in this direction as well but was not sure if it would be possible at all. I like the mi

Customize markup of client side validation

2009-12-06 Thread Piero Sartini
Hello, I want to overwrite the markup that is generated from tapestry for client side validation. To be more detailed, I need to integrate the forms.css of the YAML css framework: http://www.yaml.de/en/dokumentation/css-bausteine/formularbaukasten.html To use it the right way, it is not enough

Re: tapestry-jpa needs some advice

2009-12-03 Thread Piero Sartini
> �...@commitafter("unit1") > >  JPA already defines something like this does anyone have an opinion on using > @Inject vs. @PersistenceContext("unit1")? Hard to say, but I would prefer @Inject. I like to know that I am working with the tapestry stuff, not in the JavaEE context. Could be confusin

Re: Form.recordError not preventing from calling onSubmit form

2009-11-10 Thread Piero Sartini
> I checked and is the line is being executed, but the process keep going to > the onSubmitRegistrationForm() and the new page "successPage" is > rendered... onSubmit() is called whenever the form is submitted. What you want to use is onSuccess(), this method is only called if the validation wa

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Piero Sartini
Isn't it possible to "shut down" these channels? This will prevent people from landing there while searching for tapestry components. I remember my early days with t5 when this was very confusing. If you don't use the google project any more - why not delete it? If you don't use the formos infra

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-07 Thread Piero Sartini
> So the question is: do I wait and see if time opens up in Q1 to > actually start on a T5 book ... or do I jump into 5.2 coding and leave > books to others? +1 for coding, as there already is a very good book available (written by Igor). Why do it twice - what's lacking is just an english transl

[T5] JDO Integration

2009-10-10 Thread Piero Sartini
I need to create a GAE based application and wonder if someone has already done some work to integrate JDO with tap5. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Accessing the T5 IoC Registry

2009-10-07 Thread Piero Sartini
> Maybe you can explain why you have a static initialiser that needs the > registry? It sounds very 'un-tapestry' ;-) I had the same problem some time ago. My requirement was to access services from my entity beans. I think to put the registry into a static context would be a great addition.. Pie

Re: New Tapestry Website - Final review

2009-09-21 Thread Piero Sartini
+1 for single-click navigation! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Noob: Wishing for a tapestry-jpa like tapestry-hibernate

2009-08-26 Thread Piero Sartini
> Oh well, diving in to see how far I can get by just taking > tapestry-hibernate and making a JPA version. I did the same some time ago. It works for me, but is far from being complete: http://bitbucket.org/psartini/tapestry-jpa/ There is a lot of stuff missing, especially the more advanced

Re: Property access in var: binded objects?

2009-06-29 Thread Piero Sartini
> Is @Property so hard or awful? No, it isn't. But for me these kind of objects have temporary character. I really don't like them to pollute my page classes. Maybe its just me, but if I need a property just to iterate over a list it feels like it could be optimized tapestry is reducing nee

Property access in var: binded objects?

2009-06-29 Thread Piero Sartini
Iterating over objects with loop and var: can be handy. But I discovered (and it is mentioned in the docs) that it is not possible to access the properties of these objects. Why is this? Is it too complicated to support? (I can't see at which point it is so different to "normal" property expres

Re: Tapestry 6: Famous last words?

2009-06-27 Thread Piero Sartini
> I expect the T5 IOC to live well beyond the web framework portion. T5 IoC is very powerful. But at this point I am not so sure if Tapestry IoC is the best answer to flexibility. Take a look at Struts2 - they are able to switch their DI implementation by configuration. This brings them a lot

Re: Feedback on application status page

2009-06-25 Thread Piero Sartini
Hi Hugo! This is very useful! Just gave it a try and found a bug: ${currentSessionAttribute.size} seems to be empty or NULL for SSOs. This leads to a NullPointerException within formatBytes(). Piero Am Donnerstag, 25. Juni 2009 11:04:09 schrieb Hugo Palma: > I've created an application

Re: [T5.1] @SessionState an generic pages

2009-06-24 Thread Piero Sartini
> protected Class getValueClass() > { > return (Class) ((ParameterizedType) > getClass().getGenericSuperclass()).getActualTypeArguments()[0]; } > > I use something similar in DAOs, idea came from here: > https://www.hibernate.org/328.html Thanks!! Had an abstract getEntityClass() method for

Re: Return HTML

2009-06-22 Thread Piero Sartini
onents (and pages). Piero > > Piero Sartini-3 wrote: > >> >> secondly i have a component Info with a variable say "private String > >> >> description" > >> >> and function > >> >> public String getDesc

Re: Return HTML

2009-06-22 Thread Piero Sartini
> >> secondly i have a component Info with a variable say "private String > >> description" > >> and function > >> public String getDescription() { > >>return description; > >> } > >> > >> how can i use it in template ?? > >> ${component:Info.description} doesnt work ! Just use ${descr

Custom URL scheme?

2009-06-20 Thread Piero Sartini
Right now, my URLs look like this: domain.tld/module/ for the indexpage then my subpages use domain.tld/module/subpage// I would love to use something like domain.tld/module//subpage/ I think the new URL rewriting support can help but I am a bit lost with it. Anyone has already done this?

Re: Any one using extension-point and extend ?

2009-06-20 Thread Piero Sartini
Am Samstag, 20. Juni 2009 05:07:54 schrieb donf yang: > And when we need it ? I am using it. It replaces the simpler layout component pattern I used before. The advantage is that I am able to define events and zones that need to be available in each page. Using this for a dialog/popup solution

Re: Page event after activation?

2009-06-19 Thread Piero Sartini
> My solution cover everything you needed without the need for > subclasses to call initialize(). About some pages needing two > parameters, other two, this isn't a problem: just use EventContext as > the parameter of your onActivate(). Regardless of how many parameters > were used, it will be call

Re: RenderSupport in pages?

2009-06-19 Thread Piero Sartini
> You don't have access to the RenderSupport environmental until the page is > actually rendering. So it's available between the setupRender and > cleanupRender phases, but outside of that (i.e in your > pageAttached/pageDetached phases) it has not been placed in the environment > yet. This clears

Re: RenderSupport in pages?

2009-06-19 Thread Piero Sartini
> What Tapestry version are you using? 5.1.0.5 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: RenderSupport in pages?

2009-06-19 Thread Piero Sartini
Am Freitag, 19. Juni 2009 13:12:02 schrieb DH: > I am sure that exception comes out in ajax request, right? RenderSupport is > not available in ajax request. Nope.. as soon as I try to access the RenderSupport in pageAttached or pageLoaded. It is an abstract class - but that shouldn't matter? Th

Re: RenderSupport in pages?

2009-06-19 Thread Piero Sartini
Am Freitag, 19. Juni 2009 12:43:23 schrieb DH: > sure, you can use directly in page. > > @Environmental > private RenderSupport renderSupport; > > Why to extend page from component, page itself is the top root component. Ups - that was too early. It does not work: "No object of type org.apache.ta

Re: RenderSupport in pages?

2009-06-19 Thread Piero Sartini
Am Freitag, 19. Juni 2009 12:43:23 schrieb DH: > @Environmental > private RenderSupport renderSupport; I tried it using @Inject like in the components. @Environmental works :-) Thanks! Piero - To unsubscribe, e-mail: us

RenderSupport in pages?

2009-06-19 Thread Piero Sartini
Is it possible to get the RenderSupport in pages? I need to add some stylesheet... What works is to extend my Page from some Component... but I am not sure that is the way to go?! Piero - To unsubscribe, e-mail: users-

Re: Page event after activation?

2009-06-19 Thread Piero Sartini
Am Freitag, 19. Juni 2009 02:30:45 schrieb Thiago H. de Paula Figueiredo: > As far as I can see, this is not a matter of Tapestry events, but of > implementing a Template design pattern. ;) > > final Object onActivate(EventContext context) { > initialize(context); > } > >

Re: Page event after activation?

2009-06-18 Thread Piero Sartini
> Each class can have as many onActivate() methods as you want. But I would > have a single onActivate(EventContext context) method and let the > subclasses override it. Or define a method like process(EventContext > context) and call it from a final onActivate(EventContext) method. If I overwrite

  1   2   >