Re: PatternValidator with Tapesty 4.0

2007-01-17 Thread Pratibha Gopalam


I am trying to use the scriptPath property to set a script path. But it 
says that the property not present.


Can anybody please help me with this?

Pratibha Gopalam wrote:

Thanks you very much of the inputs. It works now!

andyhot wrote:

Nick Westgate wrote:

Yet again, mourn the passing of Spindle, which would warn you that
set name=patternString value=[a-zA-Z]/
has an invalid OGNL expression for value.

You want to pass a string, so use quotes:
set name=patternString value='[a-zA-Z]'/


or better
set name=patternString value=literal:[a-zA-Z]/



Cheers,
Nick.


Pratibha Gopalam wrote:

Hello,

Has anybody used PatternValidator with Tapestry 4.0? I would like 
to validate an user input against a pattern. I tried using the 
PatternValidator like below


   bean name=patternValidator 
class=org.apache.tapestry.valid.PatternValidator

   set name=clientScriptingEnabled value=true/
   set name=required value=true/
   set name=patternString value=[a-zA-Z]/
   /bean

but got exceptions saying patternString/pattern property not found 
in PatternValidator.


Can anybody help me here?

thanks,
Pratibha



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to store the query parameters in a Table component?

2006-08-11 Thread Pratibha Gopalam

when you enter a new search parameter, try resetting the table

   Table table = (Table) this.getComponent(myTable);
   table.reset();


Jun Tsai wrote:


hi all,
  I have a search form and a talbe in a page.When I enter some search 
text

in form and click search button,results  was shown in table
component.ButWhen I click the second page
link.I found the results is all records not by search parameters.How to
store the search text in table pages?

I had used a property name=searchStr persist=session/ ,but it still
had a same problem .

How to ?

Thanks

Jun Tsai




--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic assigning component id

2006-05-29 Thread Pratibha Gopalam

Hello,

Is there a way of dynamically assigning a component id at runtime? For 
example if I creating components in a for loop and I want to assign the 
component ids at runtime, is that possible?


Tapestery doesn't allow me to use a ognl expression for jwcid like 
jwcid=ognl:categoryName.  Is there any other way?


Thanks,
Pratibha

--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Persistent Properites in pageAttached

2006-05-22 Thread Pratibha Gopalam

Hello all,

When I try to access the persistent properties in the pageAttached 
method, I always get null. But I am able to access the persistent 
properties in any of the listener methods. I looked up the Javadoc 
(http://jakarta.apache.org/tapestry/tapestry/apidocs/index.html) and it 
says the persistent page properties will be restored before the 
notification to the PageAttachListener


I also noticed that the pageAttached method is being called more than 
once.. I expected it to be called only once per page load.


Any ideas on what I could be doing wrong?

thanks,
Pratibha

--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]