Re: Editing int/Integer in a TextField component

2005-09-29 Thread Inge Solvoll
Thanks again for excellent help from you guys on the users list, I'll try the suggested solutions! You saved me a lot of time here :) Inge Andreas Andreou wrote: In tap3, you could use the ValidField and give it a double (or something else) validator... Here's the code (for the .jwc):

RE: Dynamic template selection

2005-09-29 Thread Schulte Marcus
I'm having the same problem - but dodged it up to know by telling my users they would have to tolerate the slightly different look and feel. When I don't get away with that anymore, I'd planned to go with your proposal 4. I dont't think it hurts so much if you 1. put blocks that stay mostly the sam

transient state and portlets

2005-09-29 Thread Mike Perham
http://jakarta.apache.org/tapestry/tapestry-portlet/coding-issues.html#L oss+of+Transient+State Portlets have one major different in their programming model versus servlets: data in the rewind phase is not available during the render phase. The link above recommends making your page properties se

validating PropertySelection in each row of a table

2005-09-29 Thread Larry Sherrill
I am writing a small sample application to learn how to validate a PropertySelection in a table. I am using an html table and a ForEach component. Each row represents a Person object, with name as a TextField component and favorite color as a PropertySelection component. I am using a list inside H

Re: Floating Number "delocalization"

2005-09-29 Thread Tomáš Drenčák
Not sure, but "." in pattern means localized decimal separator (e.g. ".", ","). So if you define \. you have just char "." not separator in pattern and therefore number is translated as integer... I have tried this in component annotation (###\.###) and it's just showing \ in the number string...

Re: textfield.focus()

2005-09-29 Thread Darío Vasconcelos
Take a look at the example for the @Script component. It sets the focus on the first visible field, but it should get you started Dario On 9/29/05, Waimun Yeow <[EMAIL PROTECTED]> wrote: > I have a question about setting focus on a textfield (in a form) after > the page has > finished rendering.

Re: Dynamic template selection

2005-09-29 Thread Shawn Church
Jamie, I will check it out. That would be an ideal solution, but I'm concerned it might clash with Tapestry's template cache. I will let you know how it works out. Thanks, Shawn Quoting Jamie Orchard-Hays <[EMAIL PROTECTED]>: > I wonder if you could hack the code that returns the template to

textfield.focus()

2005-09-29 Thread Waimun Yeow
I have a question about setting focus on a textfield (in a form) after the page has finished rendering. How do I accomplish this through Tapestry? I am using Tap 3.03. Tks. -- waimun

Tapestry and taglibs

2005-09-29 Thread Ashish Raniwala
Hi, I am porting a existing JSP page to tapestry 3.0.3. This page is using Jakarta Image taglib which is used to resize the images. This application also integrates a reportng solution which uses taglibs to integrate with JSPs. Is there a way I can use same taglib in tapestry pages or suggest how t

RE: Tapestry 4 portlet inside liferay 3.6.1

2005-09-29 Thread Mike Perham
For the record, the problem was discovered and worked around: http://issues.apache.org/jira/browse/TAPESTRY-679 -Original Message- From: Mike Perham Sent: Thursday, September 29, 2005 10:04 AM To: Tapestry users; Jabbar Azam Subject: RE: Tapestry 4 portlet inside liferay 3.6.1 Jabbar,

Re: annotations in ASO's

2005-09-29 Thread Dan Adams
I've been looking around in the hivemind lib sources at the spring stuff. As I'm not terribly hivemind savvy could some point me at where to look for getting spring beans through hivemind? It appears that it is possible but I'm not sure how to do it. On Thu, 2005-09-29 at 12:54 -0400, Kevin Menard

RE: injecting spring beans into engine services

2005-09-29 Thread Jeff Lubetkin
Assuming you've got Spring & Hivemind all hooked up already (using the instructions in the wiki), and have a Spring bean in the context called mySpringBean that implements MySpringService, you can do this by setting a property in the for your engine service. In hivemodule.xml: MyEngineSe

Re: Dynamic template selection

2005-09-29 Thread Shawn Church
Mike, Thanks for the suggestion. I initially started down that path, but I decided on a stand-alone app for a few reasons: First, the authentication app may be used independently. For example, we have a number of distributors who use it to maintain their own user groups within their organizat

Re: annotations in ASO's

2005-09-29 Thread Kevin Menard
On Thu, 29 Sep 2005 09:11:37 -0400, Dan Adams <[EMAIL PROTECTED]> wrote: Can annotations be used in ASO's? Namely I want to use @InjectObject to inject a spring service so that I can load data when its needed rather that serializing it all in the session. My understanding that no, this is not

injecting spring beans into engine services

2005-09-29 Thread Dan Adams
Anyone know of a way to inject spring beans into engine services? Also, as a side question, has anyone played with both tapestry and hivemind? What did you think? Is it good design to use both or should you stick with hivemind because of how much tapestry depends on it? As much as I long spring i'

Re: Dynamic template selection

2005-09-29 Thread Jamie Orchard-Hays
I wonder if you could hack the code that returns the template to be configurable. You could then have properties defined in your .application file that specify which html template to return for a particular app. Look around ITemplateSource and ITemplateSourceDelegate. Jamie On Sep 29, 200

Re: Editing int/Integer in a TextField component

2005-09-29 Thread Andreas Andreou
In tap3, you could use the ValidField and give it a double (or something else) validator... Here's the code (for the .jwc): expression="@[EMAIL PROTECTED]"/> Peter Ertl wrote: The main startup time seems to be taken by Hi

Re: Dynamic template selection

2005-09-29 Thread Michael Henderson
Hi, How about giving the authentication app a SOAP or XMLRPC interface? Write components to interact via this interface with the authentication app. If the components are styled via CSS then you can just modify the styles in each app to accomodate the look and feel requirements. Mike On Thu

Dynamic template selection

2005-09-29 Thread Shawn Church
I have an common authentication application which is used by a variety of client apps to provide single-sign-on and sign-off across the enterprise. This authentication app handles authentication of several types of users (employees, customers, vendors, and end-user consumers) authenticated using v

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Peter Ertl
The main startup time seems to be taken by Hivemind. Despite that my Jetty-based startup takes about 4 seconds on a 3GHz machine. the first load of a page (loading of tapestry libraries and services) takes another 7 seconds. The thing I miss most is a java problem: dynamic class reloading (HotS

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Schulte Marcus
Yes, I see that. What prevents me from moving right now is mainly the lack of spindle-support and the migration-expenses and (somewhat) the reportedly slow startup in dev. > -Original Message- > From: Peter Ertl [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 29, 2005 5:15 PM > To: T

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Peter Ertl
>> T3 you are right - my bad! :-) > --- Ursprüngliche Nachricht --- > Von: Schulte Marcus <[EMAIL PROTECTED]> > An: 'Tapestry users' > Betreff: RE: Editing int/Integer in a TextField component > Datum: Thu, 29 Sep 2005 17:08:25 +0200 > > but Inge would have to switch to T4 to be able to use tr

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Peter Ertl
You should take a look at @TextField in T4. It got a _lot_ better. especially you can now specify a numeric format pattern. e.g. > --- Ursprüngliche Nachricht --- > Von: Schulte Marcus <[EMAIL PROTECTED]> > An: 'Tapestry users' > Betreff: RE: Editing int/Integer in a TextField component > Da

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Schulte Marcus
but Inge would have to switch to T4 to be able to use translators ... . In T3, you have to use NumericFIeld (I also stumbled over that) > -Original Message- > From: Peter Ertl [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 29, 2005 5:04 PM > To: Tapestry users > Subject: Re: Editing

RE: Editing int/Integer in a TextField component

2005-09-29 Thread Schulte Marcus
I use @contrib:NumericField for numbers - that's anyway nicer - for checks and such Marcus > -Original Message- > From: Inge Solvoll [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 29, 2005 4:48 PM > To: Tapestry users > Subject: Editing int/Integer in a TextField component > > >

RE: Tapestry 4 portlet inside liferay 3.6.1

2005-09-29 Thread Mike Perham
Jabbar, I was just writing this exact email. I have the exact same problem except that my session expired message comes when I submit a form. I assume it is on any rewind. I too get no exception in the logs so there's no indication at all what the error is. mike -Original Message- From

Re: Editing int/Integer in a TextField component

2005-09-29 Thread Peter Ertl
this worked for me page class: @Component(type = "TextField", bindings = { "value=test" }) public abstract TextField getTestInputField(); public abstract float getTest(); html template: > --- Ursprüngliche Nachricht --- > Von: Inge Solvoll <[EMAIL PROTECTED]> > An: Tapestry use

Re: [~OT] code coverage in tapestry apps

2005-09-29 Thread Kovács István
Dan Adams wrote: Something Howard posting interested me in this. How do people test for test code coverage with tapestry? I'm investigating clover (http://www.cenqua.com/clover/). It has an ant task as well as plug-ins for several IDE's. It can be used with or without JUnit - it is my underst

Tapestry 4 portlet inside liferay 3.6.1

2005-09-29 Thread Jabbar Azam
Hello, Has anybody got a tapestry 4 beta 8 portlet to run inside liferay 3.6.1 running in jboss 4.0.2 and mysql 4.x. OS is windows 2000 Mine initially runs but on clicking a link in the portlet I get "An exception has occured. Click here to continue. Your session has expired." In the server.log fil

Re: Editing int/Integer in a TextField component

2005-09-29 Thread Peter Ertl
I tried it and it works... Do you have some code snippets? > --- Ursprüngliche Nachricht --- > Von: Inge Solvoll <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Editing int/Integer in a TextField component > Datum: Thu, 29 Sep 2005 16:48:27 +0200 > > For T3 > > I have run into a problem I

Re: "Page Transactions"

2005-09-29 Thread Peter Ertl
I would like to manage transactions using annotations on pages. Something like that... @Transaction(type = TransactionType.RequiresNew, scope="OrderWizardTx") public class OrderWizardPage1 extends BasePage { // do some initial stuff } @Transaction(type = TransactionType.Requires, scope="OrderW

Editing int/Integer in a TextField component

2005-09-29 Thread Inge Solvoll
For T3 I have run into a problem I didn't except to run into. I have an object with a property of type int, which I would like to edit in a TextField on my page. But I get the following error: "Parameter value (2) is an instance of java.lang.Integer, which does not inherit from java.lang.Str

url validator

2005-09-29 Thread Dan Adams
is there a standard url validator out there? if not will there be? i know i could probably use the pattern validator but it seems like something that might be done already. -- Dan Adams Software Engineer Interactive Factory - T

Re: QuickStart Tutorials -- Anyone reading them?

2005-09-29 Thread Kevin Monceaux
On Tue, Sep 27, 2005 at 06:03:59PM -0400, Howard Lewis Ship wrote: > I'm curious how many people have seen the Quick Start tutorials and > what people's thoughts are about them? I found them very helpful. I'm new to both Java web development and to Tapestry. I like that they use Ant. Many tut

Re: How to use Localization through java in tapestry4

2005-09-29 Thread Adam Greene
Thanks Howard. After sending it I wondered if I had got the name right... - Original Message - From: "Howard Lewis Ship" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, September 28, 2005 7:46 PM Subject: Re: How to use Localization through java in tapestry4 Nifty thing ab

annotations in ASO's

2005-09-29 Thread Dan Adams
Can annotations be used in ASO's? Namely I want to use @InjectObject to inject a spring service so that I can load data when its needed rather that serializing it all in the session. -- Dan Adams Software Engineer Interactive Factory -

[RESTORED] Spindle Update site temporarily offline.

2005-09-29 Thread Geoff Longman
The update site works again. http://spindle.sf.net/updates thx for your patience! Geoff On 9/26/05, Geoff Longman <[EMAIL PROTECTED]> wrote: > You can still get Spindle though! > > More info here: > > http://jroller.com/page/glongman?entry=spindle_update_site_temporarily_suspended > > Geoff > -

RE: How to iterate thru the controls in Tapestry???

2005-09-29 Thread Manjith Kumar Adapa
Hi Ron, Thank You Very Much for the solution. Can you give me the sample code how to iterate in my Java class through Tapestry. Thanks Manjith Kumar. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman Sent: Thursday, September 29, 2005 7:30 PM To: tapestry

Re: How to iterate thru the controls in Tapestry???

2005-09-29 Thread Ron Piterman
ציטוט Manjith Kumar Adapa: Hi, Well I have a page where I have 10 Text fields, 10 DropDowns, 10 Files to be uploaded. Well when I do the server-side validation I need to write the same code for all the each component individually. This makes my code redundant Well, is there any mechan

Re: Dynamic component inclusion question

2005-09-29 Thread Andreas Andreou
Take a look at DynamicBlock ( http://w3t.org/?u=4ug ) . I haven't used it, so I don't know if it works in all cases (i.e. inside forms or in Tap4), and you probably cannot pass parameters to the included components, but it might be a good starting place Kent Tong wrote: Adam Henderson Azudi

Re: Callbacks : how to

2005-09-29 Thread Kent Tong
Sylvain COUTANT adviseo.fr> writes: > Shouldn't the callback property be stored within a session's object ? Yes, it should. -- Author of a book for learning Tapestry (www.agileskills2.org/EWDT) - To unsubscribe, e-mail: [EMAI

Re: building up the value in a parameter

2005-09-29 Thread Kent Tong
Ted Steen gmail.com> writes: > but for some reason tapestry doesn't allow me to use the Persist > annotation along with the Parameter annotation. You can apply a only single annotation to a given construct (eg, a getter). This is a rule in Java. For your case you may create another persist

Re: Using enums as parameters for components

2005-09-29 Thread Howard Lewis Ship
You forgot the primary rule ... inlcude the source! My guess is that you should have the following: @[EMAIL PROTECTED] OGNL isn't as smart as Java, it needs help to know where the class name ends and the field name begins. On 9/27/05, Mark Stang <[EMAIL PROTECTED]> wrote: > Hi, > I am using 3.0

Re: Dynamic component inclusion question

2005-09-29 Thread Kent Tong
Adam Henderson Azudio hotmail.com> writes: > Is this possible... > > Say I have a page with an Area component. The Area component looks up > a file (XML), and in that XML file is defines a list of components > eg: PromoBox, OffersList. I don't think it's possible to do that with Tapestry. W

Re: Page recorder for page X locked after a commit()

2005-09-29 Thread Robert Cole
Hi Kent, Thanks for taking the time to help me. I've tried the change, and it looks like I've substituted the error for another one. I'm now getting an ApplicationRuntimeException stating "Body components may not be nested". Again, this is happening when I call the second page. Stacktrace bel

Re: "Page Transactions"

2005-09-29 Thread Kent Tong
Peter Ertl gmx.org> writes: > My current solution required access access to the full lifecycle > of the page. The only way I know is through IMonitor. Actually, what would you like to do? -- Author of a book for learning Tapestry (www.agileskills2.org/EWDT) -

Re: Floating Number "delocalization"

2005-09-29 Thread Kent Tong
Tomáš Drenčák gmail.com> writes: > I have following problem. In slovak language we have "," (floating > comma) as decimal separator, in english there's "." (floating point) > as decimal separator. But it's common practise that everybody use "." > as decimal separator in slovak. How can I change t

Re: RedirectException issues

2005-09-29 Thread Andreas Andreou
Howard Lewis Ship wrote: Many have stated that using exceptions for this purpose (redirecting) is a mistake. They are right. In the meantime, add a bug and I'll check the affected code to properly throw the RedirectException (currenlty, there are catch/rethrows for PageRedirectException).

RE: Listeners question

2005-09-29 Thread Prince John, Bedag
Hi, Remove the listener from the form and add it to the ok button. Best wishes John -Original Message- From: Renat Zubairov [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 10:30 AM To: Tapestry users Subject: Listeners question Hello Tapestry gurus, I have a page with "

How to iterate thru the controls in Tapestry???

2005-09-29 Thread Manjith Kumar Adapa
Hi, Well I have a page where I have 10 Text fields, 10 DropDowns, 10 Files to be uploaded. Well when I do the server-side validation I need to write the same code for all the each component individually. This makes my code redundant Well, is there any mechanism in Tapestry through which I can iter

RE: Listeners question

2005-09-29 Thread Joe Trewin
You could leave the form listener blank and move it to a listener attached to the submit button. I've also found that if you throw a RenderRewoundException then that will prevent the form listener from being thrown, although you may want to make sure that the listener is deferred to ensure that ev

Listeners question

2005-09-29 Thread Renat Zubairov
Hello Tapestry gurus, I have a page with "Ok" and "Cancel" buttons. like following: Those components inside a form for a edit/create business entity. Cancel listener implementation looks like following: public IPage