Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
By "ugly" I was alluding to my approach, and not the formatting of the hidden fields. :-) I would ideally like not to manipulate the html using js to set a F to T, even if i know i can do it. On 8/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: But still more efficient than TRUE/FALSE for rende

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Andreas Andreou
Actually, the idea of Tapestry providing additional js functions that would interact with the html it renders is pretty interesting. Another (more usual) example of this is for replacing (or even including) direct link parameters on the client by tweeking the generated urls. I guess you could log

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Jesse Kuhnert
But still more efficient than TRUE/FALSE for rendering. They aren't typically (hidden input fields) meant to be human friendly so I appreciate the length of statements. (Esp as there are sometimes a great number of them) On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: Yes I meant changing the v

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
Yes I meant changing the values of the hidden @If from 'F' to 'T' - rather ugly. On 8/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I'm sure he meant changing the hidden form input fields that control @If in javascript ;) On 8/4/06, Detlef Schulze <[EMAIL PROTECTED]> wrote: > > Javascript run

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
Bear with me it's a long description I want to use Dojo's TabContainer. But I want to implement lazy tab loading. by that I mean that all contents of all tabs will not be loaded. Here is the approach I follow: 1) I have two forms. The first Form encompasses the TabContainer and has a Submit

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Jesse Kuhnert
I'm sure he meant changing the hidden form input fields that control @If in javascript ;) On 8/4/06, Detlef Schulze <[EMAIL PROTECTED]> wrote: Javascript runs on the client browser, the @If is evaluated on the server What are you trying to accomplish ?!?!?!?!? -Original Message-

RE: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Detlef Schulze
Javascript runs on the client browser, the @If is evaluated on the server What are you trying to accomplish ?!?!?!?!? -Original Message- From: Karthik N [mailto:[EMAIL PROTECTED] Sent: Freitag, 4. August 2006 14:45 To: Tapestry users Subject: Forcing all @If to evaluate to True on F

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Jesse Kuhnert
Perhaps we could be more helpful if you told us what the general purpose of your logic is? (ie does it have to do with validation?) On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: I have a rather bizzare requirement (I think) My Form has 3 or 4 @If components. At any point only one of the @I