Hi,

maybe I am missing something, but after looking over
the documentation and the Publisher.script I am no
closer to implementing this seemingly trivial task.

How do use this script in Tapestry?
How do I pass parameters to it?
The doc mentioned using the Script component, how?

I have also looked at the Palette example, which is a
good display of what can be accomplished with
Tapestry, however it yields little on how to actually
put something like this together from scratch.

Maybe the inclusion of simple straight-forward Script
example in the set of Demos would be useful.

Thanks.


--- [EMAIL PROTECTED] wrote:
> Yes, that is easy enough to do.  Check out the 
> Publisher.script inside the Vlib; this script
> combines a 
> drop-down list with a text field, enabling the text 
> field when the drop-down is blank, and clearing and 
> disabling the text field when the drop-down is not
> blank.
> 
> Basically, anything you want to do is doable; the
> trick 
> is that your JavaScript is templated, because you
> don't 
> know the name of the form or form elements ahead of
> time.
> 
> Finally, I just checked into the 2.2 branch a big 
> improvement, basically in scripts you used to have
> to 
> say:
>   <insert property-path="foo.bar.baz"/>
> 
> But now you can say:
>   ${foo.bar.baz}
> 
> Much more readable.  Look for 2.2-alpha-1 right
> after 
> 2.1.
> 
> --
> [EMAIL PROTECTED]
> 
> http://tapestry.sf.net
> > Thanks.
> > 
> > Here is the correct link for the Palette Component
> > article:
> > 
> >
>
http://www.onjava.com/pub/a/onjava/2001/11/21/tapestry.html
> > 
> > However what I am trying to do is to use
> Javascript
> > (as is normally done) to update the value in a
> field
> > when the selection is changed in an associated
> > dropdown list.
> > 
> > Or is there an easier way in Tapestry.
> > 
> > Thanks
> > 
> > --- [EMAIL PROTECTED] wrote:
> > > On the Tapestry home page is a link to an OnJava
> > > article 
> > > that disects the Palette component.  And please,
> > > check 
> > > out the Developer's Guide.
> > > 
> > > --
> > > [EMAIL PROTECTED]
> > > 
> > > http://tapestry.sf.net
> > > > Hi folks,
> > > > 
> > > > looking for a sample that demonstrates how
> > > Tapestry
> > > > handles Javascript embedded in HTML.
> > > > 
> > > > Thanks.
> > > > 
> > > > =====
> > > > Cheers,
> > > > Stavros
> > > > 
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Sign up for SBC Yahoo! Dial - First Month Free
> > > > http://sbc.yahoo.com
> > > > 
> > > > 
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > No, I will not fix your computer.
> > > > http://thinkgeek.com/sf
> > > >
> _______________________________________________
> > > > Tapestry-developer mailing list
> > > > [EMAIL PROTECTED]
> > > >
> >
>
https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> > 
> > 
> > =====
> > Cheers,
> > Stavros
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to