>
> Imho <script/> badly sucks! It's not compatible with tapestry's
> peace-among-developers-and-designers panacea. All those <insert/>/blabla
> we insert into the script and all those xmlifications we have to do (&
> -> &amp;, < -> &lt;), it's really painful when the designer changes the
> scripts. Imho we should find a way to make dealing with scripts easier.

Watch that language!  No bug fixes for you! :-)

I'm thinking about fixes for your issues.  First, a simple way to insert
static JavaScript would be nice (both inline, and as references to
JavaScript stored as an asset).

Second, we could work around <insert/>.  For example, we could adopt an
additional, Ant-like, syntax, i.e.

  function ${function-name} ()
  {
    document.${form.name}. .....

And allow that inside CDATA (which would simplify the business about XML
entities such as & and <).

>
> Add to this the problems you face when an html component of tapestry
> doesn't support a feature pure html provides (my problem for multiple
> stylesheet entries for example). The need to change all addresses to
> context/provate/blabla addresses is a big pain imho. This is where the
> components need to redefine/tapestrify some of the stuff you normally do
> in html. Can't you just search context then classpath for a link, with
> no for an explicit definition by the user?

Tapestry has always had a very fun, evolutionary nature.  Rather than try to
solve every problem first, up front, I've created
a flexible framework on which to build strong solutions.  As the need for a
new feature becomes evident, it is added to the framework.  It's not that
Tapestry can't support multiple stylesheets, its that it doesn't do it now.
You can always create a custom version of Shell for your application.  You
can also add a freakin' bug if you want to see something changed.

You only have to worry about converting things to assets when they are
dynamic; either dynamic in response to user behavior, or dynamic in terms of
localization.

>
> Ara.
>
> > > > ----- Original Message -----
> > > > From: "Franky Niagara" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, June 11, 2002 2:57 AM
> > > > Subject: [Tapestry-developer] JavaScript Trouble
> > > >
> > > >
> > > > Hello
> > > >
> > > > in the <initialization> section I have this code:
> > > >
> > > > <initialization>
> > > > loadForm();
> > > > </initialization>
> > > >
> > > > here is the function loadForm
> > > >
> > > > function loadForm() {   window.alert("example"); }
> > > > -----------
> > > >
> > > > but Tapestry inserts its own:
> > > >
> > > > function tapestry_onLoad()
> > > > {
> > > >
> > > > loadForm();
> > > >
> > > > document.Form0.inputUserName.focus();    //    <----- what is it?
> > > > document.Form0.inputUserName.select();   //    <-------|
> > > > }
> > > >
> > > > i want simple :
> > > >
> > > > function tapestry_onLoad()
> > > > {
> > > >
> > > > loadForm();
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________________________
> > > >
> > > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > > August 25-28 in Las Vegas -
> > > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> > > >
> > > > _______________________________________________
> > > > Tapestry-developer mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> > > >
> > >
> >
> > _______________________________________________________________
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> >
> >
> >
> >
> >
> > _______________________________________________________________
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> >
>
>
>
>
> _______________________________________________________________
>
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to