How to program a component?

2005-04-19 Thread Jun Tsai
I want to add a component into a page dynamicly.For exmaple: Test.jwc http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";> add a description Test.html This is a test component. TestPage.html Page content goes here TestPage.page . . TestPage

Re: Yet Another Stupid Syntax Question

2005-04-19 Thread Kent Tong
Patrick Casey adelphia.net> writes: > source = "ognl:theList" > value="ognl:theItem" > scope="row"> > > Try this: - To unsubscribe, e-mail: [EMAIL PRO

Re: Form component validation against database.

2005-04-19 Thread Kent Tong
Leo Sakhvoruk gmail.com> writes: > I was wondering where (i.e. form listener method) > and how (what methods to invoke on the page/validator) to flag specific > components inside the form with errors. I saw that the API for the > IValidationDelegate has methods for FieldTracking but I can't fi

Re: Date formatting validation "strange" behavior

2005-04-19 Thread Bryan Lewis
A small correction... I provide my own _non_lenient date formatter. - Original Message - From: "Bryan Lewis" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, April 19, 2005 8:38 PM Subject: Re: Date formatting validation "strange" behavior > I believe you're seeing the "lenient"

Re: Date formatting validation "strange" behavior

2005-04-19 Thread Bryan Lewis
I believe you're seeing the "lenient" behavior of the standard Java date formatter; it happily accepts 28 as a month input and converts it to two years and four months. I provide my own lenient date formatter: /** * This is expected to be our typical date format. A Tapestry * dat

RE: Displaying a remote site/ html inside my Tapestry Appln.

2005-04-19 Thread Hensley, Richard
And that is how you would do it in Tapestry. Tapestry ignores any html tags that do not have a jwcid attribute. _ From: Tapestry Forum User [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 3:24 PM To: tapestry-user@jakarta.apache.org Subject: Displaying a remote site/ html inside

Date formatting validation "strange" behavior

2005-04-19 Thread david joffrin
OK, so I have the following: .page: .html: Validity: (dd/mm/) .java: IValidationDelegate delegate = getValidationDelegate(); // There were some UI validation errors! if (delegate.getHasErrors())

Listener reference question

2005-04-19 Thread Patrick Casey
I have a page named "GenericList" with a listener named "rowSelected". I have a component called "drawGrid" on said page that draws rows (a lot of rows). For various reasons, this particular component renders the row body in java code (there is nothing in drawGrid.html).

Conditionally showing form elements (v. 2.3)

2005-04-19 Thread Eric Schneider
Hi, I've been tasked to augment a Tapestry 2.3 application and I'm having a little "stale link" trouble because of form elements wrapped in conditionals. I'm fairly sure I've gotten this to work in 2.3 apps before (pre contrib:FormConditional), but I can't remember how I did it. Does each co

Re: : ApplicationRuntimeException

2005-04-19 Thread Thomas Meier
Definitely worth logging as a bug I'd say :) On the spindle homepage http://spindle.sourceforge.net/ is a link to the bug report page on SF, you can submit it there... Good luck Tom Kemkes, Andreas wrote: Thanks. With OuterClass$InnerClass it works now. Spindle (3.1.17) was misleading with its e

Re: Problems with starting Tapestry application

2005-04-19 Thread t.n.a.
Jelena Jovanovic wrote: [get] Getting: http://localhost:8080/manager/install?path=/simple&war=file://C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/simple/ [get] Error opening connection java.io.IOException [get] Error opening connection java.io.IOException [get]

Problems with starting Tapestry application

2005-04-19 Thread Jelena Jovanovic
Hi, I have a problem with starting Tapestry application. I've tried to start very simple Tapestry project (working with Eclipse (version 3.0.1) and Spindle plugin), containing just one Insert and one PageLink components on the Home page. Actually, that is an example provided in the Tapestry Tut

RE: : ApplicationRuntimeException

2005-04-19 Thread Kemkes, Andreas
Thanks. With OuterClass$InnerClass it works now. Spindle (3.1.17) was misleading with its error message: Unable to resolve class OuterClass$InnerClass. Is that meriting a bug report? Where do you file them for Spindle? Andreas --

Re: : ApplicationRuntimeException

2005-04-19 Thread Thomas Meier
Kemkes, Andreas wrote: I believe that I've tried about every combination of "@" and "." that I could think of. It's also more a question of what OGNL supports and I couldn't find anything in their specification. Just found this on the web: http://www.janeg.ca/scjp/overload/static.html Quote: "t

RE: Problem with form component

2005-04-19 Thread Denis Souza
Hi Ivano, I feel really stupid now. Looking again at the implementation in other form components, I found two lines at the bottom of every component specification: I guess I didn't see them from looking at the code for so long. My component is now finally working. Thanks for getting my attenti

Re: : ApplicationRuntimeException

2005-04-19 Thread Erik Hatcher
Just to reiterate what I saw mentioned on this thread OGNL is _not_ involved in interpreting the 'type' attribute of . It is an actual Java class name that you could pass to Class.forName(), for example. Erik On Apr 19, 2005, at 12:11 PM, Kemkes, Andreas wrote: Thanks for the answe

RE: : ApplicationRuntimeException

2005-04-19 Thread Kemkes, Andreas
Thanks for the answers. I believe that I've tried about every combination of "@" and "." that I could think of. It's also more a question of what OGNL supports and I couldn't find anything in their specification. It would be nice to have for typesafe enums, which are often implemented as nested

RE: Problem with form component

2005-04-19 Thread Denis Souza
Hi Ivano, > I guess the abstract getters/setters in the AbstractFormComponent are > not intended as "Tapestry Properties" for the component. I understand that. Just to make things clear, I am NOT using using them as properties for the component. I'd prefer to ignore them, but when I get to the p

Re: Form with different SumbitsButtons each request

2005-04-19 Thread Anatoli Krassavine
Hello, I re-read my last e-mail and realized that I missed an all-important OR clause. So to avoid any misunderstanding the mail should read: Whenever you have a code which modifies form content at runtime, you should take special precautions to ensure that you use the same data during render

Re: Form with different SumbitsButtons each request

2005-04-19 Thread Anatoli Krassavine
Hello Volkan, Whenever you have a code which modifies form content at runtime, you should take special precautions to ensure that you use the same data uding rendering and rewind: 1) use @contrib:FormConditional for all conditions inside the form. 2) manually handle property resolution during

Form with different SumbitsButtons each request

2005-04-19 Thread Volkan Gueler
Hi everybody, my form should have either an EDIT-Submit-Button or a Save-Submit-Button. But what i'm getting is an StaleLinkException: Rewind of form $Form expected allocated id #12 to be 'doSave', but was 'doEdit$1' Is there an error in my mind, how to use form components in tapestry?

Re: contrib:Table and ITableModel reload problem

2005-04-19 Thread amanivachagam
Hi, Could you please let me know where it would be appropriate (page lifecycle method) to call reset() on the Tablemodel ? Thanks, Arun |-+> | | Mind Bridge | | | <[EMAIL PROTECTED]| | | hoo.com>

Re: Redirects...

2005-04-19 Thread Jérôme BERNARD
I forgot to indicate that I'm using Picasso (4.0). One possible way of doing it, based on your solution is: throw new RedirectException(getPageService().getLink(cycle, "affiliate/Home").getAbsoluteURL()); where your page is abstract and define the following abstract method: public abstract IEngin

Re: Yet Another Stupid Syntax Question

2005-04-19 Thread Ivano Pagano
ROTECTED] __ Informazione NOD32 1.1069 (20050419) __ Questo messaggio è stato controllato dal Sistema Antivirus NOD32 http://www.nod32.it -- Questa e-mail e gli eventuali file allegati sono da ritenersi confidenziali e rivolti alle sole persone in indirizzo; vi richiediamo pertant

Re: Problem with form component

2005-04-19 Thread Ivano Pagano
Hi Denis, I guess the abstract getters/setters in the AbstractFormComponent are not intended as "Tapestry Properties" for the component. I think you need to implement them to make your form actually work consistently with your specific design. For the framework to generate abstract method "autom

Re: BindingException

2005-04-19 Thread Erik Hatcher
On Apr 19, 2005, at 2:20 AM, euphobot wrote: I thoroughly appreciate your response and, if it were a textarea or TextField, I would thoroughly expect to supply and receive a String. However I am supplying an Integer (team.storyid) to a PropertySelection Oops! I apologize for not being more care

Re: : ApplicationRuntimeException

2005-04-19 Thread Thomas Meier
Oh btw, the 'type' element in the property-specification doesn't take ognl expressions. It just takes plain old classes as far as I know - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: : ApplicationRuntimeException

2005-04-19 Thread Thomas Meier
If you want to access static member in OGNL you use the expression @[EMAIL PROTECTED] But this applies only to variables not classes. If I understand you correct you want to use an internal class as a type in a property specification. I'm not sure if that works in Tapestry but in Java you would