Re: Adding tapestry project to Cpanel

2013-06-15 Thread Michael Prescott
A search of this list will turn up some options, people were talking about this within the last couple of months. I have an app running within Jetty as a custom app on Webfaction. On 15 June 2013 11:00, Nomen Nomanum wrote: > Hi. > I have finished my first app, I am s happy and now I am in

Re: Strategy for dealing with stale sessions?

2013-05-13 Thread Michael Prescott
I think this is an application-specific question. When the application server's underlying session expires, all your @Persisted fields become null, as you say. If the user continues, it's just as if a random, unknown user arrived and attempted to start interacting with your application somewhere

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-04-29 Thread Michael Prescott
You could also (if you're using Eclipse) use Ctrl-Shift-T to see what jar(s) might be containing the org.apache.catalina.deploy.WebXml class (which seems to be the offending duplicate). On 29 April 2013 14:10, George Christman wrote: > Here's my mvn dependency tree, thanks for your help. > > [W

Re: cant do if clause within a div - help

2013-04-29 Thread Michael Prescott
The template has to be valid XML, so the component won't really help you here. One thing to do would be to assemble the style in the backing Java class: public String getComputedStyle() { // ... } On 29 April 2013 11:32, nhhockeyplayer nashua wrote: > Hi Folks, > > I am doing an if clause

Re: Minimum Heap Size to run basic Tapestry 5 archetype example smoothly

2013-04-26 Thread Michael Prescott
I recently went through the same process, looking for a decent host that would hose me on memory costs. In the end I settled on using an existing WebFaction account with a RAM upgrade, running jetty as a so-called custom app. I think it's a fair bit cheaper than that, if a small hassle to get it s

Re: @BeginRender equivalent for component AJAX events

2013-04-24 Thread Michael Prescott
Okay! I've filed it as https://issues.apache.org/jira/browse/TAP5-2111 On 24 April 2013 09:07, Lance Java wrote: > Far from being a gory detail, it's part of the public API for the mixin, > very similar to AutoComplete's "provideCompletions" event. > > The mixin should ideally declare the event

Re: @BeginRender equivalent for component AJAX events

2013-04-24 Thread Michael Prescott
Thanks, Lance, that looks like it will do the trick nicely. Do you think that the 'refresh' event should be added to the ZoneRefresh mixin's documentation? Is this public/won't change, or a gory internal detail? On 24 April 2013 04:47, Lance Java wrote: > The ZoneRefresh mixin fires the "refr

@BeginRender equivalent for component AJAX events

2013-04-23 Thread Michael Prescott
I have a component that includes a zone - the zone is periodically refreshed using the ZoneRefresh mixin. Is there any equivalent to @BeginRender that I can use to set up data to support the zone re-rendering? @BeginRender methods are called when the page renders, but they're not called when the

Helpfulness of errors for missing @Symbols

2013-04-20 Thread Michael Prescott
I'm using Symbols injected into my app's tapestry module to read web context init parameters. class MyModule { @Inject @Symbol("myapp.hairinesslevel") private int hairinessLevel; } I run the app in a bunch of different ways - in jetty:run, deployed as a service, and in a web container, s

Re: Is it possible somehow to get tapestry5 service from within integration test?

2013-04-16 Thread Michael Prescott
You can use the RegistryBuilder to instantiate your tapestry services via Tapestry IOC, I'm finding that very handy. That's described here: http://tapestry.apache.org/starting-the-ioc-registry.html On 16 April 2013 10:38, Dmitry Gusev wrote: > I'm writing integration tests (using SeleniumTest

Re: fckeditor for Tapestry 5.3

2013-04-15 Thread Michael Prescott
+1 for Tynamo's CKeditor, I'm using it on my current project. Michael On 15 April 2013 13:24, Dragan Sahpaski wrote: > Probably there are javascript errors in the console. I haven't used the > fckeditor plugin for tapestry but take a look at tynamo's fully functional > ckeditor plugin, compati

Re: Registry will shutdown listener not invoked

2013-04-03 Thread Michael Prescott
What is 'log', is it an injected logger service? Once shutdown has started, other services may already have been deactivated, so those calls may fail. On 3 April 2013 16:27, Muhammad Gelbana wrote: > I use tapestry to develop windows services so this should be similar to a > desktop applicatio

Re: RegistryShutdownHub replacement?

2013-04-02 Thread Michael Prescott
.org/current/apidocs/org/apache/tapestry5/ioc/services/RegistryShutdownHub.html#addRegistryShutdownListener(java.lang.Runnable) > > > On Tue, Apr 2, 2013 at 4:00 PM, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > > Now that RegistryShutdownHub has been depr

RegistryShutdownHub replacement?

2013-04-02 Thread Michael Prescott
Now that RegistryShutdownHub has been deprecated in 5.3, is there a preferred way for services to be notified that the application is shutting down? Gratefully, Michael

Service Advisors recursive problem

2013-04-01 Thread Michael Prescott
I'm having trouble applying service advisor according to the instructions here: My TapestryModule contains only this, as per the example on http://tapestry.apache.org/service-advisors.html : @Match("*") public static void adviseLogging(LoggingAdvisor loggingAdvisor, Logger logger, MethodAdvice

Re: Tapestry-Hibernate outside of web requests

2013-04-01 Thread Michael Prescott
} Having said that, despite the fact that I have put @CommitAfter on the service method AND on the service interface method, the transactions aren't being committed. Q: Is there any way to tell what advisors or decorators are in place around a service method? On 1 April 201

Tapestry-Hibernate outside of web requests

2013-04-01 Thread Michael Prescott
How do I make @CommitAfter work outside of a normal web request? (By way of background, I have a web app that also receives messages that require database work via JGroups. These aren't web requests, but I want to use the same hibernate configuration and infrastructure if at all possible.) Right

ServiceOverride IoC recursion exception

2013-03-28 Thread Michael Prescott
Just spent a painful afternoon learning something - if you specify no system properties, Tapestry will fail to initialize if you provide a: contributeApplicationDefaults(MappedConfiguration configuration) ..method in your TapestryModule. The symptom is the dreaded recursive definition exception

Re: Page Inheritance

2013-01-17 Thread Michael Prescott
Oh neat, I somehow missed this. On 17 January 2013 09:31, Taha Siddiqi wrote: > > For template inheritance > > > http://tapestry.apache.org/component-templates.html#ComponentTemplates-TemplateInheritance > > You should use the base package for base class. > > regards > Taha > > On Jan 17, 2013,

Re: protecting text field components from SQL injection

2013-01-02 Thread Michael Prescott
SQL injection vulnerabilities occur when you build SQL strings manually through string concatenation, like this: String sqlStatement = "SELECT ID FROM MYTABLE WHERE TEXTFIELD LIKE '%" + queryFromUser + "%';"; The simplest way, IMO, to protect against SQL injection attacks is to not do this. Usin

Re: New to tapestry- please help

2012-12-06 Thread Michael Prescott
http://tapestry.apache.org/getting-started.html On 6 December 2012 09:04, Emmanuel Sowah wrote: > Hi guys, > > I'm new to tapestry. Could someone please point me to some simple to follow > tutorials to get me up and running quickly? > > Thanks, > Emmanuel >

Re: [5.3.6] Tapestry's minimal dependencies

2012-12-05 Thread Michael Prescott
If you've used maven for that much, you're nearly there. All you have to do is declare the jars you need as in the pom.xml, and then 'mvn install' will produce you a .war file with all the jars in it. You can use command 'mvn eclipse:eclipse' to create the project's .classpath file, so you don't

Re: help upgrading T4 code

2012-09-15 Thread Michael Prescott
You can still use OGNL yourself by independently importing OGNL into your project. Tapestry's property expression language doesn't do stuff like this. On 15 September 2012 17:40, Ken in Nashua wrote: > > Folks, > > Any help is appreciated. > > Formerly (in T4) OGNL was used to perform delicate

Re: One Template to include another TML - JSP style

2012-09-12 Thread Michael Prescott
No problem. Yes, I know the simple solution sometimes isn't the right fit. For a component, I wonder if you can pass in a shared message catalog as a parameter? Are you literally using HTML fields for display? Or are you writing text in display mode and form fields in edit mode? Michael On 1

Re: One Template to include another TML - JSP style

2012-09-12 Thread Michael Prescott
Tapestry doesn't let you include text from a file into another file, but you could certainly create a PersonViewEdit component that renders itself in two modes. For this particular case, you might find that a reflection-based BeanEditForm on one page, and a BeanDisplay on another is the right way

Re: Ioc Ordering Contraints

2012-09-09 Thread Michael Prescott
Apparently, the trick is to specify multiple constraints. Constraints are very loose; after means 'somewhere after' rather than 'immediately after', so just specify as many as are important to you. Someone more informed can weigh in whether you can mix specific constraints with wildcards. In the

Re: Binding an array and accessing elements of that array in a template

2012-09-04 Thread Michael Prescott
Also, a Loop will let you do something like: With a property: @Property private int /* or whatever */ monthlyBill; Michael On 4 September 2012 16:52, Russell John-Baptiste wrote: > Sorry if this was answered or shown else where but i'm not seeing it. > > I have an array called MonthlyBi

Re: if/else if component

2012-08-31 Thread Michael Prescott
You could try the 'Case' technique. http://tapestry.apache.org/switching-cases.html On 31 August 2012 07:06, karthi wrote: > Hi everyone, > > I have used if/else in tapestry, but can anyone tell me how to achieve > > if/else if/else if/else > > Thanks in advance > > > > -- > View this message i

Re: How to tell which page is being requested?

2012-08-24 Thread Michael Prescott
r Asset or ComponentEvent, the code PageRenderRequestParameters decode = linkEncoder.decodePageRenderRequest(request); .. returns misleading results. Michael On 24 August 2012 14:52, Michael Prescott wrote: > Right. I don't want my dispatcher to interfere with asset requests, so > presu

Re: How to tell which page is being requested?

2012-08-24 Thread Michael Prescott
-processing.html > > /Joakim > > > On Fri, Aug 24, 2012 at 8:45 PM, Michael Prescott > wrote: > > I don't know! I thought ordered configurations formed a linear sequence, > > so all I had to do was say which one I wanted it immediately before. > > Sup

Re: How to tell which page is being requested?

2012-08-24 Thread Michael Prescott
nyways. Michael On 24 August 2012 14:39, Thiago H de Paula Figueiredo wrote: > On Fri, 24 Aug 2012 14:58:21 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > I'm configuring my dispatcher with this: >> >> configuration.add("PageAuth&quo

Re: How to tell which page is being requested?

2012-08-24 Thread Michael Prescott
I'm configuring my dispatcher with this: configuration.add("PageAuth", pageAuth, "before:PageRender"); This tells Tapestry to put my pageAuth dispatcher.. *after* page render? On 24 August 2012 13:44, Thiago H de Paula Figueiredo wrote: > On Fri, 24 Aug 2012 14:2

Re: How to tell which page is being requested?

2012-08-24 Thread Michael Prescott
pageAuth) { configuration.add("PageAuth", pageAuth, "before:PageRender"); } Michael On 23 August 2012 21:26, Thiago H de Paula Figueiredo wrote: > On Thu, 23 Aug 2012 17:29:13 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > Hey there, >

Re: Streaming file from resource package

2012-08-22 Thread Michael Prescott
Can you use MyPage.class.getResourcesAsStream( ... ) ? Don't forget to ensure to include .xsl files in your maven resources list, otherwise it won't get put in the .war file. On 22 August 2012 14:31, George Christman wrote: > I have an xsl file which I "believe" should be placed in the resource

Tapestry/Hibernate/Quartz/Perthread scope

2012-08-20 Thread Michael Prescott
Gratefully wondering if someone could validate my hunches about Tapestry. By way of background, I've got a Tapestry app that manages some training data for a machine learning process. The training process is time consuming, so I want to do that outside of the request/response cycle. I intend to

Re: tapestry by JEE standard

2012-08-17 Thread Michael Prescott
When you say classification, what do you mean? On 17 August 2012 14:50, Lodorvonhal wrote: > many thanks @ all for the reply. > I know that tapestry is a web framework. I meant the classification of the > finished application. I think you have helped me already. many thanks. > > I try to describ

Re: Appropriate use of ProgressiveDisplay?

2012-08-16 Thread Michael Prescott
to find any solid starting > point. I'm actually fairly blown away by how completely fruitless the > search has been. If you have suggestions, pelase let me know! > > -George > > > On Thu, Aug 16, 2012 at 6:15 PM, Michael Prescott < > michael.r.presc...@gmail.com>

Re: Appropriate use of ProgressiveDisplay?

2012-08-16 Thread Michael Prescott
Can you describe the layout of your page in a bit more detail? I'm imagining a form, and when you submit it, you want a 'saving' message to take the place of the form. Is that right? (This sounds like a hack of Zone to me.) Or is the message some kind of lightbox while the page behind changes c

Re: ASO, SSO, perthread - checking my understanding

2012-08-16 Thread Michael Prescott
Much obliged. On 16 August 2012 15:21, Lenny Primak wrote: > Comments interspersed... > > > > On Aug 16, 2012, at 2:03 PM, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > > Just want to check my understanding on a few matters. > > > > P

Re: T5 Auto Binding of DAOs

2012-08-16 Thread Michael Prescott
e: > On Wed, 15 Aug 2012 19:47:50 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > That's very nifty, Norman. This is a simultaneously inspiring and >> depressing reminder that despite having used Tapestry since version 3, I >> still f

Re: T5 Auto Binding of DAOs

2012-08-15 Thread Michael Prescott
That's very nifty, Norman. This is a simultaneously inspiring and depressing reminder that despite having used Tapestry since version 3, I still feel like a total noob. :-) I'd love to see a blog series on "Services you never knew about and fun things to do with them!" Michael On 15 August 2012

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
the context is set to 'null' when you arrive at the form in 'add' mode, and this never changes. So @Persist it is. Thank you both for your advice. On 1 August 2012 16:14, Thiago H de Paula Figueiredo wrote: > On Wed, 01 Aug 2012 17:11:26 -0300, Michael Prescott &

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
Yes - excellent. Thanks very much for your help. On 1 August 2012 16:12, George Christman wrote: > your event is always null on a new record after the zone refreshes. You > need > to somehow set the event obj after the zone update. Thiago might have a > better solution than using persisting the

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
gust 2012 15:59, Thiago H de Paula Figueiredo wrote: > On Wed, 01 Aug 2012 16:41:59 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > I suspect that, when the form updates a zone, the form has no chance to >> realize that the page now has a context. >>

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
Thanks for replying. Yes, I'm trying to add/edit in the same page. I wondered the same thing, but I think I am. The relevant snippets look like this: // my page public class EventEdit { @Inject private EventDao eventDao; @Property private Event event; @InjectComponent("predictionszone") pr

Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
I have an add/edit form - if the context is non-null, then I'm editing, otherwise I'm adding. So far, so good. As the user edits, they occasionally submit to the server to get the server's impressions of what they've posted so far (it looks at what they've submitted, works out some metrics). Thes

Re: DAO Pattern

2012-07-23 Thread Michael Prescott
1. I'm using tapestry-hibernate; you can put the DAOs in the .services package (well, a sub-package). In the past I used tapestry-spring, in which case the DAOs don't go inside the tapestry project's package. 2. Huh, I had no idea people were using REST on app layer boundaries, rather than just f

Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-23 Thread Michael Prescott
s is that you manually look up the > datasource. > > Cheers, > > Alex K > > > > On Fri, Jul 20, 2012 at 4:17 PM, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > > The problem goes away if I provide a hibernate.cfg.xml file with all the &g

Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-20 Thread Michael Prescott
source whose name is itself specified by the container. I can inject the name just fine, but my HibConfig class doesn't seem to be cutting the mustard. Michael On 20 July 2012 15:19, Michael Prescott wrote: > I'm having trouble getting a connection through tapestry-hibernate. Any &g

Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-20 Thread Michael Prescott
I'm having trouble getting a connection through tapestry-hibernate. Any help would be appreciated! I imagine I'm not seeing some small thing I've overlooked. I'm configuring the hibernate connection in code, to use a DataSource provided by the servlet container. The data source is available - I

Re: BufferedImage in Tapestry

2012-07-17 Thread Michael Prescott
I wish I had more time to explain; I don't right now. Here's a chunk of code from our project that might help you along. It's a tapestry page that loads a document (a "background material") from a DAO and then displays it to the user. public class Background { @Inject private BackgroundMaterial

Re: BufferedImage in Tapestry

2012-07-15 Thread Michael Prescott
You cannot return the BufferedImage, but you can stream the data from the image. You do not need to store it in a physical file. Have a look at this wiki page: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile On 15 July 2012 00:00, gonzalomp87 wrote: > First of all sorr

Re: Form getting resubmitted after an hour

2012-07-06 Thread Michael Prescott
Do you know what's causing the resubmission? I don't quite understand the problem, can you provide more information? Are you automatically refreshing the page (say, after one hour), but you find that the refresh is resubmitting the form? It strikes me as slightly unusual that you'd have a Tapestr

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Yes - sorry I wasn't clear. Thanks for your help. On 21 June 2012 18:30, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 16:36:38 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > That's crazy talk. >> > > Did it work? > &

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
That's crazy talk. Thanks. :-) On 21 June 2012 15:09, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > >> MyModule { >> >> // Doesn't work >> @Symbol("par

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
s. If that's no > use, you could write your own SymbolProvider based on the above - > which is only around 6 lines of code. > > Steve. > > > On 22 June 2012 01:43, Michael Prescott > wrote: > > I'm hoping to use tapestry-hibernate, and also flyway to do db &

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Nevermind. :-) Turns out that my problem was just that I was trying to use @Symbol on a module field, instead of on a method parameter. Michael On 21 June 2012 13:43, Michael Prescott wrote: > I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, > and I'

@Symbol and web context-params

2012-06-21 Thread Michael Prescott
I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, and I'm having trouble injecting the data source from the servlet container into each of these. With tapestry-spring, I was able to have spring read web context params, and go from there. But in my tapestry module, @Symbol

Re: Session timeout alert.

2012-03-28 Thread Michael Prescott
The "remaining" time is something of a red herring: every client-to-server interaction resets the countdown, so from the perspective of the server processing a request, the remaining time will always be the full session timeout value. (I'm not sure how you pick this up from the container, but no d

Re: Tapestry5/iframe

2011-12-02 Thread Michael Prescott
Sure, why not. As a random stab, you could have a form that updates a zone; the zone would contain the iframe, with src="${mytextbox.value}". On 2 December 2011 13:37, Xybrek wrote: > Hi, > > I have a GWT (Google Web Toolkit) based application which have a component > which is a iframe that can

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
rhaps that's > an enhancement request for tapestry-spring. > > JB > > On Fri, Nov 18, 2011 at 11:57 AM, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > > I have a number of managed-by-Spring command objects that need to be > > injected with

Re: Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
ch. On 18 November 2011 11:08, Thiago H. de Paula Figueiredo wrote: > On Fri, 18 Nov 2011 12:51:45 -0200, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > I was excited about the possibility of injecting a session-scoped Spring >> bean into a dispatcher (si

Injecting session-scoped Spring beans

2011-11-18 Thread Michael Prescott
I was excited about the possibility of injecting a session-scoped Spring bean into a dispatcher (since this saves mucking around with ApplicationStateManager) - but (of course!) I've run into a slight problem. For whatever reason, this syntax: ..creates two visible beans of type MyBean in t

Re: Rendering Informal Parameters

2011-11-11 Thread Michael Prescott
; on your component. See the RenderInformals mixin for an example (or > > just use the RenderInformals mixin!) > > > > Steve. > > > > > > > > > > On 10 November 2011 06:22, Michael Prescott > > wrote: > >> That didn&

Re: Binding form fields to map elements

2011-11-10 Thread Michael Prescott
Thanks very much, Thiago. On 10 November 2011 13:02, Thiago H. de Paula Figueiredo wrote: > On Thu, 10 Nov 2011 14:58:41 -0200, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > Can you bind form fields to map elements? >> > > Not directly, but yo

Binding form fields to map elements

2011-11-10 Thread Michael Prescott
Can you bind form fields to map elements? In OGNL, you can access map elements as parameters, such as: myMap.width This is a read/writable property expression that corresponds to myMap.get("width") and .put("width", value ). By way of background - In my domain model, I have a collection of enti

Re: Rendering Informal Parameters

2011-11-09 Thread Michael Prescott
That didn't seem to make a difference, but it sounds prudent. On 9 November 2011 17:09, Lenny Primak wrote: > AfterRender, not afterRenderBody and beginRender and it should work. > > > > On Nov 9, 2011, at 4:58 PM, Michael Prescott > wrote: > > > I had tried t

Re: Rendering Informal Parameters

2011-11-09 Thread Michael Prescott
Primak wrote: > You have to have beginRender/afterRender(MarkupWriter) methods > in your page, and then write the root element in them, and then it should > work. > I followed the InformalParameter documentation page and it worked. > > On Nov 9, 2011, at 4:25 PM, Michael Prescott w

Debugging forms

2011-07-08 Thread Michael Prescott
I have a form that involves a loop, and each row has some buttons. On Chrome, these buttons work just fine (triggering a server-side event); in Firefox 4, the form submits, but the submit button's event isn't triggered. What techniques are available for debugging this? I've got the tapestry.eve

Re: > 5.1.0.5 in production anywhere?

2010-05-24 Thread Michael Prescott
Ah, I have to confess I misread the original question. We're using 5.1.0.5 in production, sorry. On Mon, May 24, 2010 at 5:03 AM, Jim O'Callaghan wrote: > Thanks for the response Michael - are you talking about 5.2.0-SNAPSHOT? > > Regards, > Jim. > > -Original

Re: > 5.1.0.5 in production anywhere?

2010-05-22 Thread Michael Prescott
We're using it in production, and we haven't had any runtime stability problems with it. On Sat, May 22, 2010 at 4:16 AM, Jim O'Callaghan wrote: > Is anyone using a version newer than 5.1.0.5 in production for their > application? There are a few nice to have more recent additions that would > b

Re: Problem with spring integration

2010-05-06 Thread Michael Prescott
ot;process") > > private Process process; > > > > Caused by: java.lang.RuntimeException: Service id 'Process' is not > defined > > by any module. > > > > I am only using this configuration file to load beans...so i guess there > > should no

Any docs on URL -> Page Class Name?

2010-05-05 Thread Michael Prescott
Is there any solid documentation on the full set of transformations from page class to URL? Seems that understanding all of the URLs at which my pages are made available is important to using any sort of URL-based security. Every time I go to look this up, I can never find it, other than the "Sub

Re: Problem with spring integration

2010-05-05 Thread Michael Prescott
Re: the first error, it looks like Spring is trying to inject your class 'by type', but isn't sure which of two Process beans to use. I only see one from the snippet you've attached, is it possible that there's another one? As far as the second error goes, the ids are probably case sensitive - 'P

Re: Emailing Application Errors

2010-04-26 Thread Michael Prescott
log4j has a email appender, I believe, so you could configure log4j to email you everything above a certain threshhold, etc. Michael On Mon, Apr 26, 2010 at 1:38 PM, Jeshurun Daniel wrote: > Is there a way to configure Tapestry to automatically email error reports > when an application error oc

How to: Setting autofocus on looped fields

2010-03-30 Thread Michael Prescott
A page in my app displays an table of scheduled items; each row has a button that lets the user insert a new event - a row in the table. The 'insert row' buttons are Submits, so the whole form posts and the page re-renders. Because of this, it seemed important to have the form autofocus on the fi

Re: How to catch an event from multiple components?

2010-03-30 Thread Michael Prescott
Tue, Mar 30, 2010 at 5:08 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 30 Mar 2010 17:52:02 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > How do you catch an event from multiple components (but not all >> components?

How to catch an event from multiple components?

2010-03-30 Thread Michael Prescott
How do you catch an event from multiple components (but not all components?) You can't have multiple @OnEvent annotations on a single event handler method, nor can you have the same t:id for multiple components. Does this mean I need a separate event handler method (which of course could delegate

Chenille Kit incompatibility?

2010-03-30 Thread Michael Prescott
I'm trying to include Chenille Kit (chenillekit-tapestry) 1.2.0 into my Tapestry 5.1.0.5 project, but I'm getting an apparent incompatibility - an exception gets tossed whenever I visit the page that uses the Chenille DateTimeField. I've seen it both ways, apparently depending on which service con

@Activation

2010-03-29 Thread Michael Prescott
Hey, it would be really nice if I could skip all the writing of onActivate() and onPassivate() methods, just using an annotation like this: @Persist("activationContext") public String someUsefulIdentifier; Or, perhaps (and more useful for my case, when I want a domain entity handy): @ActivationC

Re: Persist value of checkbox ?

2010-03-29 Thread Michael Prescott
You're missing the 'value' attribute from your checkbox definition. The id attribute just gives the checkbox a name, it doesn't automatically bind it to the _pute property. Michael On Mon, Mar 29, 2010 at 12:10 PM, jaques robert wrote: > Hello, > > I've tried this code which present 10 checkbox

Re: DateTimePicker?

2010-03-26 Thread Michael Prescott
Thanks, Juan! On Fri, Mar 26, 2010 at 10:52 AM, Juan E. Maya wrote: > Hi Michael, > > Chennille Kit has a component that allows u to ask for date and time. U can > check it here: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo > > On Fri, Mar 26, 2010 at 3:36 PM

DateTimePicker?

2010-03-26 Thread Michael Prescott
Has anyone done anything with a date picker that also specifies time of day? The WebFX calendar pop-up doesn't look like it deals with that. If it comes to it, I can always have a separate 'time' field and merge the two resulting Dates using Calendar/Joda, but perhaps someone has done something s

Re: [T5.1] Return a file as response of a ActionLink event

2010-03-26 Thread Michael Prescott
Seems I'm late to the party, but nevermind. :-) We're doing this, but with Submits, not ActionLinks. *Page.tml:* *Page.java:* private StreamResponse response; public StreamResponse onSubmit() { return response; } void onSelectedFromContent() { respons

Re: How to hook component into validation?

2010-03-19 Thread Michael Prescott
gt; > @OnEvent(component = "myFormField", value = EventConstants.VALIDATE) > private void validateFormField(Object valueAboutToBeSet) { > //do your validation and record errors where needed with the > validationTracker > } > > Hope this helps, > Joost > > >

How to hook component into validation?

2010-03-17 Thread Michael Prescott
I have a component which is a wrapper around some form fields. (Imagine an 'edit address' component.) If I want to provide some custom validation, is there a way to listen to the enclosing form's validation event? The problem is that the form is defined in the page, not in my component. Right no

Re: Order of processing of mixins

2010-03-17 Thread Michael Prescott
As I understand it, mixin order is unspecified. A developer on our team had this issue and wound up implementing a custom component, IIRC. Michael On Wed, Mar 17, 2010 at 11:45 AM, LiborGMC wrote: > > Hi there, > I've implemented two mixins which just add some JavaScript code to action > onCli

Re: AjaxFormLoop & 'class' attribute

2010-02-11 Thread Michael Prescott
Figueiredo < thiag...@gmail.com> wrote: > On Thu, 11 Feb 2010 14:36:27 -0200, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > The AjaxFormLoop doesn't seem to pass through the 'class' attribute; the >> docs don't mention whether it accept

AjaxFormLoop & 'class' attribute

2010-02-11 Thread Michael Prescott
The AjaxFormLoop doesn't seem to pass through the 'class' attribute; the docs don't mention whether it accepts informal parameters or not, but it seems not. If it worked, think of the awesomeness we could do with the nth-child CSS selector! Michael

Re: Nested AjaxFormLoop

2010-02-10 Thread Michael Prescott
Ah no! I was wrong. You can supply a context using the 'context' parameter of the AjaxFormLoop itself. Phew! Michael On Wed, Feb 10, 2010 at 12:30 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 10 Feb 2010 15:23:11 -0200, Michael Prescott

Nested AjaxFormLoop

2010-02-10 Thread Michael Prescott
I've got a nested AjaxFormLoop. (Let's say loop 'A' with loop 'B' inside it.) So far so good, except the addRowLink (unlike the removeRowLink) doesn't pass any context, so I'm not sure how to tell which part of my backing data model to update. Is there something obvious I'm missing, or is this a

Re: Adding textfields to a form dynamically

2010-02-09 Thread Michael Prescott
If you can't count on JavaScript, then you need to do a round trip to the server to add new form fields.. in which case, you should be okay using conventional techniques. (e.g. add a black entry to your List, re-render the page). Why don't you want to use @Persist? Michael On Tue, Feb 9, 2010 a

Client-side events question

2010-02-04 Thread Michael Prescott
Do Tapestry components throw defined *client*-side events? I'm thinking of combining AjaxFormLoop with Scriptaculous' Sortable, so that I can let my users sort the rows with drag and drop. One obvious gap is that whenever a new row is added, I'll have to intervene to decorate the rows as Sortable

Sortable computed Grid column

2010-01-26 Thread Michael Prescott
How do you go about making a computed column in a Grid sortable? The docs on Grid are great, but in the example the computed column is non-sortable. Can I do it by providing a PropertyConduit through the grid's BeanModel model? Michael

Canonical way to involve a listener with JS?

2010-01-21 Thread Michael Prescott
Is there a canonical way to expose a server-side listener for invocation by custom JavaScript? Regards, Michael

Re: T5.1 Property Expressions

2009-04-27 Thread Michael Prescott
Reminds me of some washroom graffiti I saw, reading: 668 - the neighbour of the beast On Mon, Apr 27, 2009 at 12:28 PM, Howard Lewis Ship wrote: > Congratulations, you have The JIRA Issue Of The Beast: > > https://issues.apache.org/jira/browse/TAP5-666 > > > On Thu, Apr 23, 2009 at 10:37 AM, And

Re: [tap 5.1] Rendering "*******" from PasswordField?

2009-03-26 Thread Michael Prescott
Consider putting the change-password fields in another form? Either that or hiding them until the user indicates that they're trying to carry out this optional operation. Michael On Thu, Mar 26, 2009 at 4:15 PM, Charles Coleman wrote: > Hi, > > My group is working on a little application that w

Re: How to parse and map URLs?

2009-03-26 Thread Michael Prescott
This probably won't help you, but have a look at URLRewriter ( http://tuckey.org/urlrewrite/), which is a filter that does URL rewriting. I'm not sure if you can extend it with the sort of 'manipulate the context' behavior you're looking for, but perhaps. The context you're manipulating, by the wa

RE: Variable numbers of rows

2007-02-19 Thread Michael Prescott
office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Michael Prescott [mailto:[EMAIL PROTECTED] Sent: Mon 2/19/2007 2:29 PM To: tapestry-user@jakarta.apache.org Subject: Variable numbers of rows We've got a couple of forms where users can edit a

Variable numbers of rows

2007-02-19 Thread Michael Prescott
@For, but which has a well-known (or at least published) contract in terms of the hidden field maintenance that would be required. Any clues or pointers would be much appreciated. Michael Michael Prescott direct: 416.646.7062 main: 416.646.7000 fax: 416.646.7050 Exchange Solutions Inc.

  1   2   >