You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Gavin Lei <ga...@gmail.com> on 2012/01/31 09:58:14 UTC

Convert Tapestry 4 to Tapestry 5

Hi Guys,

We have a some kind of *huge* project which built on Tapestry 4
started years ago. Now we know Tapestry 5 is more convenient and more
powerful than 4, and we want to change our Tapestry 4 version to 5.
If we do these things manually, i think it will cost use more than
half a year, as it is really a complex project.

So, problems come, do you think it is possible for us to build a tool
that can convert Tapestry 4 to 5 automatic. If so, i think this tool
will help many people and save much developers' time. I am not very
sure of the feasibility things, how do you think of it ? Thank you

-- 
---------------------------------
Best Regards
Gavin Lei (雷银)
Email: gavingui2011@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Convert Tapestry 4 to Tapestry 5

Posted by Gavin Lei <ga...@gmail.com>.
Hi Ben,

You mean we can use both T4 and T5 in the same project, yeah, it is a
way. We can build new features in T5 and maintain the old T4
features, as you said, it will work. But this kind of things is really
not so friendly, we want to use T4 as little as possible, finally,
build the whole project in T5.

So i think if there is a tool can do some boring and repeated convert
things for us, it will save us much time. Maybe we can not compile and
use the *initial* converted T5 page from T4 directly, even there are
some compile errors in these pages, but after few artificial job, they
will work well. It will also save us much time.

You have been involved in this convert things more than a year, just
like we will do, do you think it is feasible? Thank you

在 2012年1月31日 下午11:55,Ben Dotte <be...@gmail.com> 写道:
> Not to scare you, but we've been upgrading our Tapestry 4 app to 5 for
> about 2 1/2 years now. We're still not done. I honestly don't see how any
> sort of automatic migration could work. T5 is fundamentally so much
> different from the conversion of Hivemind XML to Java-defined IOC service,
> to the much heavier use of convention over configuration for connecting
> markup to Java, etc. etc.
>
> We have treated this upgrade as a chance to re-evaluate the functionality
> in our existing app and rebuild it better in T5. The fact that the T4 and
> T5 jars do not collide on the classpath is very convenient. We have been
> running them together on the same JVM throughout the transition and it is
> not terribly difficult to build mechanisms for communicating between
> T4<->T5 as services and pages get converted.
>
> I suppose you could try to do a more direct translation of the
> functionality, but why would you want to? The ajax capabilities are so much
> better in T5, I think it is well worth taking a second look at how your app
> functions and think more in terms of Zones, utilizing
> prototype/scriptaculous/jquery/yui/extjs more, etc.
>
> Good luck!
>
> Ben
>
> 2012/1/31 Gavin Lei <ga...@gmail.com>
>
>> Hi Guys,
>>
>> We have a some kind of *huge* project which built on Tapestry 4
>> started years ago. Now we know Tapestry 5 is more convenient and more
>> powerful than 4, and we want to change our Tapestry 4 version to 5.
>> If we do these things manually, i think it will cost use more than
>> half a year, as it is really a complex project.
>>
>> So, problems come, do you think it is possible for us to build a tool
>> that can convert Tapestry 4 to 5 automatic. If so, i think this tool
>> will help many people and save much developers' time. I am not very
>> sure of the feasibility things, how do you think of it ? Thank you
>>
>> --
>> ---------------------------------
>> Best Regards
>> Gavin Lei (雷银)
>> Email: gavingui2011@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>



-- 
---------------------------------
Best Regards
Gavin Lei (雷银)
Email: gavingui2011@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Convert Tapestry 4 to Tapestry 5

Posted by Gavin Lei <ga...@gmail.com>.
Yeah, keep 2 different templates is really boring, and it waste much
time. I just want to do some work to reduce these things....

2012/2/1 trsvax <tr...@gmail.com>:
> I also just run 4 and 5 in the same project and convert when I get the
> chance. It's easy to share session data between the two. The only real
> problem is I have 2 different templates I need to keep in sync.
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Convert-Tapestry-4-to-Tapestry-5-tp5444014p5445059.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>



-- 
---------------------------------
Best Regards
Gavin Lei (雷银)
Email: gavingui2011@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Convert Tapestry 4 to Tapestry 5

Posted by trsvax <tr...@gmail.com>.
I also just run 4 and 5 in the same project and convert when I get the
chance. It's easy to share session data between the two. The only real
problem is I have 2 different templates I need to keep in sync.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Convert-Tapestry-4-to-Tapestry-5-tp5444014p5445059.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Convert Tapestry 4 to Tapestry 5

Posted by Ben Dotte <be...@gmail.com>.
Not to scare you, but we've been upgrading our Tapestry 4 app to 5 for
about 2 1/2 years now. We're still not done. I honestly don't see how any
sort of automatic migration could work. T5 is fundamentally so much
different from the conversion of Hivemind XML to Java-defined IOC service,
to the much heavier use of convention over configuration for connecting
markup to Java, etc. etc.

We have treated this upgrade as a chance to re-evaluate the functionality
in our existing app and rebuild it better in T5. The fact that the T4 and
T5 jars do not collide on the classpath is very convenient. We have been
running them together on the same JVM throughout the transition and it is
not terribly difficult to build mechanisms for communicating between
T4<->T5 as services and pages get converted.

I suppose you could try to do a more direct translation of the
functionality, but why would you want to? The ajax capabilities are so much
better in T5, I think it is well worth taking a second look at how your app
functions and think more in terms of Zones, utilizing
prototype/scriptaculous/jquery/yui/extjs more, etc.

Good luck!

Ben

2012/1/31 Gavin Lei <ga...@gmail.com>

> Hi Guys,
>
> We have a some kind of *huge* project which built on Tapestry 4
> started years ago. Now we know Tapestry 5 is more convenient and more
> powerful than 4, and we want to change our Tapestry 4 version to 5.
> If we do these things manually, i think it will cost use more than
> half a year, as it is really a complex project.
>
> So, problems come, do you think it is possible for us to build a tool
> that can convert Tapestry 4 to 5 automatic. If so, i think this tool
> will help many people and save much developers' time. I am not very
> sure of the feasibility things, how do you think of it ? Thank you
>
> --
> ---------------------------------
> Best Regards
> Gavin Lei (雷银)
> Email: gavingui2011@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>