Thank you for your explanation with so much patience and other warmhearted
guys!
i think i am in the right place!
My enviornment is:eclipse3.3 ,jetty6.1.9,tapestry5.0.6.

At first,i use tomcat,but whenever i changed the code there will be a error
pop up--hot code replace error,so i have to restart the server.it's very
annoy!so,i change to jetty,it's very fast!
BTW,who know how to conquer the "hot code replace error" in tomcat?
I have goolge this error,say i have to use IBM'vm,have i?

when i study t5,i have encountered some problems.the first one is about ASO:
in the page class,i declare a variable:
@ApplicationState
private IDataSource dataSource;//IDataSource  is a interface

in AppModule:
public void contributeApplicationStateManager(
  MappedConfiguration<Class, ApplicationStateContribution> configuration) {

         ApplicationStateCreator<IDataSource> creator = new
ApplicationStateCreator<IDataSource>() {
                        public IDataSource create() {
                                return new MockDataSource();
                        }
                };

                configuration.add(IDataSource.class, new 
ApplicationStateContribution(
                                "session", creator));
        }



the error is:
Failure reading parameter source of component ShowAll:grid:
java.lang.InstantiationException: com.packtpub.celebrities.data.IDataSource


what's the problem?


Adam Zimowski wrote:
> 
> You can use pretty much any IDE to develop your web application, but
> Howard (the creator) as well as most people on the list use Eclipse,
> so if you need IDE-specific help, you're most likely to get it here
> with Eclipse as your tool.
> 
> For application server (aka servlet container), again, you can use
> anything (Tomcat, Resin, Jetty, JBoss, WebSphere, etc), but one that
> is heavily preferred here is Jetty, for its speed and simplicity.
> Again, you'll eliminate tons of potential problems related to app
> server setup if you choose Jetty at least for you local development.
> For example, under Jetty Tapestry live class reloading works
> flawlessly, but not so under Tomcat (due to Tomcat's internal design,
> specifically it's classloader design).
> 
> Other than those two, you're free to use any technology. Tapestry has
> a great support for Hibernate, so if you choose that you'll be right
> at home. I personally use iBatis, and have had no problems integrating
> it with Tapestry. Spring is also very well supported, but really, not
> needed since one of Spring's biggest advantages, it's IOC container,
> has built-in functionality in Tapestry. What I mean is that Tapestry
> has a fantastic IOC container itself, which pretty much eliminates the
> need for Spring. If you need AOP, integrating AspectJ should work just
> as well. I wrote few applications in Tapestry 5 where the only part of
> Spring I used was spring-core, spring-dao and spring-jdbc, to take
> advantage of Spring data access layer. Tapestry is very, very flexible
>  in regards what technology stack you want to use with it.
> 
> If you're used to logging with Log4J this may be a bit of change to
> you, as Tapestry uses simple logging facade rather than commons
> logging. What this means, you won't be using Log4J directly in your
> apps as you may have in the past, instead you'll be using Logger class
> from http://www.slf4j.org/. It takes a while getting used to, because
> at first I would find myself using Log4J in non-Tapestry classes
> anyway (just a habit) rather than pulling in slf4j.
> 
> Finally, Tapestry 5 is a world-class code! If you have a chance take a
> look at it's sources. It reads like a poem, simply put, it's a
> masterpiece. What I mean by that is that it follows all the best
> practices, desgin patterns, and everything a programmer should be
> doing. You can learn a great bit about system design by following
> patterns used by Tapestry itself.
> 
> It really helps to be very famliar with Inversion of Control, as
> Tapestry implements it quite differently than what many newcommers are
> used to. Using dependencies is very easy, as you found from the book,
> just do @Inject, @InjectPage etc and bam! it's there. Setting up your
> own (dao's, etc) is different though, as you build a "module" with
> build methods or bindings, I'd recommend to get very familiar with
> Tapestry IOC section on the website:
> http://tapestry.apache.org/tapestry5/tapestry-ioc/.
> 
> Other than that, I can only say Tapestry 5 is a pleasure to work with!
> It's power is amazing, anything can be changed and configured, so if
> you're ever thinking, jeez I don't like this or that default, what
> now? Just send and e-mail to this list, and you'll see it most likely
> can be changed the way you want it.
> 
> Enjoy!
> 
> On Wed, May 21, 2008 at 3:40 AM, mark lu <[EMAIL PROTECTED]> wrote:
>>
>> sorry,i mean what technology do you use in you web application?
>> such as tapestry ,spring ,hibernate,cvs,eclipse,etc.
>> thank you for your help!!
>>
>>
>> Filip S. Adamsen-2 wrote:
>>>
>>> Hi,
>>>
>>> I'm hardly an expert. I just read the docs and keep an eye on the
>>> commits and JIRA issues. :)
>>>
>>> All the advice I can give is that you read ALL the docs on T5 and go
>>> from there. Learning Spring is not necessary with T5 IoC. Hibernate is a
>>> very good framework to know, though - I use it extensively myself.
>>>
>>> I can't recommend a database for you, it depends on the kind of
>>> application you want to make, your budget, where you deploy, etc.
>>>
>>> What do you mean by what "knowledges" I use?
>>>
>>> -Filip
>>>
>>> mark lu skrev:
>>>> Alexander 's book based on 5.0.6.
>>>> i think you must be an expert in tapestry!
>>>> i want to build my web application,cound you give me some advices?
>>>> what other knowledges do i need except for tapestry?do i need learn
>>>> spring
>>>> or hibernate?
>>>> Alexander recommend db4o as a database,how about you advice?
>>>> what knowledges do you use in you web applicaton?
>>>> thanks!!
>>>>
>>>>
>>>>
>>>> Filip S. Adamsen-2 wrote:
>>>>> Hi there,
>>>>>
>>>>> Welcome to the list. :)
>>>>>
>>>>> Alexander's book is based on Tapestry 5.0.7 or so, I believe. The
>>>>> current beta version is 5.0.11 with 5.0.12 available as snapshots.
>>>>>
>>>>> As T5 was alpha when Alexander wrote the book, there have been quite a
>>>>> few changes since then. You can see some of them at
>>>>> http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html.
>>>>>
>>>>> If there's anything else that doesn't work I'd advise you to check out
>>>>> the relevant docs at the website, and if that doesn't solve your
>>>>> problem, send a mail to this list. We'll probably be able to tell you
>>>>> what's going on.
>>>>>
>>>>> Regarding T5 applications, I've had one site running since December 2,
>>>>> 2007 and another site up since August, 2007.
>>>>>
>>>>> -Filip
>>>>>
>>>>> On 2008-05-20 17:27, mark lu wrote:
>>>>>> i am new to tapestry.
>>>>>> i just want to use t5 to build my application and i don't want to
>>>>>> learn
>>>>>> the
>>>>>> inner technology of t5.
>>>>>> so,what's the stable version of t5?
>>>>>> i have read Alexander Kolesnikov's book--tapestry 5 build web
>>>>>> application,and know something about t5.
>>>>>> however,during my studying process,i encountered some problem even
>>>>>> though
>>>>>> i
>>>>>> have followed the book.
>>>>>> so,i think it's the framework's bug,maybe.
>>>>>> so...who can help me?
>>>>>>
>>>>>> another question:
>>>>>> whoever have built a application using t5 already?
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/t5%27s-version--tp17343189p17358619.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%27s-version--tp17343189p17364300.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to