Preventing double click eventlink and form submit

2023-02-24 Thread Nathan Quirynen
Hi, I am looking for a solution to prevent multiple clicks on event links or form submits in our Tapestry application and in the meanwhile if possible giving the user visual feedback while the request is being processed. We use ajax (async="true") on both our eventlinks and form components, b

Re: Trigger event to outer component

2021-10-28 Thread Nathan Quirynen
27, 2021 at 3:38 PM Nathan Quirynen wrote: Hi, I want to bubble up an event from a component, which is deeply nested in other components, to an outer component, but it only bubbles up to the page and not further to the component defined as t:type="***" in the page. Some simplified e

Trigger event to outer component

2021-10-27 Thread Nathan Quirynen
Hi, I want to bubble up an event from a component, which is deeply nested in other components, to an outer component, but it only bubbles up to the page and not further to the component defined as t:type="***" in the page. Some simplified example code to clarify: Page:     ...         ..

Re: Render a single Enum value

2021-08-27 Thread Nathan Quirynen
If you want a reusable solution, you could contribute your own custom binding prefix, so you can use the following in your .tml files: ${enum:object.enumValue} And then in your .properties message files: EnumName.ENUM=Enum message 1. Extend the AbstractBinding class: (maybe it can also

Re: Render a single Enum value

2021-08-27 Thread Nathan Quirynen
Or if you want a more global easy to use solution, you could contribute your own custom binding prefix, so you can use the following in your .tml files: ${enum:object.enumValue} And then in your .properties message files: EnumName.ENUM=Enum message 1. Extend the AbstractBinding class:

Re: The checkbox is checked by default!!

2020-10-06 Thread Nathan Quirynen
Is it possible that your "acronyms" property has a value of true when rendering ? Op 6/10/2020 om 14:42 schreef marwa hussein: Hi all, I am trying to populate a grid with some values and add a column with a checkbox to select a value.. The problem when the grid is pop

Re: Contribute messages resource in non component lib

2020-04-08 Thread Nathan Quirynen
Nevermind, it does seem to work, but I had to @ImportModule the module in my web app. Op 8/04/20 om 12:49 schreef Nathan Quirynen: Hi all, I want to contribute a messages source in a Tapestry module of a dependency project which is not a components library. In our components library we

Contribute messages resource in non component lib

2020-04-08 Thread Nathan Quirynen
Hi all, I want to contribute a messages source in a Tapestry module of a dependency project which is not a components library. In our components library we added following in our module:     public static void contributeComponentMessagesSource(             @Value("***/ComponentsLib.properties"

Configure requirejs

2019-08-07 Thread Nathan Quirynen
Hey, How can I configure requirejs in Tapestry? I want to set the "waitSeconds" option for the whole application. How can I achieve this? Thanks, Nathan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For ad

Re: Add javascript to every request response

2018-12-24 Thread Nathan Quirynen
ering, e.g.: public void insertGreetings() { javaScriptSupport.require("mymodule").invoke("greetings").priority(InitializationPriority.EARLY).with("World"); } Best regards, Cezary On Fri, Dec 21, 2018 at 3:39 PM Nathan Quirynen

Add javascript to every request response

2018-12-21 Thread Nathan Quirynen
Hi, Is it possible to add javascript or some javascript module call to every (also xhr) requests response? Nathan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@ta

Re: Using JavaScript during Ajax request

2018-09-27 Thread Nathan Quirynen
When your request is an ajax call, you can use the following construct to use the JavaScriptSupport service: ajaxResponseRenderer.addCallback(new JavaScriptCallback() {             @Override             public void run(JavaScriptSupport javascriptSupport) {                 // Your code here   

Re: Translate annotation stopped working

2018-05-04 Thread Nathan Quirynen
You can ignore this question. I was confused with Translate also working with outputting a property like ${test} but translators are only used in form fields. Op 04/05/2018 om 19:10 schreef Nathan Quirynen: Hi, We have some contributed translators to do the client <-> server trans

Translate annotation stopped working

2018-05-04 Thread Nathan Quirynen
Hi, We have some contributed translators to do the client <-> server translation. For some reason they are not working anymore in our project. (we changed a lot on the code - not on the translators though, so we are not sure what changes could cause this) Is there any place I should be looki

Re: Closure minimize parse error

2018-03-13 Thread Nathan Quirynen
tapestry5.internal.services.assets.MasterResourceMinimizer for default implementation) and your own logic to decide if minimisation should be performed. Best regards, Cezary On Mon, Mar 12, 2018 at 5:30 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: Hi, on our testin

Closure minimize parse error

2018-03-12 Thread Nathan Quirynen
Hi, on our testing server we get the following error: ... JSC_PARSE_ERROR. Parse error. getters are not supported in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at StreamableResourceclasspath:META-INF/assets/js/pdfjs/

Re: [ANN] JumpStart 7 Released!

2018-01-12 Thread Nathan Quirynen
Hey, Just wanted to say thanks for your wonderful Tapestry examples, as I have used it regularly in the past and I'm sure I will use it in the future! Nathan Op 11/01/2018 om 14:14 schreef JumpStart: Hi all, At long last, JumpStart 7 has officially been released, with a downloadable zip fi

Re: Dynamic form fields

2017-12-16 Thread Nathan Quirynen
schreef Bob Harner: Nathan, Have you tried the FormFragment component? See https://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html On Dec 14, 2017 5:47 AM, "Nathan Quirynen" wrote: Hi, This subject has been spoken about more in the past, but I

Dynamic form fields

2017-12-14 Thread Nathan Quirynen
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 fields to a form "dynamically". In my use case I just want to add some fields to a form when a checkbox (

Re: Service binding based on condition

2017-08-11 Thread Nathan Quirynen
specify "someId" as name. On 10 August 2017 at 18:44, Nathan Quirynen wrote: Hi, When having just one implementation of a service interface the binding is done like the following: public static void bind(ServiceBinder binder) { binder.bind(SomeServiceInterface.class, SomeServi

Re: Service binding based on condition

2017-08-10 Thread Nathan Quirynen
Thanks Thiago, this is what I needed. Op 10/08/2017 om 23:10 schreef 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 li

Service binding based on condition

2017-08-10 Thread Nathan Quirynen
Hi, When having just one implementation of a service interface the binding is done like the following: public static void bind(ServiceBinder binder) { binder.bind(SomeServiceInterface.class, SomeServiceImpl.class); } But now I need to bind the interface to one of multiple possible imple

Re: Slashes in query/context parameter

2017-06-21 Thread Nathan Quirynen
= null) { redirectUrl = "http://example.org/page";; } } } TestPage.tml http://tapestry.apache.org/schema/tapestry_5_4.xsd";> On Tue, Jun 20, 2017 at 6:12 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: Hi

Re: Slashes in query/context parameter

2017-06-21 Thread Nathan Quirynen
id in another reply, I can use URLEncoder in my other application (which is also a Tapestry application) to create the link with the url parameter and then use @ActivationRequestParameter. Op 20/06/2017 om 23:17 schreef Thiago H. de Paula Figueiredo: On Tue, Jun 20, 2017 at 1:12 PM, Nathan Quirynen

Slashes in query/context parameter

2017-06-20 Thread Nathan Quirynen
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 if I use the %2F notation): *Input string '[...]' is not valid; the character '/' at position 7 is

Re: Unable to get custom attributes value in Mixin from Select control

2017-03-31 Thread Nathan Quirynen
Hi, What version of Tapestry are you using? I think since version 5.4 it is required to add the mixin prefix to its parameters: t:[mixin-name].[parameter-name]="[property-name]" So in your case: Maybe that is the problem you are having? Nathan Op 29/03/2017 om 11:42 schreef Ankit Jain:

Re: Loop of checkboxes in form

2017-01-25 Thread Nathan Quirynen
Thanks all for your answers. And yes JumpStart has been a reference for me lots of times, so thank you for that! In my search I've found that Tapestry actually has a component that does what I need: https://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Checklist.

Loop of checkboxes in form

2017-01-23 Thread Nathan Quirynen
Hi, What is the best practice for showing a (dynamic) list of objects as checkboxes in a form and posting the selection. I have found some examples, but they all have the need of persisting data in the http session, which I'd like to avoid as much as possible. Or is this the only way to achie

Re: Rendering block from Java

2017-01-06 Thread Nathan Quirynen
Hey, I'm not sure with blocks, but I do know that Lance (Tapestry committer) made a library to render pages and components in code. Maybe this can help you with your case? https://github.com/uklance/tapestry-offline Nathan Op 06/01/2017 om 18:12 schreef Jaroslav Ciml: Hi, Is rendering o

Re: Add javascript every request

2016-12-07 Thread Nathan Quirynen
in my application - if you need more help, ill be happy to help! Thanks, David. On Wed, Dec 7, 2016 at 9:26 PM, Nathan Quirynen < nat...@pensionarchitects.be wrote: Hi, I want to add a session timeout warning popup to a Tapestry5.4 application. I thought of creating a javascript module

Add javascript every request

2016-12-07 Thread Nathan Quirynen
Hi, I want to add a session timeout warning popup to a Tapestry5.4 application. I thought of creating a javascript module that counts down the remaining time left before the session times out and then shows a popup warning with the option to logout or keep on going and if no action is taken a

Re: Custom validator default error message

2016-12-01 Thread Nathan Quirynen
Nathan On 01/12/16 13:13, JumpStart wrote: Does this help? http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/contributingvalidators <http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/contributingvalidators> Cheers, Geoff On 1 Dec 2016, at 7:27 PM, Nathan Q

Custom validator default error message

2016-12-01 Thread Nathan Quirynen
Hi, I have a Tapestry module contributing some custom validator implementations. How can i set default validation error messages for these in Tapestry 5.4? In older Tapestry versions I think you had to contribute a message catalog to the ValidationMessagesSource service, but this does not ex

Re: Get page name inside Dispatcher

2016-11-29 Thread Nathan Quirynen
Indeed exactly what I need! Thanks Thiago. Nathan On 25/11/16 19:02, Thiago H. de Paula Figueiredo wrote: 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 r

Get page name inside Dispatcher

2016-11-25 Thread Nathan Quirynen
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 can use PageRenderRequestParameters..getActivePageName(), but how can I do the same inside a Dispatc

Re: Embeding PDF document in Tapestry4 page

2016-11-25 Thread Nathan Quirynen
In that case I think you could take a look at the pdf.js library (https://mozilla.github.io/pdf.js/) and make your own Tapestry component that uses this javascript library. I'm not familiar with Tapestry 4 though, but that's how I would do it with Tapestry5 Nathan On 24/11/16 14:44, Mukesh Ch

Re: Multiple Page activation context

2016-09-20 Thread Nathan Quirynen
|You can do something like the following: void onActivate(EventContext eventContext) { | ||if(eventContext.getCount() == 1) { ... } if(eventContext.getCount() == 2) { ... } if(eventContext.getCount() == 3) { ... } ... | } | On 20/09/16 18:04, Adam X wrote: I would like to have mul

Re: Validate annotation on field

2016-09-16 Thread Nathan Quirynen
nstant and also without using the @Validate annotation as I have no access to the field declarations (also in a library). On 16/09/16 14:14, Thiago H de Paula Figueiredo wrote: On Thu, 15 Sep 2016 11:20:57 -0300, Nathan Quirynen wrote: Hi, Hi! @Validate("regexp="+SOME_REGE

Re: Validate annotation on field

2016-09-16 Thread Nathan Quirynen
I used this same regexp value in the @Validate annotation before without problems, but with my method above it gives the above parsing error. Anyone know how I can solve the above problem? Nathan On 15/09/16 16:20, Nathan Quirynen wrote: Hi, I want to use the @Validate annotation, but I cannot

Validate annotation on field

2016-09-15 Thread Nathan Quirynen
Hi, I want to use the @Validate annotation, but I cannot put it at the value properties, because these properties are part of a DTO object that is part of a library. In the documentation (http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/beaneditor/Validate.html) I found the fol

Re: how to pass geolocation coords as hidden values in login form

2016-08-30 Thread Nathan Quirynen
Hi I guess you could do something like the following: Create a component just containing two hidden fields and in the after render event of this component run a javascript module where you get the longitude and latitude and set these values to your hidden fields. Add two parameters (latitude a

Re: null pointers after user hits enter in AJAX form

2016-08-19 Thread Nathan Quirynen
Hi, I'm not really sure what your problem is, but for disabling the enter key you might wanna try binding the following event in a javascript module: |$('#'+fieldId).bind('keypress',function(e){if(e.keyCode ==13){returnfalse;}}); | You can invoke this module from your component, or create a

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
Ok, thanks for the heads-up, I added it to the constraint. Nathan On 30/06/16 17:10, Chris Poulsen wrote: btw the modules path can be both "modules" and "modules.gz" depending on various things. On Thu, Jun 30, 2016 at 4:35 PM, Nathan Quirynen mailto:nat...@pensiona

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
set paths usually contains "/asset/" and module paths contains "/modules/") On Thu, Jun 30, 2016 at 11:55 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: Is there any way to know in a Request filter if it is a page request (not a request to some asset). I th

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
that for every request to an asset it is never null, and parameters.getLogicalPageName() has the value "Index". On 29/06/16 18:32, Nathan Quirynen wrote: I have found that in one of the applications request filters following is added to every response: Cache-Control: no-cache, no-s

Re: Caching problem?

2016-06-29 Thread Nathan Quirynen
I have found that in one of the applications request filters following is added to every response: Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache On 29/06/16 17:33, Nathan Quirynen wrote: Hi, I have a "weird" problem where this one image won't show up.

Caching problem?

2016-06-29 Thread Nathan Quirynen
Hi, I have a "weird" problem where this one image won't show up. Never had this problem before the upgrade to 5.4 and since there have been changes with caching, I guess it has something to do with that. I don't know a lot about the caching Tapestry does (or in general), so I hope someone can

Re: Illegal field modifiers in class ...: 0x12

2016-06-08 Thread Nathan Quirynen
Hey, In what package was the interface originally? Because Tapestry does bytecode rewriting in some defined packages; I know it does in package "components". So this might be what is happening and then it is true that the interface should be moved outside of this package. Nathan On 08/06/16

Re: [tapestry5-jquery] CustomDatepicker mixin not working

2016-05-19 Thread Nathan Quirynen
Sorry, mail was sent empty by mistake. Just wanted to say I made the issue with some of my thoughts/testing info. https://github.com/got5/tapestry5-jquery/issues/373 Have also tried with Tapestry 5.4.1 with no success. On 18/05/16 09:19, Nathan Quirynen wrote: On 17/05/16 21:43, françois

Re: [tapestry5-jquery] CustomDatepicker mixin not working

2016-05-18 Thread Nathan Quirynen
On 17/05/16 21:43, françois facon wrote: Hi Nathan, Could you open an issue at https://github.com/got5/tapestry5-jquery/issues ? François 2016-05-17 10:34 GMT+02:00 Nathan Quirynen mailto:nat...@pensionarchitects.be>>: Hi, I'm upgrading to tapestry:5.4.0 and tape

[tapestry5-jquery] CustomDatepicker mixin not working

2016-05-17 Thread Nathan Quirynen
Hi, I'm upgrading to tapestry:5.4.0 and tapestry-jquery:4.0.0. I have the following .tml: and in my java code: @Property private LocalDate someDate; public JSONObject getParams() { JSONObject params = new JSONObject(); params.put("dateFormat", "

Re: Change grid on "onSuccess"

2016-04-25 Thread Nathan Quirynen
Hey, By returning "this" in the onSuccess event, a redirect happens resulting in a new request. If you want to preserve data between requests, you will have to save it into the http session. If you add http session persistence, the data will be available after a new request.

Re: TextField size parameter

2016-04-20 Thread Nathan Quirynen
Hey, I guess that's just the HTML size attribute for the input element, so not a Tapestry parameter for the component. On 20/04/16 14:43, Morgan Hautman wrote: Hi Tapestry devs, Can you tell me what the purpose is of the "size" parameter in the example stated here?( http://tapestry.apache.or

Re: Tapestry Grid Paging

2016-03-23 Thread Nathan Quirynen
Or the 'inPlace' parameter on true in the Grid component (http://tapestry.apache.org/5.3.7/apidocs/org/apache/tapestry5/corelib/components/Grid.html) On 23/03/16 16:37, Nathan Quirynen wrote: Did you set the zone that is surrounding your grid as the 'zone' parame

Re: Tapestry Grid Paging

2016-03-23 Thread Nathan Quirynen
Did you set the zone that is surrounding your grid as the 'zone' parameter on the GridPager component? http://tapestry.apache.org/5.3.7/apidocs/org/apache/tapestry5/corelib/components/GridPager.html On 23/03/16 15:34, john c wrote: We have a big form which does a tonne of data loading from dat

Re: [5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen
Hi, do You have some session persistencies in the Index page? Is it the time of SessionTimeout? 2016-02-26 10:47 GMT+01:00 Nathan Quirynen : Forgot to say that this error is thrown when trying to access any page. On 26/02/16 10:37, Nathan Quirynen wrote: Hi, I have a weird problem where

Re: [5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen
Forgot to say that this error is thrown when trying to access any page. On 26/02/16 10:37, Nathan Quirynen wrote: Hi, I have a weird problem where an application stops working after some random time. A restart of Tomcat "fixes" it temporarily. Anyone know where the proble

[5.3.7] Application stops working after some time

2016-02-26 Thread Nathan Quirynen
Hi, I have a weird problem where an application stops working after some random time. A restart of Tomcat "fixes" it temporarily. Anyone know where the problem could be? [ERROR] ioc.Registry java.lang.ArrayIndexOutOfBoundsException [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [

Re: [5.4] Get asset from code

2016-02-18 Thread Nathan Quirynen
ientURL().toString(); } Geoff On 18 Feb 2016, at 3:18 am, Thiago H de Paula Figueiredo wrote: On Wed, 17 Feb 2016 14:18:33 -0200, Nathan Quirynen wrote: Hi, Hi! But how can I get the asset in code? Sometimes the asset is "dynamic" (based on other parameters). I thought I

[5.4] Get asset from code

2016-02-17 Thread Nathan Quirynen
Hi, in the progress of adapting to 5.4 I'm now moving my assets to the recomended location " src/main/resources/META-INF/assets/[path to asset]". In a page or component class I import them using: @Import(stylesheet = { "[path to asset]" }) In a template I access assets by using: ${asset:[pat

Re: [5.4] request from javascript to Tapestry event

2016-02-15 Thread Nathan Quirynen
Thanks for the link. I think I fixed it adding just the following in my request callback function: pageinit.handlePartialPageRenderResponse({ json : r }); On 05/02/16 15:04, Chris Poulsen wrote: Have a look at http://tapestry.apache.org/current/coffeescript/ajax.html -

Re: Save File Dialog after response building

2016-02-12 Thread Nathan Quirynen
You mean the file gets downloaded immediately to some download folder? I think this is a setting of the used browser where a default location has been set opposed to the setting where the browser will always ask for the location. So I'm afraid you don't really have control over this if I am cor

[5.4] request from javascript to Tapestry event

2016-02-05 Thread Nathan Quirynen
Hi, I have finally started the process of updating to 5.4. Some components have an initializer javascript where an eventlink url is passed as a parameter to be used as the url for a request from javascript to a Tapestry event. To handle the response (zone updates, scripts, ..) I added in the r

Alter request header value in request filter

2016-01-11 Thread Nathan Quirynen
Hi, Is it possible to alter a response header in a filter? I already add some response headers with Response.setHeader(...), but I want to add "HttpOnly" to every Set-Cookie header. Or is there an alternative way to achieve this? The JSESSIONID is apparently always set with HttpOnly, but not

Automatically add an attribute to component

2015-12-16 Thread Nathan Quirynen
Hi, I have some use cases where I want to add an attribute and value to every instance of a specific component used in my project. For example: add attribute "readonly" to every t:datefield. I can ofcourse just add it everywhere, but I thought (remember reading it somewhere) there was a nicer

Re: Exceptions with ParallelExecutor

2015-11-20 Thread Nathan Quirynen
Or do you mean I should just surround everything with a try catch to catch any exception and then use the logger to log it? On 20/11/15 11:22, Nathan Quirynen wrote: Hey Ilya, Hmm I'm not sure what you mean. It does log everything, but no exceptions: public class TestPage { @I

Re: Exceptions with ParallelExecutor

2015-11-20 Thread Nathan Quirynen
ance to parallel execution, just like you do normally. On Thu, Nov 19, 2015 at 5:07 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: Hi, When using the ParallelExecutor exceptions thrown seem to be ignored in some way? The invokable just stops when there's an error somewhere, b

Exceptions with ParallelExecutor

2015-11-19 Thread Nathan Quirynen
Hi, When using the ParallelExecutor exceptions thrown seem to be ignored in some way? The invokable just stops when there's an error somewhere, but no exception is being logged, making it hard to find the problem. How can I get exceptions happening in the invokable getting logged? Simple exam

Re: Component parameter becoming null

2015-10-23 Thread Nathan Quirynen
Just checking to be sure, but are you sure you didn't forget the @Parameter on the fooList property in your component? Nathan On 23/10/15 10:14, Casey Link wrote: This is a strange one. I have a Foo component that wraps a progressive display (not sure if that part is relevant). One of the par

Re: Passing parent layout's object to nested page

2015-10-22 Thread Nathan Quirynen
ioning for basics, but I am still learning these new (for me) concepts. 2015-10-22 11:13 GMT+02:00 Nathan Quirynen : Hey, I'm not sure I totally understand your question, but if you just want to access your components properties in your page I think you can do the following (not tested): Inj

Re: Passing parent layout's object to nested page

2015-10-22 Thread Nathan Quirynen
Hey, I'm not sure I totally understand your question, but if you just want to access your components properties in your page I think you can do the following (not tested): Inject your layout component in your page like following: @InjectComponent private LayoutM layoutM; public Object getSo

Re: PermissionEvaluator in tapestry-spring-security

2015-10-19 Thread Nathan Quirynen
iro or the tapestry library, but I'll keep it in the back of my mind as a backup. Some more info on my use case: http://stackoverflow.com/questions/33121878/simple-file-browser-permissions On 16/10/15 21:20, Thiago H de Paula Figueiredo wrote: On Fri, 16 Oct 2015 13:25:25 -0300, Nathan Quirynen

PermissionEvaluator in tapestry-spring-security

2015-10-16 Thread Nathan Quirynen
Hi, Is it possible with the tapestry-spring-security module to create your own PermissionEvaluator like in the following link? http://www.borislam.com/2012/08/writing-your-spring-security-expression.html My question is about step 1 on that page; the configuration. How can I do this with the

Re: Redirect on exception

2015-09-11 Thread Nathan Quirynen
Anything else you think might be interfering? As I can't find anything wrong or don't know how to test if it is being used. Nathan On 11/09/15 14:28, Nathan Quirynen wrote: Yes I think the module is loaded as I can see in the logs : [INFO] ioc.RegistryBuilder Adding module defi

Re: Redirect on exception

2015-09-11 Thread Nathan Quirynen
Yes I think the module is loaded as I can see in the logs : [INFO] ioc.RegistryBuilder Adding module definition for class org.tynamo.exceptionpage.services.ExceptionPageModule On 10/09/15 20:53, Kalle Korhonen wrote: On Thu, Sep 10, 2015 at 9:41 AM, Nathan Quirynen <

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
Korhonen wrote: On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: How can I set a redirect when an exception has been thrown? But this seems to only work for non-XHR requests? Or did I forget something here? If you are on T5.4, you can simply contribu

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
(version 8+). What can be the problem here? On 10/09/15 16:56, Nathan Quirynen wrote: Hi, How can I set a redirect when an exception has been thrown? I tried the following: @Match("RequestExceptionHandler") public static RequestExceptionHandler decorateRequestExceptionHan

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
I'm still on 5.3.7. Can't update to 5.4 yet sadly. Any options for 5.3.7? On 10/09/15 17:45, Kalle Korhonen wrote: On Thu, Sep 10, 2015 at 7:56 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: How can I set a redirect when an exception has been thrown? But this se

Re: Redirect on exception

2015-09-10 Thread Nathan Quirynen
When creating a page that implements ExceptionReporter it works for both XHR and non-XHR, but I don't want it to be a popup on XHR requests, I want it to redirect to this page. On 10/09/15 16:56, Nathan Quirynen wrote: Hi, How can I set a redirect when an exception has been thrown? I

Redirect on exception

2015-09-10 Thread Nathan Quirynen
Hi, How can I set a redirect when an exception has been thrown? I tried the following: @Match("RequestExceptionHandler") public static RequestExceptionHandler decorateRequestExceptionHandler(final Response response) { return new RequestExceptionHandler() { @Overri

Re: MappedConfiguration for my service - how to access the map

2015-09-04 Thread Nathan Quirynen
@Inject private MyService myService; public getFirstConfigValue() { return myService.getConfigValue("first"); } } On 04/09/15 11:24, Nathan Quirynen wrote: Hey, I'm not sure what you mean. As you say it is injected into your service constructor, so you already h

Re: MappedConfiguration for my service - how to access the map

2015-09-04 Thread Nathan Quirynen
Hey, I'm not sure what you mean. As you say it is injected into your service constructor, so you already have access to it no? You can inject your service wherever you want (pages, components, other services, ...) which holds the configuration you contributed in your module class. A simple e

Re: Localized messages based on property value

2015-09-03 Thread Nathan Quirynen
n On 12/08/15 16:37, Nathan Quirynen wrote: Hi Thiago, That's actually a clever solution, but seems a bit "hacky" and I'm not sure how it will also use the usual Index(_en).properties files? I solved it at the moment with adding a new binding prefix where i pass the ke

Re: Default Marker

2015-08-12 Thread Nathan Quirynen
I'm not sure how to create one. I made an account, but don't think I have permissions? On 12/08/15 19:08, Thiago H de Paula Figueiredo wrote: On Wed, 12 Aug 2015 09:34:39 -0300, Nathan Quirynen wrote: So aside from the hibernate library, my problem is that when using Marker annot

Re: Localized messages based on property value

2015-08-12 Thread Nathan Quirynen
On 12/08/15 17:36, Thiago H de Paula Figueiredo wrote: On Wed, 12 Aug 2015 11:37:29 -0300, Nathan Quirynen wrote: Hi Thiago, Hi! That's actually a clever solution, but seems a bit "hacky" and I'm not sure how it will also use the usual Index(_en).properties file

Re: Localized messages based on property value

2015-08-12 Thread Nathan Quirynen
o though. Maybe I'll have to move it to the database or somewhere else. Thanks for your insight! Nathan On 11/08/15 16:33, Thiago H de Paula Figueiredo wrote: On Tue, 11 Aug 2015 03:29:13 -0300, Nathan Quirynen wrote: So I want to have the usual properties file for the page and besid

Re: Default Marker

2015-08-12 Thread Nathan Quirynen
o make it clear. Nathan On 10/08/15 14:15, Nathan Quirynen wrote: Hi, I'm using the following example for multiple database support with hibernate: https://tawus.wordpress.com/2012/03/03/tapestry-hibernate-multiple-databases/ With the use of marker annotations the correct hibernate s

Re: Localized messages based on property value

2015-08-10 Thread Nathan Quirynen
10.08.2015 um 09:08 schrieb Nathan Quirynen : Hi, I have in some pages/components in my Tapestry (5.3.7) application the need to have localized messages based on some property value. Simplified example: Class SomeClass { String code; } In the page I have then a property of type SomeClass and

Default Marker

2015-08-10 Thread Nathan Quirynen
Hi, I'm using the following example for multiple database support with hibernate: https://tawus.wordpress.com/2012/03/03/tapestry-hibernate-multiple-databases/ With the use of marker annotations the correct hibernate session manager is injected. I would like to use this in one of our applicat

Localized messages based on property value

2015-08-10 Thread Nathan Quirynen
Hi, I have in some pages/components in my Tapestry (5.3.7) application the need to have localized messages based on some property value. Simplified example: Class SomeClass { String code; } In the page I have then a property of type SomeClass and based on this value I need different loc

Re: Locale in ComponentRequestFilter

2015-06-25 Thread Nathan Quirynen
ation? On 25/06/15 13:36, Nathan Quirynen wrote: Hi, I need the Locale inside an implementation of ComponentRequestFilter. So I injected Request and use Request.getLocale(). But it seems that this will always return the default locale (browser locale ?). I guess this is because the setting o

Locale in ComponentRequestFilter

2015-06-25 Thread Nathan Quirynen
Hi, I need the Locale inside an implementation of ComponentRequestFilter. So I injected Request and use Request.getLocale(). But it seems that this will always return the default locale (browser locale ?). I guess this is because the setting of the locale happens after my component request fi

Re: AW: AW: Adding JS to my component combined with using t:If

2015-05-27 Thread Nathan Quirynen
I think he is not using 5.4 but 5.3.8. The problem is that your ajax call does not process the repsonse (zones to update, scripts to run, ...). What I have done is adding the following to the success callback function: function(r) { // update zones and call added javascrip

Re: Handle specific bubbled up validate event

2015-04-28 Thread Nathan Quirynen
On 28/04/15 09:40, Nathan Quirynen wrote: Hi, In a page I have a component that contains multiple forms. Now I want to handle the bubbled up validate event from one of these forms in my page. I know I can handle the validate event with "onValidateFrom[ComponentName]()", but this h

Handle specific bubbled up validate event

2015-04-28 Thread Nathan Quirynen
Hi, In a page I have a component that contains multiple forms. Now I want to handle the bubbled up validate event from one of these forms in my page. I know I can handle the validate event with "onValidateFrom[ComponentName]()", but this handles all bubbled up validate events from the componen

ArrayIndexOutOfBoundsException after random time

2015-04-24 Thread Nathan Quirynen
Hi all, I have a webapp deployed on a tomcat server. It was running just fine, but after some time I keep getting following exception if I go to any page in the webapp: ... Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:400)

Returning json when request is non xhr

2014-12-15 Thread Nathan Quirynen
Hi, I have 2 applications (different servers): 1) html + js 2) Tapestry5 Now I tried to do an ajax request (jquery) from application 1 to application 2 where I want to return some json back to application 1. But because cross domain get requests do not use XHR I get following error in application

Re: Check if asset exists

2014-12-08 Thread Nathan Quirynen
I found a solution for my case: AssetSource.resourceForPath("context:"+path).exists() On 08/12/14 17:32, Nathan Quirynen wrote: > Hey, > > When loading an asset with AssetSource.getContextAsset(path, locale) it > will throw a RuntimeException if the file doesn't exi

Check if asset exists

2014-12-08 Thread Nathan Quirynen
Hey, When loading an asset with AssetSource.getContextAsset(path, locale) it will throw a RuntimeException if the file doesn't exist. But what if I want to load the asset only if it exists? Is there a method anywhere that can check if an asset exists? I could wrap it with a try catch, but that doe

Re: Stacktrace when on Tomcat server

2014-11-14 Thread Nathan Quirynen
pages/ExceptionReport.tml On 14/11/14 12:21, Thiago H de Paula Figueiredo wrote: > On Fri, 14 Nov 2014 07:48:34 -0200, Nathan Quirynen > wrote: > >> Hi, > > Hi! > >> *root cause* >> >> java.lang.ArrayIndexOutOfBoundsException > > You left out exac

  1   2   >