Unable to get clientId in a component [T5.3.8]

2017-01-09 Thread Tony Nelson
I’m trying to build a simple component that references up to 4 components on my page. I’m using the component like this: dateRangeFrom, dateRangeTo are both required in the component, and work fine @Parameter(required = true, defaultPrefix = BindingConstants.COMPONENT)

RE: tapestry 4.1.6 and pergmen question

2016-04-05 Thread Tony Nelson
I still have a Tapestry 4 app running with Tomcat 6.0.41, and it runs well enough with: -XX:MaxPermSize=1024m I also have -Xmx12g -Xms4g -XX:+UsseConcMarkSweepGC -XX:+UseParNewGC But those may not be of interest to you. Hope that helps Tony > -Original Message- > From: Ivano Luberti

RE: URL rewriting help

2016-03-10 Thread Tony Nelson
> -Original Message- > From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: Thursday, March 10, 2016 10:02 AM > > On Thu, 10 Mar 2016 10:55:41 -0300, Tony Nelson > wrote: > > > Hi All, > > Hello, Tony! > Hello again Thiago,

URL rewriting help

2016-03-10 Thread Tony Nelson
Hi All, I need to map URLs from our old application to the new URLs in our 5.3 app. Yesterday I found this page: http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ Following that I wrote my first rewrite rule /maintenance/agency_required_documents.htm?agencyId=86 to /compa

Re: Zone event, new client id

2015-07-24 Thread Tony Nelson
vate JavaScriptSupport javaScriptSupport; > > @Component > private Select mySelect; > > @AfterRender > public void afterRender() { > > javaScriptSupport.require("my-module").invoke("init").with(mySelect.getClientId()); > } > > > This snippet

Zone event, new client id

2015-07-24 Thread Tony Nelson
I have a small form in a zone. When an error occurs in the event handler, I need to execute some javascript, which I’m adding with the ajaxResponseRender. I can’t figure out how to access the clientId of the component that will be rendered. If I try to use the Injected component, I get NULL fo

Re: Advanced transaction support for tapestry JPA applications

2015-07-24 Thread Tony Nelson
This does look very interesting. A while back, Howard built a custom commit handler for me, that delays creating the transaction until a method with @CommitAfter is seen. Does your library have a similar side effect, of not starting the transaction because only methods marked with @CommitAfter

Re: hibernateModule is looking for MethodAdvice

2014-11-15 Thread Tony Nelson
Double check that you don't have both tapestry 5.3 and 5.4 jars in your class path. -Tony > On Nov 15, 2014, at 3:03 PM, Jan Fryblik wrote: > > HI guys, > > i'm currently migrating from 5.3.7 to 5.4-beta-22 and i'm stuck with strange > exception (below) comming from HibernateModule. I have rem

Advice Order - Tapestry 5.3.7

2014-11-11 Thread Tony Nelson
I have a pretty simple app that uses Tapestry-Hibernate. I want to add a simple advice that is called before the Tapestry hibernate commit. In my module I have: @Match("TaskLogic") public static void adviseTransactions(HibernateTransactionAdvisor advisor, MethodAdviceReceiver receiver

RE: Tapestry-jpa commitAfter advisor problem

2014-09-25 Thread Tony Nelson
devs to get into the code. > I'm thinking about writing a more "clever" advisor for @transactional > that will fulfill my simple needs. > > @Tony: I'm too much a fan of "separation of concerns" to do what your > are telling me ;) > > >

RE: Tapestry-jpa commitAfter advisor problem

2014-09-25 Thread Tony Nelson
For my projected, I moved the @CommitAfter annotations from the database layer, to the web controllers themselves. Other folks have said that breaks separation of concerns. For my project it was the simplest and most straight forward way of getting tapestry-hibernate to do what was necessary.

RE: Tapestry in distributed environment

2014-08-29 Thread Tony Nelson
All you need to do is build the registry. This is the shell of a main class (in groovy). @Slf4j class Main { static void main(String[] args) { // this is the module you wish to load, you may of course add several RegistryBuilder registryBuilder = new RegistryBuilder();

RE: Java 8 with Tapestry 5.3.x?

2014-08-05 Thread Tony Nelson
Heh, I'm still running one site with Tapestry 4 and Java 6. And yes, it's still getting active updates. My new version of the site is being written in 5.3.7 with Java 7, but I have another year or so at least according to the project plan, until it will be done. > -Original Message- >

RE: Multi Select

2014-05-23 Thread Tony Nelson
We also use Select2 with Tapestry, it's very easy to integrate. > -Original Message- > From: Balázs Palcsó [mailto:palcso.bal...@gmail.com] > Sent: Thursday, May 22, 2014 5:23 PM > To: Tapestry users > Subject: Re: Multi Select > > Hi, > > I can recommend http://ivaynberg.github.io/select2

RE: @CommitAfter for GenericDao

2014-05-05 Thread Tony Nelson
cation architecture minimal, but even so it represents best > practice and is a great place to code your business logic. Your page > classes can then focus exclusively on delivery of page content and your > DAOs on pure data access. > > regards, > John > > *http://en.wikip

RE: @CommitAfter for GenericDao

2014-04-30 Thread Tony Nelson
From my experience, you really don't want to put CommitAfter on a generic method like that. It really doesn't do what you expect in code like this: void saveSomeData(List widgets) { for (Widget w: widgets) { widgetDao.saveWidget(widget); } } In that case, assuming saveWidget is annotate

Multiple new objects with a component

2014-04-15 Thread Tony Nelson
I am trying to build a form where there are N instances of a custom editing component. For example, something simple like: http://tapestry.apache.org/schema/tapestry_5_3.xsd";> ${idx} : Id: : B: The component Java code is trivial: public class EditObject { @Property

RE: Pro / Contra: Splitting The Project

2013-10-11 Thread Tony Nelson
I split mine into several components Ih-db - the hibernate domain classes Ih-api - all of the business logic, depends on ih-db Web - the web site, including all of the tapestry stuff, depends on ih-api Utility1..UtilityN - command line programs that do things the system needs, these all depend o

Re: ActivationContext messing up more AJAX calls

2013-08-15 Thread Tony Nelson
On Aug 15, 2013, at 12:51 PM, Thiago H de Paula Figueiredo wrote: > Your Java code looks ok. Could you please post your JavaScript code that > is invoked by the addInitializerCall() call? It may be choking on the > query string. > I don't want to waste anyones time. Removing @PageActivationCo

Re: ActivationContext messing up more AJAX calls

2013-08-15 Thread Tony Nelson
On Aug 15, 2013, at 12:51 PM, Thiago H de Paula Figueiredo wrote: > Your Java code looks ok. Could you please post your JavaScript code that > is invoked by the addInitializerCall() call? It may be choking on the > query string. > Sorry I forgot it. (function ($) { T5.extendInitializers(

ActivationContext messing up more AJAX calls

2013-08-15 Thread Tony Nelson
Our pages all extend a common layout, that has a simple value that we update every minute with an ajax call. The handler is in the component class for the layout, and is very simple: public JSONObject onUpdateAlertCount() { return request.isXHR() ? new JSONObject("alertCount", getAle

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
From: Nathan Quirynen [mailto:nat...@pensionarchitects.be] Sent: Wednesday, August 14, 2013 10:41 AM To: users@tapestry.apache.org Subject: Re: Quick ActivationContext question And what is the reason that you can't add the context when creating the event link as mentioned before: componentRes

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
Try now, I made your user account, olwi Tony > -Original Message- > From: Tony Nelson [mailto:tnel...@starpoint.com] > Sent: Wednesday, August 14, 2013 10:33 AM > To: Tapestry users > Subject: RE: Quick ActivationContext question > > > > > -Original Mess

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
> -Original Message- > From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: Wednesday, August 14, 2013 10:15 AM > To: Tapestry users > Subject: Re: Quick ActivationContext question > > On Wed, 14 Aug 2013 10:50:32 -0300, Tony Nelson > wrote: &

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
> -Original Message- > From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: Wednesday, August 14, 2013 9:47 AM > To: Tapestry users > Subject: Re: Quick ActivationContext question > > On Wed, 14 Aug 2013 10:06:21 -0300,

Re: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
On Aug 13, 2013, at 6:52 PM, Thiago H de Paula Figueiredo mailto:thiag...@gmail.com>> wrote: On Tue, 13 Aug 2013 18:32:46 -0300, Tony Nelson mailto:tnel...@starpoint.com>> wrote: I have a simple page that has an ActivationContext. I'd like to handle a simple ajax call w

Quick ActivationContext question

2013-08-13 Thread Tony Nelson
I have a simple page that has an ActivationContext. I'd like to handle a simple ajax call with one parameter. When I use componentResource.createEventLink("foo"), the URL contains the ActivationContext, like this: /ih/view:foo?t:ac=77 I don't need the ActivationContext for this call, and I wa

RE: Bootstrap 3 and tapestry 5.4

2013-07-29 Thread Tony Nelson
> -Original Message- > > That's the whole point of the 5.3/5.4 rewrite. Letting users choose > > javascript stacks. You can't choose your own js stack if you can't > > even choose your own css stack. > > Tapestry can deal with that by having a symbol defining whether you use > Bootstrap

RE: Bootstrap 3 and tapestry 5.4

2013-07-29 Thread Tony Nelson
on't > get upset about "losing" your v2 work, it's just refactoring. :-) > > > > > On Mon, Jul 29, 2013 at 11:20 AM, Tony Nelson > wrote: > > > Is there any way to make all of that completely optional? I already > > have too much code the re

RE: Bootstrap 3 and tapestry 5.4

2013-07-29 Thread Tony Nelson
Is there any way to make all of that completely optional? I already have too much code the requires bootstrap 2, you are going to make it impossible for me to upgrade to 5.4, if you haven't already. > -Original Message- > From: Howard Lewis Ship [mailto:hls...@gmail.com] > Sent: Monday,

Re: Help with bug report

2013-04-16 Thread Tony Nelson
need to review the code to determine the why of JSONObject.NULL. I'm > at a client today (doing Clojure and AngularJS!) so I can't really divert. > > > On Tue, Apr 16, 2013 at 6:36 PM, Tony Nelson wrote: > >> So wouldn't it be DRY to convert null to JSONObjec

Re: Help with bug report

2013-04-16 Thread Tony Nelson
You don't use a null, you use JSONObject.NULL. > > I can't remember why it is done this way; it may have simply been done that > way in the original JSON.org source that the Tapestry code is evolved from. > > Glad to see you are using Spock! > > > On Tue, Apr 16, 201

Help with bug report

2013-04-16 Thread Tony Nelson
I ran into a problem with JSONArray today that I think deserves a bug report, but I'm not exactly sure what the correct/expected behavior should be, so I'm not sure how to file the bug. This test case demonstrates the issue: def "test add null to array"() { setup: String n =

RE: Case sensitivity

2013-04-03 Thread Tony Nelson
My brother swears by Vagrant (http://www.vagrantup.com/) for this type of thing. He creates vms that are “identical” to production. From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Wednesday, April 03, 2013 7:52 AM To: Tapestry users Subject: Re: Case sensitivity On Wed, 03

Re: Ajax Parameter Handling

2013-04-02 Thread Tony Nelson
> >> I thought maybe I could contribute a ValueEncoder but that only sees >> individual parameters, not the whole request. >> >> Even this might work: >> >>JSONObject onButton1Press(JSONObject jsonObject) { >>SimplePojo pojo = SimplePojo.build(jsonObject); >>logger.info(pojo.toS

Ajax Parameter Handling

2013-04-02 Thread Tony Nelson
new JSONObject("response", "ok4"); } But I Tapestry doesn't seem to know how to handle that. I even tried changed the ajax params to: {params: { a: 'b', c: 'd'} } I supposed I could build the SimplePojo from the Request, but that just doesn&#x

RE: Component Problem

2013-03-19 Thread Tony Nelson
kes it look like the Hidden element has not yet rendered. > > It would be interesting to capture the MarkupWriter and see what markup > has been written at the point your afterRender() method is invoked. > Possibly, you are returned the wrong Block from clientBlock, so the Hidden > c

Component Problem

2013-03-19 Thread Tony Nelson
at com.starpoint.instihire.web.components.ClientDivisionAutoComplete.advised$afterRender_12ecdf1ecc23b3d1(ClientDivisionAutoComplete.java:128) at com.starpoint.instihire.web.components.ClientDivisionAutoComplete$Invocation_afterRender_12ecdf1ecc23b3d0.proceedToAdvisedMethod(Unknown Source) Is my approach wrong

RE: tapestry5.3 and Twitter-bootstrap disabled inputs

2013-03-05 Thread Tony Nelson
> -Original Message- > From: Ivan Khalopik [mailto:ikhalo...@gmail.com] > Sent: Tuesday, March 05, 2013 3:34 AM > To: Tapestry users > Subject: Re: tapestry5.3 and Twitter-bootstrap disabled inputs > > You can use span element with .uneditable-input if you have some field that > should no

RE: html5 - input (and other void elements)

2013-02-26 Thread Tony Nelson
> On Tue, 26 Feb 2013 09:19:53 -0300, Thiago H de Paula Figueiredo > wrote: > > > The closing or not is defined by the MarkupModel (interface), probably > > by subclassing AbstractMarkupModel, specifically its > > getEndTagStyle(String element) method. You'll also need to override or > > decorate

html5 - input (and other void elements)

2013-02-25 Thread Tony Nelson
I am generating html5 with Tapestry 5.3.6. Today I ran a simple form through a w3 validator. The validator complained that my input tag had a "stray end tag". You can see the entire page here: http://goo.gl/GnVlr After reading more about html5 than I had intended, I discovered that there ar

Re: Tapestry Session Service

2013-01-25 Thread Tony Nelson
n Fri, Jan 25, 2013 at 2:16 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Fri, 25 Jan 2013 19:45:31 -0200, Tony Nelson >> wrote: >> >> Aren't all the javascript changes in 5.4 going to break compatibility >>> anyways? &

RE: Tapestry Session Service

2013-01-25 Thread Tony Nelson
Aren't all the javascript changes in 5.4 going to break compatibility anyways? -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: Friday, January 25, 2013 1:13 PM To: Tapestry users Subject: Re: Tapestry Session Service On Fri, Jan 25, 2013 at 3:10 AM, Thiago H de

RE: Jquery Datatable ajax'd sort reverses

2013-01-24 Thread Tony Nelson
The problem is fixed in the snapshot I have. -Original Message- From: Emmanuel DEMEY [mailto:demey.emman...@gmail.com] Sent: Thursday, January 24, 2013 3:22 AM To: Tapestry users Subject: Re: Jquery Datatable ajax'd sort reverses Hi, I think I have already pushed the patch on the last SN

RE: Jquery Datatable ajax'd sort reverses

2013-01-23 Thread Tony Nelson
That should be fixed in an upcoming release to tapestry-jquery. I worked with Demey from their team to get that resolved, he just needs to check in and push the fix. -Original Message- From: mwrohde [mailto:mro...@navicure.com] Sent: Wednesday, January 23, 2013 12:32 PM To: users@tapest

RE: How to execute a method automatically after deployment?

2012-11-28 Thread Tony Nelson
In your AppModule contribute a method annotated with @Startup. http://blog.tapestry5.de/index.php/2010/06/16/registry-startup/ -Original Message- From: membersound [mailto:memberso...@web.de] Sent: Wednesday, November 28, 2012 4:14 PM To: users@tapestry.apache.org Subject: How to execute

RE: @CommitAfter not committing my transaction

2012-11-28 Thread Tony Nelson
You should also Inject the session. @Inject private Session session; Is this method in a controller, or do you have a DAO layer? -Original Message- From: Pillar [mailto:sotodel...@hotmail.com] Sent: Wednesday, November 28, 2012 2:59 PM To: users@tapestry.apache.org Subject: @CommitAfter

RE: Symbol field injection doesn't work when the symbol is used in the service class constructor

2012-11-14 Thread Tony Nelson
I think you need to use constructor injection for that.. http://tapestry.apache.org/symbols.html public MySeviceImpl(@Value("mySymbol") boolean mySymbolValue) { ... } I don't believe it's possible to set a property on an object before the constructor is called. Tony -Original Message-

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
it should be very similar to that. > > Cheers - Alex K > > On Mon, Oct 22, 2012 at 10:27 AM, Tony Nelson wrote: > >> Does anyone have an example of using Spock Mocks with PageTester? >> >> I'd like to substitute Mocks for @Injected resources and I can'

Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
Does anyone have an example of using Spock Mocks with PageTester? I'd like to substitute Mocks for @Injected resources and I can't seem to find a way to make it happen. Has anyone figured out a good way to do this? Thanks in advance -Tony Since 1982, Starpoint Solutions has been a trusted s

Re: prototypejs is dead - time to bring t5-jquery in?

2011-12-15 Thread Tony Nelson
I would in fact argue in the opposite direction. I would suggest that you move all of the prototype code to a separate project just like tapestry5-jquery and let me pick by including the proper dependency. As it is right now, the core code base includes a bunch of prototype code that I will ne

Re: tapestry-hibernate 5.3 and spock

2011-12-06 Thread Tony Nelson
Hate to do this but I'm really stuck here. Anyone have any idea what I can try next here? On Dec 5, 2011, at 2:40 PM, Tony Nelson wrote: > I'm trying to test my application with spock and have run into an issue. I > have put a sample app on github at: > > https://git

Re: Prototype and jQuery question

2011-12-05 Thread Tony Nelson
Try adding this to your pom.xml org.apache.tapestry tapestry-upload ${tapestry-release-version} On Dec 5, 2011, at 5:26 PM, Chris Collins wrote: > So when I actually include tapestry-jquery things blow up when the servlet > container is in

tapestry-hibernate 5.3 and spock

2011-12-05 Thread Tony Nelson
on the spock list and they suggested I ask here. Anyone have any success testing tapestry-hibernate apps with spock? Thanks in advance Tony Nelson

Re: Recommended Validation Method

2011-11-17 Thread Tony Nelson
On Nov 17, 2011, at 7:20 AM, Thiago H. de Paula Figueiredo wrote: > On Thu, 17 Nov 2011 09:27:53 -0200, Josh Kamau wrote: > >> Thanks. I will use them too. Hope they are supported even on the client >> side validation. > > They are. :) > Does that mean that the validations provided by hibern

Requested URL

2011-11-03 Thread Tony Nelson
requested? Thanks in advance Tony Nelson - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Tony Nelson
he xdoc > file : > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html > > 2011/11/3 Tony Nelson > >> Is there any way to get the example usages back? For folks still feeling >> their way around, I found them invaluable. >>

Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Tony Nelson
Is there any way to get the example usages back? For folks still feeling their way around, I found them invaluable. On Nov 2, 2011, at 10:35 PM, Steve Eynon wrote: > I obviously like the Component Reference, for as Bob says, > >> it includes all tapestry components, mixins and pages > > It g

Re: [T5.3] Wot No Component Reference?

2011-11-02 Thread Tony Nelson
I was surprised when I noticed that today as well. I thought something was broken. I really preferred the old pages as well. My biggest problem is that all the examples are gone. But like most people, change is hard. If this is the new way, I'll get used to it. On Nov 2, 2011, at 10:48 AM

Re: pagecatalog and servicestatus

2011-11-02 Thread Tony Nelson
For what it's worth, I seem to be having the same problem. I assumed it was something in my authentication filter redirecting the browser back to my Index page, until I happened to read this ( http://tapestry.apache.org/error-page-recipe.html ) yesterday: An issue with an application that has

Re: 5.3-rc-2 Exception

2011-11-02 Thread Tony Nelson
On Nov 1, 2011, at 7:29 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 01 Nov 2011 19:37:06 -0200, Tony Nelson wrote: > >>void setupRender() { >>try { >> >> response.sendRedirect(linkSource.createPageRenderLinkWithCont

5.3-rc-2 Exception

2011-11-01 Thread Tony Nelson
I have a very simple page that does nothing but redirect to another page. It works fine under jetty, but fails under tomcat 6.0.33. Any help would be greatly appreciated. My page class is: package com.starpoint.instihire.pages.view; import com.starpoint.instihire.pages.user.ViewUser; import o

tapestry5-beta22 html5 doctype

2011-10-17 Thread Tony Nelson
avoir or should the page inherit the doctype from the layout? Thanks Tony Nelson - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: PeriodicExecutor: services and Hibernate

2011-10-17 Thread Tony Nelson
Using tapestry-hibernate mine seemed to just work. I have a job that runs every 5 minutes that simply inserts a new row into a table. I inject the service, which in turn uses an injected DAO. No fussing w/ sessions as far as I can tell. Tony On Oct 17, 2011, at 12:45 PM, 9902468 wrote: > H

Re: Registry Shutdown - beta-21

2011-10-17 Thread Tony Nelson
at lets you know >>> the registry is "about to shutdown", just the one that tells you it's >>> in the process of. >>> >>> There have been a couple of situations when I wished there was though! >>> (e.g. to log the shutdown event to a

Re: Registry Shutdown - beta-21

2011-10-14 Thread Tony Nelson
tells you it's > in the process of. > > There have been a couple of situations when I wished there was though! > (e.g. to log the shutdown event to a database.) > > Steve. > > On 15 October 2011 03:51, Tony Nelson wrote: >> I have successfully registered a shut

Registry Shutdown - beta-21

2011-10-14 Thread Tony Nelson
at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator$1.createObject(JustInTimeObjectCreator.java:101) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68) ... 31 more Than

Re: An Appeal To Use the Latest Betas

2011-10-14 Thread Tony Nelson
I saw the following notification in my tomcat log after a tomcat:redeploy SEVERE: The web application [/instihire] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unr

Re: Bootstrap

2011-10-13 Thread Tony Nelson
I'm just starting the infrastructure of my project. I had settled on Blueprint CSS http://www.blueprintcss.org/ but I may have to take a closer look at this Bootstrap. It seems to have some very nice features. On Oct 13, 2011, at 9:53 AM, George Christman wrote: > That's beautiful. I"m a huge

Re: @Scope

2011-10-12 Thread Tony Nelson
design is correct - do you need really to save > state in the service? It does not look like a proper service. > > Best regards, > Cezary > > > On Wed, Oct 12, 2011 at 11:11 PM, Tony Nelson wrote: > >> I have a service, that I need a new instance of every time it

@Scope

2011-10-12 Thread Tony Nelson
I have a service, that I need a new instance of every time it is referenced. In ScopeConstants I see DEFAULT, and PERTHREAD. I really need a new instance every time I request this particular service because it saves state, and yes, there are some occasions where I need several of these in the

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 11, 2011, at 11:05 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 11 Oct 2011 11:55:43 -0300, Tony Nelson wrote: > >>> But each Runnable needs all them? >> >> No, they don't. But I don't have a map of which ones need which, and quite >&g

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 11, 2011, at 10:20 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 11 Oct 2011 11:04:22 -0300, Tony Nelson wrote: > >> I have in the neighborhood of 25 different services. Passing them all >> around seems like a workaround. > > But each Runnable needs a

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 10, 2011, at 6:17 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 10 Oct 2011 18:51:36 -0300, Tony Nelson wrote: > >>> In this scenario, are you in a web app or not? >> >> I am in a web app, however, I have a service that I need to start as a &g

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Tony Nelson
On Oct 10, 2011, at 5:34 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 10 Oct 2011 18:14:01 -0300, Tony Nelson wrote: > >> >> On Oct 10, 2011, at 4:58 PM, Thiago H. de Paula Figueiredo wrote: >> >>> On Mon, 10 Oct 2011 17:18:59 -0300, Tony Nelson

Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Tony Nelson
e a simple analog to access the Registry and ask it for the registered implementation of an interface? Thanks in advance Tony Nelson - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comma

Tap-5.3-beta-16 tapestry-core v. tapestry-hibernate

2011-10-03 Thread Tony Nelson
e problem. Any help would be greatly appreciated. Thanks Tony Nelson Starpoint Solutions

Re: Simple validate maxlength problem

2011-08-30 Thread Tony Nelson
, not for textarea. formSupport.addValidation(field, "maxlength", buildMessage(formatter, field, constraintValue), constraintValue); } On Aug 30, 2011, at 10:35 AM, Tony Nelson wrote: > I have a very simple login form: > > >

Re: Tapestry 5.3 and JQuery

2011-08-30 Thread Tony Nelson
hink I once read a comment by Howard Lewis Ship stating that JQuery would > become the default JS library in Tapestry 5.3. Is this indeed the case or > will this be the case in some other future version of Tapestry? > Julien. > > 2011/8/30 Tony Nelson > >> I've been usi

Simple validate maxlength problem

2011-08-30 Thread Tony Nelson
perty like this: @Property @Validate("required,maxlength=64") private String username; But not matter what I try, the html never includes a maxlength attribute. What could I be doing wrong? Thanks Tony Nelson Star

Re: Tapestry 5.3 and JQuery

2011-08-30 Thread Tony Nelson
I've been using the tapestry-jquery project here: https://github.com/got5/tapestry5-jquery It's dead simple to use. The one issue is that it doesn't currently work with 5.3. There is a branch for it, but it probably won't be published until after 5.3 is actually released (5.3 is beta at the

Re: tapestry-jpa: JpaGridDataSource sort by a transient field

2011-07-11 Thread Tony Nelson
We solved a similar problem by creating a view that calculated the field instead of using a transient field. Then we just mapped the view as a read only object and all the sorting worked. -Tony On Jul 11, 2011, at 7:28 PM, Richard Yunhua Sang wrote: > Thanks for your reply, but I do want to so

Re: Ajax callback for checkbox component?

2011-07-11 Thread Tony Nelson
Is the ZoneUpdater mixin hosted anywhere? I grabbed the latest copy from http://tinybits.blogspot.com/2011/03/zoneupdater-jquery-edition.html because I'm using tapestry5-jquery and made two small improvements (IMHO) to it. 1 - The ability to add the mixin to a that when clicked submits the va

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Tony Nelson
Are you by chance using tapestry5-jquery? If so, make sure you are using 2.1.1-SNAPSHOT. The behavior you describe exists in 2.1.0. Tony On Jul 8, 2011, at 8:48 PM, Taha Hafeez wrote: > Can you share the code and the generated markup > > > > On Sat, Jul 9, 2011 at 6:10 AM, Greg Pagendam-Tu

Re: a question T5 work with spring

2011-07-06 Thread Tony Nelson
I'm not sure what you mean by the service Id, but I use Spring with Tap5 like this: applicationContext.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:context="http://www.springframework.org/schema/context"; xml

Looking for a sample

2011-07-05 Thread Tony Nelson
Hi all, I've spent as much time and brain cells as I can on this. Does anyone has a working sample of Zone update based with information input by the user? Specifically, I have a text field that a user fills in, clicks an add link/button, and I want to insert the new value in a in a zone. I'

Empty Zone (T5.2.6)

2011-07-05 Thread Tony Nelson
Still trying to build what I thought would be a simple component. My main tml looks like this: [ input fields] My component is very simple at the moment: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> Email Aliases

Re: Simple question

2011-07-01 Thread Tony Nelson
On Jul 1, 2011, at 12:32 PM, Howard Lewis Ship wrote: > On Fri, Jul 1, 2011 at 4:37 AM, Thiago H. de Paula Figueiredo > wrote: >> On Fri, 01 Jul 2011 07:31:18 -0300, wrote: >> >>> Hello everyone! >> >> Hi! >> >>> Is it possible to nest the output of variables, i.e.: something like: >>> > >

Re: Want locale to be part of every uri

2011-06-30 Thread Tony Nelson
On Jun 30, 2011, at 6:30 PM, Howard Lewis Ship wrote: > In Tapestry, any time your solution involves creating a base page, you > are probably off on the wrong track. > > The best place to add cross-cutting concerns such as you describe is > by contributing a filter into the ComponentRequestHandl

Re: Struggling with Ajax

2011-06-30 Thread Tony Nelson
By moving the textfield outside the zone, I managed to avoid the error on zone redisplay.. I still can't seem to pass a value into the component when I click the action link.. On Jun 30, 2011, at 11:00 AM, Tony Nelson wrote: > I'm trying to build a simple component that will

Struggling with Ajax

2011-06-30 Thread Tony Nelson
e handled by the enclosing page and persist all of the changes include the changes to the component at once. I've tried using the ajaxloop as well, but I didn't seem to get much further. Any hints or ideas would be greatly appreciated. Thanks Tony Nelson --

Re: 5.3.0 java.lang.IncompatibleClassChangeError: Implementing class

2011-06-29 Thread Tony Nelson
Not sure if this helps, but I was having the same problem but only if I included the tapestry5-jquery library. There is an open issue here: https://github.com/got5/tapestry5-jquery/issues/49 On Jun 29, 2011, at 1:37 PM, Howard Lewis Ship wrote: > It does seem odd, the failed line is quite inn

Re: select component

2011-06-26 Thread Tony Nelson
ist.html and let me > know if anything in that page isn't clear. > > On Sun, Jun 26, 2011 at 1:09 PM, Tony Nelson wrote: >> Following the sample here: >> http://tapestry.apache.org/using-select-with-a-list.html >> >> I created a ValueEncoder and ValueEncoderFa

Re: select component

2011-06-26 Thread Tony Nelson
ttp://tapestry.apache.org/using-select-with-a-list.html and let me > know if anything in that page isn't clear. > > On Sun, Jun 26, 2011 at 1:09 PM, Tony Nelson wrote: >> Following the sample here: >> http://tapestry.apache.org/using-select-with-a-list.html >> &g

select component

2011-06-26 Thread Tony Nelson
used to generate the options? It seems to call toString() by default which isn't appropriate for this model. Thanks Tony Nelson - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: [ANNOUNCE] Tapestry 5.3.0

2011-06-26 Thread Tony Nelson
p 1] On Jun 26, 2011, at 10:12 AM, Tony Nelson wrote: > That's great. I was just going to post a question about which version of Tap > I should target for an internal app that's used by about 5 of us. > > I personally don't think 5.3.0 should be available as anything mor

Re: [ANNOUNCE] Tapestry 5.3.0

2011-06-26 Thread Tony Nelson
That's great. I was just going to post a question about which version of Tap I should target for an internal app that's used by about 5 of us. I personally don't think 5.3.0 should be available as anything more than 5.3.0-SNAPSHOT until 5.3.0 is finalized. That being said, for my internal app,

Re: TAP5.3.0 onValidate

2011-06-25 Thread Tony Nelson
e() for each field, but I'm certainly struggling to imagine a use case. Thanks again. Tony > Regards > Taha > > On Jun 26, 2011, at 2:59 AM, Tony Nelson wrote: > >> I saw in the release notes that onValidateForm has been replaced by

TAP5.3.0 onValidate

2011-06-25 Thread Tony Nelson
I saw in the release notes that onValidateForm has been replaced by onValidate. Should it be called 2x on form post? [1106760625@qtp-1806030550-8] DEBUG com.starpoint.helpdesk.pages.group.EditGroup - [ENTER] onPrepare() [1106760625@qtp-1806030550-8] DEBUG com.starpoint.helpdesk.pages.group.Ed

Re: T5 Reference page attributes from a component

2011-06-24 Thread Tony Nelson
On Jun 23, 2011, at 6:27 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 23 Jun 2011 18:18:39 -0300, Tony Nelson wrote: > >> In our T4 app we made a lot of use of this type of construct: >>> /> > >> This particular component is embedded 4 layers deep a

  1   2   >