Entering different date formats in the same datefield
Hi, Please let me know whether we can enter different date formats like 01/12/2011, 01-12-2011 in the same datefield. How to implement it? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Entering-different-date-formats-in-the-same-datefield-tp4973476p4973476.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
Re: Why Environmental Objects is only available during rendering, not during action requests.
Oh it works now, Thanks. On Nov 8, 2011, at 12:05 PM, Steve Eynon wrote: > Remember that if you use > > > > then your event handler is called > >void onSetupRender() > > whereas the render phase method is called > >void setupRender() > > the two are different. > > Steve. > > On 8 November 2011 10:56, Bo Gao wrote: >>> Component event lifecycle events are only triggered when the whole page or >>> component is rendered. In this case, you're rendering a Zone, so your page >>> isn't rendered (just a part of it) and setupRender() and afterRender() >>> aren't invoked. Use the RenderNotification mixin or the Trigger component >>> inside your zone to push and pop objects in the Environment. >> >> In this version I have push the object in event method 'onPlusOne', >> env.push(String.class, "++" + this.count); >> This works in previous version of tapestry. >> >> I also tried Trigger component. >> >> >> >>[${cont}] >> >> >> >> It doesn't works. >> >> >> On Nov 8, 2011, at 12:59 AM, Thiago H. de Paula Figueiredo wrote: >> >>> On Mon, 07 Nov 2011 14:51:37 -0200, Bo Gao wrote: >>> void setupRender() { env.push(String.class, "++" + this.count); } void afterRender() { env.pop(String.class); } >>> >>> Component event lifecycle events are only triggered when the whole page or >>> component is rendered. In this case, you're rendering a Zone, so your page >>> isn't rendered (just a part of it) and setupRender() and afterRender() >>> aren't invoked. Use the RenderNotification mixin or the Trigger component >>> inside your zone to push and pop objects in the Environment. >>> >>> -- >>> 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 >> >> -- >> Bo Gao >> eli...@gmail.com >> >> >> >> >> >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Bo Gao eli...@gmail.com
Re: Why Environmental Objects is only available during rendering, not during action requests.
Remember that if you use then your event handler is called void onSetupRender() whereas the render phase method is called void setupRender() the two are different. Steve. On 8 November 2011 10:56, Bo Gao wrote: >> Component event lifecycle events are only triggered when the whole page or >> component is rendered. In this case, you're rendering a Zone, so your page >> isn't rendered (just a part of it) and setupRender() and afterRender() >> aren't invoked. Use the RenderNotification mixin or the Trigger component >> inside your zone to push and pop objects in the Environment. > > In this version I have push the object in event method 'onPlusOne', > env.push(String.class, "++" + this.count); > This works in previous version of tapestry. > > I also tried Trigger component. > > > > [${cont}] > > > > It doesn't works. > > > On Nov 8, 2011, at 12:59 AM, Thiago H. de Paula Figueiredo wrote: > >> On Mon, 07 Nov 2011 14:51:37 -0200, Bo Gao wrote: >> >>> void setupRender() { >>> env.push(String.class, "++" + this.count); >>> } >>> >>> void afterRender() { >>> env.pop(String.class); >>> } >> >> Component event lifecycle events are only triggered when the whole page or >> component is rendered. In this case, you're rendering a Zone, so your page >> isn't rendered (just a part of it) and setupRender() and afterRender() >> aren't invoked. Use the RenderNotification mixin or the Trigger component >> inside your zone to push and pop objects in the Environment. >> >> -- >> 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 > > -- > Bo Gao > eli...@gmail.com > > > > > > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Why Environmental Objects is only available during rendering, not during action requests.
> Component event lifecycle events are only triggered when the whole page or > component is rendered. In this case, you're rendering a Zone, so your page > isn't rendered (just a part of it) and setupRender() and afterRender() aren't > invoked. Use the RenderNotification mixin or the Trigger component inside > your zone to push and pop objects in the Environment. In this version I have push the object in event method 'onPlusOne', env.push(String.class, "++" + this.count); This works in previous version of tapestry. I also tried Trigger component. [${cont}] It doesn't works. On Nov 8, 2011, at 12:59 AM, Thiago H. de Paula Figueiredo wrote: > On Mon, 07 Nov 2011 14:51:37 -0200, Bo Gao wrote: > >> void setupRender() { >> env.push(String.class, "++" + this.count); >> } >> >> void afterRender() { >> env.pop(String.class); >> } > > Component event lifecycle events are only triggered when the whole page or > component is rendered. In this case, you're rendering a Zone, so your page > isn't rendered (just a part of it) and setupRender() and afterRender() aren't > invoked. Use the RenderNotification mixin or the Trigger component inside > your zone to push and pop objects in the Environment. > > -- > 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 -- Bo Gao eli...@gmail.com
e.stop() is invalid in the Link
-- View this message in context: http://tapestry.1045711.n5.nabble.com/e-stop-is-invalid-in-the-Link-tp4973053p4973053.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
Re: dynamically change the context information of an EventLink on the cliient side
Thiago suggestion will work and the @RequestParamter is useful. You can also use http://tapestry5-jquery.com/docs/mixins/bind which supports replacing the context on the client side with zones and events. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: dynamically change the context information of an EventLink on the cliient side
On Mon, 07 Nov 2011 20:41:12 -0200, bogdan_cm wrote: Hi All, Hi! Tap built in Ajax Support. The problem with this though, is how do I add what the user entered as text to the context of the link. How to make the user entered text reach the EventLink's method parameter. Send the text URL encoded as a request parameter instead of using the event context: onEvent(@RequestParameter("queryParameterName") typed) { ... }. When the data to be posted is defined client-side, query parameters are the way to go. -- 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: Beaneditform with two submit buttons?
Done. As it turns out, the submitting component does need to be inside the form. I guess I wanted it to be able to submit any form but couldn't quite figure out how to ... In a few weeks I'll clean it up and post it to the wiki. -Original Message- From: TG [mailto:tapestry...@hotmail.com] Sent: Montag, 7. November 2011 22:40 To: users@tapestry.apache.org Subject: RE: Beaneditform with two submit buttons? Wulf, would you mind share the codes? Thanks ! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972522.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
dynamically change the context information of an EventLink on the cliient side
Hi All, I would appreciate your help with some ideas as I am trying to implement a chat component and I want to use Tap for the server page. The user will add text to a text input and click a link or hit enter. At this point I need to send what the user entered to the tapestry class. It would be ideal if I could use a Zone with an EventLink to take advantage of Tap built in Ajax Support. The problem with this though, is how do I add what the user entered as text to the context of the link. How to make the user entered text reach the EventLink's method parameter. Is this more workable than an 100% JQuery client that simply posts requests to a Tap5 page? Thanks very much, Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4972710.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
RE: Beaneditform with two submit buttons?
Wulf, would you mind share the codes? Thanks ! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972522.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
RE: Beaneditform with two submit buttons?
Hi Tapestry Guy, maybe you can go in the same direction as I went: I made a generic "Event Submit" mixin. Basically it takes a form id (client-side id that is) and a list of events. It observes these events thru prototype and when that event happens it will submit the form. This has the advantage that you can place it outside the form (anywhere on the page, really) and you are not limited to buttons. I use it to submit a form "on enter" for table filter fields. I hope this helps a little. If you are interested I will send you the code as-is but unfortunately I can't spare the time to annotate it and clean up calls to my own libs which would be necessary in order to add it to the tapestry wiki. Best Regards, Wulf -Original Message- From: TG [mailto:tapestry...@hotmail.com] Sent: Montag, 7. November 2011 20:23 To: users@tapestry.apache.org Subject: Re: Beaneditform with two submit buttons? Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972166.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: Beaneditform with two submit buttons?
On Mon, 07 Nov 2011 17:23:27 -0200, TG wrote: Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Not tested: 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
Re: Beaneditform with two submit buttons?
Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972166.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
Re: URL handling ..
On Mon, 07 Nov 2011 14:10:28 -0200, Martin Strand wrote: I changed the default URLEncoder to assume everything is "safe" except for a few characters: static final String ENCODED_NULL = "$N"; static final String ENCODED_BLANK = "$B"; private final BitSet unsafe = new BitSet(128); { markUnSafe("/+$"); } Just wondering, can you see any potential problems with this? I'm guessing there's a reason Tapestry doesn't do this by default. I guess you won't have any problems. As far as I can remember, the URLEncoder old implementation didn't have any character encoding besides URL encoding. It was changed to deal with slashes and null and blank page activation context values better than before. I don't know why any non US-ASCII character is encoded, though. -- 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: Why Environmental Objects is only available during rendering, not during action requests.
On Mon, 07 Nov 2011 14:51:37 -0200, Bo Gao wrote: void setupRender() { env.push(String.class, "++" + this.count); } void afterRender() { env.pop(String.class); } Component event lifecycle events are only triggered when the whole page or component is rendered. In this case, you're rendering a Zone, so your page isn't rendered (just a part of it) and setupRender() and afterRender() aren't invoked. Use the RenderNotification mixin or the Trigger component inside your zone to push and pop objects in the Environment. -- 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: Why Environmental Objects is only available during rendering, not during action requests.
> How you're adding these objects in the Environment? Please post the code that > does that. My page, Test.tml: count:[ ${count} ] +1 Test.java: ... void setupRender() { env.push(String.class, "++" + this.count); } void afterRender() { env.pop(String.class); } Object onPlusOne() { if (count == null) { count = 0; } this.count++; env.push(String.class, "++" + this.count); // I set environmental object here. return textzone; } ... EmbedComponent.java: ... @Environmental @Property private String env; EmbedComponent.tml: ... ${env} ... The first time page render, setupRender and afterRender will be called, it works. I click +1 button, the environmental object 'env' can not be found in component EmbedComponent. On Nov 8, 2011, at 12:15 AM, Thiago H. de Paula Figueiredo wrote: > On Mon, 07 Nov 2011 14:01:19 -0200, Bo Gao wrote: > >> I have a zone, and many nested components in it. I pass objects to these >> components by Environmental Service. >> >> The first time page render is ok. But when I click an Action link which will >> refresh the zone, I can't get Environmental Object. > > How you're adding these objects in the Environment? Please post the code that > does that. > > -- > 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 -- Bo Gao eli...@gmail.com
Re: Clearing form errors problem
On Mon, 07 Nov 2011 12:42:42 -0200, goldenka wrote: I'm using tapestry 5.0 and I have a problem with clearing form errors. > When "Download" button is pressed, and all form validation is OK I need to download a file. In order to do this in the onSuccess() method I get the HttpServletResponse object, set it's character encoding, content type etc. and after that I use its PrintWriter to generate CSV file (I'm using open CSV Library and it needs Writer object to generate csv). Instead, return a StreamResponse wrapping the generated file. You shouldn't use HttpServletResponse directly in Tapestry. -- 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
Clearing form errors problem
I'm using tapestry 5.0 and I have a problem with clearing form errors. When "Download" button is pressed, and all form validation is OK I need to download a file. In order to do this in the onSuccess() method I get the HttpServletResponse object, set it's character encoding, content type etc. and after that I use its PrintWriter to generate CSV file (I'm using open CSV Library and it needs Writer object to generate csv). But when there where errors in the form, after pressing "Download" button they are not clearing (even after form.clearErrors() - because I used PrintWriter and HttpServletResponse and changed their content). Please can somebody help and tell how to clear these errors ? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Clearing-form-errors-problem-tp4971307p4971307.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
Re: Why Environmental Objects is only available during rendering, not during action requests.
On Mon, 07 Nov 2011 14:01:19 -0200, Bo Gao wrote: I have a zone, and many nested components in it. I pass objects to these components by Environmental Service. The first time page render is ok. But when I click an Action link which will refresh the zone, I can't get Environmental Object. How you're adding these objects in the Environment? Please post the code that does that. -- 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: URL handling ..
On Mon, 07 Nov 2011 07:46:47 +0100, Kalle Korhonen wrote: There's not been a T5 project where I haven't needed to override URLEncoder service. Take a look at T5's URLEncoderImpl, override it with your version and mark whichever characters you prefer as safe (i.e. not encoded). Kalle I changed the default URLEncoder to assume everything is "safe" except for a few characters: static final String ENCODED_NULL = "$N"; static final String ENCODED_BLANK = "$B"; private final BitSet unsafe = new BitSet(128); { markUnSafe("/+$"); } Just wondering, can you see any potential problems with this? I'm guessing there's a reason Tapestry doesn't do this by default. We have a number of search result pages in a variety of languages, and we'd like Googlebot to see the search query properly encoded in the URL. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Why Environmental Objects is only available during rendering, not during action requests.
I have a zone, and many nested components in it. I pass objects to these components by Environmental Service. The first time page render is ok. But when I click an Action link which will refresh the zone, I can't get Environmental Object. And I get an Error like this: org.apache.tapestry5.ioc.util.UnknownValueException No object of type org.test.MyData is available from the Environment. availableValues Environmentals: org.apache.tapestry5.RenderSupport org.apache.tapestry5.ValidationDecorator org.apache.tapestry5.internal.services.DocumentLinker org.apache.tapestry5.services.ClientBehaviorSupport org.apache.tapestry5.services.FormSupport org.apache.tapestry5.services.Heartbeat org.apache.tapestry5.services.javascript.JavaScriptSupport org.test.MyData It says No object of type MyData is available, but in availableValues, there is my MyData. strange. I use tapestry-rc-3 now. But it works when I use tapestry 2.6. On Nov 7, 2011, at 6:44 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 07 Nov 2011 07:40:21 -0200, Bo Gao wrote: > >> I saw a line in tapestry documents >> (http://tapestry.formos.com/nightly/tapestry5/guide/ajax.html) >> Inside a component, you should use Environmental, to highlight the fact that >> RenderSupport (like most environmental objects) is only available during >> rendering, not during action requests. > > Each Environmental object put or removed by different classes in Tapestry, so > there isn't a single answer for them. > >> In fact, I just want to use Environmental Service during a action requests. >> (i.e. a zone update) > > What service do you need and what methods? What you're trying to do? > > -- > 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 -- Bo Gao eli...@gmail.com
RE: testing Tapestry applications (in general) [I]
Classification: For internal use only You may also find Tapestry Testify useful (http://tapestry.formos.com/nightly/tapestry-testify/) - it's designed for the class of tests where you want to test the web aspects of your application (particularly in a unit-test style) but aren't concerned with browser functionality (e.g. Javascript). On my projects, we used Selenium to drive tests of browser behaviour (Javascript etc) and to drive smoke tests of a complete running system. We used Testify to do unit testing of pages/components and (integrated with Fitnesse) to do acceptance tests where the web was involved (e.g. when the user does A,B,C then the page shows a table like this: . ). And then JUnit etc... to do the non-web unit testing. Best wishes, Paul -Original Message- From: Christian Köberl [mailto:tapestry.christian.koeb...@gmail.com] Sent: 04 November 2011 18:55 To: Tapestry users Subject: Re: testing Tapestry applications (in general) 2011/11/04 15:01, Markus Johnston: > We very much would like to start writing view and controller tests. I > was wondering what other Tapestry users are doing, as far as testing > is concerned. What problems have you run into? What tools or > approaches have you found that work especially well? We have a quite big application (>200k lines) and needed some integration/acceptance end-to-end tests (as an addition to our unit tests). Our first approach were TestNG tests based on Selenium 1.x and backend calls in the same VM as the application itself. The pros are that you can use the backend directly but you cannot test the app in the target environment. Another problem is that the QA and our customer cannot understand the TestNG specs. We also had big compatibility problems with Selenium and browsers. Our current tests are built on BDD with cuke4duke with Selenium 2.x web driver. The tests run standalone and can be run against our QA or other environments. We are porting our old tests when we're changing/refactoring stuff. Our experience with this stack: cuke4duke is a Ruby port and not a 1st class JVM citizen, so you get some problems. That's why we think about migrating to JBehave - but that's no big deal because it works exactly the same. Selenium web driver is very good and also works perfectly with IE and different versions of Firefox. For acceptance tests and especially for UI tests consider to organize your tests in layers (see http://cuke4ninja.com/chp_three_layers.html). We have a testhelper for making direct backend calls through Spring remoting - but just for things you cannot do via UI. A really good book about organizing your builds and tests (and especially about automated testing) is Continuous Delivery from Jez Humble and David Farley: http://amzn.to/qy2rc5 After all tries (and some failures) I'd advise this: * Use BDD if you need to communicate tests in any way, use JUnit/TestNG otherwise * Layer your tests in workflows and technical stuff * Use Selenium 2.x web driver for UI tests * Write tests that run against any environment (your local started IDE instance, your QA server - even your prod environment) Hope this helps ... -- Chris - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Form Zone with onValidate
As it turns out, I just wrote my method incorrectly resulting in my error. Resolved. Thanks ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-Zone-with-onValidate-tp4971289p4971313.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
Re: Form Zone with onValidate
Hi, I'm a bit confused, the form logic for an ajax form submit is the same as for a traditional submit - so if there are no validation errors, then your onSuccess() event handler gets called. Are you saying this is not the case? Steve. On 7 November 2011 22:36, George Christman wrote: > Hello, I was wondering how to use onValidate when using the form with a zone. > I'm returning a zone when errors are present, just not sure how to get it to > continue on to onSuccess when there is no errors present. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Form-Zone-with-onValidate-tp4971289p4971289.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
Form Zone with onValidate
Hello, I was wondering how to use onValidate when using the form with a zone. I'm returning a zone when errors are present, just not sure how to get it to continue on to onSuccess when there is no errors present. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-Zone-with-onValidate-tp4971289p4971289.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
T5.3-rc-3: FieldTranslatorSource "sees" an overriden service
Hi, I've run into a problem when upgrading to T5.3-rc-3. We used the contributeServiceOverride method to override the ComponentMessageSource service with an different implementation of ours. After the switch to 5.3, the webapp (in jetty) starts, and a simple test page can be rendered, using our messages. But when calling a page with a form (i.e. login form), the following exception occurs: for the first FieldTranslatorSource in the first Text field I've seen such exceptions before when adding the same service twice, but these always were thrown before the webapp was ready. Is this a bug? Mike -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc-3-FieldTranslatorSource-sees-an-overriden-service-tp4971273p4971273.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
Re: T5.3. rc3: event bubbling bug?
Yep, figured it out already. Too much time since using T5, and too much JSF in between. It's good to be back ;) - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc3-event-bubbling-bug-tp4966490p4970859.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
Re: T5.3 rc3 ordering of css
Hi, the problem arises when I use third party libs, namely Tap5-Jquery (http://tapestry5-jquery.com/). I have no means to control how they include their CSS. As a developer I want to control the order in which CSS files get included stack by stack. Can this be achieved by contributing to public static void contributeJavaScriptStackSource(MappedConfiguration configuration)? I suppose not, as this is MappedConfiguration, not ordered. Perhaps it's time for ordered mapped configuration. Atleast, CSS is heavily dependant to the order and now I can't control it? Any thoughts? - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc3-ordering-of-css-tp4969412p4970857.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
Re: T5.3. rc3: event bubbling bug?
On Sun, 06 Nov 2011 12:13:08 -0200, 9902468 wrote: The saga continues: I have a "onSuccessFromProductSizeForm" -method on my page. When the form is enclosed in a component I get the following error message: Method com.orient.web.admin.pages.entity.ProductSizeBulkAdd.onSuccessFromProductSizeForm() references component id 'ProductSizeForm' which does not exist. So, I can't have event listeners anymore that listen to events thrown by components inside components? Not the way you did it. Component ids are local to the template and component or page they were declared and not visible in any other class. An onSuccess() method would be called normally. -- 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
Why Environmental Objects is only available during rendering, not during action requests.
I saw a line in tapestry documents (http://tapestry.formos.com/nightly/tapestry5/guide/ajax.html) Inside a component, you should use Environmental, to highlight the fact that RenderSupport (like most environmental objects) is only available during rendering, not during action requests. In fact, I just want to use Environmental Service during a action requests. (i.e. a zone update) Why this is not allowed, What other methods I can do the same thing? Thanks -- Elivoa
Re: Tapestry 5.3 and multiple submits problem
9902468 writes: > Hi, > > if you're using tap5-jquery, this seems to be the issue: > https://github.com/got5/tapestry5-jquery/issues/90 > Yes, I'm using tap5-jquery and this is exactly the issue. After 2 days of digging in javascripts I finally found the culprit. Hence the ticket I opened on github :) Cheers, Michal - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: URL handling ..
Thank's Kalle for the advice! Now I know what has to be done! I wonder how long the wonderful atmosphere in this list will continue. I hope forever ... 2011/11/7 Kalle Korhonen > On Sun, Nov 6, 2011 at 10:26 PM, Gunnar Eketrapp > wrote: > > Now I am phasing another problem and that is that T5 seems to encode > > context string in a way that they are not displayed properly in the the > > browser. > > I.e. if I URL encode the swedish word Räksmörgås (=Shrimp sandwich) i > > get *r%C3%A4ksm%C3%B6rg%C3%A5s > > *which shows up correct in browser url. > > But if I add it as a context param T5 encodes it as > *r$00e4ksm$00f6rg$00e5s > > *which is shown as that in the browser. > > I figure T5 has to do this but is there an easy way to get around this so > > that swedish words shows up nicely in the browser !? > > There's not been a T5 project where I haven't needed to override > URLEncoder service. Take a look at T5's URLEncoderImpl, override it > with your version and mark whichever characters you prefer as safe > (i.e. not encoded). > > Kalle > > > > 2011/11/6 Gunnar Eketrapp > > > >> I digged into this yesterday and created a transfomer for my url's. > >> > >> I managed to transform pages to swedish names with the group name up > front. > >> Pretty pretty ... > >> > >> Today I encountered a problem whit action methods that return Link's > with > >> swedish characters in them. > >> It seems like the åäö get's screwed up when the request makes it to the > >> browser and back. > >> > >> See this log extract that shows the Link as returned from the > >> onActionFromEdit method as well as the logged request that it leads to. > >> > >> *2011-11-06 12:30:45.700 DEBUG utskicket.pages.wiki.WikiView - [ EXIT] > >> onActionFromEdit [/VillaSkurusundet/wiki/ändra/start]* > >> *2011-11-06 12:30:45.704 DEBUG u.s.UtskicketModule.RequestLogger - > Request: > >> /VillaSkurusundet/wiki/?dra/start (Method=GET, browser=Mozilla/5.0 > >> (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) > Chrome/15.0.874.106 > >> Safari/535.2, isXHR=false)* > >> * > >> * > >> Due to this my transformer fails to decode the incoming request. > >> > >> Surely I have missed something ... > >> Thanks in advance! > >> > >> ... > >> > >> @Log > >> Object onActionFromEdit() { > >> return > >> linkRenderer.createPageRenderLinkWithContext("wiki/edit", groupId, > >> pageName) ; > >> } > >> > >> > >> > >> > >> 2011/11/4 Gunnar Eketrapp > >> > >>> Ok thx for the tip! > >>> > >>> > >>> 2011/11/4 Alejandro Scandroli > >>> > Hi Gunnar > > You can also take a look at how tapestry-rounting is implemented. > http://tynamo.org/tapestry-routing+guide > http://svn.codehaus.org/tynamo/trunk/tapestry-routing/ > > It may not be exactly what you need and may not have a good > performance in a site with lots of pages, but I think it can give you > a good idea of what you need to do in order to achieve what you need. > > Cheers. > Alejandro. > > On Thu, Nov 3, 2011 at 1:35 PM, Thiago H. de Paula Figueiredo > wrote: > > On Thu, 03 Nov 2011 10:16:40 -0200, Gunnar Eketrapp > > wrote: > > > >> Can page name can be localized in an easy way !? I would rather > not > give > >> swedish names to my page classes unless I have to. > >> Is it possible to freely name a page. E.g. so that it separates > words > with > >> dashes, e.g. "my-profile" > >> And finally if it is possible to name a page different from the > class > name > >> should I go for Sweidsh chars in url's or should I not !? > >> I think wikipedia is using local char's in their url's ... so > perhaps > that > >> is the answer!? > > > > You can do almost whatever you want with URLs: you just need to > implement > > the logic for mapping incoming URLs to page classes and activation > context > > (if any) and the reverse (pages and activation context to rewritten > URLs). > > > > -- > > 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 > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > >>> > >>> > >>> -- > >>> [Hem: 08-715 59 57, Mobil: 070-991 86 42] > >>> Allévägen 2A, 132 42 Saltsjö-Boo > >>> > >> > >> > >> > >> -- > >> [Hem: 08-715 59 57, Mobil: 070-991 86