Hi Barry

Which service are you talking about? How do I create one. Is there some class I 
need to inherit?
Can I have a sample implementation for same?

Regards
Mukesh Chandra

From: Barry Books [mailto:trs...@gmail.com]
Sent: Friday, June 24, 2016 9:32 PM
To: Mukesh Chandra
Cc: Tapestry users
Subject: Re: Tapestry 4.1 Migration to Tapestry 5

You will no longer need any XML configuration for Tap5 (it's all just 
convention) so there is really nothing to do there. Just make sure your web.xml 
is correct and your pages are in the correct place.

I might be able to dig up some code but there is really not very much. The 
service to get T4 session state just gets the request and looks up the state in 
the session. T4 has naming conventions that are pretty obvious if you look at 
some examples. As I recall T4 services do not have constructors. I just added 
some to convert them to T5 or you could just convert them to T5 and build T4 
shims which might be the best way. The T5 IOC layer is much nicer than T4

On Friday, June 24, 2016, Mukesh Chandra 
<mukesh.chan...@opensolutions.com<mailto:mukesh.chan...@opensolutions.com>> 
wrote:
Thanks Barry

Do we have any sample code for this purpose. It would help me great?

With Tapestry 4.1 we have a default.library XML file that has the library 
specification like as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library-specification PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";>

<library-specification>

  <library id="contrib" 
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
  <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
<page name="admin/user/ EditPRChallengeQuestions" 
specification-path="pages/admin/user/VerifyUser.page"/>

<component-type type="passwordrecovery/EditPRChallengeQuestionsForm" 
specification-path="components/passwordrecovery/EditPRChallengeQuestionsForm.jwc"/>

</library-specification>

Where do I store this mapping for tapestry 5.4 pages/components. I can build 
the project but when I try to access the page I get an exception for the page 
class missing.
Can you help with this?

Regards
Mukesh

-----Original Message-----
From: Barry Books [mailto:trs...@gmail.com<javascript:;>]
Sent: Friday, June 24, 2016 6:05 PM
To: Tapestry users
Subject: Re: Tapestry 4.1 Migration to Tapestry 5

I migrated a pretty large application from 4 to 5. It's been a while and I 
perhaps I don't remember all the pain but I don't recall it being that 
difficult. First of all Tapestry 5 is much nicer to use than 4 but shares many 
of the same ideas. The basic structure is the same you have pages with 
templates and services.  The first thing you'll want to do is build a Tap5 
service that allows access to the Tap4 session. I think the next thing I did 
was rework my Tap4 services in a way they could be used as both Tap5 and Tap4 
services. Next pick a page and convert it. We converted all our non public 
pages first. The biggest issue will be maintaining a similar look and feel 
between old and new pages.

We also switched from ant to maven when we converted.

I think it took us a few months to do it but it was not really that disruptive. 
Since it's possible to run both in the same web app it's not an all or nothing 
proposition. Converting the non public pages first will allow you to get 
comfortable with Tap5 without too much risk.

As I recall most of the services did not require much work to convert.
Pages and components require more but they are not that bad.

Good luck

On Friday, June 24, 2016, Thiago H de Paula Figueiredo 
<thiag...@gmail.com<javascript:;>>
wrote:

> On Fri, 24 Jun 2016 00:18:04 -0300, Mukesh Chandra <
> mukesh.chan...@opensolutions.com<javascript:;>> wrote:
>
> So they can share the session?
>>
>
> Yes. They're in the same webapp, same context.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org<javascript:;>
> For additional commands, e-mail: users-h...@tapestry.apache.org<javascript:;>
>
>

________________________________

NOTICE:
This e-mail is intended solely for the use of the individual to whom it is 
addressed and may contain information that is privileged, confidential or 
otherwise exempt from disclosure. If the reader of this e-mail is not the 
intended recipient or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this communication in error, please 
immediately notify us by replying to the original message at the listed email 
address. Thank You.

________________________________

NOTICE:
This e-mail is intended solely for the use of the individual to whom it is 
addressed and may contain information that is privileged, confidential or 
otherwise exempt from disclosure. If the reader of this e-mail is not the 
intended recipient or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution, or copying of this communication is strictly 
prohibited. If you have received this communication in error, please 
immediately notify us by replying to the original message at the listed email 
address. Thank You.

Reply via email to