RE: How to set cookie ftom T4 application for different host

2006-06-30 Thread Steve Shucker
The cookie domain must be a domain, not a host.  For a cookie at
tapestry.apache.org, the domain is apache.org and will be valid for
tomcat.apache.org as well.  If you don't have at least one period in the
hostname, the cookie just isn't set.  Personally, I have a small bit of
logic to detect if my app is running on localhost (development) and not set
the cookie domain.  Otherwise, it gets set to my company's domain.

-Steve

-Original Message-
From: Audrius Peseckis [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 6:06 AM
To: Tapestry users
Subject: How to set cookie ftom T4 application for different host

Hello,

we have a problem when setting cookie value for a different host. When using
standard T4 CookieSource we can set a cookie for our application on
application's host. But we need to set a cookie for a different host. I
suppose it's done with injection of tapestry.globals.HttpServletResponse.

There's a piece of our code that is not working:

Cookie c1 = new Cookie(cookieName, cookieValue);
  
c1.setDomain(hostname);
c1.setPath(/session_test);
c1.setMaxAge(99);
  
this.getB().addCookie(c1); // B is declared as inject
object=service:tapestry.globals.HttpServletResponse property=b /

We are trying to set cookie in pageBeginRender method.

Any help is appreciated.

Audrius


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



Re: How to set cookie ftom T4 application for different host

2006-06-30 Thread Phillip Rhodes
Third party cookies (cookies from other hosts) are not accepted by default.
I have got around this problem 2 different ways:

For machines in same domain:
1) use the cookie.setDomain(.authsum.org) method to create a cookie that
can be read by all hosts your domain.

For machines in different domains:
2) Put the cookie value into the url, and have a filter in your tapestry
application that reads the cookie value from the uri, and writes a cookie
with the parameter value so you no longer have to do url re-writing.

I had to deal with these issues with authsum...  It's a tapestry based
sso,registration,authorization server, when you have sso with many
different tomcat instances, a global domain sso cookie is the way to go.



 Hello,

 we have a problem when setting cookie value for a different host. When
 using standard T4 CookieSource we can set a cookie for our application on
 application's host. But we need to set a cookie for a different host. I
 suppose it's done with injection of tapestry.globals.HttpServletResponse.

 There's a piece of our code that is not working:

 Cookie c1 = new Cookie(cookieName, cookieValue);

 c1.setDomain(hostname);
 c1.setPath(/session_test);
 c1.setMaxAge(99);

 this.getB().addCookie(c1); // B is declared as inject
 object=service:tapestry.globals.HttpServletResponse property=b /

 We are trying to set cookie in pageBeginRender method.

 Any help is appreciated.

 Audrius



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



Number Translator and Commas

2006-06-30 Thread John Menke

 I am trying to do this:

binding name=translator value=translator:number,pattern=###,###.##/


but i get the error


Class org.apache.tapestry.form.translator.NumberTranslator does not contain
a property named '###.##''.

It seems that the comma is being intepreted as marking a new property.  Is
there any way to specifiy commas in the pattern?

-john


RE: Is it possible to swap components?

2006-06-30 Thread Mark Stang
Paul,
We use a technique where we have a component that renders components 
dynamically.  Basically, we put them all in a page that is never displayed.  
Then at runtime, we dynamically render a particular component.

regards,

Mark


-Original Message-
From: Paul Tongyoo [mailto:[EMAIL PROTECTED]
Sent: Thu 6/29/2006 6:19 PM
To: users@tapestry.apache.org
Subject: Is it possible to swap components?
 
Hello all!

 

I'd like to define a generic component placeholder that does not have any
specific type at compile time.  Something like:

 

span jwcid=@ComponentContainer component=ognl:someComponentComponent
Placeholder/span

 

All the ComponentContainer would do is render the component that it's
passed...

 

component-specification

parameter name=component required=yes /



!-I do NOT want to specify the 'type' attribute here because it
can vary --

component id=ComponentDisplay property=component /

/component-specification

 

ComponentContainer.HTML:  span jwcid=ComponentDisplayComponent displays
Here/span

 

However Tapestry complains that the type of component isn't specified in the
ComponentContainer.jwc.  I also cannot pass an OGNL expression as the 'type'
attribute value.  Has anyone tried doing something similar - essentially
swapping different components into a component placeholder at runtime?

 

Thanks all for advice!

 

Paul

 




RE: Is it possible to swap components?

2006-06-30 Thread James Carman
Can't you use Block/RenderBlock for this?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 12:29 PM
To: Tapestry users; users@tapestry.apache.org
Subject: RE: Is it possible to swap components?

Paul,
We use a technique where we have a component that renders components
dynamically.  Basically, we put them all in a page that is never
displayed.  Then at runtime, we dynamically render a particular component.

regards,

Mark


-Original Message-
From: Paul Tongyoo [mailto:[EMAIL PROTECTED]
Sent: Thu 6/29/2006 6:19 PM
To: users@tapestry.apache.org
Subject: Is it possible to swap components?
 
Hello all!

 

I'd like to define a generic component placeholder that does not have any
specific type at compile time.  Something like:

 

span jwcid=@ComponentContainer component=ognl:someComponentComponent
Placeholder/span

 

All the ComponentContainer would do is render the component that it's
passed...

 

component-specification

parameter name=component required=yes /



!-I do NOT want to specify the 'type' attribute here because it
can vary --

component id=ComponentDisplay property=component /

/component-specification

 

ComponentContainer.HTML:  span jwcid=ComponentDisplayComponent displays
Here/span

 

However Tapestry complains that the type of component isn't specified in the
ComponentContainer.jwc.  I also cannot pass an OGNL expression as the 'type'
attribute value.  Has anyone tried doing something similar - essentially
swapping different components into a component placeholder at runtime?

 

Thanks all for advice!

 

Paul

 





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



Re: Tree w/Checkbox on each node--Way to Fix Indent?

2006-06-30 Thread Jesse Kuhnert

Is there an open issue for this in tacos? Seems like a big enough deal thing
that I should fix it. http://tacoscomponents.jot.com/BugReporter

On 6/30/06, Steve Shucker [EMAIL PROTECTED] wrote:


I had this problem a while ago and traced it to a PartialFor component
within the tree that was persisting the contents incorrectly in the form.
It's using an iterator that doesn't track depth.  As a workaround, you can
create your own html/jwc files for the Tree control (use taco's backing
class) and add a volatile=true property to the PartialFor component.  It's
not ideal, but it's working great for me.

-Steve

-Original Message-
From: Tyrone Hed [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 9:57 PM
To: users@tapestry.apache.org
Subject: Tree w/Checkbox on each node--Way to Fix Indent?



   Folks,
 I have developed a Tapestry app (4.0.1) that uses the Tree in
four
places. It works great in three of those places but not in the one that
includes a checkbox on each node of the tree. The problem is that it loses
track of the indent and gives all nodes of the tree the same indent as the
right-most node. So, as the user opens each node, the tree marches from
left
to right. In short, it looks like hell. I've looked at the generated
source
but it just piles on divs and spans to get the indent. The margin indent,
in
short, is broken when you have to enclose a tree in a FORM. Any
suggestions?
Here is my code.
  Thank you,

  Ty


Files included:

userEnterprises.page
userEnterprises.html
UserEnterprises.java

---
userEnterprises.page
---

page-specification
class=com.tyco.web.pages.authorization.UserEnterprises

descriptionTree/description
  property name=item /
bean name=evenOdd class=org.apache.tapestry.bean.EvenOdd/

component id=tree type=tacos:Tree
  binding name=value   value=item/
  binding name=nodeLinkAjax   value=ognl:false /
  binding name=evenOdd  value=ognl:page.beans.evenOdd
/
  binding name=rowStyle  value=ognl:beans.evenOdd/
  binding
name=statevalue=enterpriseTreeState/
/component

  component id=submitEditUserUpdateEnterprises type=ClickSubmit
binding name=selected value=submitAction/
binding name=tag value='EDIT_USER_UPDATE_ENTERPRISES'/
  /component

  component id=submitCancel type=ClickSubmit
binding name=selected value=submitAction/
binding name=tag value='CANCEL'/
  /component

/page-specification


---
userEnterprises.html
---

  table width=90% class=body border=1
TR
  TD
div
  jwcid=tree
  id=tree
  keyProvider=ognl:keyProvider
  contentProvider=ognl:contentProvider

  style=overflow: auto; width: auto; height: auto;
  span jwcid=@If condition=ognl:item.id
conditionValue=true
input jwcid=[EMAIL PROTECTED]
value=ognl:item.checked /
  /span
  span jwcid=@If condition=ognl:item.active
conditionValue=ognl:true
span style=color:blackspan jwcid=@Insert
value=ognl:item.name//span
  /span
  span jwcid=@Else
span style=color:grayspan jwcid=@Insert
value=ognl:item.name//span
  /span
/div
  /TD
/TR
  /TABLE


---
UserEnterprises.java

 (I doubt this class will we useful in solving this problem
 but just in case I am doing so for completeness.)
---

/*
* Created on Jan 17, 2006
*
* Copyright 2005 Ingenix, Inc. All rights reserved.
* This file contains CONFIDENTIAL and PROPRIETARY information
* and should not be distributed without prior written permission.
*/
package com.ingenix.freya.web.pages.authorization;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.annotations.InjectState;
import org.apache.tapestry.event.PageBeginRenderListener;
import org.apache.tapestry.event.PageEvent;

import com.tyco.api.authorization.AuthorizationFactory;
import com.tyco.api.authorization.User;
import 

Re: Number Translator and Commas

2006-06-30 Thread Shing Hing Man

You can set the pattern in a bean.

bean name=foo
class=org.apache.tapestry.form.translator.NumberTranslator
  set name=pattern value=###,###.##/
/bean

binding name=translator value=bean:foo/

Shing 

--- John Menke [EMAIL PROTECTED] wrote:

   I am trying to do this:
 
 binding name=translator
 value=translator:number,pattern=###,###.##/
 
 
 but i get the error
 
 
 Class
 org.apache.tapestry.form.translator.NumberTranslator
 does not contain
 a property named '###.##''.
 
 It seems that the comma is being intepreted as
 marking a new property.  Is
 there any way to specifiy commas in the pattern?
 
 -john
 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

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



RE: Tree w/Checkbox on each node--Way to Fix Indent?

2006-06-30 Thread Steve Shucker
Sorry, I mis-filed it.  I saw this as a variation of bug 32 and added a
comment on there (dated 5/3/2006).  I just looked at the bug tracker and
realized that bug had been long-closed.  Do you want to reopen 32 or should
I re-file?

-Steve

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 10:48 AM
To: Tapestry users
Subject: Re: Tree w/Checkbox on each node--Way to Fix Indent?

Is there an open issue for this in tacos? Seems like a big enough deal thing
that I should fix it. http://tacoscomponents.jot.com/BugReporter

On 6/30/06, Steve Shucker [EMAIL PROTECTED] wrote:

 I had this problem a while ago and traced it to a PartialFor component
 within the tree that was persisting the contents incorrectly in the form.
 It's using an iterator that doesn't track depth.  As a workaround, you can
 create your own html/jwc files for the Tree control (use taco's backing
 class) and add a volatile=true property to the PartialFor component.  It's
 not ideal, but it's working great for me.

 -Steve

 -Original Message-
 From: Tyrone Hed [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 29, 2006 9:57 PM
 To: users@tapestry.apache.org
 Subject: Tree w/Checkbox on each node--Way to Fix Indent?



Folks,
  I have developed a Tapestry app (4.0.1) that uses the Tree in
 four
 places. It works great in three of those places but not in the one that
 includes a checkbox on each node of the tree. The problem is that it loses
 track of the indent and gives all nodes of the tree the same indent as the
 right-most node. So, as the user opens each node, the tree marches from
 left
 to right. In short, it looks like hell. I've looked at the generated
 source
 but it just piles on divs and spans to get the indent. The margin indent,
 in
 short, is broken when you have to enclose a tree in a FORM. Any
 suggestions?
 Here is my code.
   Thank you,


Ty


 Files included:

 userEnterprises.page
 userEnterprises.html
 UserEnterprises.java

 ---
 userEnterprises.page
 ---

 page-specification
 class=com.tyco.web.pages.authorization.UserEnterprises

 descriptionTree/description
   property name=item /
 bean name=evenOdd class=org.apache.tapestry.bean.EvenOdd/

 component id=tree type=tacos:Tree
   binding name=value   value=item/
   binding name=nodeLinkAjax   value=ognl:false /
   binding name=evenOdd  value=ognl:page.beans.evenOdd
 /
   binding name=rowStyle  value=ognl:beans.evenOdd/
   binding
 name=statevalue=enterpriseTreeState/
 /component

   component id=submitEditUserUpdateEnterprises type=ClickSubmit
 binding name=selected value=submitAction/
 binding name=tag value='EDIT_USER_UPDATE_ENTERPRISES'/
   /component

   component id=submitCancel type=ClickSubmit
 binding name=selected value=submitAction/
 binding name=tag value='CANCEL'/
   /component

 /page-specification


 ---
 userEnterprises.html
 ---

   table width=90% class=body border=1
 TR
   TD
 div
   jwcid=tree
   id=tree
   keyProvider=ognl:keyProvider
   contentProvider=ognl:contentProvider

   style=overflow: auto; width: auto; height: auto;
   span jwcid=@If condition=ognl:item.id
 conditionValue=true
 input jwcid=[EMAIL PROTECTED]
 value=ognl:item.checked /
   /span
   span jwcid=@If condition=ognl:item.active
 conditionValue=ognl:true
 span style=color:blackspan jwcid=@Insert
 value=ognl:item.name//span
   /span
   span jwcid=@Else
 span style=color:grayspan jwcid=@Insert
 value=ognl:item.name//span
   /span
 /div
   /TD
 /TR
   /TABLE


 ---
 UserEnterprises.java

  (I doubt this class will we useful in solving this problem
  but just in case I am doing so for completeness.)
 ---

 /*
 * Created on Jan 17, 2006
 *
 * Copyright 2005 Ingenix, Inc. All rights reserved.
 * This file contains CONFIDENTIAL and PROPRIETARY information
 * and should not be distributed without prior written permission.
 */
 package com.ingenix.freya.web.pages.authorization;

 import java.util.ArrayList;
 import java.util.HashSet;
 

Re: Tree w/Checkbox on each node--Way to Fix Indent?

2006-06-30 Thread Jesse Kuhnert

Ah ok, I've re-opened it. Thanks.

On 6/30/06, Steve Shucker [EMAIL PROTECTED] wrote:


Sorry, I mis-filed it.  I saw this as a variation of bug 32 and added a
comment on there (dated 5/3/2006).  I just looked at the bug tracker and
realized that bug had been long-closed.  Do you want to reopen 32 or
should
I re-file?

-Steve

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 10:48 AM
To: Tapestry users
Subject: Re: Tree w/Checkbox on each node--Way to Fix Indent?

Is there an open issue for this in tacos? Seems like a big enough deal
thing
that I should fix it. http://tacoscomponents.jot.com/BugReporter

On 6/30/06, Steve Shucker [EMAIL PROTECTED] wrote:

 I had this problem a while ago and traced it to a PartialFor component
 within the tree that was persisting the contents incorrectly in the
form.
 It's using an iterator that doesn't track depth.  As a workaround, you
can
 create your own html/jwc files for the Tree control (use taco's backing
 class) and add a volatile=true property to the PartialFor
component.  It's
 not ideal, but it's working great for me.

 -Steve

 -Original Message-
 From: Tyrone Hed [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 29, 2006 9:57 PM
 To: users@tapestry.apache.org
 Subject: Tree w/Checkbox on each node--Way to Fix Indent?



Folks,
  I have developed a Tapestry app (4.0.1) that uses the Tree in
 four
 places. It works great in three of those places but not in the one that
 includes a checkbox on each node of the tree. The problem is that it
loses
 track of the indent and gives all nodes of the tree the same indent as
the
 right-most node. So, as the user opens each node, the tree marches from
 left
 to right. In short, it looks like hell. I've looked at the generated
 source
 but it just piles on divs and spans to get the indent. The margin
indent,
 in
 short, is broken when you have to enclose a tree in a FORM. Any
 suggestions?
 Here is my code.
   Thank you,


Ty


 Files included:

 userEnterprises.page
 userEnterprises.html
 UserEnterprises.java

 ---
 userEnterprises.page
 ---

 page-specification
 class=com.tyco.web.pages.authorization.UserEnterprises

 descriptionTree/description
   property name=item /
 bean name=evenOdd class=org.apache.tapestry.bean.EvenOdd/

 component id=tree type=tacos:Tree
   binding name=value   value=item/
   binding name=nodeLinkAjax   value=ognl:false /
   binding name=evenOdd  value=ognl:
page.beans.evenOdd
 /
   binding name=rowStyle  value=ognl:beans.evenOdd/
   binding
 name=statevalue=enterpriseTreeState/
 /component

   component id=submitEditUserUpdateEnterprises type=ClickSubmit
 binding name=selected value=submitAction/
 binding name=tag value='EDIT_USER_UPDATE_ENTERPRISES'/
   /component

   component id=submitCancel type=ClickSubmit
 binding name=selected value=submitAction/
 binding name=tag value='CANCEL'/
   /component

 /page-specification


 ---
 userEnterprises.html
 ---

   table width=90% class=body border=1
 TR
   TD
 div
   jwcid=tree
   id=tree
   keyProvider=ognl:keyProvider
   contentProvider=ognl:contentProvider

   style=overflow: auto; width: auto; height:
auto;
   span jwcid=@If condition=ognl:item.id
 conditionValue=true
 input jwcid=[EMAIL PROTECTED]
 value=ognl:item.checked /
   /span
   span jwcid=@If condition=ognl:item.active
 conditionValue=ognl:true
 span style=color:blackspan jwcid=@Insert
 value=ognl:item.name//span
   /span
   span jwcid=@Else
 span style=color:grayspan jwcid=@Insert
 value=ognl:item.name//span
   /span
 /div
   /TD
 /TR
   /TABLE


 ---
 UserEnterprises.java

  (I doubt this class will we useful in solving this problem
  but just in case I am doing so for completeness.)
 ---

 /*
 * Created on Jan 17, 2006
 *
 * Copyright 2005 Ingenix, Inc. All rights reserved.
 * This file contains CONFIDENTIAL and PROPRIETARY information
 * and should not be distributed without prior written permission.
 */
 package 

OT: Tacos issues

2006-06-30 Thread James Carman
All,

I'm having a bit of trouble with Tacos.  I have some code written that works
great in Firefox and doesn't work in IE (imagine that).  Basically, I'm
popping up a wizard for the user to select stuff and when they make a
selection, I dismiss it.  I have a Search button that looks up some
information.  The search button is an tacos:AjaxLinkSubmit component.  In
IE, it doesn't even make the request to the server.  It does nothing.  I
have another button, a cancel button, that is a tacos:AjaxDirectLink
component right next to the search button and that is working fine.  Any
ideas?

James



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



RES: Tacos issues

2006-06-30 Thread Adriano Gonella
James, I was having similar problem, did it appear for u something like
Object [Object] and no action in server side?. In my case, my problem was
each link generated in html had a large quantity data. So there is a size
limit of URL to put in each browser(IE, Firefox). Firefox works fine  IE
doesn't work, generating a new blank screen with phrase Object [Object]
and doesn't executing anything in server side.

Can u send more info?



-Mensagem original-
De: James Carman [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 30 de junho de 2006 17:50
Para: 'Tapestry users'
Assunto: OT: Tacos issues

All,

I'm having a bit of trouble with Tacos.  I have some code written that works
great in Firefox and doesn't work in IE (imagine that).  Basically, I'm
popping up a wizard for the user to select stuff and when they make a
selection, I dismiss it.  I have a Search button that looks up some
information.  The search button is an tacos:AjaxLinkSubmit component.  In
IE, it doesn't even make the request to the server.  It does nothing.  I
have another button, a cancel button, that is a tacos:AjaxDirectLink
component right next to the search button and that is working fine.  Any
ideas?

James



-
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: Tacos issues

2006-06-30 Thread James Carman
I don't think that's my issue.  It's just basically not doing anything when
I click on the link.  The href=/.  Here's the generated code:

a href=/ id=AjaxLinkSubmit class=buttonSearch/a

And, here's where it's wiring it up:

dojo.event.connect(window, onload, function(e) {
  dojo.event.connect(dojo.byId(AjaxLinkSubmit), onclick,
document, AjaxFormSubmit_AjaxForm);
});

All I see in the debug log is:

DEBUG:  AjaxFormSubmit submission - before onsubmit
DEBUG:  Calling form handler

Nothing else happens after that. 

-Original Message-
From: Adriano Gonella [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 5:17 PM
To: 'Tapestry users'
Subject: RES: Tacos issues

James, I was having similar problem, did it appear for u something like
Object [Object] and no action in server side?. In my case, my problem was
each link generated in html had a large quantity data. So there is a size
limit of URL to put in each browser(IE, Firefox). Firefox works fine  IE
doesn't work, generating a new blank screen with phrase Object [Object]
and doesn't executing anything in server side.

Can u send more info?



-Mensagem original-
De: James Carman [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 30 de junho de 2006 17:50
Para: 'Tapestry users'
Assunto: OT: Tacos issues

All,

I'm having a bit of trouble with Tacos.  I have some code written that works
great in Firefox and doesn't work in IE (imagine that).  Basically, I'm
popping up a wizard for the user to select stuff and when they make a
selection, I dismiss it.  I have a Search button that looks up some
information.  The search button is an tacos:AjaxLinkSubmit component.  In
IE, it doesn't even make the request to the server.  It does nothing.  I
have another button, a cancel button, that is a tacos:AjaxDirectLink
component right next to the search button and that is working fine.  Any
ideas?

James



-
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: Tree w/Checkbox on each node--Way to Fix Indent?

2006-06-30 Thread Tyrone Hed

Wow. So this is not just a mis-configured tree? Incidentally, I have found
implementing Steve's proposed solution to be pretty challenging. I'm still
going to work on it but it would be great if I didn't need to use the
volatile. Thank you all for taking care of this.

Thank you,
  Ty
-- 
View this message in context: 
http://www.nabble.com/Tree-w-Checkbox-on-each-node--Way-to-Fix-Indent--tf1871290.html#a5127594
Sent from the Tapestry - User forum at Nabble.com.


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



RE: Tacos issues

2006-06-30 Thread James Carman
Okay.  Removing the validators allowed the AjaxLinkSubmits to work.
However, now I have another problem.  The code that works in FireFox still
doesn't work in IE.  It seems like it's not updating the hidden form fields
correctly.  It's getting an error like this:

Rewind of form Home/supplierLocationWizard.$AjaxForm_0 expected allocated id
#1 to be 'TextField', but was 'supplierSelectedEvent' (requested by
component Home/supplierLocationWizard.supplierSelectedEvent).

So, it looks like the hidden form fields which tell Tapestry the component
ids that it's going to find are not being updated.  Right?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 10:38 PM
To: Tapestry users
Subject: RE: Tacos issues

i've done some research on this...

The debug message Calling form handler is generated by tacos
Tapestry.registerListener found in net/sf/tacos/ajax/components/Form.js
(tacos redefines this method)

That method is in turn called by Tapestry.onsubmit, Tapestry.onreset, e.t.c.
which should be called in your case because your form fields define
validators, correct?

So, an initial guess is that the redifined Tapestry.registerListener 
messes up AjaxLinkSumbits in IE

Can you try removing the validators and see if the AjaxLinkSumbit works?


From James Carman [EMAIL PROTECTED]:

 I don't think that's my issue.  It's just basically not doing anything
when
 I click on the link.  The href=/.  Here's the generated code:
 
 a href=/ id=AjaxLinkSubmit class=buttonSearch/a
 
 And, here's where it's wiring it up:
 
 dojo.event.connect(window, onload, function(e) {
   dojo.event.connect(dojo.byId(AjaxLinkSubmit), onclick,
 document, AjaxFormSubmit_AjaxForm);
 });
 
 All I see in the debug log is:
 
 DEBUG:  AjaxFormSubmit submission - before onsubmit
 DEBUG:  Calling form handler
 
 Nothing else happens after that. 
 
 -Original Message-
 From: Adriano Gonella [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 30, 2006 5:17 PM
 To: 'Tapestry users'
 Subject: RES: Tacos issues
 
 James, I was having similar problem, did it appear for u something like
 Object [Object] and no action in server side?. In my case, my problem
was
 each link generated in html had a large quantity data. So there is a size
 limit of URL to put in each browser(IE, Firefox). Firefox works fine  IE
 doesn't work, generating a new blank screen with phrase Object [Object]
 and doesn't executing anything in server side.
 
 Can u send more info?
 
 
 
 -Mensagem original-
 De: James Carman [mailto:[EMAIL PROTECTED] 
 Enviada em: sexta-feira, 30 de junho de 2006 17:50
 Para: 'Tapestry users'
 Assunto: OT: Tacos issues
 
 All,
 
 I'm having a bit of trouble with Tacos.  I have some code written that
works
 great in Firefox and doesn't work in IE (imagine that).  Basically, I'm
 popping up a wizard for the user to select stuff and when they make a
 selection, I dismiss it.  I have a Search button that looks up some
 information.  The search button is an tacos:AjaxLinkSubmit component.  In
 IE, it doesn't even make the request to the server.  It does nothing.  I
 have another button, a cancel button, that is a tacos:AjaxDirectLink
 component right next to the search button and that is working fine.  Any
 ideas?
 
 James
 
 
 
 -
 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]



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