Re: Override tapestry5 datefield default format

2018-04-10 Thread Thiago H. de Paula Figueiredo
nfiguration.add(SymbolConstants.DATEFIELD_DEFAULT_FORMAT, "dd-MM-yyyy"); > } > > I hope this clear up my question. > > Regards > > > On Tue, Apr 10, 2018 at 8:17 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > Hello! > >

Re: Override tapestry5 datefield default format

2018-04-10 Thread Thiago H. de Paula Figueiredo
Hello! The default format is taken from DateFormat.getDateInstance(DateFormat.SHORT, locale), where locale is got through @Inject. Is your desired date format the one returned by that method for your locale? On Tue, Apr 10, 2018 at 5:26 AM, abangkis wrote: > Hi, is there a

Re: Aw: Re: In which direction is Tapestry heading?

2018-03-28 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 28, 2018 at 4:47 AM, wrote: > Hallo Reinhold, > Hello! > Tapestry can be used without classical forms. If you have to include the > form > component because of the dependence of the input components on it, > suppress its > default action. > > On the client

Re: Re: In which direction is Tapestry heading?

2018-03-28 Thread Thiago H. de Paula Figueiredo
emented as a component library. So, even if the Tapestry team doesn't implement it, nothing is preventing someone else to create it and share it. > > Best regards > Reinhold > > > > Gesendet: Montag, 26. März 2018 um 16:47 Uhr > Von: "Thiago H. de Paula Figueiredo"

Re: In which direction is Tapestry heading?

2018-03-27 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 27, 2018 at 4:49 AM, wrote: > Hi, > Hello! > tapestry 5.4 made with the requireJS integration a great step towards > supporting any > of the JS frameworks out there. Supporting only a single one of them would > be a step > back. > Indeed. This doesn't prevent

Re: In which direction is Tapestry heading?

2018-03-27 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 26, 2018 at 6:45 PM, Juan Manuel Garrido de Paz < juanm.garrido@gmail.com> wrote: > Hi Thiago, does it make sense to use tapestry just as a middleware between > a javascript client-side framework and the server? Just for implementing a > REST API that gathers the requests from the

Re: Javacsript module problem

2018-03-27 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 26, 2018 at 6:45 PM, Cezary Biernacki wrote: > @SetupRender > public void configureWaitSeconds() { > // See http://requirejs.org/docs/api.html#config-waitSeconds > javaScriptSupport.addModuleConfigurationCallback((config) -> >

Re: In which direction is Tapestry heading?

2018-03-26 Thread Thiago H. de Paula Figueiredo
Hello! On Thu, Mar 22, 2018 at 8:22 PM, Reinhold Gruber wrote: > Hi! > > 6 years ago HLS wrote an article on Dzone https://dzone.com/articles/ > tapestry-54-focus-javascript which contained among other things following > very promising paragraph. See below. > > Is this kind

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

2018-03-20 Thread Thiago H. de Paula Figueiredo
osed to be downloaded by browsers) are not in /META-INF/assets. > > > Regards, Erich > > > Am 19.03.2018 20:07, schrieb Thiago H. de Paula Figueiredo: > >> Hello! >> >> > From which version did you upgrade? I may be wrong, of course, but I >> don't &g

Re: Question about module-path-prefix

2018-03-19 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 19, 2018 at 12:13 PM, Erich Gormann wrote: > It seems using library mappings is not the correct way to address pages. I'm sorry, but your statement above is incorrect. Library mappings is still the correct way to address pages. -- Thiago

Re: Question about module-path-prefix

2018-03-19 Thread Thiago H. de Paula Figueiredo
One typo: And nothing related to component libraries *changed*. On Mon, Mar 19, 2018 at 4:10 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, Mar 19, 2018 at 12:13 PM, Erich Gormann <e.gorm...@gormann.de> > wrote: > >> Hello all, >> &

Re: Question about module-path-prefix

2018-03-19 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 19, 2018 at 12:13 PM, Erich Gormann wrote: > Hello all, > Hi! > > another question about Tapestry 5.4.x: > > I'm a little confused about some new configuration possibilities in > Tapestry 5.4.x. There is the new "module-path-prefix" entry. > This is about a

Re: getModuleNameToStackName(JavaScriptSupportImpl.java:340) NPE

2018-03-19 Thread Thiago H. de Paula Figueiredo
Hello! >From which version did you upgrade? I may be wrong, of course, but I don't remember any changes being made to JavaScriptSupportImpl since 5.4.0 or 5.4.1. On Mon, Mar 19, 2018 at 2:50 PM, Erich Gormann wrote: > Hello all, > > I hope my last question for today: > >

Re: Grid component customization

2018-02-06 Thread Thiago H. de Paula Figueiredo
wants to create a fully responsive website based on > Tapestry 5.3.8. > So she asked me, if it would be possible, to render some data attributes > inside the td tags of the grid. > > Regards, Erich > > > > Am 05.02.2018 18:49, schrieb Thiago H. de Paula Figueiredo

Re: Grid component customization

2018-02-05 Thread Thiago H. de Paula Figueiredo
with the removed javassist lib. > ut this would be another topic in this support list. > > Thanks and Best Regards > Erich > > > Am 28.11.2017 16:32, schrieb Thiago H. de Paula Figueiredo: > >> On Tue, Nov 28, 2017 at 6:33 AM, Erich Gormann<e.gorm...@gormann.de

Re: Is it possible to attach source to Tapestry project?

2018-01-30 Thread Thiago H. de Paula Figueiredo
Hello! If you use the Maven integration in Eclipse and your project is configured through it, it'll pick up the Tapestry sources automatically. On Tue, Jan 30, 2018 at 2:42 AM, Joshua Richardson wrote: > I would love the ability to attach tapestry source to my

Re: ProgressiveDisplay

2018-01-25 Thread Thiago H. de Paula Figueiredo
Is you form inside ProgressiveDisplay or the other way around? If not, then the error is expected, since part of the form would be loaded in a request and the rest in another. The solution for your problem is creating a component which is basically the Select component but loading the options

Re: Tapestry SelectModel

2018-01-25 Thread Thiago H. de Paula Figueiredo
Hello! IMHO, if you don't want arbitrary strings in a field, you should create an enum for that (in this case, Country) and use it as the type of your field instead of String. Tapestry should automatically use a for editing that. But, even leaving your code the way it is, and I strongly

Re: Loop parameter becoming null

2018-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, Jan 22, 2018 at 7:49 PM, Tyler Wilcock wrote: > Hi all. Hi! > I have some components being rendered in a loop. On initial > render, everything comes out fine. However, when I try to click on an > eventlink within one of the rendered components, I get an

Re: Conflict between Angular and prototype.js in a tapestry app

2018-01-12 Thread Thiago H. de Paula Figueiredo
On Fri, Jan 5, 2018 at 7:19 PM, Pratik Patel wrote: > Hello all, > Hello! Short answer: there's no built-in way of having just one page having one infrastructure which is different from the others. Something you can try to do is to write a MarkupRendererFilter which

Re: [ANN] JumpStart 7 Released!

2018-01-11 Thread Thiago H. de Paula Figueiredo
Yay! Thank you very much, Geoff! JumpStart has always been one of the best, if not the best, places to learn about Tapestry, specially when you're looking for an example. On Thu, Jan 11, 2018 at 11:14 AM, JumpStart < geoff.callender.jumpst...@gmail.com> wrote: > Hi all, > > At long last,

Re: How to use CSS buttons outside of forms

2018-01-02 Thread Thiago H. de Paula Figueiredo
On Wed, Dec 27, 2017 at 12:16 AM, Christopher Dodunski < chrisfromtapes...@christopher.net.nz> wrote: > Hi Chris & Bob, > Hello! > I had wrongly assumed that Tapestry left the HTML markup as is, parsing > only the t:xxx markup for 'wiring' webpage components to Java code. > Well, most of the

Re: Dynamic form fields

2017-12-14 Thread Thiago H. de Paula Figueiredo
On Thu, Dec 14, 2017 at 8:47 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > Hi! > This subject has been spoken about more in the past, but I still have not > found a good solution to this and still struggle with this. > > What is the best practice (Tapestry 5.4+) to add

Re: Opening Injected Page in a new tab.

2017-12-06 Thread Thiago H. de Paula Figueiredo
You have to do this in JavaScript. You cannot open links in a new tab/page dynamically (i.e. not using an ordinary ) from the server side. On Wed, Dec 6, 2017 at 1:11 PM, abangkis wrote: > Hi, > > I have a javascript that trigger a page navigation. It's working perfectly >

Re: Grid component customization

2017-11-28 Thread Thiago H. de Paula Figueiredo
On Tue, Nov 28, 2017 at 6:33 AM, Erich Gormann wrote: > Dear all, > Hi! > I wanted to customize the GridColumns component, which is embedded inside > the Grid component, by trying different approaches. > > Finally I failed, because it was neither possible by a request

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Thiago H. de Paula Figueiredo
On Sun, Nov 26, 2017 at 10:40 AM, Svein-Erik Løken wrote: > Source code: > > @Contribute(JavaScriptStackSource.class) > public static void addMyStack(MappedConfiguration JavaScriptStack> configuration) { > configuration.addInstance("react", ReactStack.class); > }

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Thiago H. de Paula Figueiredo
ts", "react", "react-dom"], function (require, exports, React, > ReactDOM) { > > I can try the Mixin technique, but still think Tapestry should have a way > of contribute requirejs.config.paths. You have a nice way contribute > requirejs.config.shim which may

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Thiago H. de Paula Figueiredo
On Fri, Nov 24, 2017 at 11:13 AM, Svein-Erik Løken wrote: Hello! Trying to use TypeScript and React with Tapestry: > > In TypeScript I need to use: import * as React from "react"; > > I would like to load react: react.min, so I have to set paths: {...} > > The configuration

Re: Discussion: make duplicate contributions to services with ordered configurations an error

2017-10-27 Thread Thiago H. de Paula Figueiredo
On Fri, Oct 27, 2017 at 11:57 AM, Dmitry Gusev wrote: > Hi Thiago, > Hello, Dmitry! > I would expect this to throw an exception on application start. > Thanks for your opinion! Even more for agreeing with me! :D > I would also expected that `configuration.override`

Discussion: make duplicate contributions to services with ordered configurations an error

2017-10-27 Thread Thiago H. de Paula Figueiredo
Hello! I've just stumbled again at https://issues.apache.org/jira/browse/TAP5-1305, which boiled down to Tapestry-IoC dropping a contribution to an ordered configuration if there's another contribution with the same id. I fixed it specifically for service decorators. For service configurations,

Re: tapestry-security 0.7.0 released!

2017-09-15 Thread Thiago H. de Paula Figueiredo
Awesome, Kalle! Thank you very much! On Thu, Sep 14, 2017 at 7:58 PM, Kalle Korhonen wrote: > After an extended hiatus, I figured it’s time to do some releases. First up > is the old workhorse, tapestry-security. The 0.7.0 release represents a > true community

Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
You could just have something like window.location = Pretty hacky, even working. On Mon, Sep 4, 2017 at 10:37 AM, Svein-Erik Løken wrote: > Just curious: How can you return javascript code? / Without > javaScriptSupport? > > > -- Thiago

Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
l; > } > > > > Utils.js: > == > Util.windowLocation = function (href) { > window.location = href; > }; > > > > /external/TrackSegmentsExportDownload: > ============== > > StreamResponse onActiva

Re: Cannot clear validation errors when form onSuccess returns a StreamResponse

2017-09-04 Thread Thiago H. de Paula Figueiredo
Hi! This is due to HTTP, not Tapestry itself: you cannot have two different responses to the same request. So, you either rerender the page to clear the errors (which calling form.clearErrors() is actually doing, even if you cannot see the results) or returns a binary download (StreamResponse),

Re: How to render a block parameter in component

2017-08-31 Thread Thiago H. de Paula Figueiredo
Great example, but some spellchecking needed, hehehe. On Thu, Aug 31, 2017 at 3:54 AM, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > Hi! > > To render a block you have to write > > > > So, in your layout.ml file: > > > > > > > El 31/8/2017, a las 8:46, Joshua

Re: Change bootstrap css load order

2017-08-29 Thread Thiago H. de Paula Figueiredo
No, you don't need to do anything, manual or automated, when you change HTML or JS or CSS when you're using a JavaScript stack. Why do you think that? On Tue, Aug 29, 2017 at 4:15 AM, Rural Hunter wrote: > I suppose that would work but it's bad for ui design changes. I

Re: Service binding based on condition

2017-08-10 Thread Thiago H. de Paula Figueiredo
On Thu, Aug 10, 2017 at 12:44 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > Hi! > > When having just one implementation of a service interface the binding is > done like the following: > > public static void bind(ServiceBinder binder) { >

Re: All variables are null in onValidateFromForm

2017-08-03 Thread Thiago H. de Paula Figueiredo
Hello! Have you printed the values or just looked at them in a debugger? The field values aren't updated if you're running in production mode. Since Tapestry 5.2, access to fields is rewritten to reading and writing from a per-thread map internally. On Wed, Aug 2, 2017 at 4:42 PM, Pascal Robert

Re: Render queue error in BeforeRenderTemplate when using a SelectModel

2017-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, Jul 25, 2017 at 3:42 PM, Pascal Robert wrote: > Hi, > Hi! > Coming from the WebObject world here. I’m trying to build a select input, > but it’s not working. The error: > Interesting! As far as I remember, WebObjects was the initial inspiration for Howard Lewis

Re: Zone update 5.3-5.4 timing changes

2017-06-26 Thread Thiago H. de Paula Figueiredo
Hi! Is there any publicly-accessible page demonstrating this behavior? On Sat, Jun 24, 2017 at 4:10 PM, Jonathan Barker < jonathan.theit...@gmail.com> wrote: > Hello all, > > We are in the midst of an upgrade of an application from 5.3.7 to > 5.4.x, and we have hit a snag. Actions that were

Re: Announcing Configuration Helpers for Tapestry5

2017-06-22 Thread Thiago H. de Paula Figueiredo
Hello, Dmitry! This is awesome! Thank you for sharing this with the Tapestry community! On Tue, Jun 20, 2017 at 10:22 AM, Dmitry Gusev wrote: > Hello Tapestry users, > > I'd like to share a small library that we use to manage & validate > configuration symbols for

Re: Publisher - Subscriber pattern for Tapestry Service

2017-06-21 Thread Thiago H. de Paula Figueiredo
On Wed, Jun 21, 2017 at 1:42 AM, abangkis wrote: > I was thinking because of how the Services implementation & instantiation > is managed by tapestry. How the service is injected instead of manually > created. > > Thanks for the hint, I will look at those files source code. >

Re: Slashes in query/context parameter

2017-06-20 Thread Thiago H. de Paula Figueiredo
On Tue, Jun 20, 2017 at 1:12 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > > I have a page that needs to accept an url as query or context parameter. > > So for example: https://abc.com?redirectUrl=https://def.com/abc123/456 > > But Tapestry does not accept the slashes (even

Re: Issue with LinkSubmit and context inside Grid

2017-06-19 Thread Thiago H. de Paula Figueiredo
Hi! Considering it's the same issue but in a different component, please create a new ticket for it and link it to the other one, as the solution may be shared. Thanks for investigating! On Wed, Jun 14, 2017 at 4:46 AM, DEIMAT Guillaume < guillaume.dei...@soprasteria.com> wrote: > Hi guys, > >

Re: Publisher - Subscriber pattern for Tapestry Service

2017-06-19 Thread Thiago H. de Paula Figueiredo
On Sun, Jun 18, 2017 at 12:52 PM, abangkis wrote: > Lets say I have a hashtag entity that i stored in the database and managed > by HashtagDAO (a tapestry service). And then i have a TwitterParserService > that check if a tweet contain a hashtag that i saved in the database.

Re: Generic advice for upgrading from 5.3.8 to 5.4

2017-06-13 Thread Thiago H. de Paula Figueiredo
On Tue, Jun 13, 2017 at 11:33 AM, Davide Vecchi wrote: > Hi everybody, > Hi! > F.ex., I have seen some posts triggered by the removal of Scriptaculous > and they will be useful if we will be in similar situations, but we would > also like to know if there is any advice on

Re: Replacing default type coercer

2017-06-06 Thread Thiago H. de Paula Figueiredo
On Thu, Jun 1, 2017 at 4:12 AM, Andrias Sundskarð wrote: > That might work, but I'm thinking that the type coercer solution is more > like "code once, fix every page", right? Right. Or you could create a new class wrapping a collection and contribute a coercion for it to

Re: Replacing default type coercer

2017-05-31 Thread Thiago H. de Paula Figueiredo
Hi! Why don't you just pass a GridDataSource directly instead of relying on having your collection coerced to it? On Wed, May 31, 2017 at 10:41 AM, Andrias Sundskarð wrote: > Hi, guys. > > I'm using tapestry 5.3.8. > > I need a different grid sorting than the one provided in >

Re: Service creation for Hibernate Session results in ClassFormatError: Duplicate method name

2017-05-09 Thread Thiago H. de Paula Figueiredo
Hello, Thomas! Thanks for you very thorough digging of what's happening here. I think it shed a light on what the problem is: the copying of annotations from service implementation to service proxy. At least Tapestry-IoC should provide a way of preventing this from happening in a per-service

Re: Contribution to ApplicationStateManager not called on ApplicationModule

2017-05-08 Thread Thiago H. de Paula Figueiredo
Hi! Indeed, almost every Tapestry-IoC service is only created when first used. In other words, lazily. On Mon, May 8, 2017 at 10:57 AM, yazmin georgina quintal < geolit...@yahoo.com.mx.invalid> wrote: > Thank you for your interest. > I found the contribution was called asyncronously when

Re: Service creation for Hibernate Session results in ClassFormatError: Duplicate method name

2017-05-08 Thread Thiago H. de Paula Figueiredo
Hello! Why don't you just use tapestry-hibernate to let it deal with creating and handling Hibernate sessions? https://tapestry.apache.org/using-tapestry-with-hibernate.html Also, I believe your code may not be incorrect, but it's not good. Unless you want only one Hibernate session for the

Re: Job opening

2017-05-02 Thread Thiago H. de Paula Figueiredo
I've been just informed that remote working is an option. The office is in Boston, MA, USA, and I work from my home in Belo Horizonte, MG, Brazil. On Tue, May 2, 2017 at 10:45 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Hi! > > There's a job opening at the

Job opening

2017-05-02 Thread Thiago H. de Paula Figueiredo
Hi! There's a job opening at the PubFactory(.com) team, where I've been working the last 7 years. The product uses Tapestry and Tapestry-IoC heavily, so, if you apply, don't forget to mention your T5 skills. :) http://www.oreilly.com/careers/?p=job%2Fonac5fwy -- Thiago

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 27, 2017 at 6:43 AM, abangkis wrote: > Hi. Thanks for the awesome improvement. I want to adopt it immediately. Hi! Nice! :) > But I've stumbled to one problem. How do I pass a parameter to the event? > You don't pass it to the event, but to the t5/core/ajax()

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-22 Thread Thiago H. de Paula Figueiredo
Cool! It's nice to see a feature I've wanted for so long already being adopted by users. Thanks for the example! On Fri, Apr 21, 2017 at 11:18 AM, Svein-Erik Løken wrote: > The @PublishEvent was a big improvement  > > > > I am using it already. I have created a working demo.

Re: Tapestry Quickstart problems

2017-04-18 Thread Thiago H. de Paula Figueiredo
Hi! Yes, Jira tickets, please. On Sat, Apr 15, 2017 at 5:43 PM, Svein-Erik Løken wrote: > The Quickstart project demonstrates how fast it is to start developing a > Tapestry project. > > I have been using it for a new project, but could not debug JavaScript. (I > am using

Re: HTTPS not working with InjectPage or Class

2017-04-18 Thread Thiago H. de Paula Figueiredo
Hello, Geoff! Event handler method return values are processed by ComponentEventResultProcessor instances. By the way, considering you have a load balancer, the projects I work in my day job have HTTPS handled in the load balancer (haproxy) and the Tapestry webapp itself runs *without*

Re: Mouse tracking with Tapestry

2017-04-10 Thread Thiago H. de Paula Figueiredo
On Sat, Apr 8, 2017 at 11:13 AM, Phyambre wrote: > Hi Thiago, > Hi! So if I move the code of the task from onActivate() to setupRender() as > Geoff suggested, I will not have the task on onSubmit() anymore, so I > cannot check whether the user finished before the deadline. A

Re: Mouse tracking with Tapestry

2017-04-07 Thread Thiago H. de Paula Figueiredo
On Fri, Apr 7, 2017 at 1:12 PM, Phyambre wrote: > Hi Thiago, > Hi! > Thanks for your email. > > 1) I am not using form submissions for that. I am using input hidden > fields as temporary variables because the input hidden seem to be > visible from zone-updater.js while the

Re: Mouse tracking with Tapestry

2017-04-07 Thread Thiago H. de Paula Figueiredo
I suggest you to not use form submissions for this. Also, take a look at https://tapestry.apache.org/ajax-and-zones.html, session Invoking server-side event handler methods from JavaScript, which shows how to easily call server-side event handlers from JavaScript from Tapestry 5.4.2 (which should

Re: Creating an org.apache.tapestry5.dom.Document from client-side page source

2017-04-06 Thread Thiago H. de Paula Figueiredo
Isn't this scenario better suited for a web testing tool like Selenium or WebDriver? If you really, really want to parse HTML into Tapestry DOM elements, you can use the nu.validator.htmlparser library, which parses HTML using HTML5 rules and presents itself as a SAX parser. You'll need to

[Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-03-19 Thread Thiago H. de Paula Figueiredo
Hi! This is something I've wanted for a really long time to implement in Tapestry, so I won't wait for it to be released or even the documentation to be updated in the site to post it here. Feedback welcome! Invoking server-side event handler methods from JavaScript Tapestry 5.4.2 introduced has

Re: How to redirect a url with cookie value

2017-02-20 Thread Thiago H. de Paula Figueiredo
On Mon, Feb 20, 2017 at 7:53 AM, Anbazhagan.G wrote: > Hi All, > Hi! > Is it possible to redirect a url with cookie value?.. like... > http://www.test.com/app1/test;JSESSIONID_app1=jklasjfads I don't think that's possible if you're redirecting to a different

Re: ConditionalAutocomplete and Tapestry 5.4

2017-01-25 Thread Thiago H. de Paula Figueiredo
Hi! I cannot check right now, but I believe the 5.4 Autocomplete mixin is now using the jQuery implementation (http://jqueryui.com/autocomplete/) instead of the Scriptaculous one. An option is to copy the 5.3 Tapestry autocomplete class to your code and make your subclass be a subclass of it. On

Re: Loop of checkboxes in form

2017-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, Jan 23, 2017 at 9:21 AM, JumpStart < geoff.callender.jumpst...@gmail.com> wrote: > Another way without @Persist: > > http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/ > loopwithdeletecolumn1 Tapestry JumpStart providing us the correct way of doing stuff again.

Re: Rendering block from Java

2017-01-06 Thread Thiago H. de Paula Figueiredo
Since 5.4, Tapestry has the PartialTemplateRenderer service, which renders different objects and returns them as a String: http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/services/PartialTemplateRenderer.html . Example:

Re: Rendering block from Java

2017-01-06 Thread Thiago H. de Paula Figueiredo
On Fri, Jan 6, 2017 at 3:12 PM, Jaroslav Ciml wrote: > Hi, > > Is rendering of a block possible directly from Java code? > The way you describe in your example, I don't think so, and I would try to avoid doing this kind of thing. Couldn't you break the leading text and

Re: Future of Tapestry

2017-01-06 Thread Thiago H. de Paula Figueiredo
On Fri, Jan 6, 2017 at 5:44 AM, Stephen Nutbrown wrote: > For what it's worth,. I'm a spring boot developer by day, I've just found https://github.com/code8/tapestry-boot by accident. :P There's also Bootique.io, which is a framework inspired by Spring Boot and

Re: Future of Tapestry

2017-01-05 Thread Thiago H. de Paula Figueiredo
On Thu, Jan 5, 2017 at 1:47 PM, wrote: > Hi all, > Hello! > I discover recently Tapestry and it's for me a great Framework but my boss > tells me that his end is near ... > What's the actual scenario? If you're going to write something which isn't a single-page

Re: Parameterized service injection

2016-12-19 Thread Thiago H. de Paula Figueiredo
; > Will need to explore service IDs at some point as mentioned by Lance. > > Thanks, > Andrus > > > > > > On Dec 14, 2016, at 11:06 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > > Hi! > > > > On Tue, Dec 13, 2016 a

Re: Tapestry w Scala

2016-12-19 Thread Thiago H. de Paula Figueiredo
gt; The only trouble I've had so far is delivering Scala collections back to > pages for loop components. I ended up using Java collections in the Scala > and that works fine. > > > > Sent from my iPhone > > > >> On 16 Dec 2016, at 18:11, Thiago H. de Paula Figueiredo <

Re: Tapestry w Scala

2016-12-16 Thread Thiago H. de Paula Figueiredo
On Fri, Dec 16, 2016 at 6:53 AM, Qbyte Consulting wrote: > Hi, > Hi! > Has anyone implemented a T5.4 site with Scala, or are there any kickstart > type Scala projects out there for T5.4 please? I'd like to see how it's > done. > Not me, but yes. Christian Köberl

Re: Parameterized service injection

2016-12-14 Thread Thiago H. de Paula Figueiredo
Hi! On Tue, Dec 13, 2016 at 5:31 AM, Andrus Adamchik wrote: > From what I gather Tapestry 5.4 still does not support parameterized > service injection? It does not. I haven't found yet a situation in which I wanted something like that. I've see people creating a

Re: Submit form without t:form component

2016-12-09 Thread Thiago H. de Paula Figueiredo
Or use an event URL, created through @Inject'ing ComponentResources and using its createEventLink() method. On Fri, Dec 9, 2016 at 11:11 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Another option would be to have a pure HTML form (no usage of the Form > compone

Re: Submit form without t:form component

2016-12-09 Thread Thiago H. de Paula Figueiredo
Another option would be to have a pure HTML form (no usage of the Form component) have its action attribute pointing to a Tapestry page URL (you can get it using PageRenderLinkSource) and use the Request methods to get the query parameters. On Fri, Dec 9, 2016 at 11:09 AM, Thiago H. de Paula

Re: Submit form without t:form component

2016-12-09 Thread Thiago H. de Paula Figueiredo
Hi! You can use a Form component, so you can handle its submission through an onSuccess*() method in usual Tapestry fashion, and use pure HTML fields (i.e. not using the Tapestry form field components), @Inject Request and use Request.getParameter*() methods to get its values and

Re: Add javascript every request

2016-12-07 Thread Thiago H. de Paula Figueiredo
Hi! Another solution, specially if you don't have a single layout component for all the pages, would be creating a mixin to include the JavaScript you want, plus implementing and contributing a ComponentClassTransformWorker to apply it to all pages. I can provide you examples if you want. On

Re: AMP pages with Tapestry

2016-11-30 Thread Thiago H. de Paula Figueiredo
On Tue, Nov 29, 2016 at 6:36 PM, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > Hello Tapestry users, > Hi! > > I would like to create an amp version of my pages into a tapestry5.4 > webapp. According to https://www.ampproject.org/ > docs/reference/spec#required-markup

Re: Get page name inside Dispatcher

2016-11-25 Thread Thiago H. de Paula Figueiredo
On Fri, Nov 25, 2016 at 2:23 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > Hi! I made an implementation of Dispatcher. I want to get the page name from > the request path. Is there any service I can use to achieve this? > > I know in a ComponentRequestFilter for example I

Re: Tapestry examples page

2016-11-11 Thread Thiago H. de Paula Figueiredo
On Tue, Nov 8, 2016 at 3:35 PM, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > Hi tapestry users, > Olá, Carlos! > I want to share with us my first version of http://tapestry5.dev-util.com > webapp. I love jumpstart project ( >

Re: Javascript function not present in html source

2016-11-02 Thread Thiago H. de Paula Figueiredo
Hi! Are you sure you're looking at the same field? The id in the 5.3.8 example doesn't match the one in the 5.2.6 one. Cheers! On Wed, Nov 2, 2016 at 6:52 AM, Lherm Nicolas wrote: > Hi, > > When I switched the version of Tapestry from 5.2.6 to 5.3.8 I saw somes > changes in

Re: How to add default row in AjaxFormLoop

2016-10-13 Thread Thiago H de Paula Figueiredo
value on the text filed. Looks like the entered values are not getting added within the event context. I am not sure if I am missing something here to make the default row works. We are using T5.3.8. Any suggestion or help will be greatly appreciated. Thanks. -- Thiago H. de Paula Figu

Re: Tapestry 5.4.1, MessageFormatter gone?

2016-10-03 Thread Thiago H de Paula Figueiredo
thanks everyone). As far as I can remember, Ivy uses Maven repositories and does transitive dependencies. Is there some sort of tool (or website) that will show (those of us still stuck in the dark ages :-) ) what the actual dependency tree is? mvn dependency:tree. :D -- Thiago H. de

Re: Problem with POST requests

2016-09-27 Thread Thiago H de Paula Figueiredo
} When the the Request is Posted it is looking for properties on the FacetFilter that are only relevant if it were to render an html result -Original Message- From: Thiago H de Paula Figueiredo <thiag...@gmail.com> To: Tapestry users <users@tapestry.apache.org> Sent:

Re: Tapestry 5.4.1, MessageFormatter gone?

2016-09-27 Thread Thiago H de Paula Figueiredo
thing stupid? :-) TIA. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer

Re: Problem with POST requests

2016-09-27 Thread Thiago H de Paula Figueiredo
value is null for properties that are never called on that are never used in a POST request. Anyone know a good work around? Sent from AOL Mobile Mail -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.

Re: Multiple Page activation context

2016-09-20 Thread Thiago H de Paula Figueiredo
On Tue, 20 Sep 2016 13:46:27 -0300, Adam X <vbgnm3c...@gmail.com> wrote: How do I create links? Can I do this: yo bam I'd go with a separate method: yo Object[] getPageContext() { // whatever logic you want or need. } -- Thiago H. de Paula Figueiredo Tapestry, Java and Hib

Re: Multiple Page activation context

2016-09-20 Thread Thiago H de Paula Figueiredo
) == 2) { ... } if(eventContext.getCount() == 3) { ... } ... | } | Exactly. If you end up having more than one onActivate() in the same page class, you should instead have just one with a single EventContenxt parameter. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and develope

Re: Validate annotation on field

2016-09-16 Thread Thiago H de Paula Figueiredo
d do all validation myself in the onValidate event, but this does not seem optimal. See above. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscri

Re: Swipe and touch

2016-09-05 Thread Thiago H de Paula Figueiredo
ured I could just add the mobile. No. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comma

Re: Logical Page Name Shortening

2016-09-02 Thread Thiago H de Paula Figueiredo
which brings back T5.1's URL rewriting API to T5.2+: https://github.com/thiagohp/tapestry-url-rewriter. I recommend checking this blog post of mine: http://tapestry.machina.com.br/2013/10/1/tapestry-url-rewriter-2-0-0-released. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hib

Re: Swipe and touch

2016-09-02 Thread Thiago H de Paula Figueiredo
pestry. ;) :) If it is - I will use that library now. The Tapestry dev team use to find the best library :) It seems that Hammer JS and Touch Swipe are popular(?). Any recommendation? I'm sorry, but I haven't used any of them. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hib

Re: HTTPS on not @Secure page

2016-09-02 Thread Thiago H de Paula Figueiredo
nerate the ajax links secured too. Olá, Carlos! Yeah, this is indeed a bug. Could you please create a small project which demonstrates this bug and attach it to a new Jira ticket? Thanks in advance. :) Regards Carlos Montero -- Thiago H. de Paula Figueiredo Tapestry, Java and Hiber

Re: java.lang.AbstractMethodError loading Index page with T5.4?

2016-08-26 Thread Thiago H de Paula Figueiredo
ervice(Unkn -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: u

Re: Logical Page Name Shortening

2016-08-26 Thread Thiago H de Paula Figueiredo
t; > I have a question about the shortheneng URL's of somes page names. > > > > > > > > > I read that Tapestry removed the redundant suffix of the URL in > certains > > > cases, and and wanna know why or where do they do this ? > > >

Re: Project Folder Structure ...

2016-08-22 Thread Thiago H de Paula Figueiredo
class of pages, components or mixins. Anything else shouldn't be put in a Tapestry-controlled package, and 'base' is one of them. Thank you very much for your answers, and for the tip about the component libraries (I think it's the right way to go, when I have time :D ) My pleasure to help. :)

Re: Project Folder Structure ...

2016-08-18 Thread Thiago H de Paula Figueiredo
a lot on their size. Small ones can have everything in the same place. Larger ones would definitely be separated in component libraries, which would make the application way more modular. Setting up a component library is a one-time cost which can be done relatively quickly. -- Thiago H

Re: Project Folder Structure ...

2016-08-18 Thread Thiago H de Paula Figueiredo
ize your sources, packages and classes by feature. You just need to treat each one as a separate component library, even if they're in the same project/source tree. https://tapestry.apache.org/component-libraries.html tells you how. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate con

Re: Tapestry vs Spring MVC + REST + Angular

2016-08-02 Thread Thiago H de Paula Figueiredo
actual scenario you have to implement, so I won't give any broad answers. I'm just saying that REST services can be done. I'm not saying it's the best solution. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.

Re: Tapestry vs Spring MVC + REST + Angular

2016-08-02 Thread Thiago H de Paula Figueiredo
pages as REST endpoints? I don't see why using components for that would be better. I have had problems migrating apps from T5.3.6 to T5.4 so not entirely happy. Which ones? -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.

<    1   2   3   4   5   6   7   8   9   10   >