Re: Page component tree model

2010-07-06 Thread Christophe Cordenier
Hi Actually, ComponentResources gives you access to the ComponentModel. Simply inject ComponentResources and you will get access to the model. 2010/7/6 Juan Isern > > Hi guys, > > I was wondering: is there any good way to get the component model of a > page? > (more precisely, the parent-child

AjaxFormLoop - repopulate a form for editing

2010-07-06 Thread Chris Mylonas
Hi All, I'm retrieving some values from the database I used in my "create" form which had an AjaxFormLoop and am having trouble setting the correct value within the selectmodel of the "edit" form. I want my existing top,bottom,side values returned to my edit form as I saved them. top

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-06 Thread Kalle Korhonen
Attached a patch to https://issues.apache.org/jira/browse/TAP5-1201 (sorry if I'm being pushy about it but I'd rather have it resolved in the core than work around the issue in the add-on library). Kalle On Mon, Jul 5, 2010 at 2:23 PM, Kalle Korhonen wrote: > https://issues.apache.org/jira/brow

Re: Replacing Date Selector

2010-07-06 Thread Alejandro Scandroli
Hi Jim I'm using ChenilleKit's DateTimeField component as a replacement for the Tapestry's default date component. To use it as the default editor for all your date properties you just need to: Create your Editor page: public class EditBlocks { @Environmental @Property(write = f

Page component tree model

2010-07-06 Thread Juan Isern
Hi guys, I was wondering: is there any good way to get the component model of a page? (more precisely, the parent-child structure of components, their names and some properties marked with an annotation, if possible) I read somewhere in the forum that such information wasn't meant to be directl

[T5.1.0.5]ie window event issue

2010-07-06 Thread donf yang
Hi, if u open a new ie window by window.open(..); , will triger "beforeunload" on the parent window object, then Tapestry.windowUnloaded will be true, and all ajax event will be invalid. -- Regards, Donf Yang -- To

Re: Send Email Upon Form Submit

2010-07-06 Thread Mike Shoemaker
Thanks all. I asked in case there was an elegant way to dynamically loop through form values and style the content. I.e. Built into tapestry or a component available to leverage. Javamail certainly works(actually what I have coded now), thanks again for your input. Mike Sent from my iPhone On

Re: Send Email Upon Form Submit

2010-07-06 Thread Norman Franke
On Jul 6, 2010, at 2:29 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 06 Jul 2010 15:17:12 -0300, Mike Shoemaker > wrote: I am writing an app that contains a feedback form that I want to send to management. I don't really care if I defer this to a cgi that I call from tapestry form or code

Re: Send Email Upon Form Submit

2010-07-06 Thread Thiago H. de Paula Figueiredo
On Tue, 06 Jul 2010 15:17:12 -0300, Mike Shoemaker wrote: I am writing an app that contains a feedback form that I want to send to management. I don't really care if I defer this to a cgi that I call from tapestry form or code the sending the email from tapestry. Any input would be appreciate

Re: Send Email Upon Form Submit

2010-07-06 Thread Dmitry Gusev
Here's how I'm senging emails from feedback page on GAE: http://github.com/dmitrygusev/ping-service/blob/master/ping-service/war/Feedback.tml http://github.com/dmitrygusev/ping-service/blob/master/ping-service/src/dmitrygusev/ping/pages/Feedback.java On Tue, Jul 6, 2010 at 22:17, Mike Shoemaker

Send Email Upon Form Submit

2010-07-06 Thread Mike Shoemaker
I am writing an app that contains a feedback form that I want to send to management. I don't really care if I defer this to a cgi that I call from tapestry form or code the sending the email from tapestry. Any input would be appreciated. Mike Sent from my iPhone --

Re: Invoke javascript through Mixin with actionLink and click event

2010-07-06 Thread Christophe Cordenier
Hi If you are using Tapestry 5.2-SNAPSHOT, i think you should observe Tapestry.ACTION_EVENT instead of click. -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com

Re: Invoke javascript through Mixin with actionLink and click event

2010-07-06 Thread Josh Canfield
> In the below example, I am trying to invoke javascript when I click on > Approve link and also on Disapprove. Nothing jumps out at me. I'd start by looking at the rendered page to see what the browser sees. Can you simplify the page down to the smallest page that fails and include the tml and re

Re: [T5] Best practices for customer-specific code in pages

2010-07-06 Thread Josh Canfield
> I am using Tapestry in a product that will be used by multiple customers. The approaches you've listed require you to modify the source code in order to scale up the supported customers. If you want to add customers to the application without modifying code then I'd change to test for specific o

Re: [T5] Best practices for customer-specific code in pages

2010-07-06 Thread Juan E. Maya
I recommend you to check the way the BeanEditForm Works. U might dynamically use a strategy to create the beanModels for a specific form. Even if this doesn't apply directly u can get very good ideas from the source code of the BeanEditForm On Tue, Jul 6, 2010 at 11:27 AM, t5_lothar wrote: > > Hi

Re: [T5] Best practices for customer-specific code in pages

2010-07-06 Thread Thiago H. de Paula Figueiredo
On Tue, 06 Jul 2010 06:27:41 -0300, t5_lothar wrote: Hi all, Hi! (1) If/Else approch: ... display some fields ... ... display other fields ... 1) Never use expansions in parameters. It coerces the value to a String. 2) This approach tends to get unmaintainable in the long run. (2) C

Re: clientsidevalidation call custom javascript function

2010-07-06 Thread Kiss Izolda
Hi, I solved this problem by preventing the "overlay loading animation" when the client validation finds any error: var validationError = false; frmForm.getElements().each(function(fieldElement) { var fieldEventManagerOfElement = $T(fieldElement).fieldEventManager; if (fieldEventMana

Re: clientsidevalidation call custom javascript function

2010-07-06 Thread asianCoolz
the reason i want to do this is because i have "overlay loading animation" that block page UI whenever submit button is clicked. but at the same time, tapestry will show clientsidevalidation pop up overlay box. I want to call custom javascript function so that it will close my "overlay loading anim

clientsidevalidation call custom javascript function

2010-07-06 Thread asianCoolz
on tapestry 4 when clientsidevalidation is executed and a pop up overlay dialog appeared. can i call my custom javascript function at the same time? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional c

[T5] Best practices for customer-specific code in pages

2010-07-06 Thread t5_lothar
Hi all, I am using Tapestry in a product that will be used by multiple customers. There will slight alterations in the pages depending on the customer's preference like a few more edit fields, additional buttons etc. My question is how to handle these variations of one page the most elegantly. T