How to pass list of IActionListeners to component?

2005-10-31 Thread Vjeran Marcinko
This seems as advanced problem... I have a "navigation" component that is supose to render passed list of links (in a form of List of IActionListeners). Meaning, it should just render DirectLinks by looping IActionListeners. Parent page/component should just create List of IActionListeners by

Re: Checking if component is in a Form inside the components code

2005-10-31 Thread Richard Clark
Oops, missed a detail (I was cutting and pasting from existing code and editing madly.) Here's new code: public abstract class CollectionEditPage extends BasePage implements PageRenderListener { public abstract ListEditMap getMap(); public abstract void setMap(ListEditMap map); publi

Re: Checking if component is in a Form inside the components code

2005-10-31 Thread Richard Clark
Hi Tony, Assume you have a page with 3 tabs (and one collection per tab): A, B, and C. Since the user could make a few changes in one tab then switch to another and do more, Tapestry has to collect the changes from all of the tabs. This collection happens during the rewind. For sake o

RE: Checking if component is in a Form inside the components code

2005-10-31 Thread Tony De Keizer
HiJoe, Thanks for your replies. They shed some light on the problem. The post was my first stab at resolving the problem I subsequently posted to th emailing list. I have attached it below for your reference. I believe I may not fully understand the render, submit, rewind process and the rela

Re: @InjectObject and concrete classes

2005-10-31 Thread Richard Clark
Correction: Make that injection call @InjectObject("service:gtd.UserDataSource") That's what I get for not just cutting and pasting! (It still fails as described) ...R On Oct 31, 2005, at 17:59, Richard Clark wrote: I'm experimenting with Tapestry 4 (not quite ready to apply this to

@InjectObject and concrete classes

2005-10-31 Thread Richard Clark
I'm experimenting with Tapestry 4 (not quite ready to apply this to the huge production app yet ;) ), and ran into an interesting problem. I have a Validator that's used in my login process, and a service that gives access to the user names & passwords. I would like the validator to pick up

Nested tag values

2005-10-31 Thread Matthew Baird
I am trying to create a UI that shows "tags" like Flickr does. Each "tag" is rendered in a size according to its popularity. If you click on a link, it goes from this Master page, to a detail page showing the usages of the "tag" In the following, I've outlined the parts I would like to be d

Re: Setting RadioGroup selected attribute

2005-10-31 Thread Stevens, Jeffrey L (Dev Resource Central)
Thanks Kent! That is exactly what I needed. I was using incorrect syntax. Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to initialize object/service properly?

2005-10-31 Thread Spencer Crissman
When my application starts up, I want it to do some configuration from .properties files, then setup an in memory hsqldb. When it is shutdown, I need to perform some shutdown/cleanup, and at some point might want to flush the db contents to disk. I'm am unsure of the proper method of doing this wi

Re: Meta data and HiveMind?

2005-10-31 Thread Kevin Menard
Given that HiveMind 1.1 has been released without a fix for HIVEMIND-151 (the report for the below bug), is there going to be a straightforward way of converting meta values into other types in the T4 release? Thanks, Kevin On Thu, 01 Sep 2005 14:09:44 -0400, Howard Lewis Ship <[EMAIL PROTEC

Re: Should contrib:Table's "pagesClass" parameter render tag ?

2005-10-31 Thread Vjeran Marcinko
Hey MindBridge, would you agree on this? Should I report this to JIRA then? Or anyone else's comment perhaps? -Vjeran - Original Message - From: "Vjeran Marcinko" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Sunday, October 30, 2005 2:49 PM Subject: Should contrib:Table's "pagesClas

RE: Checking if component is in a Form inside the components code

2005-10-31 Thread Joe Trewin
Sorry - just read the end of the question! Not sure how you could trigger a submit, as by the time your component code is run it'll be half-way through a rewind. Nothing to stop you getting hold of the containing form's listener (if it had one) I guess, and triggering it using the invokeListener me

RE: Checking if component is in a Form inside the components code

2005-10-31 Thread Joe Trewin
Yes it is (assuming Tap 4.0 here, but probably a similar method for 3.0). I use something along the lines of: IForm form = (IForm) cycle.getAttribute(TapestryUtils.FORM_ATTRIBUTE); boolean inForm = (form != null); if (inForm) { // ... do something } else { // ... d

Re: Weird multiple-submit problem

2005-10-31 Thread Phil Ulrich
And I didn't finish this message. What I was going to add before I hit enter was that this method... only works in Opera. In Firefox or IE, the listener is ALWAYS null. In Opera, this works as expected. Any ideas? On 10/31/05, Phil Ulrich <[EMAIL PROTECTED]> wrote: > Before I get started: Tapest

Weird multiple-submit problem

2005-10-31 Thread Phil Ulrich
Before I get started: Tapestry 3.0.3. Upgrading to 4 is not an option. With that out of the way... Alright, we have a rather... unique setup for an app we're building here. Basically, each page is wrapped in a single Form component, which points to a listener called submitListener. On the page, th

Re: Fundamental form submit problem?

2005-10-31 Thread Ron Piterman
Please submit a bug... Cheers, Ron ציטוט Aslak Gronflaten: Hi, I'm not sure if there is a technique to circumvent this problem, but I feel tapestry handles this the wrong way. If I have a page with a form with a default listener, and two LinkSubmit components, each with its own listener. Whe

newbie For row update href problem

2005-10-31 Thread Denis McCarthy
Hi, We've just started using tapestry for parts of our web app. Currently I'm trying to build a page that shows a list of credit cards, and allows the user to update a credit limit on each card in the list via a DirectLink. The key parts of my .page are here:

Re: Friendly URLS

2005-10-31 Thread Martin Strand
Sounds like you removed the for /app... is only used for the page service. Form submissions are handled by the direct service. Since your direct service doesn't use friendly urls, the form will be posted to /app as usual. You'll need to either (1) add a servlet-mapping for /app so that th

Re: Is it possible to save an html template outside the application ?

2005-10-31 Thread Kent Tong
Didier Frund gmail.com> writes: > > Hi Kent, > > Using your solution, if the template (extracted from the database) contains > a tapestry component, it will not be interpreted. > > For example: > > ...(html tags)... > > ...(html tags)... > > Am I right? No. It will be interpreted. -

Friendly URLS

2005-10-31 Thread Mark Shead
I am using 4b11 and trying to get friendly URLS to work with a test application. I added the following to web.xml: phonebook *.html And the following to hivemodule.xml: I am able to load the first page /phoneb

Fundamental form submit problem?

2005-10-31 Thread Aslak Gronflaten
Hi, I'm not sure if there is a technique to circumvent this problem, but I feel tapestry handles this the wrong way. If I have a page with a form with a default listener, and two LinkSubmit components, each with its own listener. When I click either of the links, a hidden field is sat on the for

Re: focus problems in forms

2005-10-31 Thread Chris Norris
It is a T4 feature. The Form component has a focus parameter: http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Form.html On 10/31/05, Schulte Marcus <[EMAIL PROTECTED]> wrote: > > > > the checkbox either. Setting the div display in javascript > > works fine, but > > it's kind of a

RE: focus problems in forms

2005-10-31 Thread Schulte Marcus
> the checkbox either. Setting the div display in javascript > works fine, but > it's kind of a pain. It might be better to just turn the > focusing off for > now than to use javascript to hide things. > How did you manage to turn focusing off? Is this a T4-feature? --

RE: Is it possible to save an html template outside the application ?

2005-10-31 Thread Didier Frund
Hi Kent, Using your solution, if the template (extracted from the database) contains a tapestry component, it will not be interpreted. For example: ...(html tags)... ...(html tags)... Am I right? Didier -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Ken