You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Henri Dupre <he...@gmail.com> on 2005/10/21 19:28:44 UTC
tp3 to 4 conversion scripts
I was wondering if anyone has made any conversion scripts to convert
the jwc and page specs to 4 style?
Thanks,
Henri.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: tp3 to 4 conversion scripts
Posted by Ahmed Mohombe <am...@yahoo.com>.
> I was wondering if anyone has made any conversion scripts to convert
> the jwc and page specs to 4 style?
The Trails project seems to have such a thing:
http://trails.dev.java.net/
see there upgradeTapestry3to4.xsl
I don't know however how good does it work outside the Trails project,
but IMHO it could be a good starting point.
Ahmed.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: tp3 to 4 conversion scripts
Posted by Eric Schneider <er...@centralparksoftware.com>.
It might be tough without human intervention (but then again, I suck
at complex regex stuff).
These seemed to be the changes I made over and over again....
In .page(s):
Replace:
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
With:
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
Replace:
<property-specification name="email" persistent="no"
type="java.lang.String" />
With:
<property name="email" />
Replace:
<property-specification name="email" persistent="yes"
type="java.lang.String" />
With:
<property name="email" persist="session|client" />
In .jwc(s)
Replace:
<parameter name="selections" direction="auto"
type="com.nhl.shared.tapestry.utils.SelectMap" required="yes" />
With:
<parameter name="selections" required="yes" />
Also worth mentioning...the deprecated component stuff....replacing
@Conditional w/ @If and the Checkbox component's "selected" binding
is now "value".
I probably missed a few things, but this is basically it. Go though
each file and repeat steps.
Cheers,
eric
ps - I'm running on jdk 1.4 so i don't make use of annotations.
On Oct 21, 2005, at 1:28 PM, Henri Dupre wrote:
> I was wondering if anyone has made any conversion scripts to convert
> the jwc and page specs to 4 style?
>
> Thanks,
>
> Henri.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>