Re: Location of assets

2017-03-31 Thread Jaroslav Ciml
u > reference it via relative paths. That check does not apply for absolute > paths (starting with a slash). > > Cheers, > Christian > > > > > Am 24.02.2017 um 12:59 schrieb Jaroslav Ciml : > > > > Hi, > > > > I am trying to figure out what is the

Location of assets

2017-02-24 Thread Jaroslav Ciml
Hi, I am trying to figure out what is the correct location of assets with Tapestry 5.4 and Maven directory structure. I will explain how do I understand it. Correct what is wrong please. From logical point of view, I can think of two types of assets - global and comopnent specific. A global a

ConditionalAutocomplete and Tapestry 5.4

2017-01-25 Thread Jaroslav Ciml
Hi, I am trying to upgrade from Tapestry 5.3 to 5.4 and I encountered a problem with built-in mixin Autocomplete. It is quite useful if the mixin takes effect just if some condition is met. So I have implemented a custom mixin by subclassing the built-in one. Here is the important snippet of c

Rendering block from Java

2017-01-06 Thread Jaroslav Ciml
Hi, Is rendering of a block possible directly from Java code? I know that I can return a block from a rendering phase method: Object beginRender() { if (someCondition) { return someBlock; // of type org.apache.tapestry5.Block } ... } However, can I do something like Object

Setting a parameter of an implementation mixin

2016-12-19 Thread Jaroslav Ciml
Hi, is there a way to set the value of a mixin parameter in case of an implementation mixin? If the mixin is used as an instance mixin, I can bound its parameter value in the template or using the attribute "parameters" of the @Component annotation. However, let's supppose that a component ren

Re: Partial markup via block

2016-06-03 Thread Jaroslav Ciml
is wrapped into a JSON object, in contrast to using a MarkupWriter (just like in Autocomplete). Regards, Jarda > On Jun2, 2016, at 13:59, Thiago H de Paula Figueiredo > wrote: > > On Thu, 02 Jun 2016 04:59:10 -0300, Jaroslav Ciml > wrote: > >> Hi, > > Hi

Partial markup via block

2016-06-02 Thread Jaroslav Ciml
Hi, I'm using Tapestry 5.3. In a Tapestry component, I'm trying to implement an event handler that creates responses to AJAX requests. I know that I can call MarkupWriterFactory#newPartialMarkupWriter to get an instance of MarkupWriter and then generate the response using this MarkupWriter in

Re: Prepare for submit handler seems to be not called

2016-05-26 Thread Jaroslav Ciml
016 08:48:17 -0300, Jaroslav Ciml > wrote: > >> Hi Barry, > > Hello, Jaroslav! > >> This pattern (form data groupped in DTO, simple initialization for POST >> requests in prepare for submit handler, more complex initialization for GET >> requests in prepare

Re: Prepare for submit handler seems to be not called

2016-05-25 Thread Jaroslav Ciml
Data getFormData() { >> return new SearchFormData(); >> } >> >> should fix it >> >> On Monday, May 23, 2016, Jaroslav Ciml wrote: >> >>> Hi, >>> >>> I am getting a strange exception during submit of a Tapestry form that I &g

Re: Prepare for submit handler seems to be not called

2016-05-25 Thread Jaroslav Ciml
emoved the value of the parameter t:submit. Jarda > On May25, 2016, at 12:37, Barry Books wrote: > > It's difficult to say why it might be null but changing the code to > > public SearchFormData getFormData() { > return new SearchFormData(); > } > > should fix

Prepare for submit handler seems to be not called

2016-05-23 Thread Jaroslav Ciml
Hi, I am getting a strange exception during submit of a Tapestry form that I cannot explain. It happens just rarely (but regularily) in the production environment. I cannot even reproduce the exception. I have a form in tml file of a Tapestry component. ... .. And her

Re: StreamResponse an EventLink

2013-10-17 Thread Jaroslav Ciml
Hi, good point! That's it. isCommited() should return true after first flush() on output stream. (according to JavaDoc of javax.servlet.ServletResponse) Tapestry calls flush() on response output stream in TapestryInternalUtils.copy() to prevent this issue. However, there is a bug in SpringSec

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Hi, inside the troublesome method, RequestGlobals.getHttpServletRequest() returns instance of org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper this one wraps org.springframework.security.web.firewall.RequestWrapper and this wraps org.mortbay.jetty.Request

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Hi, thanks for another hint. :) It was worth trying. However, I am out of luck with this issue. RedirectFixRequestFilter from gaeutils does not help either. :( Cimlman __ > Od: Lance Java > Komu: Tapestry users > Datum: 16.10.2013 1

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Hi, not sure if I understand your idea. Spring Security is necessary to reproduce this issue. The problem occurs only with Spring Security. The same event handling method works fine on page without Spring Security. Cimlman __ > Od: L

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
Hi, thanks for these hints. However, the exception is caused by something different. :( I am not using GAE. Setting "tapestry.gzip-compression-enabled" to "false" does not help either. Cimlman __ > Od: Lance Java > Komu: Tapestry u

Re: StreamResponse an EventLink

2013-10-16 Thread Jaroslav Ciml
.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd";> Cheers Cimlman __ > Od: Jaroslav Ciml > Komu: Tapes

Re: StreamResponse an EventLink

2013-09-27 Thread Jaroslav Ciml
Komu: Tapestry users > Datum: 26.09.2013 18:43 > Předmět: Re: StreamResponse an EventLink > >On Thu, 26 Sep 2013 11:35:57 -0300, Jaroslav Ciml wrote: > >> Hi, > >Hi! > >> I am using Tapestry version 5.3.6. > >I tested it on 5.4-alpha-22. > >> This exce

Re: StreamResponse an EventLink

2013-09-26 Thread Jaroslav Ciml
.run(QueuedThreadPool.java:582) __ > Od: Thiago H de Paula Figueiredo > Komu: Tapestry users > Datum: 26.09.2013 14:42 > Předmět: Re: StreamResponse an EventLink > >On Thu, 26 Sep 2013 07:43:44 -0300, Jaroslav Ciml wrote: > >> Hi, > >Hi! >

StreamResponse an EventLink

2013-09-26 Thread Jaroslav Ciml
Hi, Is returning an StreamResponse instance from EventLink handler a good practice? I have the following link in the template file. ${message:exportToCsv} And the following method handles the event in java file. @OnEvent("exportToCsv") StreamResponse exportToCsv() { return new TextSt