Bypass pageBeginRender in Ajax calls

2007-01-17 Thread jiju
Hi All, I have a pageBeginRender listener in my page class,I am fetching default values from the database in this listener. During ajax calls(say ajaxlinksubmit) to update a component in the page ,the pageBeginRender listener is again invoked. Is there any way to bypass this listener in Ajax calls

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 S

Contrib table links don't work with client persisted source

2007-01-17 Thread Daniel Jue
Hi, (Tap 4.0.2, Tomcat 5.5) I have a report page "ReportXYZ" that displays a table of data. abstract class Datapage extends BasePage abstract class ReportXYZ extends DataPage When I changed my Table's data source from @Persist("session") to @Persist("client"), the links on the page stop working.

Tap 4.1.2 Snapshot :@EventListener with async=false is not been called

2007-01-17 Thread Shing Hing Man
I have a method with annotation @EventListener(targets = "companyPS", events = "onchange", submitForm = "myForm", async = false) that listens to a PropertySelection component. When an onchange event occurs in the PropertySelection componet, the form

Re: [Filtered!] Re: T4.1.1 Client-side validation problems

2007-01-17 Thread Brian Duchek
Back in Tap3, if you disabled form fields on the client it would totally screw up server side validation (and some client validation schemes). It was a technique frought with peril. I recommend going thru a generated page with a fine tooth-comb to make sure that your client-side disabling wasn't

Re: Submit form and bypass validation

2007-01-17 Thread Brian Duchek
If you're talking about client-side validation, you should lookinto dojo's "around-advice" event connection model. You can use it to set up pretty complex conditional client-side validation checks. On 1/16/07, Ben Dotte <[EMAIL PROTECTED]> wrote: You can also use Form's "refresh" listener to

RE: Tacos:Tree - Node opens after submit only

2007-01-17 Thread Manuel Thurn
No, I'm not using a form. Thanks nevertheless. Manuel -Original Message- From: Steve Shucker [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 17. Januar 2007 17:28 To: Tapestry users Subject: Re: Tacos:Tree - Node opens after submit only Are you using the tree in a form? If so, it's bugged.

Re: Tacos:Tree - Node opens after submit only

2007-01-17 Thread Steve Shucker
Are you using the tree in a form? If so, it's bugged. http://tacoscomponents.jot.com/BugReporter/Bug32 I posted a workaround a while ago, but it assumes that you don't have any form controls in your tree nodes. http://mail-archives.apache.org/mod_mbox/tapestry-users/200606.mbox/[EMAIL PROTECT

Re: AW: Friendly URL's and service encoders

2007-01-17 Thread Peter Stavrinides
But this shouldn't be a problem, there are major differences between the two the only thing similar is the page extension, but if I change the page extension then I have duplicate pages and configure my entire application to use different extensions, sometimes the same page is called from two o

Re: Page Visitor IP Address/Port

2007-01-17 Thread James Carman
You can also include tapestry-autowire.jar into your application and have Tap automatically inject it by doing (no annotations necessary): public abstract HttpServletRequest getServletRequest(); Also, the port is available on the request. Try getServerPort(). On 1/17/07, Lukas Ruetz <[EMAIL P

Re: Page Visitor IP Address/Port

2007-01-17 Thread Lukas Ruetz
Hi! in case you are working with java5+ you can inject the service into your page by adding: @InjectObject("service:tapestry.globals.HttpServletRequest") public abstract HttpServletRequest getServletRequest(); you can retrieve the IP-address by: String IP = getServletRequest().getRemoteAddr();

Re: No ajax-response elements recieved

2007-01-17 Thread Markus Joschko
I run into the exact same issue. The error is only occuring using IE. Firefox is dealing fine with the response. Using fiddler I can see that there are actually ajax-response elements included, together with a lot of HTML as a big component is completely reloaded. So it looks as if the clientside

Re: Page Visitor IP Address/Port

2007-01-17 Thread Shing Hing Man
In Tap4, you can inject HttpServletRequest into a service or page. There is some note at the following. http://lombok.demon.co.uk/tapestry4Demo/Inject.html Shing --- Chris Davies <[EMAIL PROTECTED]> wrote: > Hi, > > How is it possible to get the IP address and port of > a visitor to a > Page

Page Visitor IP Address/Port

2007-01-17 Thread Chris Davies
Hi, How is it possible to get the IP address and port of a visitor to a Page? I've been trying to figure this out for quite a while now (so I can insert useful information into log messages), but to no avail. The closest (crummy) solution I've found is to use a deprecated function to access the

how to add checkbox into tacos:Table

2007-01-17 Thread Huang Gehua
hello everybody!!! Is there some method to put checkbox into tacos:Table??? thanks!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Friendly URL's and service encoders

2007-01-17 Thread Peter Schröder
i dont think that it is a good thing to name different services with same extension. look into the example of writing your own encoder and you will see where the problem come from: if you put both extionsons to html then both encoders think that the rendering page is pointed to them. -Urs

Tacos:Tree - Node opens after submit only

2007-01-17 Thread Manuel Thurn
Hello everybody, I tried to implement a tree using the sources of the Tacos demo (I use Tacos 4.0.0 with Tapestry 4.0.2) as a guide but the nodes won't open in Ajax style (without page reload). When I click on a node the font gets bold and the plus sign switches to minus but the node shows its con

Re: hidden form field is reset when updating other form components (T4.1.1)?

2007-01-17 Thread B.S.Navin
You don't even need the div - just set the style attribute directly on the input tag itself. We too have been using this approach instead of hidden fields for storing internal data. - Navin On 17-Jan-07, at 6:35 PM, Mika Tammilehto wrote: Well, I found a workaround - in case somebody else

Friendly URL's and service encoders

2007-01-17 Thread Peter Stavrinides
Hi everyone I am having some trouble with friendly URL's. Getting them to work is not the problem, but getting two page service encoders to work together seems unlikely. Maybe there is a better way to do this... I don't know. I basically want an encoder that will generate friendly URL's for h

Re: hidden form field is reset when updating other form components (T4.1.1)?

2007-01-17 Thread Mika Tammilehto
Well, I found a workaround - in case somebody else is running into the same problem... I replaced the hidden field with a normal text field, but inside a hidden div: Works fine for me. Cheers, mika Hi I've got 2 forms which both are submitted async (example below). Form 1 contains a

Re: PatternValidator with Tapesty 4.0

2007-01-17 Thread Pratibha Gopalam
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 has an invalid OGNL expression for value. You want to pass a string, so use quotes: or better Cheers, Nick. Pratibh

Re: tapestry.form.focusField problems

2007-01-17 Thread Roberto Ramírez Vique
Hello Bill & Jesse, I've been working with this great Form methods to just don't use the focus... Is working fine, but I have a problem... I'll try to explain the problem: I am working with IE6 (now the most used Browser), jdk5, tomcat 5.5, tapestry 4.1.2. I have a page where there is are a form

Re: About the table in contrib

2007-01-17 Thread Daniel Tabuenca
I think we could help you better if you could ask a specific question. Have you read all the documentation? Have you looked at the tapestry examples from the source code? What in particular is confusing, or what don't you understand. I'd suggest also getting Kent Tongs excellent tapestry e-book "E

About the table in contrib

2007-01-17 Thread Stony Zhang
Hi, everyone, I'm new in Tapestry. I saw the table in the workbench. But I can't understand the principle of it. Can you give me some explanation? Or give me some suggestion. Any help is appreciated! Best wishes, Stony

hidden form field is reset when updating other form components (T4.1.1)?

2007-01-17 Thread Mika Tammilehto
Hi I've got 2 forms which both are submitted async (example below). Form 1 contains a block (innerContainer) with a property selection that should be updated when form 2 is submitted. This works ok, but when the "innerContainer" is updated, the value of the hidden field "someNumber" in form 1