Re: Asset Browser Caching

2016-05-11 Thread Thilo Tanner
uot;the page does not refresh", and solved it by adding these headers to all responses. Best regards, Cezary On Tue, May 10, 2016 at 5:10 PM, Thilo Tanner wrote: > Hi Cezary, > > Thanks a lot for your feedback. > > In production, we currently use 5.4-beta-26. I quickly tried 5

Re: Asset Browser Caching

2016-05-10 Thread Thilo Tanner
s every 60 minutes, though hopefully Tapestry should avoid sending whole module again, just inform the browser that it does not changed. Best regards, Cezary On Tue, May 10, 2016 at 3:17 PM, Thilo Tanner wrote: > Hi all, > > We use Tapestry mainly for internal applications. We have u

Asset Browser Caching

2016-05-10 Thread Thilo Tanner
assets from T5 submodules, but the problem is the same for core.js or any other directly loaded asset. All inputs are welcome! Thanks and best, Thilo Thilo Tanner Technology Lead Direct +41 43 300 54 42 Mobile +41 795064636 thilo.tan...@reprisk.com <mailto:thilo.tan...@reprisk.

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
d still be able to override some symbols when needed as we >> usually do in tapestry. >> >> >> >> On Tue, Jul 28, 2015 at 2:11 PM, Thilo Tanner > > >> wrote: >> >> > Hi Dmitry, >> > >> > In our case, yes we hardc

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
something like this in your startup script: java -Dmyapp.db.username=DB_USERNAME -Dmyapp.db.password=DB_PASSWORD -jar myapp.jar where myapp.db.username and myapp.db.password are user-defined T5 symbols. Using such a strategy, you can avoid committing your credentials. Best, Thilo -- Thilo Tanner

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
ovide configuration at runtime via >system properties or external .properties file? > >I know this should be pretty easy to code, just wondering if there's >anything ready that may be reused without reinventing the wheel. > >On Tue, Jul 28, 2015 at 12:30 PM, Thilo Tanner >wrote:

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
Hi Dmitry, Yes, we are running T5.4 apps in production by embedding Undertow (Servlet container from Wildfly). With Tapestry, such a setup is relatively easy to achieve: You create an application class that bootstraps the Tapestry filter in Undertow: http://undertow.io/undertow-docs/undertow-

Re: Zone event, new client id

2015-07-24 Thread Thilo Tanner
Hi Tony, In which render phase are trying to access the client id? It may help if you post parts of your code. Injecting the component to access the client id works for me (for the following common pattern): @Environmental private JavaScriptSupport javaScriptSupport; @Component private Select

Re: [T5.4] 5.4-beta-32 on Maven Central / T5.4 Release Schedule

2015-07-15 Thread Thilo Tanner
witching to a 5.4 release candidate @dev so >rest assured, a release will happen in the next few weeks and a final >sometime in the Fall (by my guess). > >Kalle > >On Tue, Jul 14, 2015 at 3:28 AM, Thilo Tanner >wrote: > >> Hi all, >> >> On the Github mirror, I’v

[T5.4] 5.4-beta-32 on Maven Central / T5.4 Release Schedule

2015-07-14 Thread Thilo Tanner
Hi all, On the Github mirror, I’ve seen that 5.4-beta-32 was released a while ago, but the latest version isn’t available neither on Maven Central nor on Apache Releases. Is there anything I can contribute / help to make it happen? What are the release plans for Tapestry 5.4? We’re currently e

Re: AW: PDF Viewer component

2015-02-20 Thread Thilo Tanner
Hi Daniel, >From my point of view, it is one of the strength of Tapestry not to abstract >the web away. A proper understanding of web technologies is the foundation to >build robust, fast and maintainable applications. I've seen entire teams struggling with all sorts of issues just because they

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
be something super obvious, I think. @Thilo Tanner: I'm a bit confused by your eventlink suggestion. I have probably omitted too much information, it seems. My setup is basically this: A page containing two components - a box containing information and a few buttons, one of which fires the

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
I haven't found a more elegant way than src="go\back\to\the\folder\containing\the\viewer". Regards, Daniel P. -Ursprüngliche Nachricht- Von: Thilo Tanner [mailto:thilo.tan...@reprisk.com] Gesendet: Donnerstag, 19. Februar 2015 15:19 An: Tapestry users Betreff: Re: PDF Vi

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
Hi Daniel, What exactly is the issue with your code? We use something similar (and content type "application/pdf"); see below. I'm sure you will take care of it when the code works, but your implementation is extremely dangerous :-) Best, Thilo public abstract class AbstractStreamResponse imp

Re: PDF Viewer component

2015-02-19 Thread Thilo Tanner
Hi Daniel, If you want to render a PDF on client side (instead of just sending a stream), you could use pdf.js: http://mozilla.github.io/pdf.js/ We use it for rather large PDFs and it works well. Best, Thilo From: Poggenpohl, Daniel Sent: Thursday, F

Re: [T5.4] Dynamic Forms

2015-01-12 Thread Thilo Tanner
Hi Thiago, Thanks a lot for your prompt feedback! I will try to use the BeanEditor by contributing new property editors. I also thought about looping through the map entries and use the delegate component for the different field types. Let's see. Best, Thilo -- Thilo Tanner IT Develo

[T5.4] Dynamic Forms

2015-01-12 Thread Thilo Tanner
Hi all, I'm currently working on a report generation tool (using JasperReports in the background). The reports will consist of multiple components. Beside having "static" parameters, I will need runtime parameters shared across the different components. The challenge I'm facing now, is to creat

Re: ApacheCon Europe

2014-12-07 Thread Thilo Tanner
; >Best regards, > >2014-11-27 10:33 GMT+01:00 Thilo Tanner : > >> Hi folks, >> >> Uli and myself gave our best to promote Tapestry on ApacheCon Europe in >> Budapest last week. Unfortunately, most people were more interested in >> buzzword technologies, in p

ApacheCon Europe

2014-11-27 Thread Thilo Tanner
Hi folks, Uli and myself gave our best to promote Tapestry on ApacheCon Europe in Budapest last week. Unfortunately, most people were more interested in buzzword technologies, in particular in the Hadoop ecosystem. Don’t get me wrong, Hadoop is a good technology if you have a real use case for it,

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Thilo Tanner
Hi George, Of course, you can do that. Contribute the following to the application defaults (in your main module class): public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.OMIT_GENERATOR_META, true); } Best, Thilo

RE: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thilo Tanner
: java.lang.reflect.InvocationTargetException I don't have created any constructor in my layouts, so it can't be that. 2014-07-03 12:16 GMT+02:00 Thilo Tanner : > Hi! > > The problem is, that Tapestry cannot create an instance of your component > LoginLayout. > > You probably created

RE: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thilo Tanner
Hi! The problem is, that Tapestry cannot create an instance of your component LoginLayout. You probably created a non-default constructor or the constructor is private or protected. Check the Tapestry component lifecycle in case you want to setup your component (for example by using @SetupRen

RE: How to use log4j 2.x in compination with tapestry?

2014-06-13 Thread Thilo Tanner
Hi Jerremias, Sure, Tapestry uses SLF4J as a logging facade. Check this page how to log over SLF4J 2.0: http://logging.apache.org/log4j/2.x/log4j-slf4j-impl/ You may need to exclude older versions of SL4J from your Classpath. Best, Thilo From: jeremia

RE: How to configure BeanValidator?

2014-06-13 Thread Thilo Tanner
Hi Jeremias, Do you have a BeanValidator implementation in your classpath? The Tapestry BeanValidation module is implementation agnostic. You need add an implementation first. For example Hibernate Validator: org.hibernate hibernate-validator ${hibernate-val

RE: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Thilo Tanner
lease mention the URL so I can "watch" it *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Wed, Jun 11, 2014 at 10:09 AM, Thilo Tanner wrote: > Hi Muhammad, > > This is something, I also recognized. The source map for the Bootstrap is > not inc

RE: [t5.4-beta-10] Broken asset URL in Tapestry's maven archetype

2014-06-11 Thread Thilo Tanner
Hi Muhammad, This is something, I also recognized. The source map for the Bootstrap is not included in the core stack (or the reference excluded from Bootstrap CSS shipped with T5.4). I will file a JIRA issue. Best, Thilo From: Muhammad Gelbana Sent: W

RE: [T5.4] Component Rendering / Form Events

2014-05-26 Thread Thilo Tanner
, 2014 13:52 To: Tapestry users Subject: Re: [T5.4] Component Rendering / Form Events On Mon, 26 May 2014 04:41:07 -0300, Thilo Tanner wrote: > Hi all, Hi! > I'm a bit puzzled how the component rendering and form events play > together. Most of form events are completely independent

RE: FreeMarker configuration problems

2014-05-26 Thread Thilo Tanner
Hi Lidija, I don't use Chenillekit for Freemarker, but I integrated Freemarker not too long ago, also to render emails, using the AssetSource service: First, I created a AssetTemplateLoader implements TemplateLoader which uses the AssetSource service behind the scenes to load the actual templat

RE: [T5.4] Component Rendering / Form Events

2014-05-26 Thread Thilo Tanner
alization. On Mon, May 26, 2014 at 11:41 AM, Thilo Tanner wrote: > Hi all, > > I'm a bit puzzled how the component rendering and form events play > together. I have a component class with the following code: > > @Persist > private Set ids; > > @SetupRend

[T5.4] Component Rendering / Form Events

2014-05-26 Thread Thilo Tanner
Hi all, I'm a bit puzzled how the component rendering and form events play together. I have a component class with the following code: @Persist private Set ids; @SetupRender public void setup() { if(ids == null) { ids = new HashSet<>(); } } public void onSuccess() { doSomet

RE: Displaying an ArrayList of strings in a form using TextFields

2014-05-20 Thread Thilo Tanner
way, just displaying each String in the ArrayList as a separate text field/area. Thanks, Steve On 20 May 2014 13:35, Thilo Tanner wrote: > Hi Stephen, > > If you want one separate text field per ArrayList value, I suggest you take a > look at the FormLoop component: > > http://jumpsta

RE: Displaying an ArrayList of strings in a form using TextFields

2014-05-20 Thread Thilo Tanner
Hi Stephen, If you want one separate text field per ArrayList value, I suggest you take a look at the FormLoop component: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 (The JumpStart sample app is a very good starting point to learn about T5 components) The componen

RE: Value Encoder Problem

2014-05-05 Thread Thilo Tanner
Hi Marcos, Instead of using List uploadedFiles as your model, you need to provide a SelectModel instance for your uploaded files. Extend AbstractSelectModel and return OptionModel instances with your preferred label. I hope this helps. Best, Thilo Fro

RE: Reg: How to set progressive display whole project

2014-04-02 Thread Thilo Tanner
Hi, there are several ways to achieve such a behavior. One example below. The idea is simple, you place your start button within a zone and after the click, you replace the zone content with your progressive display. Java: @Inject private Block display; public Object onStart()

RE: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thilo Tanner
ks for the input! Thilo From: Thiago H de Paula Figueiredo Sent: Tuesday, February 11, 2014 17:30 To: Tapestry users Subject: Re: Tapestry IOC / Autobuild / Advise Question On Tue, 11 Feb 2014 13:51:13 -0200, Thilo Tanner wrote: > Hi Lance, h

RE: Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thilo Tanner
Hi Lance, hi Thiago, thanks a lot for your feedback. To be honest, I'm still a bit confused: Creating a bean or prototype scope seem to be controversial, according to older discussions: e.g. http://web.archiveorange.com/archive/v/NzHgIqXAifXhNB7jPRIc It is recommended to either use autobuild()

Tapestry IOC / Autobuild / Advise Question

2014-02-11 Thread Thilo Tanner
Hi all, I have a quick question concerning Tapestry IOC. I'm currently integrating Akka into one of my applications. In order to use it with a DI container, I created a IndirectActorProducer which uses the autobuild() method of ObjectLocator, in order to create a new actor object whenever produ

RE: [5.4] Render Partial HTML Pages

2013-11-08 Thread Thilo Tanner
://issues.apache.org/jira/browse/TAP5-1864 Thilo From: Thilo Tanner Sent: Friday, November 08, 2013 10:40 To: Tapestry users Subject: RE: [5.4] Render Partial HTML Pages Hi Thiago, thanks a lot for your feedback. The application is based on Bootstrap 3 and

RE: [5.4] Render Partial HTML Pages

2013-11-08 Thread Thilo Tanner
: Wednesday, November 06, 2013 12:46 To: Tapestry users Subject: Re: [5.4] Render Partial HTML Pages On Wed, 06 Nov 2013 07:48:10 -0200, Thilo Tanner wrote: > Dear Tapestry Developers / Users, Hi! Does your page import stylesheets or JavaScript directly? Or through components it uses? If

[5.4] Render Partial HTML Pages

2013-11-06 Thread Thilo Tanner
Dear Tapestry Developers / Users, I have a question concerning partial HTML rendering without using zones using 5.4. Until alpha 24, the following code was working: @Inject private Block page; @Inject private Block modal; public Object getActiveBlock() { return request.isXHR() ? modal : pa

Lean Forms and a Javascript Bug

2013-09-03 Thread Thilo Tanner
Hi all, I'm not sure about using the form component correctly, because my setup ends in a Javascript exception. Environment: - Tapestry 5.4-alpha-15 - configuration.add(SymbolConstants.FORM_CLIENT_LOGIC_ENABLED, false); - tapestry-beanvalidator module using Hibernate Validator 4.3.1.Final The se

Re: Tynamo Resteasy / JPA Integration

2012-04-10 Thread Thilo Tanner
tant, 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 comman

Re: Tynamo Resteasy / JPA Integration

2012-04-10 Thread Thilo Tanner
nnotation should > be on the interface method not on the implementation. > > Hope it helps > Sent from my iPhone > > On Apr 10, 2012, at 1:58 PM, Thilo Tanner wrote: > >> Hi Alejandro, >> >> thanks a lot for the hint. I refactored our code according t

Re: Tynamo Resteasy / JPA Integration

2012-04-10 Thread Thilo Tanner
easyguide-Liveclassreloading > > Cheers. > Alejandro. > > > On Thu, Apr 5, 2012 at 13:35, Thilo Tanner wrote: >> Dear Tapestry Users >> >> We would like to integrate Tynamo's Resteasy module with the JPA >> module (from Tapestry with Hibernate 4). T

Tynamo Resteasy / JPA Integration

2012-04-05 Thread Thilo Tanner
Dear Tapestry Users We would like to integrate Tynamo's Resteasy module with the JPA module (from Tapestry with Hibernate 4). The problem is, that we cannot advise Tapestry to observe the @CommitAfter annotations for the web service resources. The following doesn't work: @Match("*Resource") publi

[T5]: RESTful "File" Extensions (Multiple Templates per Page)

2008-12-03 Thread Thilo Tanner
Hi All, I have a question concerning T5 and RESTful URLs: We'd like to create RESTful URLs with virtual "file" extension like: /articles/1.html /articles/1.json /articles/1.pdf It would be perfect to have just one page class (e.g. pages/articles/ Edit.java) and several templates like: articl

[T5]: RESTful "File" Extensions (Multiple Templates per Page)

2008-12-03 Thread Thilo Tanner
Hi All, I have a question concerning T5 and RESTful URLs: We'd like to create RESTful URLs with virtual "file" extension like: /articles/1.html /articles/1.json /articles/1.pdf It would be perfect to have just one page class (e.g. pages/articles/Edit.java) and several templates like: articles/