Re: Unable to locate asset (the file does not exist).
It is not possible to do what you wanted directly. A work around is to use AssetSource. Please see : http://tapestry-users.832.n2.nabble.com/Simple-question-tt6537210.html#a6537398 Shing From: Anbazhagan.G anbazhaga...@snovabits.net To: users@tapestry.apache.org Sent: Saturday, June 8, 2013 5:45 AM Subject: Unable to locate asset (the file does not exist). Hi All, I am going to achieve like this ${context:layout/images/${itemProperty.signImage}.png}. But I got the following error Could not convert 'context:layout/images/${itemProperty.signImage' into a component parameter binding: Unable to locate asset 'context:layout/images/${itemProperty.signImage' (the file does not exist). [at classpath:net/web/app/sample/pages/Test.tml, line 30]. Please any one say how can I achieve. Regards, G.Anbazhagan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: failing form validation without a recordError
Have you tried the following ? public Object onFailureFromForm() { // clears validation getForm().clearErrors(); // set your error message elsewhere return this; } From: John j...@quivinco.com To: users@tapestry.apache.org Sent: Friday, May 24, 2013 10:01 AM Subject: failing form validation without a recordError When an exception occurs in form validation I would like to be able to block the onSuccess method without setting a form error. I will display a notification using a seperate property. Is that possible? John - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: InjectComponent Field in component and validate field in page class
The following example might be useful. http://lombok.demon.co.uk/tapestry5Demo/test/crossvalidation2 Shing - Original Message - From: George Christman gchrist...@cardaddy.com To: users@tapestry.apache.org Cc: Sent: Thursday, March 21, 2013 3:33 PM Subject: InjectComponent Field in component and validate field in page class I have a component that contains a field like so, Vendor.class @InjectComponent @Parameter private Field vendorName; I have a page class like so, Page.class @Property private Field vendorName; onValidateFromForm() { //I would like to do some serverside validation and return the error back to the field, but I'm not sure how to connect the field in the component with the page class. if(condition == true) { form.recordError(vendorName, some error message); } } Page.tml t:vendor vendorName=vendorName/ Anybody know if it's possible to connect the fields like this. Thanks - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Maven Archetype
mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org I have just tried the above from http://tapestry.apache.org/getting-started.html It works for me. Shing - Original Message - From: Everton Agner ton.ag...@gmail.com To: Tapestry Users users@tapestry.apache.org Cc: Sent: Tuesday, March 19, 2013 4:40 PM Subject: Maven Archetype Hello everyone! I'm following the instructions from http://tapestry.apache.org/getting-started.html and it seems that there's something wrong with the Archetype or the Repo... Maven throws me the following error when it tries to generate the project: Unable to create project from archetype [org.apache.tapestry:quickstart:5.3.6 - http:/] The desired archetype does not exist (org.apache.tapestry:quickstart:5.3.6) Could someone point me any known problem about it? Btw, I'm using Eclipse Juno EE with M2E... Cheers! ___ Everton Agner Ramos - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Page components are not loaded in JBoss
[WARN] TapestryFilter Application Module class com.rakesh.demotapestry.web.services.TapestryModule not found The above appears in both the Jetty and Jboss log. I would expect your app will not work in Jetty nor in Jboss. It looks as though the tapestry filter name in web.xml does not match your Tapetsry IOC module name. Please check the doc at http://tapestry.apache.org/configuration.html#Configuration-Changestoweb.xml Shing - Original Message - From: rakcheru rakch...@gmail.com To: Tapestry users users@tapestry.apache.org Cc: Sent: Saturday, March 9, 2013 6:07 PM Subject: Page components are not loaded in JBoss Tapestry version : 5.3.6 Jboss : 7.1.1 Greetings, I had been struggling for most of the day trying to make tapestry run on jboss 7.1.1 Issue: The page components are not at all working. Even the default page components are not loaded The same app is working fine in jetty Things i tried: Gone through the wiki articles about overriding ClasspathURLConverter but couldnt make it work. Issue : no matter what i do, the AppModule is not LOADED at all. Steps followed: 1. Added a new ClasspathURLConverter subclass in the project 2. Placed AppModule.java under tapestry.app-package.services package 3. AppModule.java holds a method public static void contributeServiceOverride(MappedConfigurationClass, Object configuration) { configuration.add(ClasspathURLConverter.class, new JBoss711ClasspathURLConverter()); } Things observed: When compared the log data from jetty to that of jboss, seems like ComponentClassResolver is not invoked in jboss jetty: [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.json.services.JSONModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.TapestryModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.internal.services.InternalModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.assets.AssetsModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.pageload.PageLoadModule [WARN] TapestryFilter Application Module class com.rakesh.demotapestry.web.services.TapestryModule not found [DEBUG] TapestryModule.ComponentClassResolver Creating proxy for service ComponentClassResolver [DEBUG] TapestryModule.ComponentClassResolver Constructing service implementation via org.apache.tapestry5.services.TapestryModule.buildComponentClassResolver(ComponentClassResolverImpl, InvalidationEventHub) (at TapestryModule.java:1213) jboss: INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.json.services.JSONModule INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.services.TapestryModule INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.internal.services.InternalModule INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.services.assets.AssetsModule INFO ioc.RegistryBuilder] Adding module definition for class org.apache.tapestry5.services.pageload.PageLoadModule WARN TapestryFilter] Application Module class com.rakesh.demotapestry.web.services.TapestryModule not found INFO TapestryFilter] Startup status: Any help greatly appreciated. Thanks in advance, Rakesh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Has anyone gotten the tapestry 5 highcharts demo webapp to run?
I had the same problem a few weeks ago. I was using the following Jetty Eclipse plugin. http://wiki.eclipse.org/Jetty_WTP_Plugin In the console, I got the following message : Excluded entry=/home/matmsh/Downloads/tapestry/highChart/tapestry5-highcharts/target/test-classes To fix above, In Eclipse, I did Run configuration - Web app class path - add /home/matmsh/Downloads/tapestry/highChart/tapestry5-highcharts/target/test-classes to the user custom classpath. (The above path is already in under default project path. Somehow, it is not being picked up.) Shing From: George Ludwig georgelud...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, March 9, 2013 1:33 AM Subject: Has anyone gotten the tapestry 5 highcharts demo webapp to run? I've been trying to get the demo webapp running using run jetty run in Eclipse, but the best I've managed is to get jetty to boot, but all it does is serve a directory listing under http://localhost:8080/tapestry5-highcharts/ Has anyone managed to get this to run in Eclipse using Jetty? -George - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to get a lot of data in to highcharts?
I have an example that builds the entire JSONObject in Java. http://lombok.demon.co.uk/tapestry5Demo/test/highcharts/hcdemotwosource Th following specifies part of the chart in Javascript and part of the charts in Java. http://lombok.demon.co.uk/tapestry5Demo/test/highcharts/hcdemothree Shing - Original Message - From: Jay Ginete killer.tila...@gmail.com To: Tapestry users users@tapestry.apache.org Cc: Sent: Saturday, March 9, 2013 10:01 PM Subject: Re: How to get a lot of data in to highcharts? On 3/10/2013 5:40 AM, George Ludwig wrote: I've been reviewing the tapestry5/highcharts integration code, and I see that the data for the charts has been hardcoded in to a javascript file. What is the best way to display a lot of data from the server? For example, I have a series with hundreds or thousands of data points, and I need to calculate them on the server, and somehow get them in to highcharts. I haven't done a lot of work with Tapestry's javascript support, so forgive me if this is obvious... -George Write a public function that returns a JSONObject (http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/json/JSONObject.html) in the page class. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: grid data column overrides/instrumentation
One quick way (probably not the best) is to use mixin ZoneRefresh http://tapestry.apache.org/component-reference.html Below is an example: http://lombok.demon.co.uk/tapestry5Demo/test/core/mixin/zonerefreshdemoone Shing - Original Message - From: Ken in Nashua kcola...@live.com To: users@tapestry.apache.org users@tapestry.apache.org Cc: Sent: Monday, February 25, 2013 5:00 AM Subject: grid data column overrides/instrumentation Hi Folks, I have a list of images... but I want one displayed at a time for 5 seconds... then the next... then the next... kinda like a auto rotating carousel... no touch needed... one image at a time? Does anyone have a widget like this ? Thanks Ken - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: PlasticClassImp locked error in Tapestry Spring Security
Thanks ! Shing - Original Message - From: antalk nab...@vankalleveen.net To: users@tapestry.apache.org Cc: Sent: Thursday, February 21, 2013 3:11 PM Subject: Re: PlasticClassImp locked error in Tapestry Spring Security And fixed, also added a testcase for this issue -- View this message in context: http://tapestry.1045711.n5.nabble.com/PlasticClassImp-locked-error-in-Tapestry-Spring-Security-tp5720124p5720145.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Form fields based on List
Below is a possible solution. Instead of @Property private CoordinateDto coordinate; implements your own setter getter method for CordinateDto public CoordinateDto getCordinateDto(){ ... } public void setCoordinate(CoordinateDto dto){ } The getter and setter methods will be called during rendering and submission. Hence the implementation needs to cater for the rendering phase and submission phase. The example below does something similar. http://lombok.demon.co.uk/tapestry5Demo/test/sum Shing - Original Message - From: nquirynen nat...@pensionarchitects.be To: users@tapestry.apache.org Cc: Sent: Friday, February 15, 2013 10:31 AM Subject: Form fields based on List Hi, I have a form where a part of it consists of a List. I tried to do the following: *.java* @Property private ListCoordinateDto coordinates; @Property private CoordinateDto coordinate; @Property private int loop = 0; *.tml* t:loop t:source=coordinates t:value=coordinate t:index=loop t:textfield t:value=coordinate.value/t:textfield t:textfield t:value=coordinate.description/t:textfield /t:loop It does show all the values, but on submit it says: Could not find a coercion from type java.lang.String to CoordinateDto How should I handle this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-fields-based-on-List-tp5720042.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Form fields based on List
There is another solution in chapter 6 of Igor's book (Listing 6.38). http://www.tapestry5book.com/ Shing Home page : http://www.lombok.demon.co.uk/ - Original Message - From: Shing Hing Man mat...@yahoo.com To: Tapestry users users@tapestry.apache.org Cc: Sent: Friday, February 15, 2013 11:11 AM Subject: Re: Form fields based on List Below is a possible solution. Instead of @Property private CoordinateDto coordinate; implements your own setter getter method for CordinateDto public CoordinateDto getCordinateDto(){ ... } public void setCoordinate(CoordinateDto dto){ } The getter and setter methods will be called during rendering and submission. Hence the implementation needs to cater for the rendering phase and submission phase. The example below does something similar. http://lombok.demon.co.uk/tapestry5Demo/test/sum Shing - Original Message - From: nquirynen nat...@pensionarchitects.be To: users@tapestry.apache.org Cc: Sent: Friday, February 15, 2013 10:31 AM Subject: Form fields based on List Hi, I have a form where a part of it consists of a List. I tried to do the following: *.java* @Property private ListCoordinateDto coordinates; @Property private CoordinateDto coordinate; @Property private int loop = 0; *.tml* t:loop t:source=coordinates t:value=coordinate t:index=loop t:textfield t:value=coordinate.value/t:textfield t:textfield t:value=coordinate.description/t:textfield /t:loop It does show all the values, but on submit it says: Could not find a coercion from type java.lang.String to CoordinateDto How should I handle this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-fields-based-on-List-tp5720042.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how to recordError against a form field in a loop
I think it is a bad idea to generate the control name in the your code. The way the control name is generated might be changed in the uture. If you collect the dummy fields for onTimes and offTimes first in onValidateFromOnTime and onValidateFromOffTime methods, then do the cross validations in onValidateFromForm method, it should work with a single TimeTableEntry component. The following example illustrates collecting the dummy fields first in onValidateFromEntry, then do the cross validation in onValidateForm method. http://lombok.demon.co.uk /tapestry5Demo/test/crossvalidation2 Shing - Original Message - From: John j...@quivinco.com To: Shing Hing Man mat...@yahoo.com; Tapestry users users@tapestry.apache.org Cc: Sent: Thursday, February 7, 2013 8:12 AM Subject: Re: how to recordError against a form field in a loop That was useful although my implementation is like this: int loopi = 0; for (TimetableEntry entry : timetableEntryFlash) { String loopex = loopi == 0 ? : (_ + (loopi - 1)); if (entry.getOnTime1() == null entry.getOffTime1() != null) { DummyField dField = new DummyField(fmtOnTime1 + loopex); timetableForm.recordError(dField, missing on time); } loopi++; } so that I can validate data across rows as field pairs rather than as individual fields. I suspect at this point my time pairs should be a distinct component? John - Original Message - From: Shing Hing Man To: Tapestry users Sent: Wednesday, February 06, 2013 9:49 PM Subject: Re: how to recordError against a form field in a loop The following example might be useful. http://lombok.demon.co.uk/tapestry5Demo/test/crossvalidation Shing From: John j...@quivinco.com To: users@tapestry.apache.org Sent: Wednesday, February 6, 2013 9:28 PM Subject: how to recordError against a form field in a loop input maxlength=5 size=5 id=fmtOnTime2_0 name=fmtOnTime2_0 type=text How do I do something this in my page class void onValidateFromForm() { ... loop (var X) { validation_rule_fail { timetableForm.recordError(fmtOnTime2_X, messages.get(errmsg)); } } } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how to recordError against a form field in a loop
The following example might be useful. http://lombok.demon.co.uk/tapestry5Demo/test/crossvalidation Shing From: John j...@quivinco.com To: users@tapestry.apache.org Sent: Wednesday, February 6, 2013 9:28 PM Subject: how to recordError against a form field in a loop input maxlength=5 size=5 id=fmtOnTime2_0 name=fmtOnTime2_0 type=text How do I do something this in my page class void onValidateFromForm() { ... loop (var X) { validation_rule_fail { timetableForm.recordError(fmtOnTime2_X, messages.get(errmsg)); } } } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: parameter in tml page?
I think you meant ${getDescriptionForTag(user1)} where user1 is a page property of type String. I think the above should work. Shing From: sommeralex alexander.som...@gmail.com To: users@tapestry.apache.org Sent: Sunday, January 27, 2013 10:54 AM Subject: parameter in tml page? is it possible to put parameters in a tml page? eg: Java: String getDescriptionForTag(String tag){ return descriptionService.getDescriptionForTag(tag); } TML: div User 1 ${getDescription(user1)} /div div User 2 ${getDescription(user2)} /div -- View this message in context: http://tapestry.1045711.n5.nabble.com/parameter-in-tml-page-tp5719561.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Login page problems
Instead of @Component private Form form; pleases try @InjectComponent(value=loginForm) private Form form; The difference bewteen @Component and @InjectComponent is explained on the following page. http://tapestry.apache.org/injection-faq.html Shing From: John j...@quivinco.com To: users@tapestry.apache.org Sent: Tuesday, October 23, 2012 6:40 PM Subject: Login page problems I did a T4 project ages ago and now learning T5. I just want to build a working login page and copied the code snippets here http://tapestry.apache.org/forms-and-validation.html and added them to the quickstart application - my versions appear below. When I navigate to the Login page it returns: Embedded component(s) form are defined within component class com.epulse.tapestrydemo.pages.Login (or a super-class of Login), but are not present in the component template (classpath:com/epulse/tapestrydemo/pages/Login.tml). Has anyone a simple login page example that works, or can help with the above? John /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.epulse.tapestrydemo.pages; import com.epulse.tapestrydemo.security.UserAuthenticator; import org.apache.tapestry5.annotations.Component; import org.apache.tapestry5.annotations.InjectComponent; import org.apache.tapestry5.annotations.Persist; import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.corelib.components.Form; import org.apache.tapestry5.corelib.components.PasswordField; import org.apache.tapestry5.ioc.annotations.Inject; public class Login { @Persist @Property private String userName; @Property private String password; @Inject private UserAuthenticator authenticator; @InjectComponent private PasswordField passwordField; @Component private Form form; /** * Do the cross-field validation */ void onValidateFromForm() { if (!authenticator.isValid(userName, password)) { // record an error, and thereby prevent Tapestry from emitting a success event form.recordError(passwordField, Invalid user name or password.); } } /** * Validation passed, so we'll go to the PostLogin page */ Object onSuccess() { return About.class; } } html t:type=layout title=Contact com.epulse xmlns:t=http://tapestry.apache.org/schema/tapestry_5_3.xsd; xmlns:p=tapestry:parameter h1Please Login/h1 form t:type=form t:id=loginForm t:errors/ t:label for=userName/: input t:type=TextField t:id=userName t:validate=required,minlength=3 size=30/ br/ t:label for=password/: input t:type=PasswordField t:id=password t:validate=required,minlength=3 size=30/ br/ input type=submit value=Login/ /form /html
Re: cannot output table tags in outputraw compnnent
The following works. In .tml: ${myTag} In .java : public String getMyTag(){ return /trtr; } Alternatively, you could put your tag in the .properties file : ${message:myTag} .properties: myTag=/trtr Shing - Original Message - From: Ken in Nashua kcola...@live.com To: users@tapestry.apache.org Cc: Sent: Saturday, September 29, 2012 6:00 AM Subject: cannot output table tags in outputraw compnnent Folks, If the output and outputraw components cannot contain a left angel bracket or other angle brackets ex. t:output value=/trtr/ t:outputraw value=/trtr/ Then I am left with doing this... t:outputraw value=lt;/trgt;lt;trgt;/ But if yeilds the following exception java.lang.RuntimeExceptionError parsing property expression '/trtr': Unable to parse input at character position 1. Does anyone know how to output table tags in my template ? Thanks kcola...@live.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: No service implements the interface org.springframework.context.ApplicationContext.
In your web.xml, please check you are using TapestrySpringFilter (instead of TapestryFilter): filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.spring.TapestrySpringFilter/filter-class /filter Shing From: Borko Djurovic djurovic.bo...@gmail.com To: users@tapestry.apache.org Sent: Tuesday, September 4, 2012 6:52 PM Subject: No service implements the interface org.springframework.context.ApplicationContext. I have *aplicationContext.xml* - configuration file: bean id=transactionManager class=org.springframework.orm.hibernate3.HibernateTransactionManager property name=sessionFactory ref=sessionFactory / /bean bean id=transactionProxy abstract=true class=org.springframework.transaction.interceptor.TransactionProxyFactoryBean property name=transactionManager ref bean=transactionManager / /property property name=transactionAttributes props prop key=insert*PROPAGATION_REQUIRED/prop prop key=update*PROPAGATION_REQUIRED/prop prop key=save*PROPAGATION_REQUIRED/prop prop key=*PROPAGATION_REQUIRED, readOnly/prop /props /property /bean And when i try to use aplicationContext in *Registration page*: public class Registration { @Property @Persist @Validate(required) private GenderType genderType; @Property @Persist private User user; private UserManager userManager; @Inject private ApplicationContext applicationContext; @SetupRender public void initialize() { if (user == null) { user = new UserBean(); } } public void onValidateFromRegistrationForm() { //TODO add validation logic } public void onSuccessFromRegistrationForm() { //TODO register user } } *I got this error:* [ERROR] ioc.Registry Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Creating instantiator for component class com.borko.healthcare.tapestry.pages.Registration [ERROR] ioc.Registry [ 2] Running component class transformations on com.borko.healthcare.tapestry.pages.Registration [ERROR] ioc.Registry [ 3] Injecting field com.borko.healthcare.tapestry.pages.Registration.applicationContext [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. org.apache.tapestry5.ioc.internal.OperationException: Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121) -- View this message in context: http://tapestry.1045711.n5.nabble.com/No-service-implements-the-interface-org-springframework-context-ApplicationContext-tp5716043.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to make datefield input box readonly
How about adding onfocus=blur(); in your DateField component as an informal parameter ? Shing Home page : http://www.lombok.demon.co.uk/ From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Sent: Thursday, August 23, 2012 11:44 AM Subject: How to make datefield input box readonly Hi, I am using date field in my UI where I don't want the users to type anything in the box provided, I surely need that input box coming with the date field and I want it to be filled only by picking up the date using the date component not by directly keying in. Please help me to achieve this? Thanks in advance, Karthi. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-make-datefield-input-box-readonly-tp5715744.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Setting element value from an attribute
A not so elegant solution is to create a RemoveElt component so that the associated html tag is not generated. public class RemoveElt { protected boolean beginRender(){ return false; } } Example : span t:type=removeElt testu...@test.com /span The above span will not appear in the generated in html . Shing - Original Message - From: dkeenan david_siedle...@yahoo.co.uk To: users@tapestry.apache.org Cc: Sent: Monday, August 20, 2012 2:39 PM Subject: Setting element value from an attribute Hi. When creating dynamic content in a TML template file I normally do something like this: ${user.email} So when running the template in my tapestry app, I get a header with the logged in user's email address. But, when viewing the template outside of tapestry, as a normal file, obviously I get ${user.email} shown in the header. I really like being able to design my templates outside of the application and I would like to have something like this: testu...@test.com Is there a way of doing something like that so that my template looks okay when viewed outside of the application, and the element is updated appropriately when running inside the app? Many thanks, Dave. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-element-value-from-an-attribute-tp5715597.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Setting element value from an attribute
I am making a meal of this. The existing Output component should do the job : t:output value=user.emailf...@yahoo.com/t:output Shing - Original Message - From: dkeenan david_siedle...@yahoo.co.uk To: users@tapestry.apache.org Cc: Sent: Monday, August 20, 2012 3:25 PM Subject: Re: Setting element value from an attribute Could I extend that a little and create a component that does the following? [hidden email] Then tapestry could replace the dispayed value with thee specified 'property'? I wonder if a comonent like that exists, or how I would write one if it doesn't? Thanks... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-element-value-from-an-attribute-tp5715597p5715604.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Problem building Tapestry 5.3.4 using Gradle
Hi, I have checked out Tapestry 5.3.4 using git clone https://git-wip-us.apache.org/repos/asf/tapestry-5.git I tried to generate the corresponding Eclipse projects by issuing gradle eclipse, but got the following error. matmsh@cauchy:~/Downloads/tapestry/tmp/tapestry-5 gradle eclipse FAILURE: Build failed with an exception. * Where: Script '/home/matmsh/Downloads/tapestry/tmp/tapestry-5/ssh.gradle' line: 1 * What went wrong: A problem occurred evaluating script. Cause: Could not find property 'ext' on root project 'tapestry-5'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.906 secs matmsh@cauchy:~/Downloads/tapestry/tmp/tapestry-5 I am new to Gradle. Does anyone know how and what value I should set ext to ? Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Problem building Tapestry 5.3.4 using Gradle
The following works ! sh gradlew eclipse Thanks ! Shing From: Ray Nicholus rnicho...@widen.com To: Tapestry users users@tapestry.apache.org; Shing Hing Man mat...@yahoo.com Sent: Thursday, August 9, 2012 3:24 PM Subject: Re: Problem building Tapestry 5.3.4 using Gradle You are using gradlew, correct? If not, you should be, instead of whatever local copy of gradle you have installed. On Thu, Aug 9, 2012 at 8:51 AM, Shing Hing Man mat...@yahoo.com wrote: Hi, I have checked out Tapestry 5.3.4 using git clone https://git-wip-us.apache.org/repos/asf/tapestry-5.git I tried to generate the corresponding Eclipse projects by issuing gradle eclipse, but got the following error. matmsh@cauchy:~/Downloads/tapestry/tmp/tapestry-5 gradle eclipse FAILURE: Build failed with an exception. * Where: Script '/home/matmsh/Downloads/tapestry/tmp/tapestry-5/ssh.gradle' line: 1 * What went wrong: A problem occurred evaluating script. Cause: Could not find property 'ext' on root project 'tapestry-5'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.906 secs matmsh@cauchy:~/Downloads/tapestry/tmp/tapestry-5 I am new to Gradle. Does anyone know how and what value I should set ext to ? Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Hibernate not downloading in tutorial
The following works for me with Tapestry 5.3 dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-hibernate/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-core/artifactId version3.6.0.Final/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-entitymanager /artifactId version3.6.0.Final/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-validator/artifactId version3.1.0.GA/version /dependency Shing From: fredramsey fredram...@gmail.com To: users@tapestry.apache.org Sent: Wednesday, April 4, 2012 5:09 PM Subject: Hibernate not downloading in tutorial When following this: http://tapestry.apache.org/using-tapestry-with-hibernate.html Maven cannot find the version of Hibernate referenced in pom.xml. I tried changing it to 2.2.8, which is the latest version, but that failed as well. I have searched the forum archives. Any ideas? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hibernate-not-downloading-in-tutorial-tp5618252p5618252.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
One solution is to use the outputraw component. In .properties file : erdos=Erdouml In .tml : t:outputraw value=message:erdos/ Shing From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Sent: Thursday, March 1, 2012 8:56 AM Subject: How to display special characters in tml page How to show the special characters in tml page, html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_3.xsd;; xmlns:p=tapestry:parameter head title Test /title /head body p B*ö*rse /p /body /html When I hit this page in browser is throws the error message because of this character ö Invalid byte 2 of 4-byte UTF-8 sequence. How to resolve this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527308.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
Please check your web.xml. In mine : filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter My global properties file is called app.properties (from filter name) , and it is in the same folder as web.xml. Also note that each page/component could have its own properties file. The values in the page/component properties file takes precedence over it containers properties file. Shing - Original Message - From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Cc: Sent: Thursday, March 1, 2012 11:07 AM Subject: Re: How to display special characters in tml page I tried that in properties file but it says missing key -- [[missing key: stock]] My project name is Registration, in that under resources - pages package created one Registration.properties file and in that added that key and value In test.tml file when I called like this p ${message:stock} /p it throws the above error -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527609.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Percent sign in message properties file
It is rather strange. It works for me with encoding UTF-8. I am using Tapestry 5.3. Shing From: nquirynen nat...@pensionarchitects.be To: users@tapestry.apache.org Sent: Tuesday, February 28, 2012 10:40 AM Subject: Percent sign in message properties file Hi all, In a .properties file of a page I have: test=% I just want to show the percent symbol, but then I get this error: org.apache.tapestry5.ioc.internal.util.TapestryException Conversion = '%' I have tried different things like with as results: Change properties file to UTF8, unicode escape (\u00AE) -- same error HTML code (%) -- '%' Double the percent sign -- '%%' So how can I just get 1 percent character from my message file in Tapestry? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Percent-sign-in-message-properties-file-tp5521448p5521448.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.3 : A port of Ajax StockWatcher example from GWT
I am glad you find my examples useful. Shing From: Bob Harner bobhar...@gmail.com To: Tapestry users users@tapestry.apache.org; Shing Hing Man mat...@yahoo.com Sent: Monday, December 12, 2011 11:35 AM Subject: Re: Tap 5.3 : A port of Ajax StockWatcher example from GWT Very nice! I've often referred to the Lombok examples, and it's nice to see something new there. On Sat, Dec 10, 2011 at 3:48 PM, Shing Hing Man mat...@yahoo.com wrote: In case anyone is interested, I have ported the Stock watcher Ajax example from GWT to Tapestry 5.3 http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html The Tap 5.3 version is at http://lombok.demon.co.uk/tapestry5Demo/test/core/mixin/stockwatcher The Tapestry 5.3 version is a lot less verbose and has frightenly few lines of Java code ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.3 : AjaxResponseRenderer error when updating two zones with chaining
I am using the mixin zoneRefresh and AjaxResponseRenderer to update zone pricesZone and zone currentTimeZone. ( I have read the excellent blog by Taha on AjaxResponseRenderer.) But I get the following error. Ajax failure: Status 200 for http://localhost:8080/tapestry5Demo/test/core/mixin/stockwatcher2.priceszone:zonerefresh: undefined Communication with the server failed: undefined t:zone t:id=pricesZone id=pricesZone t:update=show t:mixins=ZoneRefresh t:period='3' table class=watchList cellpadding=6 .. tr class=watchListHeader td class=watchListHeaderSymbol/td td Price/td td class=watchListNumericColumnChange/td td class=watchListRemoveColumnRemove/td /tr tr t:type=loop source=stockPrices t:id=stockPrices value=stockPrice td ${stockPrice.symbol} /td td class=watchListNumericColumn t:output value=stockPrice.price format=priceFormatter/t:output /td td style=${changeStyle} class=watchListNumericColumn t:output value=stockPrice.change format=changeFormatter/ (t:output value=stockPrice.changePercent format=changeFormatter/%) /td td class=watchListRemoveColumn t:actionlink t:id=remove context=stockPrice.symbol t:zone=pricesZone class=gwt-Button gwt-Button-remove x /t:actionlink /td /tr /table /t:zone t:zone t:id=currentTimeZone t:update=show id=currentTimeZone Last update : ${currentTime} /t:zone In java class : @InjectComponent private Zone pricesZone; protected void onRefreshFromPricesZone() { refreshWatchList(); if (request.isXHR()) { // This does not work ajaxResponseRenderer.addRender(currentTimeZone).addRender(pricesZone); } } Is it meant to be an error ? Any explanation on why the above does not work would be appreciated ! However, the following works. protected Object onRefreshFromPricesZone() { refreshWatchList(); if (request.isXHR()) { ajaxResponseRenderer.addRender(currentTimeZone); return pricesZone.getBody(); } return null; } If the table, in zone pricesZone, is wrapped in a block, then the following also works. protected void onRefreshFromPricesZone() { refreshWatchList(); if (request.isXHR()) { ajaxResponseRenderer.addRender(currentTimeZone, timeBlock). addRender(pricesZone, pricesBlock); } } Thanks in advance for any assistance! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.3 : AjaxResponseRenderer error when updating two zones with chaining
Hi Thiago, I am not aware the mailing list email address have changed since my first post back in 2004. Thanks for pointing it out ! I will use the current email address from next post. Back to my problem. There is no error on the server side. Hence there is no (new big) popup window on he client browser to show the stack trace. The following messages are displayed like the new alert message on the client browser. Ajax failure: Status 200 for http://localhost:8080/tapestry5Demo/test/core/mixin/stockwatcher2.priceszone:zonerefresh: undefined Communication with the server failed: undefined Shing - Original Message - From: Thiago H. de Paula Figueiredo thiag...@gmail.com To: tapestry Tapestry tapestry-u...@jakarta.apache.org; Shing Hing Man mat...@yahoo.com Cc: Sent: Saturday, December 10, 2011 5:28 PM Subject: Re: Tap 5.3 : AjaxResponseRenderer error when updating two zones with chaining Hi! Have you noticed you're still sending e-mails to tapestry-u...@jakarta.apache.org instead of users@tapestry.apache.org? Tapestry has been a top level Apache project for years! :D On Sat, 10 Dec 2011 13:46:21 -0200, Shing Hing Man mat...@yahoo.com wrote: Ajax failure: Status 200 for http://localhost:8080/tapestry5Demo/test/core/mixin/stockwatcher2.priceszone:zonerefresh: undefined Communication with the server failed: undefined What's the console output? --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.3 : AjaxResponseRenderer error when updating two zones with chaining
For now, I can live with the other two work around. Shing - Original Message - From: Thiago H. de Paula Figueiredo thiag...@gmail.com To: tapestry Tapestry tapestry-u...@jakarta.apache.org; Shing Hing Man mat...@yahoo.com Cc: Sent: Saturday, December 10, 2011 6:47 PM Subject: Re: Tap 5.3 : AjaxResponseRenderer error when updating two zones with chaining On Sat, 10 Dec 2011 16:12:09 -0200, Shing Hing Man mat...@yahoo.com wrote: Hi Thiago, Hi! I am not aware the mailing list email address have changed since my first post back in 2004. Thanks for pointing it out ! I will use the current email address from next post. Nice! Back to my problem. There is no error on the server side. Hence there is no (new big) popup window on he client browser to show the stack trace. The following messages are displayed like the new alert message on the client browser. Ajax failure: Status 200 for http://localhost:8080/tapestry5Demo/test/core/mixin/stockwatcher2.priceszone:zonerefresh: undefined Communication with the server failed: undefined The URL is weird, as it ends in 'undefined'. It seems some variable in JavaScript wasn't set and then added to the URL. I'd start investigating from this point. Cheers! --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.3 : A port of Ajax StockWatcher example from GWT
In case anyone is interested, I have ported the Stock watcher Ajax example from GWT to Tapestry 5.3 http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html The Tap 5.3 version is at http://lombok.demon.co.uk/tapestry5Demo/test/core/mixin/stockwatcher The Tapestry 5.3 version is a lot less verbose and has frightenly few lines of Java code ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.3 : Jboss 5.0.1 tmp/vfs-nested.tmp fill up fast
Thanks for the url! I have followed a suggestion at the given link and added entry key${path of my deploy directory}/key valueinject bean=VfsNamesExceptionHandler//value /entry to server/src/etc/conf/default/bootstrap/vfs.xml. The problem has been fixed. It is strange that I only have this problem after upgraded to Tap 5.3. Shing From: Howard Lewis Ship hls...@gmail.com To: Tapestry users users@tapestry.apache.org; Shing Hing Man mat...@yahoo.com Sent: Monday, November 28, 2011 9:01 PM Subject: Re: Tap 5.3 : Jboss 5.0.1 tmp/vfs-nested.tmp fill up fast A quick google search turned this up: http://community.jboss.org/message/614729 On Mon, Nov 28, 2011 at 12:34 PM, Shing Hing Man mat...@yahoo.com wrote: My Tapestry applications have been running in Jboss 5.0.1 without any problem before I upgraded to Tapestry 5.3. I have noticed, in Jboss 5.0.1, the directory tmp/vfs-nested.tmp grows very quickly (about 20G a day), after I upgraded to Tapestry 5.3. I wonder if it is caused by Tapestry 5.3, and if someone else has the same problem. Thanks in advance for any assistance! Shing -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.3 : Jboss 5.0.1 tmp/vfs-nested.tmp fill up fast
My Tapestry applications have been running in Jboss 5.0.1 without any problem before I upgraded to Tapestry 5.3. I have noticed, in Jboss 5.0.1, the directory tmp/vfs-nested.tmp grows very quickly (about 20G a day), after I upgraded to Tapestry 5.3. I wonder if it is caused by Tapestry 5.3, and if someone else has the same problem. Thanks in advance for any assistance! Shing
Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Thanks for the reply ! tapx-yui-1.2-SNAPSHOT.jar is in my classpath. I think I know the cause of the error. In Java, an identifier is not allow to have hypen (-). Hence the following is not a valid classpath. classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ I have checked the history of Tapx YUI in Git and com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ has not been changed recently. I wonder how come it worked a few weeks ago with Tapestry 5.3 betas. (Now I am using Tapestry 5.3.) Regards, Shing From: Taha Hafeez Siddiqi tawus.tapes...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, November 26, 2011 2:25 AM Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist). Hi Is the jar in your classpath ? If you running it within eclipse you can check it in 'BUILD PATH'. Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven) regards Taha On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote: When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from http://howardlewisship.com/snapshot-repository., I get the following error. Unable to locate asset 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js' (the file does not exist). In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath. I get the same error if I a download the source from https://github.com/hlship/tapx/ and do a 'gradle install'. Thanks in advance for any assistance! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
After further investigation, my error has nothing to do with hypen (-) in folder yahoo-dom-event. In the class ImportYUIWorker : private final MapperString, Asset pathToAsset = new MapperString, Asset() { public Asset map(String path) { if (!productionMode) { String minPath = path + -min.js; Asset asset = assetSource.getExpandedAsset(minPath); if (asset.getResource().exists()) return asset; } return assetSource.getExpandedAsset(path + .js); } }; I would have thought -min.js should be used in production mode. After changing the above if(!productionMode) to if(productionMode) and do a gradle install, the error gone away. Shing From: Shing Hing Man mat...@yahoo.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, November 26, 2011 10:02 AM Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist). Thanks for the reply ! tapx-yui-1.2-SNAPSHOT.jar is in my classpath. I think I know the cause of the error. In Java, an identifier is not allow to have hypen (-). Hence the following is not a valid classpath. classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ I have checked the history of Tapx YUI in Git and com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ has not been changed recently. I wonder how come it worked a few weeks ago with Tapestry 5.3 betas. (Now I am using Tapestry 5.3.) Regards, Shing From: Taha Hafeez Siddiqi tawus.tapes...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, November 26, 2011 2:25 AM Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist). Hi Is the jar in your classpath ? If you running it within eclipse you can check it in 'BUILD PATH'. Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven) regards Taha On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote: When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from http://howardlewisship.com/snapshot-repository., I get the following error. Unable to locate asset 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js' (the file does not exist). In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath. I get the same error if I a download the source from https://github.com/hlship/tapx/ and do a 'gradle install'. Thanks in advance for any assistance! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from http://howardlewisship.com/snapshot-repository., I get the following error. Unable to locate asset 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js' (the file does not exist). In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath. I get the same error if I a download the source from https://github.com/hlship/tapx/ and do a 'gradle install'. Thanks in advance for any assistance! Shing
Tap 5.3.0: How to generate PropertyExpressionLexer and PropertyExpressionParser
Hi, I have checked out the tapestry 5 trunk and and try to set up tapestry-core in Eclipse. The class PropertyConduitSourceImpl.java has the following imports : import org.apache.tapestry5.internal.antlr.PropertyExpressionLexer; import org.apache.tapestry5.internal.antlr.PropertyExpressionParser; If I am not mistaken, PropertyExpressionLexer and PropertyExpressionParser are generated from Antlr grammar files. How to generate the above two files ? Thanks in advance for any assistance ! Shing
Re: Tap 5.3.0: How to generate PropertyExpressionLexer and PropertyExpressionParser
In fact, PropertyExpressionLexer.java and PropertyExpressionParser.java were generated. They are in tapestry-core/build/generated-sources/ Shing From: Shing Hing Man mat...@yahoo.com To: Tapestry users users@tapestry.apache.org Sent: Saturday, 27 August 2011, 20:25 Subject: Tap 5.3.0: How to generate PropertyExpressionLexer and PropertyExpressionParser Hi, I have checked out the tapestry 5 trunk and and try to set up tapestry-core in Eclipse. The class PropertyConduitSourceImpl.java has the following imports : import org.apache.tapestry5.internal.antlr.PropertyExpressionLexer; import org.apache.tapestry5.internal.antlr.PropertyExpressionParser; If I am not mistaken, PropertyExpressionLexer and PropertyExpressionParser are generated from Antlr grammar files. How to generate the above two files ? Thanks in advance for any assistance ! Shing
Re: Help with pagelink popup window (lombok component)
Please put a break point at the line configuration.add(new LibraryMapping(lombok, net.sf.lombok)); and see if the break point is reached in debug mode. Please check lombok-5.2.5.1.jar is in the classpath. Note that if in your web.xml, the filter-name is foo instead of app, then public static void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) { // Creates a virtual root pacakge for pages,components. configuration.add(new LibraryMapping(lombok, net.sf.lombok)); } should in foo FooModule.java . web.xml: filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter Please see http://tapestry.apache.org/configuration.html for more details. Shing From: com.tap5 com.t...@gmail.com To: users@tapestry.apache.org Sent: Thursday, 18 August 2011, 13:11 Subject: Help with pagelink popup window (lombok component) Hi I am trying to use pagelinkpopup lombok component as described in here - http://lombok.demon.co.uk/tapestry5Demo/test/components/pagelinkpopupdemosource, but when I access the page with 'lombok/pagelinkPopup' component, following exception is thrown *Unable to resolve 'lombok/pagelinkPopup' to a component class name.* I have added lombok-5.2.5.1.jar an external library jar in my eclipse java build path along with the below configurations. Also, this component is not being shown under TapestryModule.ComponentClassResolver Available components POM.xml dependency groupIdnet.sf/groupId artifactIdlombok/artifactId version5.2.5.1/version scopesystem/scope systemPathC:/Mx/tapestry/lombok-5.2.5.1.jar/systemPath /dependency AppModule.java public static void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) { // Creates a virtual root pacakge for pages,components. configuration.add(new LibraryMapping(lombok, net.sf.lombok)); } Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Help-with-pagelink-popup-window-lombok-component-tp4711872p4711872.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.3.0 and TapX-core 1.2-SNAPSHOT
Hi, I have the following runtime exception when I launch Tap 5.3.0 in Jetty. java.lang.RuntimeException: Service id 'DynamicTemplateParser' has already been defined by com.howardlewisship.tapx.core.services.CoreModule.buildDynamicTemplateParser(DynamicTemplateParserImpl, UpdateListenerHub) (at CoreModule.java:127) and may not be redefined by org.apache.tapestry5.internal.dynamic.DynamicTemplateParserImpl(ClasspathURLConverter, BindingSource, PageSource) (at DynamicTemplateParserImpl.java:42) via org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at TapestryModule.java:440). You should rename one of the service builder methods. at org.apache.tapestry5.ioc.internal.RegistryImpl.init(RegistryImpl.java:226) at org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:178) at org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:216) at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at RunTestTapestry5.main(RunTestTapestry5.java:31) Is it a bug ? Thanks advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: simple int selection model
Have you tried model='0..5' ? There are singe quotes. Shing --- On Tue, 10/5/11, Paul Stanton p...@mapshed.com.au wrote: From: Paul Stanton p...@mapshed.com.au Subject: simple int selection model To: Tapestry users users@tapestry.apache.org Date: Tuesday, 10 May, 2011, 7:53 Hi all, I need to make a select consisting of the options 0,1,2,3,4,5. I remember reading somewhere that there is a simple syntax for defining this model - something like [model=0..5] however that isn't it... Does anyone else know what I'm referring to or was this a dream/legacy feature? Thanks, p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2.5 and jboss6
Your solution works for me. Thanks! Shing --- On Sat, 7/5/11, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: From: Geoff Callender geoff.callender.jumpst...@gmail.com Subject: Re: Tapestry 5.2.5 and jboss6 To: Tapestry users users@tapestry.apache.org Date: Saturday, 7 May, 2011, 16:39 This works. In ClasspathURLConverter replace this, which worked in JBoss 5... URLConnection connection = url.openConnection(); Object virtualFile = connection.getContent(); Object zipEntryHandler = invoke(virtualFile, getHandler); Object realUrl = invoke(zipEntryHandler, getRealURL); return (URL) realUrl; ...with this for JBoss 6... URLConnection connection = url.openConnection(); Object virtualFile = connection.getContent(); File physicalFile = (File) invoke(virtualFile, getPhysicalFile); URL physicalFileURL = physicalFile.toURI().toURL(); return physicalFileURL; Here's the full source... package jumpstart.web.services; import java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; import java.net.URLConnection; import org.apache.tapestry5.ioc.services.ClasspathURLConverter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ClasspathURLConverterJBoss6 implements ClasspathURLConverter { private static Logger _logger = LoggerFactory.getLogger(ClasspathURLConverterJBoss6.class); public URL convert(URL url) { if (url != null url.getProtocol().startsWith(vfs)) { // supports virtual filesystem used by JBoss 6.x try { URLConnection connection = url.openConnection(); Object virtualFile = connection.getContent(); File physicalFile = (File) invoke(virtualFile, getPhysicalFile); URL physicalFileURL = physicalFile.toURI().toURL(); return physicalFileURL; } catch (Exception e) { _logger.error(e.getCause().toString()); } } return url; } private Object invoke(Object target, String methodName) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { Class? type = target.getClass(); Method method; try { method = type.getMethod(methodName); } catch (NoSuchMethodException e) { method = type.getDeclaredMethod(methodName); method.setAccessible(true); } return method.invoke(target); } } Cheers, Geoff On 07/05/2011, at 5:28 PM, Geoff Callender wrote: Oops - don't modify ClasspathURLConverter as I did below. The JBoss server log shows that Tapestry's services start but no pages/components/mixins have been found, ie. there are no INFO messages from ComponentClassResolver. The solution will be to get ClasspathURLConverter working again. On 07/05/2011, at 3:44 PM, Geoff Callender wrote: I'm also having trouble with JBoss 6. I'm trying to deploy jumpstart's ear. First, a fix to the ClasspathURLConverter for JBoss 6. Instead of this... if (url != null url.getProtocol().startsWith(vfs)) { try this... if (url != null url.getProtocol().startsWith(vfs) !url.getPath().endsWith(/)) { Actually, it might not be needed at all, but I don't know for sure yet. The business layer runs fine and I can run remote tests to it just fine. The web layer appears to be deployed OK, and when I do requests to it I can confirm they are passing through my PageProtectionFilter, so Tapestry's running and my requests are reaching the servlet filters. So it appears that Tapestry's getting short-circuited. My guess is that it can't find the page class or template. On 06/05/2011, at 8:30 AM, Thiago H. de Paula Figueiredo wrote: On Thu, 05 May 2011 18:34:18 -0300, Jabbar aja...@gmail.com wrote: Hello Adam, We've always used JBoss, it's the company standard. I could perhaps use Glassfish or Jetty to host the application. The application works perfectly using the run jetty run eclipse plugin. What's the error message when you try to run the application in JBoss? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Q: Java Script Check All The CheckBox?
Hi, I have a written a component and a mixin to form a 'checkbox group'. If you are interested, there is online demo at http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Source code download instruction is on http://lombok.demon.co.uk/tapestry5Demo/ Shing --- On Wed, 19/1/11, dwi ardi irawan penyihirke...@gmail.com wrote: From: dwi ardi irawan penyihirke...@gmail.com Subject: Q: Java Script Check All The CheckBox? To: users@tapestry.apache.org Date: Wednesday, 19 January, 2011, 2:15 Okay, it might be old question, but I've searched through mailing list archive, but haven't found the solution yet. I have 2 checkbox. and I want to create a checkbox master(when I click this checkbox, all the checkbox will be checked). I can't use the common js algorithm here, cos I can't get the id of the checkbox. CheckBoxPage.tml this is my simple code: script type=text/javascript language=JavaScript function checkAllDetail(){ } /script form t:type=form t:id=newspaperForm input t:type=checkbox t:value=subscribeYahoo/Yahoo input t:type=checkbox t:value=subscribeGoogle/Google input type=checkbox id=checkAllRemove onclick=checkAllDetail()/Check All input type=submit value=Submit/br/ Result : b${value}/b /form CheckBoxPage.java public class CheckBoxPage { @Property private boolean subscribeYahoo; @Property private boolean subscribeGoogle; @Persist(PersistenceConstants.FLASH) @Property private String value; void onSuccessFromNewspaperForm(){ value = ; if(subscribeYahoo){ value += Yahoo ; } if(subscribeGoogle) { value += Google ; } } } can anyone help me? thnx you dwi ardi irawan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Confirm Mixin
Have you tried the confirm Mixin in Tapx ? https://github.com/hlship/tapx/ Shing --- On Fri, 14/1/11, mwilliam...@kcp.com mwilliam...@kcp.com wrote: From: mwilliam...@kcp.com mwilliam...@kcp.com Subject: Confirm Mixin To: Tapestry users users@tapestry.apache.org Date: Friday, 14 January, 2011, 2:01 I have a confirm mixin that I use. I can added it to a t:submit/ and it works fine. When I try to use it with a t:LinkSubmit/ the confirmation box is displayed but the cancel button doesn't stop the submit. t:Submit t:id=clear value=Clear t:mixins=Confirm t:message=Are you sure you want to remove all entered serial numbers without saving? / Dose anyone know how to make this work with a LinkSubmit or know of another way to do this? Confirm.java /** * A simple mixin for attaching a javascript confirmation box to the onclick event of any component that implements * ClientElement. * * @author a href=mailto:ch...@thegodcode.net;Chris Lewis/a Apr 18, 2008 */ //This annotation tells Tapestry to declare the js file in the page so that the browser will pull it in. @IncludeJavaScriptLibrary(confirm.js) public class Confirm { @Parameter(value = Are you sure?, defaultPrefix = BindingConstants. LITERAL) private String message; @Inject private RenderSupport renderSupport; @InjectContainer private ClientElement element; @AfterRender public void afterRender() { renderSupport.addScript(String.format(new Confirm('%s', '%s');, element.getClientId(), message)); } } Confirm.js // A class that attaches a confirmation box (with logic) to // the 'onclick' event of any HTML element. // @author Chris Lewis Apr 18, 2008 ch...@thegodcode.net var Confirm = Class.create(); Confirm.prototype = { initialize: function(elementId, message) { this.message = message; Event.observe($(elementId), 'click', this.doConfirm. bindAsEventListener(this)); }, doConfirm: function(e) { if (! confirm(this.message)) { e.stop(); } } } Michael Williamson Analyst Sr Applications Developer Phone: 816/997-5994 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
JIRA TAP5_103 provide access to component parameters from within mixins
JIRA TAP5_103 is marked as fixed in Tap 5.2.0. https://issues.apache.org/jira/browse/TAP5-103 Does anyone know where I can find an example on reading a component parameters from within a mixin ? Does it work by simply inject the component for which the mixin is attached, in the mixin Java class ? Eg @InjectContainer private Object container; Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: JIRA TAP5_103 provide access to component parameters from within mixins
Thanks! Shing --- On Fri, 20/8/10, Dariusz Majewski dariuszmajew...@gmail.com wrote: From: Dariusz Majewski dariuszmajew...@gmail.com Subject: Re: JIRA TAP5_103 provide access to component parameters from within mixins To: Tapestry users users@tapestry.apache.org Date: Friday, 20 August, 2010, 5:22 Hi, You have to use @BindParameter annotation described here: http://tapestry.apache.org/tapestry5.2-dev/guide/mixins.html Regards, Darek On Thu, Aug 19, 2010 at 10:31 PM, Shing Hing Man mat...@yahoo.com wrote: JIRA TAP5_103 is marked as fixed in Tap 5.2.0. https://issues.apache.org/jira/browse/TAP5-103 Does anyone know where I can find an example on reading a component parameters from within a mixin ? Does it work by simply inject the component for which the mixin is attached, in the mixin Java class ? Eg �...@injectcontainer private Object container; Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot
In Tap 5.1, Form.getDefaultTracker() always return a non-null validationTracker irrespective of whether there is any validation errors. In Tap 5.2, Form.getDefaultTracker() returns null if there is a validation error, and returns a non-null validation tracker when there is a validation error. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: Tapestry users users@tapestry.apache.org Date: Sunday, 8 August, 2010, 4:21 Hi, In fact, in ValidationTracker validationTracker = form.getDefaultTracker(); form is not null. It was form.getDefaultTracker() that is returning null (which is not expected). Instead of trying to check and record errors using ValidationTracker, I follow the advice in http://tapestry.apache.org/tapestry5.2-dev/guide/validation.html to use form.getHasErrors, form.recordError. My code is working in Tap 5.2 snapshot. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: tapestry Tapestry tapestry-u...@jakarta.apache.org Date: Sunday, 8 August, 2010, 2:50 Hi, I have an embedded form component that is null inside a onSubmit method. It was not the case in Tap 5.1. In .tml : t:form t:id=myForm /t:form In Java page @Component(id = myForm) private Form form; @OnEvent(component = myForm, value = submit) public void submit() { // form is null below ! ValidationTracker validationTracker = form.getDefaultTracker(); } When the form is submitted, inside the submit method, form is null. I am using tapestry-core:5.2.0-20100801.103309-116 Below is the stack trace. # com.man.testTapestry5.pages.test.Sum.submit(Sum.java:172) # com.man.testTapestry5.pages.test.Sum$MethodAccess_submit_12a4dd6b537.invoke(Sum$MethodAccess_submit_12a4dd6b537.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # com.man.testTapestry5.pages.test.Sum.dispatchComponentEvent(Sum.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:942) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000(ComponentPageElementImpl.java:72) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1077) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1074) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) # org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:141) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1073) # org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:287) # org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:548) # org.apache.tapestry5.corelib.components.Form$onAction$invocation_12a4dd6c009.invokeAdvisedMethod(Form$onAction$invocation_12a4dd6c009.java) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:77) # org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37) # org.apache.tapestry5.internal.transform.LogWorker$1.advise(LogWorker.java:54) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Form.onAction(Form.java) # org.apache.tapestry5.corelib.components.Form$MethodAccess_onAction_12a4dd6b53f.invoke(Form$MethodAccess_onAction_12a4dd6b53f.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5
inherit binding broken after upgrade from Tap 5.1 to 5.2 snapshot
Hi, My component below is broken after I upgrade from Tap 5.1 to Tap 5.2 snapshot. In the component template FunctionInputWithSelect.tml, there is Select component which gets all its parameters using inherit binding. td SELECT t:type=select style=width:10em t:id=mode blankOption=never model=model value=value onchange=javascript:this.form.submit(); /SELECT In FunctionInputWithSelect.java, public class FunctionInputWithSelect { @Parameter(defaultPrefix=BindingConstants.PROP, required=true) @Property private String function; @Parameter(defaultPrefix=BindingConstants.PROP, required=true) private SelectModel model; @Parameter(defaultPrefix=BindingConstants.PROP, required=true) private ValueEncoder encoder; @Parameter(required=false,defaultPrefix=BindingConstants.PROP,value=literal:Compute ) private String buttonLabel; @Parameter(required = true,principal=true) private Object value; @Component(parameters = { value=inherit:value, model=inherit:model, encoder=inherit:encoder }, id=mode) private Select select; @Component(parameters ={ function=inherit:function }, id=functionInput) private FunctionInput functionInput; public String getButtonLabel(){ return buttonLabel; } } In Tap 5.2, I get a null pointer exception. # org.apache.tapestry5.util.EnumSelectModel.init(EnumSelectModel.java:50) # org.apache.tapestry5.util.EnumSelectModel.init(EnumSelectModel.java:41) # org.apache.tapestry5.corelib.components.Select.defaultModel(Select.java:254) # org.apache.tapestry5.corelib.components.Select$MethodAccess_defaultModel_12a5251dfd6.invoke(Select$MethodAccess_defaultModel_12a5251dfd6.java) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:95) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:101) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:101) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Select.containingPageDidLoad(Select.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:120) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:985) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:829) # org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:171) # org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:190) # org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:174) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot
Thanks for the correction. Shing --- On Mon, 9/8/10, adasal adam.salt...@gmail.com wrote: From: adasal adam.salt...@gmail.com Subject: Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: Tapestry users users@tapestry.apache.org Date: Monday, 9 August, 2010, 1:45 In Tap 5.2, Form.getDefaultTracker() returns null if there is a validation error, and returns a non-null validation tracker when there is a validation error. Should be ' returns null if there is no validation error ' I expect? Adam On 8 August 2010 15:37, Shing Hing Man mat...@yahoo.com wrote: In Tap 5.1, Form.getDefaultTracker() always return a non-null validationTracker irrespective of whether there is any validation errors. In Tap 5.2, Form.getDefaultTracker() returns null if there is a validation error, and returns a non-null validation tracker when there is a validation error. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: Tapestry users users@tapestry.apache.org Date: Sunday, 8 August, 2010, 4:21 Hi, In fact, in ValidationTracker validationTracker = form.getDefaultTracker(); form is not null. It was form.getDefaultTracker() that is returning null (which is not expected). Instead of trying to check and record errors using ValidationTracker, I follow the advice in http://tapestry.apache.org/tapestry5.2-dev/guide/validation.html to use form.getHasErrors, form.recordError. My code is working in Tap 5.2 snapshot. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: tapestry Tapestry tapestry-u...@jakarta.apache.org Date: Sunday, 8 August, 2010, 2:50 Hi, I have an embedded form component that is null inside a onSubmit method. It was not the case in Tap 5.1. In .tml : t:form t:id=myForm /t:form In Java page @Component(id = myForm) private Form form; @OnEvent(component = myForm, value = submit) public void submit() { // form is null below ! ValidationTracker validationTracker = form.getDefaultTracker(); } When the form is submitted, inside the submit method, form is null. I am using tapestry-core:5.2.0-20100801.103309-116 Below is the stack trace. # com.man.testTapestry5.pages.test.Sum.submit(Sum.java:172) # com.man.testTapestry5.pages.test.Sum$MethodAccess_submit_12a4dd6b537.invoke(Sum$MethodAccess_submit_12a4dd6b537.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # com.man.testTapestry5.pages.test.Sum.dispatchComponentEvent(Sum.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:942) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000(ComponentPageElementImpl.java:72) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1077) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1074) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) # org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:141) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1073) # org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:287) # org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:548) # org.apache.tapestry5.corelib.components.Form$onAction
Re: inherit binding broken after upgrade from Tap 5.1 to 5.2 snapshot
It is only broken (in Tap 5.2.0 Snapshot) if EnumSelectModel is passed to component FunctionInputWithSelect. It works if I use SelectModelImpl whith String key/value pairs. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: inherit binding broken after upgrade from Tap 5.1 to 5.2 snapshot To: tapestry Tapestry tapestry-u...@jakarta.apache.org Date: Sunday, 8 August, 2010, 23:45 Hi, My component below is broken after I upgrade from Tap 5.1 to Tap 5.2 snapshot. In the component template FunctionInputWithSelect.tml, there is Select component which gets all its parameters using inherit binding. td SELECT t:type=select style=width:10em t:id=mode blankOption=never model=model value=value onchange=javascript:this.form.submit(); /SELECT In FunctionInputWithSelect.java, public class FunctionInputWithSelect { @Parameter(defaultPrefix=BindingConstants.PROP, required=true) @Property private String function; @Parameter(defaultPrefix=BindingConstants.PROP, required=true) private SelectModel model; @Parameter(defaultPrefix=BindingConstants.PROP, required=true) private ValueEncoder encoder; @Parameter(required=false,defaultPrefix=BindingConstants.PROP,value=literal:Compute ) private String buttonLabel; @Parameter(required = true,principal=true) private Object value; @Component(parameters = { value=inherit:value, model=inherit:model, encoder=inherit:encoder }, id=mode) private Select select; @Component(parameters ={ function=inherit:function }, id=functionInput) private FunctionInput functionInput; public String getButtonLabel(){ return buttonLabel; } } In Tap 5.2, I get a null pointer exception. # org.apache.tapestry5.util.EnumSelectModel.init(EnumSelectModel.java:50) # org.apache.tapestry5.util.EnumSelectModel.init(EnumSelectModel.java:41) # org.apache.tapestry5.corelib.components.Select.defaultModel(Select.java:254) # org.apache.tapestry5.corelib.components.Select$MethodAccess_defaultModel_12a5251dfd6.invoke(Select$MethodAccess_defaultModel_12a5251dfd6.java) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:95) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:101) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:101) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.internal.transform.ParameterWorker$InvokeLoadOnParmeterConduit.advise(ParameterWorker.java:118) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Select.containingPageDidLoad(Select.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:120) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:985) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:829) # org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:171) # org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:190) # org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:174) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68
Embedded Form component becomes null in Tap 5.2.0-Snapshot
Hi, I have an embedded form component that is null inside a onSubmit method. It was not the case in Tap 5.1. In .tml : t:form t:id=myForm /t:form In Java page @Component(id = myForm) private Form form; @OnEvent(component = myForm, value = submit) public void submit() { // form is null below ! ValidationTracker validationTracker = form.getDefaultTracker(); } When the form is submitted, inside the submit method, form is null. I am using tapestry-core:5.2.0-20100801.103309-116 Below is the stack trace. # com.man.testTapestry5.pages.test.Sum.submit(Sum.java:172) # com.man.testTapestry5.pages.test.Sum$MethodAccess_submit_12a4dd6b537.invoke(Sum$MethodAccess_submit_12a4dd6b537.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # com.man.testTapestry5.pages.test.Sum.dispatchComponentEvent(Sum.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:942) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000(ComponentPageElementImpl.java:72) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1077) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1074) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) # org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:141) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1073) # org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:287) # org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:548) # org.apache.tapestry5.corelib.components.Form$onAction$invocation_12a4dd6c009.invokeAdvisedMethod(Form$onAction$invocation_12a4dd6c009.java) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:77) # org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37) # org.apache.tapestry5.internal.transform.LogWorker$1.advise(LogWorker.java:54) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Form.onAction(Form.java) # org.apache.tapestry5.corelib.components.Form$MethodAccess_onAction_12a4dd6b53f.invoke(Form$MethodAccess_onAction_12a4dd6b53f.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:950) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000(ComponentPageElementImpl.java:72) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1077) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1074) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) # org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:141) #
Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot
Hi, In fact, in ValidationTracker validationTracker = form.getDefaultTracker(); form is not null. It was form.getDefaultTracker() that is returning null (which is not expected). Instead of trying to check and record errors using ValidationTracker, I follow the advice in http://tapestry.apache.org/tapestry5.2-dev/guide/validation.html to use form.getHasErrors, form.recordError. My code is working in Tap 5.2 snapshot. Shing --- On Sun, 8/8/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Embedded Form component becomes null in Tap 5.2.0-Snapshot To: tapestry Tapestry tapestry-u...@jakarta.apache.org Date: Sunday, 8 August, 2010, 2:50 Hi, I have an embedded form component that is null inside a onSubmit method. It was not the case in Tap 5.1. In .tml : t:form t:id=myForm /t:form In Java page @Component(id = myForm) private Form form; @OnEvent(component = myForm, value = submit) public void submit() { // form is null below ! ValidationTracker validationTracker = form.getDefaultTracker(); } When the form is submitted, inside the submit method, form is null. I am using tapestry-core:5.2.0-20100801.103309-116 Below is the stack trace. # com.man.testTapestry5.pages.test.Sum.submit(Sum.java:172) # com.man.testTapestry5.pages.test.Sum$MethodAccess_submit_12a4dd6b537.invoke(Sum$MethodAccess_submit_12a4dd6b537.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # com.man.testTapestry5.pages.test.Sum.dispatchComponentEvent(Sum.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:942) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000(ComponentPageElementImpl.java:72) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1077) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.invoke(ComponentPageElementImpl.java:1074) # org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) # org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) # org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1057) # org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:141) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1073) # org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:287) # org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:548) # org.apache.tapestry5.corelib.components.Form$onAction$invocation_12a4dd6c009.invokeAdvisedMethod(Form$onAction$invocation_12a4dd6c009.java) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:77) # org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37) # org.apache.tapestry5.internal.transform.LogWorker$1.advise(LogWorker.java:54) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Form.onAction(Form.java) # org.apache.tapestry5.corelib.components.Form$MethodAccess_onAction_12a4dd6b53f.invoke(Form$MethodAccess_onAction_12a4dd6b53f.java) # org.apache.tapestry5.internal.transform.BaseEventHandlerMethodInvoker.invokeEventHandlerMethod(BaseEventHandlerMethodInvoker.java:52) # org.apache.tapestry5.internal.transform.OnEventWorker$4.invokeEventHandlers(OnEventWorker.java:157) # org.apache.tapestry5.internal.transform.OnEventWorker$4.advise(OnEventWorker.java:136) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86) # org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:950) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1132) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3000
Re: Problems with @InjectService
I think you need the Marker annotations. Please check it out at the link below. http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html Shing --- On Tue, 25/5/10, Erick Erickson erickerick...@gmail.com wrote: From: Erick Erickson erickerick...@gmail.com Subject: Problems with @InjectService To: Tapestry users users@tapestry.apache.org Date: Tuesday, 25 May, 2010, 1:58 I've seen several iterations of this problem in the users list, but the solution still eludes me. This is the very basic issue of having two different concrete realizations of a particular interface and wanting to have a service for each concrete implementation in a Tapestry 1.5.0.5 environment. The binding looks like this: binder.bind(CommonInterface.class, Concrete1.class).withId(one); binder.bind(CommonInterface.class, Concrete2.class).withId(two); And in various components, something like @InjectService(one) private CommonInterface concrete1; or @InjectService(two) private CommonInterface concrete2; But now I get errors like: Service interface CommonInterface is matched by 2 services: one, two. Automatic dependency resolution requires that exactly one service implement the interface. OK, poking around I found things about ContributeAlias, and this example: public static void contributeAlias( @InjectService(one) Concrete1 concrete1 ConfigurationAliasContribution configuration) { configuration.add(AliasContribution.create(CommonInterface.class, concrete1)); } and similarly for Concrete2. But now I get errors like: Caused by: java.lang.RuntimeException: Exception constructing service 'Alias': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildAlias(Logger, String, AliasManager, Collection) (at TapestryModule.java:325) Service 'one' implements interface CommonInterface, which is not compatible with the requested type 'concrete1'. at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:78) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) I've severely clipped out extra stuff from the output, I'll be glad to provide more details but I suspect this is fairly trivial to fix if you know the magic, unfortunately I'm an apprentice... I don't understand when adding ContributeAlias is necessary, it seems to me that just the withId should be sufficient but what do I know? Thanks Erick - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Sample Tapestry 5 GWT project in wiki
In case anyone is interested, I have migrated the GWT and Tapestry 5 example described in http://wiki.apache.org/tapestry/Tapestry5GWTIntegration to a Maven Eclipse project using the maven GWT plugin 1.2 and GWT 2.0.3. An online demo is available at: http://lombok.demon.co.uk/t5gwt/ The source code t5gwt is available at http://code.google.com/p/tapestry5examples/downloads/list Shing --- On Sun, 9/5/10, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Sample Tapestry 5 GWT project in wiki To: tapestry Tapestry tapestry-u...@jakarta.apache.org Date: Sunday, 9 May, 2010, 17:34 I am trying out GWT with Tapestry. In the wiki http://wiki.apache.org/tapestry/Tapestry5GWTIntegration at the top, the link to the sample GWT Tapestry Eclipse project is broken. Does anyone know where it has moved to ? Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Sample Tapestry 5 GWT project in wiki
I am trying out GWT with Tapestry. In the wiki http://wiki.apache.org/tapestry/Tapestry5GWTIntegration at the top, the link to the sample GWT Tapestry Eclipse project is broken. Does anyone know where it has moved to ? Thanks in advance for any assistance ! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: service shutdown hook in tapestry-ioc
Have you tried registering service with the RegistryShutdownHub ? Below is an example. @ServiceId(connectionManager) public static SageConnectionManager buildSageConnectionManager(RegistryShutdownHub hub) { PooledSageConnectionManager connManager= new PooledSageConnectionManager(); hub.addRegistryShutdownListener(connManager); return connManager; } Note that PooledSageConnectionManager implements interface RegistryShutdownListener{ public void registryDidShutdown() } When the register shuts down, the method registryDidShutdown will be called. Shing --- On Thu, 22/4/10, Christian Edward Gruber cgru...@google.com wrote: From: Christian Edward Gruber cgru...@google.com Subject: service shutdown hook in tapestry-ioc To: Tapestry users users@tapestry.apache.org Cc: Michael Taylor miketay...@google.com Date: Thursday, 22 April, 2010, 3:52 Hi, We're building a service that connects to an RPC system for use in a t5 app (5.2-snap) but can't find anywhere to declare/identify shutdown logic. Is there any sort of event the service impl can hook into either with an annotation or a module contribution somewhere to allow us to cleanly close up any state or resources in the service when the registry shuts down, or when it goes out of scope? Noodling around the T5-ioc docs didn't bear any fruit, though clearly there was shutdown state transition in the registry itself. Christian. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Embedded Tapestry DateField is rendered when Tapx DataField component is used in template
Originally, I have a Tapestry5 DateField component in a page tml and it is also specified in the corresponding page Java class. tml file : t:DateField t:id=startDate validate=required format=literal:dd MMM value=bean.startDate style=width:7em / Java class: @Component private DateField startDate; // DateField from tapestry 5 corelib package When I switch to using the DateField component from Tapx (http://tapestry.formos.com/nightly/tapx/tapx-datefield/ ), I only changed the namespace of DateField from t to tx in the template, and forgot to update DateField in the Java class to refer to the one in Tapx package. However, the page rendered without error, but with DateField component from Tapestry 5 being rendered. It has taken me awhile to figure out it is caused by the embedded DateField component in the page Java class still referring to the Tapestry 5 DateField component. It would be great if an error message is shown when the namespace of the embedded component in the tml is inconsistent with the java package of the embedded component in the page Java class. Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: sql update of existing table
After the update, try calling commit. If you are using HibernateSessionManager from http://tapestry.apache.org/tapestry5.1/tapestry-hibernate/ call HibernateSessionManager.commit(). Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 21/2/10, toejoe to...@hotmail.com wrote: From: toejoe to...@hotmail.com Subject: sql update of existing table To: users@tapestry.apache.org Date: Sunday, 21 February, 2010, 0:44 Hello. I am using Tapestry 5.0.18 framework with Netbeans 6.8, MS Sqlexpress 2005 and using hibernate support for accessing database. One page is crated for data input. Other one will display data from table. Input is performed using t:beaneditform and display via t:grid. Whatever data I enter, it will be successfuly stored in database. Grid component will display it all. So, this basic part is functioning ok. Main entity, Class Servis has 3 attributes : servisid, InvNo, Vendor and Status. Servisid is generated value: �...@id �...@generatedvalue private Long servisid; so it is incremented for every new row and is unique. To store data after clicking on submit/update in beaneditform, I use the following code: @CommitAfter public Object onSuccess(){ Servis temp = new Servis(); temp.setInvno(servis.getInvno()); temp.setVendor(servis.getVendor()); temp.setStatus(servis.getStatus()); session.save(temp); return start; } I have customized grid component to display additional column which would be used to change status attribute. Tml file : t:grid source=list row=servis add=change t:parameter name=changeCell t:actionlink t:id=change context=servis.servisidSet TRUE/t:actionlink /t:parameter /t:grid Java class. I use following method to display only rows with status = FALSE public List getList() { Criteria crit = getSession().createCriteria(Servis.class); crit.add(Restrictions.eq(status, Status.FALSE)); return crit.list(); } Now, I want to update value of status by clicking on Set TRUE in grid component. I tried with several variants like this: Object onActionFromChange(long id) { SQLQuery query = getSession().createSQLQuery(UPDATE tblServis SET status = 'TRUE' WHERE servisid = +id); query.executeUpdate(); return start; } It won't update table. I also get no exception. Clicking on Set TRUE will drive me to start page. I tested and I definitely get appropriate id from grid. Can somebody suggest me what should I do to accomplish table update? Thanks in advance. -- View this message in context: http://old.nabble.com/sql-update-of-existing-table-tp27667156p27667156.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Dynamicly Created Checkboxes
I have a running example as described by Josh below. http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Shing --- On Sat, 23/1/10, Josh Canfield j...@thedailytube.com wrote: From: Josh Canfield j...@thedailytube.com Subject: Re: Dynamicly Created Checkboxes To: Tapestry users users@tapestry.apache.org Date: Saturday, 23 January, 2010, 3:01 I am trying to get the submit results of a dynamic set of checkboxes and I'm stumped. I'm not sure what you expect the value to be? Also, I don't see t:context in the checkbox documentation, does that do something? You are having trouble because you have a list of values going out, but only a single value coming back in. For each checkbox selected in the UI a value is passed back to the component. It calls the setter for each value, overwriting the previous value and leaving you with the last only the last one. Try adding a setter for your property and collect the checked values in a list. something like: t:loop source=list value=item index=listIndex t:checkbox t:id=checkbox t:value=checkbox/${item}br/ /t:loop /** keep track of loop iterations */ private Integer listIndex; /** loaded with selected checkbox values */ private ListString selectedItems; /** * Called with the form is posted for every checkbox that is checked. * Use the listIndex to grab the right value from the original list. **/ public void setCheckbox(boolean set) { if (selectedItems == null) selectedItems = new ArrayListString(); selectedItems.add(list.get(listIndex)); } Josh On Thu, Jan 21, 2010 at 5:40 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: Hi all, I am trying to get the submit results of a dynamic set of checkboxes and I'm stumped. html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; body t:form t:loop source=list value=item t:checkbox t:id=checkbox t:value=checkbox t:context=item/${item}br/ /t:loop t:submit/ /t:form /body /html public class Test { private final String[] list = new String[] { Abc, Defg, Hijkl, Mno }; �...@property private String item; �...@property private boolean checkbox; public String[] getList() { return list; } } If I simply add onSuccess() I only get the result for Mno. Adding one or more parameters (for item and checkbox) doesn't seem to work. I tried various other methods and combinations but nothing seems to do the trick. How do I do this? Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 : Pop up with grid
I have a simple parent-child page demo at http://lombok.demon.co.uk/tapestry5Demo/test/parentwindow The parent page displays number 1,2,..., n. The child page is a pop up to change n. The entered n from the pop up is returned to the parent page and the parent page is redisplay with the new n. It works in firefox, but not in IE. Shing --- On Thu, 29/10/09, cordenier christophe christophe.corden...@gmail.com wrote: From: cordenier christophe christophe.corden...@gmail.com Subject: Re: T5 : Pop up with grid To: Tapestry users users@tapestry.apache.org Date: Thursday, 29 October, 2009, 10:13 PM And Render Request of course. So you can also re-render the page and use the RenderSupport to add your Javascript. When the user click on the link, try to update the a state in your page (keep it via @Persist or Activation/Passivation), and during re-render, add your javascript call in SetupRender. And Ajax update is maybe cleaner... Excuse me for my previous confusing answers. Regards, Christope. 2009/10/29 cordenier christophe christophe.corden...@gmail.com Sorry i have said something wrong, RenderSupport is not available in Action Request, only in Ajax Action Request. 2009/10/29 vos sovireak.moe...@gmail.com Hi Christophe, Thanks for your answer. I tried to code with the renderSupport as you told me. here is the javascript for my pop up script type=text/javascript function choisir(choix){ window.opener.document.forms[add_search_form].elements[departure].value=choix; self.close(); } /script and the .java : @Environmental private RenderSupport renderSupport; @OnEvent(value = action, component = selectAddressPoi) public void onSelectEvent(Integer id) { System.out.println(id); String name = this.sgPoiManager.getSgPoiById(id).getName(); this.renderSupport.addScript(choisir( + name + );); } I got this exception when i clicked on my button : No object of type org.apache.tapestry5.RenderSupport is available from the Environment. Available types are org.apache.tapestry5.services.ComponentEventResultProcessor. what is the problem with the renderSupport ? Thanks by advance -- View this message in context: http://www.nabble.com/T5-%3A-Pop-up-with-grid-tp26112459p26113362.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ControlcheckBox in Tapestry5
Have you tried the following ? http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code. The following thread might be useful. http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-td24752416.html#a24755793 Shing --- On Wed, 14/10/09, Durgesh_Kab durgesh.ka...@nuware.com wrote: From: Durgesh_Kab durgesh.ka...@nuware.com Subject: ControlcheckBox in Tapestry5 To: users@tapestry.apache.org Date: Wednesday, 14 October, 2009, 9:05 PM Hi, I am migrating the project from Tapestry 4 to Tapestry 5. I had used ControlCheckBox controller in my project, where by selecting in the header all the content data gets automatically selected. I am unable to find the same in Tapestry5. If anyone have come across any such requirement or component in Tapestry5, please let me know. It will be a great help. Thanks, DK -- View this message in context: http://www.nabble.com/ControlcheckBox-in-Tapestry5-tp25890729p25890729.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Acces to current object in tab
There is a PageLinkPopup component at http://lombok.demon.co.uk/tapestry5Demo If I remember correctly, a few months ago, someone posted a mixin for a popup. Shing --- On Mon, 31/8/09, bdumeny bdum...@cvf.fr wrote: From: bdumeny bdum...@cvf.fr Subject: Re: [T5] Acces to current object in tab To: Tapestry users users@tapestry.apache.org Date: Monday, 31 August, 2009, 5:05 PM Thank you! But doesn't PopupLink component exist? I don't find in t5... I am using jQuery UI for showing a modal dialog. In my case I use a PageLink to generate the links with the Object-ID as context. Then I add a custom Popup mixin to the PageLink. This mixin sets up the dialog on the client, puts an iFrame inside it and makes sure the link gets an onclick event that opens the href in the popup. This way the links will also still work if Javascript is disabled although they won't open in popups then. regards, Onno On Mon, Aug 31, 2009 at 9:43 AM, bdumeny bdum...@cvf.fr wrote: Hi all, I use a grid to display list of object, and I want to insert a link (in each line) which displays all attributes from current object in a popup. How can I do this? Best regards - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Acces to current object in tab
Oops! Forgotten the slash at the end. http://lombok.demon.co.uk/tapestry5Demo/ --- On Mon, 31/8/09, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: [T5] Acces to current object in tab To: Tapestry users users@tapestry.apache.org Date: Monday, 31 August, 2009, 6:06 PM There is a PageLinkPopup component at http://lombok.demon.co.uk/tapestry5Demo If I remember correctly, a few months ago, someone posted a mixin for a popup. Shing --- On Mon, 31/8/09, bdumeny bdum...@cvf.fr wrote: From: bdumeny bdum...@cvf.fr Subject: Re: [T5] Acces to current object in tab To: Tapestry users users@tapestry.apache.org Date: Monday, 31 August, 2009, 5:05 PM Thank you! But doesn't PopupLink component exist? I don't find in t5... I am using jQuery UI for showing a modal dialog. In my case I use a PageLink to generate the links with the Object-ID as context. Then I add a custom Popup mixin to the PageLink. This mixin sets up the dialog on the client, puts an iFrame inside it and makes sure the link gets an onclick event that opens the href in the popup. This way the links will also still work if Javascript is disabled although they won't open in popups then. regards, Onno On Mon, Aug 31, 2009 at 9:43 AM, bdumeny bdum...@cvf.fr wrote: Hi all, I use a grid to display list of object, and I want to insert a link (in each line) which displays all attributes from current object in a popup. How can I do this? Best regards - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: matriz
There are a few more maths related utilities on http://lombok.demon.co.uk/mathToolkit/app Shing --- On Fri, 26/6/09, Igor Drobiazko igor.drobia...@gmail.com wrote: From: Igor Drobiazko igor.drobia...@gmail.com Subject: Re: matriz To: Tapestry users users@tapestry.apache.org Date: Friday, 26 June, 2009, 2:28 PM Very nice component. Where have you been when I had my math lectures? :) Do you have more? On Thu, Jun 25, 2009 at 10:19 PM, Shing Hing Man mat...@yahoo.com wrote: I have written a component to input a matrix. The following page has an example to input a square matrix. (The component can input a non-square matrix as well.) http://lombok.demon.co.uk/mathToolkit/algebra/linear/eigenvalue If you like, I can email you the component source files. Shing --- On Thu, 25/6/09, Gutemberg Albuquerque Da Silva sag@gmail.com wrote: From: Gutemberg Albuquerque Da Silva sag@gmail.com Subject: matriz To: Tapestry users users@tapestry.apache.org Date: Thursday, 25 June, 2009, 3:48 AM anybody knows some solution for working editable matriz? I need to catch cell of table. thanks. -- Gutemberg Albuquerque Da Silva - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: matriz
I have written a component to input a matrix. The following page has an example to input a square matrix. (The component can input a non-square matrix as well.) http://lombok.demon.co.uk/mathToolkit/algebra/linear/eigenvalue If you like, I can email you the component source files. Shing --- On Thu, 25/6/09, Gutemberg Albuquerque Da Silva sag@gmail.com wrote: From: Gutemberg Albuquerque Da Silva sag@gmail.com Subject: matriz To: Tapestry users users@tapestry.apache.org Date: Thursday, 25 June, 2009, 3:48 AM anybody knows some solution for working editable matriz? I need to catch cell of table. thanks. -- Gutemberg Albuquerque Da Silva - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry 4.1] how to get ServletContext inside a service
You might like to try the suggestion on the following page. http://lombok.demon.co.uk/tapestry4Demo/Inject.html Shing Home page : http://www.lombok.demon.co.uk/ --- On Thu, 28/5/09, Ivano Luberti lube...@archicoop.it wrote: From: Ivano Luberti lube...@archicoop.it Subject: Re: [Tapestry 4.1] how to get ServletContext inside a service To: Tapestry users users@tapestry.apache.org Date: Thursday, 28 May, 2009, 2:54 PM Thanks Norman, but I guess you use that inside a class that extends BasePage as I do. But here I have a concrete class that implements IEngineService. I use it to return a PDF on the response output stream. So either I cannot use an abstract class that extends BasePage and therefore I cannot use the inject/abstract method approach or I'm missing something in your answer. Norman Franke ha scritto: Here is how I do it: @InjectObject(service:tapestry.globals.HttpServletRequest) public abstract HttpServletRequest getRequest(); public ServletContext getServletContext() { return getRequest().getSession().getServletContext(); } Norman Franke Answering Service for Directors, Inc. www.myasd.com On May 27, 2009, at 11:49 AM, Ivano Luberti wrote: I have implemented a class that Implements IEngineService interface. I need to get the ServletContext to finally get the realPath. Anyone can tell me how to do that? I have searched for a while without success -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry 4.1] how to get ServletContext inside a service
Yes it is a typo. I meant HiveMind.xml (instead of .application). Shing --- On Thu, 28/5/09, Andreas Andreou andy...@di.uoa.gr wrote: From: Andreas Andreou andy...@di.uoa.gr Subject: Re: [Tapestry 4.1] how to get ServletContext inside a service To: Tapestry users users@tapestry.apache.org Date: Thursday, 28 May, 2009, 7:14 PM Perhaps it's a typo in that page, because if you try to add the suggested lines in the service definition inside hivemind.xml, you should see it working. On Thu, May 28, 2009 at 10:47 AM, Ivano Luberti lube...@archicoop.it wrote: Well, I have configured my service inside hivemind.xml I don't have an application file: the suggestion here says I have to use the application file. Is there an hivemind service I can use ? Shing Hing Man ha scritto: You might like to try the suggestion on the following page. http://lombok.demon.co.uk/tapestry4Demo/Inject.html Shing Home page : http://www.lombok.demon.co.uk/ --- On Thu, 28/5/09, Ivano Luberti lube...@archicoop.it wrote: From: Ivano Luberti lube...@archicoop.it Subject: Re: [Tapestry 4.1] how to get ServletContext inside a service To: Tapestry users users@tapestry.apache.org Date: Thursday, 28 May, 2009, 2:54 PM Thanks Norman, but I guess you use that inside a class that extends BasePage as I do. But here I have a concrete class that implements IEngineService. I use it to return a PDF on the response output stream. So either I cannot use an abstract class that extends BasePage and therefore I cannot use the inject/abstract method approach or I'm missing something in your answer. Norman Franke ha scritto: Here is how I do it: @InjectObject(service:tapestry.globals.HttpServletRequest) public abstract HttpServletRequest getRequest(); public ServletContext getServletContext() { return getRequest().getSession().getServletContext(); } Norman Franke Answering Service for Directors, Inc. www.myasd.com On May 27, 2009, at 11:49 AM, Ivano Luberti wrote: I have implemented a class that Implements IEngineService interface. I need to get the ServletContext to finally get the realPath. Anyone can tell me how to do that? I have searched for a while without success -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Checkboxes within a loop in a form
You might like to check out the example at http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Shing --- On Tue, 19/5/09, mark99 m...@vexeddigital.com wrote: From: mark99 m...@vexeddigital.com Subject: Checkboxes within a loop in a form To: users@tapestry.apache.org Date: Tuesday, 19 May, 2009, 1:11 AM Hi I've got a problem implementing a form which renders checkboxes within a loop, and then posts back the values of the checkboxes on form submission. In my form submission handler, I need to know which checkboxes the user checked. What I'm looking to do is something like this: Page: t:form t:loop source=choices value=choice t:checkbox t:value=choice/ /t:loop t:submit/ /t:form Class: void onSubmit() { for(boolean b : choices) System.out.println(b); } Where 'choices' is a List of booleans. If I put @Persist on 'choices', the list is still null on postback, which I expected. If I re-initialize the list on postback that doesn't help either as I've lost the results from the form. So what is the solution for doing this type of thing? Thanks, Mark -- View this message in context: http://www.nabble.com/Checkboxes-within-a-loop-in-a-form-tp23601662p23601662.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry 5.1]Loop with checkboxes
Have you added the following to AppModule.java ? public static void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) { // Creates a virtual root pacakge for pages,components. configuration.add(new LibraryMapping(man, net.sf.lombok)); } Shing --- On Wed, 13/5/09, b...@umd bben...@umd.edu wrote: From: b...@umd bben...@umd.edu Subject: [Tapestry 5.1]Loop with checkboxes To: users@tapestry.apache.org Date: Wednesday, 13 May, 2009, 11:45 PM Hi, I am new in Tapestry and I am currently developing a webapp which aims at launching virtual machine. I created a form in my .tml file with basic inputs (TextArea, Checkbox, etc). Now I would like to create some Checkboxes with a list of words from my .java file, and then to be able to retrieve separatly their states. I found this http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo which is exactly what I want to do. However, in this following part, it uses a mixin ControlledCheckbox and then controller : # tr t:type=loop source=colors value=color # td # t:checkbox t:mixins=man/ControlledCheckbox # controller=colorController # value=selected/ # ${color} # /td # /tr # tr # th # !-- ControlCB can be placed before or after the controlledCheckboxes -- # t:man.controlcb t:id=colorController value=prop:selectAll / # Select all colours # /th # /tr I have downloaded the .jar which contains the ControlledCheckbox.class from this http://code.google.com/p/tapestry5examples/ url , added it as an external jar in the Referenced Libraries of my Eclipse Project but I didn't manage to use it. The error returned was Unable to resolve 'ControlledCheckbox' to a mixin class name. So how can I make this class (which is present in my .jar file) a mixin class ? (I have already try to put this class in a .mixin package but it didn't work) Then how does the controller parameter work ? Thanks. -- View this message in context: http://www.nabble.com/-Tapestry-5.1-Loop-with-checkboxes-tp23524450p23524450.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA
I have created a JIRA for it. https://issues.apache.org/jira/browse/TAP5-693 I have also documented it in the wiki. http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss5 Shing --- On Mon, 11/5/09, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: From: Thiago H. de Paula Figueiredo thiag...@gmail.com Subject: Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA To: Tapestry users users@tapestry.apache.org Date: Monday, 11 May, 2009, 7:19 AM Em Sat, 09 May 2009 11:03:39 -0300, Shing Hing Man mat...@yahoo.com escreveu: Thanks for the reply! I have discovered that the following closed jira provided an implementation of ClasspathURLConverter to solve the problem. https://issues.apache.org/jira/browse/TAP5-576 It might be a good idea to mention the above jira on http://tapestry.apache.org/tapestry5.1/jboss.html Otherwise newcomers to Tapestry might be put off when they discover Tapestry 5 does not work out of the box on JBoss 5. You're absolutely right. Could you post a JIRA about it? --Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA
Thanks for the reply! I have discovered that the following closed jira provided an implementation of ClasspathURLConverter to solve the problem. https://issues.apache.org/jira/browse/TAP5-576 It might be a good idea to mention the above jira on http://tapestry.apache.org/tapestry5.1/jboss.html Otherwise newcomers to Tapestry might be put off when they discover Tapestry 5 does not work out of the box on JBoss 5. Shing --- On Sat, 9/5/09, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: From: Thiago H. de Paula Figueiredo thiag...@gmail.com Subject: Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA To: Tapestry users users@tapestry.apache.org Date: Saturday, 9 May, 2009, 5:49 AM Em Fri, 08 May 2009 18:33:28 -0300, Shing Hing Man mat...@yahoo.com escreveu: After some debugging, I am not convinced that ClassNameLocatorImpl.scanURL(String, CollectionString, URL) line: 117 caters for URL like org.jboss.virtual.plugins.vfs.VirtualFileURLConnection:vfszip:/home/matmsh/installed/jbosses/jboss-5.0.1.GA/server/default/deploy/testApp.war/WEB-INF/lib/ tapestry-core-5.1.0.5.jar/org/apache/tapestry5/corelib/pages I guess this is related to another recent discussion in this mailing list (http://www.nabble.com/-T5.1--How-do-you-advise-ClassNameLocator--to23396992s302.html). Short answer: Tapestry does not handle these vfszip URLs. You can, however, override the ClasspathURLConverter service to map these URLs to normal (not JBOss speficic like file: and jar:) ones. --Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA
Thanks for the reply! I have tried your suggestion, but I still have the same error. After some debugging, I am not convinced that ClassNameLocatorImpl.scanURL(String, CollectionString, URL) line: 117 caters for URL like org.jboss.virtual.plugins.vfs.VirtualFileURLConnection:vfszip:/home/matmsh/installed/jbosses/jboss-5.0.1.GA/server/default/deploy/testApp.war/WEB-INF/lib/tapestry-core-5.1.0.5.jar/org/apache/tapestry5/corelib/pages Shing --- On Fri, 8/5/09, Eric Ma eric...@db.com wrote: From: Eric Ma eric...@db.com Subject: Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA To: users@tapestry.apache.org Date: Friday, 8 May, 2009, 5:37 AM Shing Hing Man wrote: When I deploy a simple Tap 5.1.0.4 application on JBoss 5.0.1.GA and access the index page, I get the following error. java.lang.IllegalArgumentException: Unable to resolve 'ExceptionReport' to a known page name. Available page names: (blank), About, Contact, Index. I wonder if someone else has encountered the same problem and has a solution for it. Thanks in advance for any assistance! Shing I ran into the same problem when I used T5.0.18, JBoss 5.0.1.GA, and JDK1.6.0 (both compile and runtime). If I compile with Java 1.5 compliance and run under JDK1.6.0, the problem goes away. With T5.1.0.3, I had an issue with nbsp; in my .tml. Will try to spend sometime to resolve it. -- View this message in context: http://www.nabble.com/Problem-running-Tap-5.1.0.4-on-Jboss-5.0.1.GA-tp23368295p23435800.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA
When I deploy a simple Tap 5.1.0.4 application on JBoss 5.0.1.GA and access the index page, I get the following error. java.lang.IllegalArgumentException: Unable to resolve 'ExceptionReport' to a known page name. Available page names: (blank), About, Contact, Index. org.apache.tapestry5.internal.services.ComponentClassResolverImpl$9.invoke(ComponentClassResolverImpl.java:550) org.apache.tapestry5.internal.services.ComponentClassResolverImpl$9.invoke(ComponentClassResolverImpl.java:546) org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) org.apache.tapestry5.internal.services.ComponentClassResolverImpl.canonicalizePageName(ComponentClassResolverImpl.java:544) $ComponentClassResolver_1210bc89f66.canonicalizePageName($ComponentClassResolver_1210bc89f66.java) org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:45) $RequestPageCache_1210bc89f98.get($RequestPageCache_1210bc89f98.java) $RequestPageCache_1210bc89f91.get($RequestPageCache_1210bc89f91.java) org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:69) $RequestExceptionHandler_1210bc89f7b.handleRequestException($RequestExceptionHandler_1210bc89f7b.java) org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) $RequestHandler_1210bc89f7e.service($RequestHandler_1210bc89f7e.java) org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:783) $RequestHandler_1210bc89f7e.service($RequestHandler_1210bc89f7e.java) org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:772) $RequestHandler_1210bc89f7e.service($RequestHandler_1210bc89f7e.java) org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) $RequestHandler_1210bc89f7e.service($RequestHandler_1210bc89f7e.java) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81) org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) $RequestHandler_1210bc89f7e.service($RequestHandler_1210bc89f7e.java) $RequestHandler_1210bc89f73.service($RequestHandler_1210bc89f73.java) org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:202) org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) $HttpServletRequestHandler_1210bc89f75.service($HttpServletRequestHandler_1210bc89f75.java) org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) $HttpServletRequestFilter_1210bc89f72.service($HttpServletRequestFilter_1210bc89f72.java) $HttpServletRequestHandler_1210bc89f75.service($HttpServletRequestHandler_1210bc89f75.java) org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:731) $HttpServletRequestHandler_1210bc89f75.service($HttpServletRequestHandler_1210bc89f75.java) $HttpServletRequestHandler_1210bc89f70.service($HttpServletRequestHandler_1210bc89f70.java) org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) When I check the log (please see below) , the tapestry components (like pagelink) are not loaded. 14:20:44,766 INFO [TomcatDeployment] deploy, ctxPath=/testApp 14:20:45,052 INFO [STDOUT] [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule 14:20:45,310 INFO [STDOUT] [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.TapestryModule 14:20:45,522 INFO [STDOUT] [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.internal.services.InternalModule 14:20:45,658 INFO [STDOUT] [INFO] ioc.RegistryBuilder Adding module definition for class org.example.services.AppModule 14:20:47,687 INFO [STDOUT] [INFO] TapestryModule.ComponentClassResolver Available pages: (blank): org.example.pages.Index About: org.example.pages.About Contact: org.example.pages.Contact Index: org.example.pages.Index 14:20:47,687 INFO [STDOUT] [INFO] TapestryModule.ComponentClassResolver Available components: Layout: org.example.components.Layout 14:20:47,736 INFO [STDOUT] [INFO] tapestry5.TapestryFilter Startup status: Application 'app' (Tapestry version 5.1.0.4). Startup time: 536 ms to build IoC Registry, 2,559 ms overall. Startup services
Re: tutorial fails with maven
Have you look at http://tapestry.apache.org/tapestry5.1/quickstart/ ? The following works for me and I am using maven 2.1.0. mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository Note that when you run the above command, you will be prompted for archetypeGroupId, etc. Shing --- On Mon, 13/4/09, Jason Viloria jnv...@gmail.com wrote: From: Jason Viloria jnv...@gmail.com Subject: tutorial fails with maven To: users@tapestry.apache.org Date: Monday, 13 April, 2009, 2:04 AM Hi, I am very new to maven, not to linux, or java web dev however. I am trying to follow the tutorial at: http://tapestry.apache.org/tapestry5/tutorial1/first.html and on running: mvn -e archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial I get an error of which I believe the most relevant is the following: (But please kindly let me know if the full mvn output is required and I shall add) Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating from archetype at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) I am using: Ubuntu 8.04.2 Maven version: 2.0.8 [I have also tried 2.1.0] java version 1.6.0_13 [This is the one from java.sun.com] Apache Ant version 1.7.0 Can you please help me. I've been reading the Tapestry 5 Book and also really got interested on tapestry on what I have read about it so far. regards Jason - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Fw: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot
--- On Sun, 29/3/09, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Howard Lewis Ship hls...@gmail.com Date: Sunday, 29 March, 2009, 12:00 AM Earlier, I have not given the full picture. In fact the text component is inside two nested Loop components. tr t:type=loop source=rowLoop value=currentRow index=rowIndex td t:type=loop source=currentRow value=inputValue index=columnIndex INPUT t:id=MatrixEntry type=text value=inputValue/ /td /tr The type of the source parameter for the outer and inner Loop are Double[][], Double[] respectively. public Double[][] getRowLoop(){ return matrix.getEntries(); } public Double[] getCurrentRow(){ Double[] row=matrix.getRow(rowIndex); return row; } Somehow, in 5.1.0.2 Snapshot, the source parameter in component Loop can not handle Double[][] or Double[] anymore. I have a similar Type Coercion error when I set the Loop source parameter to an ArrayList. Shing --- On Sat, 28/3/09, Howard Lewis Ship hls...@gmail.com wrote: From: Howard Lewis Ship hls...@gmail.com Subject: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Tapestry users users@tapestry.apache.org, mat...@yahoo.com Date: Saturday, 28 March, 2009, 11:43 PM The error reporting could be better, but the coersion there indicates a Double[], not a double. On Sat, Mar 28, 2009 at 6:57 AM, Shing Hing Man mat...@yahoo.com wrote: I have a TextField component to input a Double. �...@component(id = MatrixEntry, parameters ={ validate=prop:fieldValidator}) private TextField entry; INPUT t:id=MatrixEntry t:type=text t:value=inputValue/ It works fine in 5.0.18. But in 5.1.0.2 snapshot, I get the following error when I submit the form containing the above TextField component. Could not find a coercion from type java.lang.String to type [Ljava.lang.Double;. Available coercions: Double -- Float, Float -- Double, Long -- Boolean, Long -- Byte, Long -- Double, Long -- Integer, Long -- Short, Number -- Long, Object -- Object[], Object -- String, Object -- java.util.List, Object[] -- java.util.List, String -- Boolean, String -- Double, String -- Long # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.findOrCreateCoercion(TypeCoercerImpl.java:244) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.access$000(TypeCoercerImpl.java:29) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.getCoercion(TypeCoercerImpl.java:88) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.coerce(TypeCoercerImpl.java:61) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.coerce(TypeCoercerImpl.java:133) # $TypeCoercer_1204d5395c9.coerce($TypeCoercer_1204d5395c9.java) # org.apache.tapestry5.internal.services.TypeCoercedValueEncoderFactory$1.toValue(TypeCoercedValueEncoderFactory.java:45) # org.apache.tapestry5.corelib.components.Loop.restoreStateFromStoredClientValue(Loop.java:423) # org.apache.tapestry5.corelib.components.Loop.access$500(Loop.java:41) # org.apache.tapestry5.corelib.components.Loop$RestoreStateFromStoredClientValue.execute(Loop.java:162) # org.apache.tapestry5.corelib.components.Loop$RestoreStateFromStoredClientValue.execute(Loop.java:151) # org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:477) # org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:375) # org.apache.tapestry5.corelib.components.Form$onAction$invocation_1204d53cecf.invokeAdvisedMethod(Form$onAction$invocation_1204d53cecf.java) # org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(A Any assistance to resolve the problem would be very much appreciated! Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Fw: Re: Fw: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot
--- On Sun, 29/3/09, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: Fw: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Howard Lewis Ship hls...@gmail.com Date: Sunday, 29 March, 2009, 4:18 AM I have created an JIRA with an attached Eclipse project that produces the error. https://issues.apache.org/jira/browse/TAP5-609 Thanks! Shing --- On Sun, 29/3/09, Howard Lewis Ship hls...@gmail.com wrote: From: Howard Lewis Ship hls...@gmail.com Subject: Re: Fw: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Tapestry users users@tapestry.apache.org, mat...@yahoo.com Date: Sunday, 29 March, 2009, 1:21 AM This is probably related to the conversion from PrimaryKeyEncoder to ValueEncoder, perhaps. Odd. On Sat, Mar 28, 2009 at 9:01 AM, Shing Hing Man mat...@yahoo.com wrote: --- On Sun, 29/3/09, Shing Hing Man mat...@yahoo.com wrote: From: Shing Hing Man mat...@yahoo.com Subject: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Howard Lewis Ship hls...@gmail.com Date: Sunday, 29 March, 2009, 12:00 AM Earlier, I have not given the full picture. In fact the text component is inside two nested Loop components. tr t:type=loop source=rowLoop value=currentRow index=rowIndex td t:type=loop source=currentRow value=inputValue index=columnIndex INPUT t:id=MatrixEntry type=text value=inputValue/ /td /tr The type of the source parameter for the outer and inner Loop are Double[][], Double[] respectively. public Double[][] getRowLoop(){ return matrix.getEntries(); } public Double[] getCurrentRow(){ Double[] row=matrix.getRow(rowIndex); return row; } Somehow, in 5.1.0.2 Snapshot, the source parameter in component Loop can not handle Double[][] or Double[] anymore. I have a similar Type Coercion error when I set the Loop source parameter to an ArrayList. Shing --- On Sat, 28/3/09, Howard Lewis Ship hls...@gmail.com wrote: From: Howard Lewis Ship hls...@gmail.com Subject: Re: String to Double Type Coercion problem in 5.1.0.2 snapshot To: Tapestry users users@tapestry.apache.org, mat...@yahoo.com Date: Saturday, 28 March, 2009, 11:43 PM The error reporting could be better, but the coersion there indicates a Double[], not a double. On Sat, Mar 28, 2009 at 6:57 AM, Shing Hing Man mat...@yahoo.com wrote: I have a TextField component to input a Double. �...@component(id = MatrixEntry, parameters ={ validate=prop:fieldValidator}) private TextField entry; INPUT t:id=MatrixEntry t:type=text t:value=inputValue/ It works fine in 5.0.18. But in 5.1.0.2 snapshot, I get the following error when I submit the form containing the above TextField component. Could not find a coercion from type java.lang.String to type [Ljava.lang.Double;. Available coercions: Double -- Float, Float -- Double, Long -- Boolean, Long -- Byte, Long -- Double, Long -- Integer, Long -- Short, Number -- Long, Object -- Object[], Object -- String, Object -- java.util.List, Object[] -- java.util.List, String -- Boolean, String -- Double, String -- Long # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.findOrCreateCoercion(TypeCoercerImpl.java:244) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.access$000(TypeCoercerImpl.java:29) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.getCoercion(TypeCoercerImpl.java:88) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.coerce(TypeCoercerImpl.java:61) # org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl.coerce(TypeCoercerImpl.java:133) # $TypeCoercer_1204d5395c9.coerce($TypeCoercer_1204d5395c9.java) # org.apache.tapestry5.internal.services.TypeCoercedValueEncoderFactory$1.toValue(TypeCoercedValueEncoderFactory.java:45) # org.apache.tapestry5.corelib.components.Loop.restoreStateFromStoredClientValue(Loop.java:423) # org.apache.tapestry5.corelib.components.Loop.access$500(Loop.java:41) # org.apache.tapestry5.corelib.components.Loop$RestoreStateFromStoredClientValue.execute(Loop.java:162) # org.apache.tapestry5.corelib.components.Loop$RestoreStateFromStoredClientValue.execute(Loop.java:151
Re: About RadioButton and CheckBox...
There are examples on RadioButton and Checkbox in the Tapestry 5 source code repository. I have an example on them at http://lombok.demon.co.uk/tapestry5Demo/ Shing Home page : http://www.lombok.demon.co.uk/ --- On Tue, 6/1/09, Gutemberg A. Da Silva sag@gmail.com wrote: From: Gutemberg A. Da Silva sag@gmail.com Subject: About RadioButton and CheckBox... To: Tapestry users users@tapestry.apache.org Date: Tuesday, 6 January, 2009, 2:25 AM Hello guys, I'd like to know how to use RadioButton and CheckBox. What do I need to have in Java Class and file .tml? I thank for attetion, guys. -- Gutemberg A. Da Silva - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: generate input fileds dynamically
Have you check out the FormInjector component. There is an example in the Tapestry 5 source code repository that does something similar to what you are asking. Shing Home page : http://www.lombok.demon.co.uk/ --- On Tue, 6/1/09, tapestry5 bishtamr...@gmail.com wrote: From: tapestry5 bishtamr...@gmail.com Subject: generate input fileds dynamically To: users@tapestry.apache.org Date: Tuesday, 6 January, 2009, 3:41 AM I am using Tapestry 5.0.18 stable version. I have a requirement where i need list of key value pair. In page there is a button Add New On click of Add New two input fields should be shown which is key value. There can be n number of key value pair. I am not sure how to achieve this feature in T5. -- View this message in context: http://www.nabble.com/generate-input-fileds-dynamically-tp21297787p21297787.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Loop object question.
Instead of having a loop within a loop, just have a loop and output tr and td manually. In .tml, table border=0 t:loop source=dataList value=colValue index=myIndex t:if test=startRow t:outputraw value=startTR/ /t:if td ${value} /td t:if test=endRow t:outputraw value=endTR/ /t:if /t:loop /table In page java : public boolean isStartRow(){ return (myIndex%4 ==0); } public boolean isEndRow(){ return (myIndex%4 ==3); } public String getStartTR(){ return tr; } public String getEndTR(){ return /tr; } Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 21/12/08, Tan cyb...@n quesoft.cyber...@gmail.com wrote: From: Tan cyb...@n quesoft.cyber...@gmail.com Subject: Loop object question. To: Tapestry users users@tapestry.apache.org Cc: Tan cyb...@n quesoft.cyber...@gmail.com Date: Sunday, 21 December, 2008, 12:21 PM hi all, i'm newbie on java and tapestry ,i have problem on my loop 's data example t:loop source=prop:Datalist value=prop:colvalue tr t:loop source=*(i wan to get the array of colvalue here )* value=prop:value td ${value} /td /t:loop /tr /t:loop my Datalist is an ArrayListString[] , my colvalue is String. my data inside the datalist example like below: ( total 4 lines of records) [valueLine1-col1 ,valueLine1-col2, valueLine1-col3, valueLine1-col4] [valueLine2-col1 ,valueLine2-col2, valueLine2-col3, valueLine2-col4] [valueLine3-col1 ,valueLine3-col2, valueLine3-col3, valueLine3-col4] [valueLine4-col1 ,valueLine4-col2, valueLine4-col3, valueLine4-col4] so that , my table can generate 4 tr and list out 4 td of the value in each row. may i know how to make it work? Thank you Regards, Tan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Loop dynamic input field: How to read data after submission?
Have you checkout the replies of the following post ? http://www.nabble.com/-T5--How-to-handle-a-variable-number-of-input-fields-in-a-form-to21038549.html Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 21/12/08, superoverdr...@gmx.de superoverdr...@gmx.de wrote: From: superoverdr...@gmx.de superoverdr...@gmx.de Subject: Loop dynamic input field: How to read data after submission? To: Tapestry users users@tapestry.apache.org Date: Sunday, 21 December, 2008, 6:13 AM On: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html there is an example how to render dynamic input fields using a Loop component. But how do you process the data after form submission? How can you get a list of all objects back? Thanks! Toby - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.0.18 : OnActivate method no longer get called from PageLink.
I have a pageLink component in update.tml a href=# t:type=pagelink page=updateFile context=contextParamsUpdate/a and contextParams is an int [2]. In Tap 5.0.15, when I click the above page link in update.tml, the following onActivate method in UpdateFile.java is called as expected. public Object onActivate(int folderId, int fileId) { log.info(On Activate : folderId= + folderId + , fileId= + fileId); return initialises(folderId, fileId); } After I upgrade to 5.0.18, the method UpdateFile.onActive(int, int) is no longer called. Has anyone experienced the same problem after upgrade to 5.0.18 ? Shing - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] How to handle a variable number of input fields in a form
You might like to take a look at the following example on allowing users to input up to 5 numbers. http://lombok.demon.co.uk/tapestry5Demo/test/sum The source code is available on the same page. Shing --- On Wed, 17/12/08, Eric Ma eric...@db.com wrote: From: Eric Ma eric...@db.com Subject: [T5] How to handle a variable number of input fields in a form To: users@tapestry.apache.org Date: Wednesday, 17 December, 2008, 2:12 AM Forgive me if this question has been asked a million and one times. Coming from a Struts background, one of the feature I find useful over there is the easiness for handling a non-fixed number of form fields that are rendered through a loop, using the indexed properties approach. What is the equivalent approach in T5? I think I know how to render an array of textboxes using t:loop in the .tml. But how do I declare a List or an array in the .java class? Is T5 smart enough to populate the list/array upon form post from the textboxes, and set textbox values from the array/List on a page render request? Can someone give me a pointer to some sample code? Thanks, -- View this message in context: http://www.nabble.com/-T5--How-to-handle-a-variable-number-of-input-fields-in-a-form-tp21038549p21038549.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.0.17: Take a long time to create a strategy service in debug mode
I have a strategy service ComputeWorker. In the normal run mode, the start page loads up in a few seconds. But in debug mode, the start page takes more than two miniutes to load. From the console, it looks as though it spent a long time to create the strategy service computeWorker (in debug mode). [INFO] mortbay.log Started [EMAIL PROTECTED]:8080 [DEBUG] ComputeWorkers.ComputeWorker Creating service 'ComputeWorker'. [INFO] AppModule.TimingFilter Request time: 127079 ms I am using Eclipse 3.4 and get the same long start up time in debug mode when using WTP and Jetty. Has anyone come across the above ? It would be very much appreciated if someone could help me to resolve this issue. shing Home page : http://www.lombok.demon.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap 5.0.16 : How to pass in a validator to an embedded TextField componet.
I have found a workaround from the following post in the archive. http://www.nabble.com/How-to-inherit-or-have-a-dynamic-validate-to18127873.html#a18139604 Instead of passing something like required,min=0 as a FieldValidator to my component, I need to pass it as a String and create the corresponding FieldValidator in my component java class. FieldValidatorDefaultSourceImpl.createDefaultValidator has the code to create a Validator. It would be so much easier and logical to pass in required,min=0 as a FieldValidator from a Page class to the component, without the component having to implement the Field interface. Shing --- On Sun, 23/11/08, Shing Hing Man [EMAIL PROTECTED] wrote: From: Shing Hing Man [EMAIL PROTECTED] Subject: Tap 5.0.16 : How to pass in a validator to an embedded TextField componet. To: tapestry Tapestry [EMAIL PROTECTED] Date: Sunday, 23 November, 2008, 9:37 PM I have created a component, SingleInputRowTable, which is just a loop over a TextField component for inputting a list of numbers. The validation on the input numbers varies from case to case. So, I would like to pass in a validator to SingleInputRowTable for the embedded TextField component. When I added parameter @Parameter(defaultPrefix = BindingConstants.VALIDATE,required=false) private FieldValidatorObject validate; to SingleInputRowTable.java and specified the embedded TextField.valdate to inherit from above, the following exception occurred. Could not convert 'required,min=0' into a component parameter binding: Component 'credit/CDSSpread:singleinputrowtable' is not a field (it does not implement the Field interface) and may not be used with the validate: binding prefix. The SingleInputTableRow.java does not implement the interface Field. Is there an easy way to pass in a validator to SingleInputRowTable (or do away with hardcoding the validate parameter of the embedded TextField)? Thanks in advance for any assistance ! Shing Home page : http://www.lombok.demon.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get instance of page
Have you tried ComponentSource ? @Inject private ComponentSource compSource; MyPage comp = (MyPage) compSource.getPage(pageName); Shing Home page : http://www.lombok.demon.co.uk/ --- On Tue, 25/11/08, Henrik Schlanbusch [EMAIL PROTECTED] wrote: From: Henrik Schlanbusch [EMAIL PROTECTED] Subject: Get instance of page To: users@tapestry.apache.org Date: Tuesday, 25 November, 2008, 5:43 AM Hi In tapestry 4 it was possible to get an instance of a page by using the cycle.getPage(somePageName); Then it was possible to set properties on the page before activating it. I would like to do something like this in T5, it seems that the only way to get an instance of a page is by getting it from an injected property (InjectPage). Is it possible in T5 to get hold of page instances without using injected properties, but through string identifiers like in T4? Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap 5.0.16 : How to pass in a validator to an embedded TextField componet.
I have created a component, SingleInputRowTable, which is just a loop over a TextField component for inputting a list of numbers. The validation on the input numbers varies from case to case. So, I would like to pass in a validator to SingleInputRowTable for the embedded TextField component. When I added parameter @Parameter(defaultPrefix = BindingConstants.VALIDATE,required=false) private FieldValidatorObject validate; to SingleInputRowTable.java and specified the embedded TextField.valdate to inherit from above, the following exception occurred. Could not convert 'required,min=0' into a component parameter binding: Component 'credit/CDSSpread:singleinputrowtable' is not a field (it does not implement the Field interface) and may not be used with the validate: binding prefix. The SingleInputTableRow.java does not implement the interface Field. Is there an easy way to pass in a validator to SingleInputRowTable (or do away with hardcoding the validate parameter of the embedded TextField)? Thanks in advance for any assistance ! Shing Home page : http://www.lombok.demon.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5]I want find a component like t4's Insert with attribute raw=true in T5!?
Have you tried OutputRaw component ? http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html Shing --- On Thu, 13/11/08, oliverlee000 [EMAIL PROTECTED] wrote: From: oliverlee000 [EMAIL PROTECTED] Subject: [T5]I want find a component like t4's Insert with attribute raw=true in T5!? To: Tapestry users users@tapestry.apache.org Date: Thursday, 13 November, 2008, 9:43 PM hi,every one! i want export HTML tags to client,how to achieve in T5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: t5: DAO and hibernate integration
I have an example for Tap 5.0.13 and Tapetsry-Hibernate-5.0.13. An online demo and source code are at http://lombok.demon.co.uk/folderTap5/ Shing --- On Sun, 24/8/08, Raul Rosenzvaig [EMAIL PROTECTED] wrote: From: Raul Rosenzvaig [EMAIL PROTECTED] Subject: t5: DAO and hibernate integration To: users@tapestry.apache.org Date: Sunday, 24 August, 2008, 4:25 AM Does anyone have a working example of Hibernate in DAO service ? Much appreciate Raul Rosenzvaig - Raul Rosenzvaig www.limonn.com -- View this message in context: http://www.nabble.com/t5%3A-DAO-and-hibernate-integration-tp19124880p19124880.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: pagelink
Have you tried @secure annotation ? http://tapestry.apache.org/tapestry5/tapestry-core/guide/secure.html Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 3/8/08, Argo Vilberg [EMAIL PROTECTED] wrote: From: Argo Vilberg [EMAIL PROTECTED] Subject: T5: pagelink To: Tapestry users users@tapestry.apache.org Date: Sunday, 3 August, 2008, 2:03 PM hi, I want use pagelink with port 8443 and https protocol. If i use: t:pagelink page=Start context=currentRole.roleId ${currentRole.roleName} /t:pagelink then tapestry generate http://localhost/app/start/4 But i want https://localhost:8443/app/start4 Argo __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: t5 how to write response to file
Have you checked out the following jira ? https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel --- On Sun, 3/8/08, luna_guo [EMAIL PROTECTED] wrote: From: luna_guo [EMAIL PROTECTED] Subject: Re: t5 how to write response to file To: users@tapestry.apache.org Date: Sunday, 3 August, 2008, 8:25 AM Write response to a html file. So that I can request the html instead of a tapsestry page. Toby Hobson wrote: Sorry ... i don't fully understand your question. Could you explain a little more Thanks Toby -- View this message in context: http://www.nabble.com/t5-how-to-write-response-to-file-tp18785645p18794794.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] getting current page in layout component
Have you tried the adding the following to your layout component java class ? @InjectContainer private BasePage conatinerPage; (assuming all your pages java class are a subclass of BasePage.) Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 27/7/08, Markus Joschko [EMAIL PROTECTED] wrote: From: Markus Joschko [EMAIL PROTECTED] Subject: [T5] getting current page in layout component To: Tapestry users users@tapestry.apache.org Date: Sunday, 27 July, 2008, 1:54 AM Hi all, is there a way to get the page that is rendered by the layout component from within the layout component? I have a menu in my layout component where I want to highlight the item that corresponds to the current page. I know that I can pass a parameter to the layout component but I'm somehow lazy and want to avoid to include this for every page, as the information must already be stored somewhere. Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4: how to access the web session from a page ?
Have you tried injecting HttpServletRequest into your page, then use HttpServeltRequest.getSession() ? @InjectObject(service:tapestry.globals.HttpServletRequest) public abstract HttpServletRequest getServletRequest(); Shing --- On Wed, 23/7/08, leonelag [EMAIL PROTECTED] wrote: From: leonelag [EMAIL PROTECTED] Subject: T4: how to access the web session from a page ? To: users@tapestry.apache.org Date: Wednesday, 23 July, 2008, 3:02 AM Hi. How can I access the web session (class javax.servlet.http.HttpSession) from a Tapestry4.0 page ? I want this page to place a parameter in the session, which will be used by another servlet in my app. Thanks, Leonel -- View this message in context: http://n2.nabble.com/T4%3A-how-to-access-the-web-session-from-a-page---tp577157p577157.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] How to use enums in .tml files
Unless someone has written a binding prefix for enums, you might need to to implement one. Please see http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix Shing Home page : http://www.lombok.demon.co.uk/ --- On Tue, 24/6/08, 9902468 [EMAIL PROTECTED] wrote: From: 9902468 [EMAIL PROTECTED] Subject: [T5] How to use enums in .tml files To: users@tapestry.apache.org Date: Tuesday, 24 June, 2008, 8:54 PM Hi, There must be a way to use enum in actionlink context. How to do this? I mean like: t:actionlink t:id=somelink context=Enum.SOME_CONSTANTDo not push./t:actionlink - 99 -- View this message in context: http://www.nabble.com/-T5--How-to-use-enums-in-.tml-files-tp18090334p18090334.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BeanEditForm Component
BeanEditForm is just a BeanEditor component with a submit button. Please see BeanEditForm.tml in the Tapestry 5 source core. If you need to add your own buttons, one way is to use BeanEdit component. Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 15/6/08, tengxh [EMAIL PROTECTED] wrote: From: tengxh [EMAIL PROTECTED] Subject: BeanEditForm Component To: Tapestry users users@tapestry.apache.org Date: Sunday, 15 June, 2008, 4:02 PM The beanEditForm component has only a default button (Create/Update),how to add other buttons? __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap 5.0.12 snapshot: How to access the application wide message catalog in a contribution
I have given up on the idea of accessing the application wide message catalog. Instead, I will store key/value pairs in the Application default symbol source and access the key/value pairs via the ApplicationDefaults SymbolProvider. public static void contributeComputeWorker( MappedConfigurationClass, IComputeWorker configuration, @InjectService(MaximaScriptExecuter) IScriptExecuter maximaScriptExecuter, @InjectService(ApplicationDefaults) SymbolProvider symbolProvider) Shing Home page : http://www.lombok.demon.co.uk/ --- On Mon, 2/6/08, Shing Hing Man [EMAIL PROTECTED] wrote: From: Shing Hing Man [EMAIL PROTECTED] Subject: Tap 5.0.12 snapshot: How to access the application wide message catalog in a contribution To: tapestry Tapestry [EMAIL PROTECTED] Date: Monday, 2 June, 2008, 2:16 AM Hi, In a contribution to a StrategyBuilder configuration, I would like to access the application wide messaga catalog. public static IComputeWorker buildComputeWorker( MapClass, IComputeWorker configuration, @InjectService(StrategyBuilder) StrategyBuilder builder) { StrategyRegistryIComputeWorker registry = StrategyRegistry .newInstance(IComputeWorker.class, configuration); return builder.build(registry); } public static void contributeComputeWorker( MappedConfigurationClass, IComputeWorker configuration, @InjectService(MaximaScriptExecuter) IScriptExecuter maximaScriptExecuter, Messages applWideCatalog) { configuration.add(CrtBean.class, new CrtCW()); DerivativeCW derivativeCW = new DerivativeCW(); // Like to do : derivativeCW.setProperty(a value from applWideCatalog) derivativeCW.setExecuter(maximaScriptExecuter); configuration.add(DerivativeBean.class, derivativeCW); Tex2ImCW tex2imWorker = new Tex2ImCW(); configuration.add(Latex2GifBean.class, tex2imWorker); } How to make the application wide catalog available in the above method contributeComputeWorker? Thanks in advance for any assistance! Shing Home page : http://www.lombok.demon.co.uk/ __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap 5.0.12 snapshot: How to access the application wide message catalog in a contribution
Hi, In a contribution to a StrategyBuilder configuration, I would like to access the application wide messaga catalog. public static IComputeWorker buildComputeWorker( MapClass, IComputeWorker configuration, @InjectService(StrategyBuilder) StrategyBuilder builder) { StrategyRegistryIComputeWorker registry = StrategyRegistry .newInstance(IComputeWorker.class, configuration); return builder.build(registry); } public static void contributeComputeWorker( MappedConfigurationClass, IComputeWorker configuration, @InjectService(MaximaScriptExecuter) IScriptExecuter maximaScriptExecuter, Messages applWideCatalog) { configuration.add(CrtBean.class, new CrtCW()); DerivativeCW derivativeCW = new DerivativeCW(); // Like to do : derivativeCW.setProperty(a value from applWideCatalog) derivativeCW.setExecuter(maximaScriptExecuter); configuration.add(DerivativeBean.class, derivativeCW); Tex2ImCW tex2imWorker = new Tex2ImCW(); configuration.add(Latex2GifBean.class, tex2imWorker); } How to make the application wide catalog available in the above method contributeComputeWorker? Thanks in advance for any assistance! Shing Home page : http://www.lombok.demon.co.uk/ __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Can't find TapestryConstants after snapshot update
The TapestryConstants class have been replaced by BindingConstants, CSSClassConstants,... Please see http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html Shing --- Franz Amador-2 [EMAIL PROTECTED] wrote: I just updated to the latest shapshot jars (and updated my import statements to the new org.apache.tapestry5 package names), and now I can't find the TapestryConstants class. My pom.xml looks like this properties tapestry-release-version5.0.12-SNAPSHOT/tapestry-release-version ... /properties dependencies !-- Tapestry dependencies -- dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-test/artifactId version${tapestry-release-version}/version scopetest/scope /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-upload/artifactId version${tapestry-release-version}/version /dependency ... -- View this message in context: http://www.nabble.com/T5%3A-Can%27t-find-TapestryConstants-after-snapshot-update-tp17498133p17498133.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Home page : http://www.lombok.demon.co.uk/ __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap 5.0.11 : How to access mixin of a given component
I am trying to use mixins to turn the standard checkbox components into a checkbox group. t:checkbox t:id=colorController value=selectedAll t:mixins=ControlCheckbox / t:checkbox t:id=red value=red t:mixins=ControlledCheckbox controller=Component:colorController/ t:checkbox t:id=blue value=blue t:mixins=ControlledCheckbox controller=Component:colorController/ controller is a parameter of mixin ControlledCheckbox. In ControlledCheckbox.java, I am trying to register the red and blue checkboxes with the mixin ControlCheckbox. In ControlCheckbox.java, I have access to the colorController checkbox. How to get access to the mixin ControllCheckbox.java from the colorController checkbox? If I forsake the mixin ControlCheckbox and write a custom checkbox controller, then I will not have the above problem. Thanks in advance for any assistance! Shing Home page : http://www.lombok.demon.co.uk/ __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap 5.0.11 : How to get page instance from page
Usually, I could use the following to inject a page into another page @InjectPage private DetailsPage details; How to retrieve an instance of a page if I am given the logical name of a page as a String variable ? In Tap 4, I would use RequestCycle.getPage(pageName). Thanks in advance for any asistance! Shing Home page : http://www.lombok.demon.co.uk/ ___ Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure http://green.yahoo.com/uk/earth-day/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tap 5.0.11 : How to get page instance from page
Thanks for all the replies! I have tried it and it works. Shing --- Filip S. Adamsen [EMAIL PROTECTED] wrote: Hi, RequestPageCache is an internal service, it's better to use ComponentSource instead. It has methods to get a component or page by logical name. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/ComponentSource.html -Filip On 2008-05-05 16:01, Kristian Marinkovic wrote: @Inject private RequestPageCache pageCache; pageCache.get(logicalName) g, kris Shing Hing Man [EMAIL PROTECTED] 05.05.2008 15:53 Bitte antworten an Tapestry users users@tapestry.apache.org An tapestry Tapestry [EMAIL PROTECTED] Kopie Thema Tap 5.0.11 : How to get page instance from page Usually, I could use the following to inject a page into another page @InjectPage private DetailsPage details; How to retrieve an instance of a page if I am given the logical name of a page as a String variable ? In Tap 4, I would use RequestCycle.getPage(pageName). Thanks in advance for any asistance! Shing Home page : http://www.lombok.demon.co.uk/ ___ Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure http://green.yahoo.com/uk/earth-day/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Home page : http://www.lombok.demon.co.uk/ ___ Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure http://green.yahoo.com/uk/earth-day/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]