Thanks a lot for your suggestion.

It will be an ammunition in the web war if we can have
such a feature to emulate Tapestry component as JSP
tag. 

Don't you think this as a short coming for projects
like ours which have to interact or integrate with
other websites and portals in the intranet world ?
I know that Tapestry does not try to solve all the
problems for a web based java project. But being
talked about java web components, it gives the
impression that it will work in any java based
websites. 

I just want to get your opinion or future plans on
this.

Thanks,
Natesh

--- "Howard M. Lewis Ship" <[EMAIL PROTECTED]> wrote:
> When Tapestry renders a page containing a form, it
> does a lot of
> behind-the-scenes work to negotiate between the form
> and the components
> wrapped by the form (directly, or indirectly).  Its
> busy counting the number
> of form elements, assigning unique names (even when
> loops occur) and a bunch
> of other stuff.  It's a much more complex
> relationship than you can get with
> a JSP and it would be close to impossible to
> reproduce it as a JSP tag
> (there has been a recent discussion about trying to
> create JSP tags that
> could emulate Tapestry components but I still think
> of it as a square
> peg/round hole situation).
> 
> If you can partition your application into all-JSP
> or all-Tapestry, it won't
> be that bad.
> 
> However, if you want to have a JSP contain a form
> that submits, somehow,
> into the world of Tapestry, you'll have to write the
> code that pulls query
> parameters out of the request ... in other words,
> the same kind of work
> you'd have to do if you weren't using Tapestry at
> all.  There is no magic,
> Tapestry can't magically know how query parameters
> map to what properties or
> what translations have to occur.
> 
> You could then, say, have a very similar looking
> form implemented as a
> Tapestry page and stay inside Tapestry from that
> point on.
> 
> ----- Original Message -----
> From: "natesh babu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Tapestry Developer"
> <[EMAIL PROTECTED]>
> Sent: Monday, August 19, 2002 8:37 AM
> Subject: Re: [Tapestry-developer] Tapestry -
> Interoperability with JSP Pages
> 
> 
> >
> > I want to use only my Formula-One race car but I
> > cannot insist others to use the same.
> >
> > I don't want to lose all the automatic
> > processing of form fields, as well as the
> validation
> > framework and all that.
> >
> > Our application will have 100+ forms and other
> pages.
> > If I have to write two sets of pages one for
> Tapestry
> > and the other for normal JSP application, then it
> is
> > lot of work for us which is reversing the use of
> > Tapestry.
> >
> > Is there any other way like using a JSP tag which
> will
> > refer this form component ?
> >
> > Thanks,
> > Natesh
> >
> >
> > --- [EMAIL PROTECTED] wrote:
> > > You simply can't just rip out portions of a
> Tapestry
> > >
> > > page as a JSP.  It's kind of like saying, "How
> do I
> > > pull
> > > the transmission out of my Formula-One race car
> and
> > > plug
> > > it into my lawn mower".
> > >
> > > If you have to have forms inside JSPs, you can
> build
> > >
> > > them in the normal way and have them submit into
> > > Tapestry.  A Tapestry page can gain access to
> query
> > > parameters of the request and process them like
> a
> > > servlet can.  What you lose here is all the
> > > automatic
> > > processing of form fields, as well as the
> validation
> > >
> > > framework and all that.
> > >
> > > You'll have to build a bridge between JSP and
> > > Tapestry;
> > > this will take the form of a new engine service.
> > > Take a
> > > look at the external service in the Vlib as an
> > > example.
> > >
> > > So, what you'd end up with is a JSP page that,
> when
> > > submitted, triggers behavior inside a Tapestry
> page.
> > >
> > > The flow of control would look like:
> > >
> > > Form submits to Tapestry URL
> > > Custom service activated, gets page name from
> > > service
> > > context
> > > Locates page instance, casts to particular
> > > interface,
> > > invokes method
> > > Method provided by page gets request parameters
> > > supplied
> > > by HTML form, does stuff with them
> > > Page either renders response, selects another
> > > Tapestry
> > > page to render response, or forwards to a JSP to
> > > render
> > > a response
> > >
> > >
> > > --
> > > [EMAIL PROTECTED]
> > >
> > > http://tapestry.sf.net
> > > > Hi all,
> > > >
> > > > We are looking at Tapestry to re-write an
> existing
> > > JSP
> > > > based intranet portal. So far, it looks
> promising.
> > > We
> > > > want to really exploit Tapestry's powerful
> > > features
> > > > like component creation, html templates,
> writing
> > > > interesting java code, localization, debugging
> > > etc.
> > > >
> > > > But I have the following critical issue. We
> have
> > > other
> > > > JSP based sites which may refer some or most
> of
> > > the
> > > > parts of our portal. For example, another
> portal
> > > may
> > > > embed a form existing in our portal. If I
> re-write
> > > the
> > > > application using Tapestry, how do I just
> re-use
> > > the
> > > > form component in the other jsp based portal ?
> I
> > > don't
> > > > want to simply re-direct, but, want to re-use
> or
> > > embed
> > > > the form component in the jsp page.
> > > >
> > > > Has anybody faced similar kind of issue ? Any
> > > > suggestions or solutions are highly
> appreciated.
> > > >
> > > > Regards,
> > > > Natesh
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > HotJobs - Search Thousands of New Jobs
> > > > http://www.hotjobs.com
> > > >
> > > >
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > This sf.net email is sponsored by: OSDN -
> Tired of
> > > that same old
> > > > cell phone?  Get a new here for FREE!
> > > >
> > >
> >
>
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to