Re: Javascript and component names

2006-03-07 Thread Jesse Kuhnert
Try using getClientId() instead. That's the id that is dynamically generated for forms/lists. On 3/7/06, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a component (a button) within another component (a calendar > component). > When several calendars are present on the page, the bu

Re: Javascript masks / partial regexp matching

2006-02-28 Thread Leonardo Quijano Vincenzi
Yeah the problem is that I needed to do that on every key press. Ajax is too slow for that. -- Ing. Leonardo Quijano Vincenzi DTQ Software Kent Tong wrote: Leonardo Quijano Vincenzi dtqsoftware.com> writes: The approach I'm taking is basically using regular expression matching on every

Re: Javascript masks / partial regexp matching

2006-02-28 Thread Kent Tong
Leonardo Quijano Vincenzi dtqsoftware.com> writes: > The approach I'm taking is basically using regular expression matching > on every keypress to detect whether the next code will be valid > according to the general regexp. But I can't seem to find any partial > match flag or operator for Reg

Re: JavaScript

2006-02-23 Thread Kent Tong
Kent Tong cpttm.org.mo> writes: > > The url is relative to location of the stylesheet. If > the stylesheet are served as a tapestry asset, then > its url should be the root of the web app. Above I was assuming the more obscure case where the asset is a private asset. For context asset, obvious,

Re: JavaScript

2006-02-23 Thread Kent Tong
Łukasz Pachciarek um.poznan.pl> writes: > I have javascript menu, it should display some gif on web page. > In javascript the gif is loaded using 'url("open.gif")' > and my question is: > what path to gif should be inserted to 'url(..)' > or how to insert the gif's path from tapestry? The url i

RE: Javascript confirmation message

2005-12-14 Thread Prince John, Bedag
Hi, Something like: In your page class: String pattern = javascript:return confirm('{0}'); @Message("texts.confirm") public abstract String getConfirmMessage(); public String getSubmitScript(){ return MessageFormat.format(pattern, new Object[]

Re: Javascript file handling in Tapestry 3.0.3

2005-12-09 Thread Ivano Pagano
I think you can handle this using the import feature in the .script tapestry file. This way you can point at the same .js file for preview and runtime. Leon Pu wrote: Hi all, could anybody give me a hint about the Javascript file handling in Tapestry? Thanks a lot. Best regards, Leon ---

Re: Javascript file handling in Tapestry 3.0.3

2005-12-07 Thread Leon Pu
Hi all, could anybody give me a hint about the Javascript file handling in Tapestry? Thanks a lot. Best regards, Leon --- Leon Pu <[EMAIL PROTECTED]> wrote: > Hi all, > > it seems the javascript .js file has to be treated as xml in Tapestry > 3.0.3. > > But sine my .js file has been writen

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Jesse Kuhnert
d doubtless occur were I to adopt the usual > Tapestry approach. > > Your second idea, however, sounds fantastic and I think I'll try that > right now. > > > James > > -Original Message- > From: Richard Clark [mailto:[EMAIL PROTECTED] > Sent: 20 November

RE: JavaScript in forms with Tapestry

2005-11-20 Thread James
doubtless occur were I to adopt the usual Tapestry approach. Your second idea, however, sounds fantastic and I think I'll try that right now. James -Original Message- From: Richard Clark [mailto:[EMAIL PROTECTED] Sent: 20 November 2005 11:19 PM To: Tapestry users Subject: Re: Java

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Jesse Kuhnert
Hi James, I wouldn't give up on tapestry just yet ;) What you want to do is specifically being handled already if you go to http://tacos.sourceforge.net. The good news is that adding new input fields to a form is really quite easily with tacos, and your users won't have the added annoyance of hav

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Richard Clark
You may want to try a small prototype using the usual Tapestry approach and user-test it. Tapestry caches page layouts in normal operation, so the submit-render cycle is very fast. "Waiting for the server to rebuild the form" may well take less time than you think. Then, if you find you st

RE: JavaScript in forms with Tapestry

2005-11-20 Thread James
Thanks for the advice. I was afraid this might be the case. While I'm quite comfortable now with putting together a relatively simple Tapestry application, I don't know that I'm quite ready to start delving into the guts of it - especially with a fairly limited timeframe. I see your point on manip

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Ron Piterman
just another thing... fields added by javascript could be validated in the client-side validation of tapestry. But should be excluded from the server side cycle (rewind). Ron James wrote: Hi I posted this on tapestryforums.com yesterday, but it seems I might have more luck here, and I'm no

Re: JavaScript in forms with Tapestry

2005-11-20 Thread Ron Piterman
As far as I can see if you want to use the very good validation and comfortable form handling in tapestry you should render all of your fields with the page. You could make some of the hidden by css and change that through javascript, but at the moment you should not add fields from java script

Re: javascript error during client validation of a RadioGroup

2005-11-08 Thread Paolo Donà
Oh, just seen that the generated onsubmit function on my html points to a 'null' field name instead of my 'myRadio'... Looks like a bug, right? Tapestry.register_form('form'); Tapestry.onsubmit('form', function(event) { Tapestry.require_field(event, 'null', 'Devi inserire un valore per My Radio.'

RE: Javascript & Components

2005-10-24 Thread Ben Dotte
Javascript input symbols can be assigned in the template: Javascript: ... Template: Based on the example in TIA I think this is what you are asking, but please clarify if I'm wrong. Ben -Original Message- From: Raul Cesar Teixeira [mailto:[EMAIL PROTECTED] Sent: Monday, October 24,

Re: javascript handle_invalid_field?

2005-09-15 Thread Howard Lewis Ship
Need more data; HTML template, page spec, HTML output at a minimum On 9/15/05, Dan Adams <[EMAIL PROTECTED]> wrote: > When submitting my form the javascript function handle_invalid_field is > undefined. Should this go in jira or did i do something wrong? > > -- > Dan Adams > Software Engineer > I

Re: Javascript Bug in LinkSubmit in Tap Beta 5

2005-09-06 Thread Alexandr Kundirenko
It is fixed. Get updated files from SVN repository. LinkSubmit.java, LinkSubmit.script and others markes with same label (TAPESTRY-XXX). Oec> I am getting a Javascript error while using the LinkSubmit component. I have Oec> the latest Tapestry beta 5 and the following error is happening with Oec

Re: Javascript confirm alert.

2005-08-23 Thread Filip S. Adamsen
Well, the Tapestry way is to keep it simple. : ) Ted Steen wrote: Hi, I'm converting a medium "toy" project to tapestry mostly for learning. I tend to do as much the "tapestry way" so that I know how to do it. smime.p7s Description: S/MIME Cryptographic Signature

Re: Javascript confirm alert.

2005-08-23 Thread Ted Steen
Hi, I'm converting a medium "toy" project to tapestry mostly for learning. I tend to do as much the "tapestry way" so that I know how to do it. On 8/23/05, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hello, > > I find it even simpler to just include the "onclick" attribute as an > informal par

Re: Javascript confirm alert.

2005-08-23 Thread Filip S. Adamsen
Hello, I find it even simpler to just include the "onclick" attribute as an informal parameter. Is anything obstructing you from taking this approach? -Filip [EMAIL PROTECTED] wrote: Hi, I tend to write a Renderer to do so.. All it needs to do is to add a "onclick" attribute like onclick="r

Re: Javascript confirm alert.

2005-08-23 Thread lars . borup
Hi, I tend to write a Renderer to do so.. All it needs to do is to add a "onclick" attribute like onclick="return confirm('Really?')" If false is returned the href is not executes (followed) Darn simple! :-) regards, Lars Borup Jensen On Tue, 23 Aug 2005 11:27:24 +0200, Ted Steen wrote > Hi

RE: Javascript problem

2005-08-18 Thread Howard M. Lewis Ship
> -Original Message- > From: Szabo Attila [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 18, 2005 5:12 PM > To: [EMAIL PROTECTED] > Subject: Javascript problem > > Hello Howard! > > I`ve been working with Tapestry for 6 months. We`re writing a > web based > loan system for a bank

Re: Javascript - looping

2005-07-18 Thread Henrik
Thanks Paul! The scripting worked perfectly after your help! In general i find the support on scripting in tapestry the hardest to find, so I think your answer will be to great help for others as well! Best regards Henrik -

Re: Javascript - looping

2005-07-14 Thread Paul Ferraro
Your .script file should look something like this: Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>

Re: Javascript onclick

2005-06-22 Thread Vadim Pesochinskiy
Thanks. I did not know about tassel. This seems to be what I need AnySubmit, submit using onclick javascript. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 -

Re: Javascript onclick

2005-06-22 Thread Robert Zeigler
ot; <[EMAIL PROTECTED]> > To: "Tapestry users" > Sent: Wednesday, June 22, 2005 7:04 PM > Subject: Re: Javascript onclick > > > >>Vadim Pesochinskiy wrote: >> >> >>>Hello! >>> >>>Our web designer has a habit of creating buttons

Re: Javascript onclick

2005-06-22 Thread Vadim Pesochinskiy
day, June 22, 2005 7:04 PM Subject: Re: Javascript onclick > Vadim Pesochinskiy wrote: > >>Hello! >> >>Our web designer has a habit of creating buttons using tag and onclick >>Javascript and styles for button image. I am wondering how do I do this >>with Tapes

Re: Javascript onclick

2005-06-22 Thread Andreas Andreou
Vadim Pesochinskiy wrote: Hello! Our web designer has a habit of creating buttons using tag and onclick Javascript and styles for button image. I am wondering how do I do this with Tapestry, without putting Javascript in Tapestry files? Maybe there is a component that can do this type of th