Re: custom logout+logout confirmation page with Tynamo

2013-08-21 Thread Will N.
thanks! Am 20.08.2013 17:46, schrieb Kalle Korhonen: On Tue, Aug 20, 2013 at 5:43 AM, Will N. wrote: since there is no such a configuration(as far as i know) like configuration.override(**SecuritySymbols.SUCCESS_URL, "***"); in the case of a succesfull logout, i figured out that i must u

pagereset breaks form submit

2013-08-21 Thread nn kk
Hi I have a form which I submit, also have onSuccess, onFailure and onPassivate methods and they worked just fine until I put @PageReset void reset() { System.out.println("test"); } Than by submitting the form, I see onSuccess or OnFailure, than onPassivate are executed and after them - 11:57

RE: RE: How to add dinamic content

2013-08-21 Thread nn kk
Yes, that's the idea, I want to add any number of components on a page without submitting the whole page. For example: I want some input fields and an "Add button" to click, which openes a component - some form with different input fields. By every click - new such inner form to be opened and t

Re: RE: How to add dinamic content

2013-08-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Aug 2013 07:54:49 -0300, nn kk wrote: Yes, that's the idea, I want to add any number of components on a page without submitting the whole page. For example: I want some input fields and an "Add button" to click, which openes a component - some form with different input fields. By

T5: bind onlick handler after LinkSubmit

2013-08-21 Thread Dmitriy Vsekhvalnov
Hi all, i'm looking for a way to bind event handler (js) to element which also is LinkSubmit, but i'd like my event handler to be executed after LinkSubmit handler. E.g. consider example, form inside modal dialog - make ajax call to server first, then close modal. Ideas?

Tapestry 5.4 - Unable to run scripts when form contains a textfield (IE8)

2013-08-21 Thread Alex Pasialis
Hi, I have a form with a textfield. http://tapestry.apache.org/schema/tapestry_5_4.xsd"; xmlns:p="tapestry:parameter"> When I try to access the page I get the following error in console.js: 'requiredModules' is null or not an object (line 111) After that error, Tape

Re: T5: bind onlick handler after LinkSubmit

2013-08-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Aug 2013 09:45:33 -0300, Dmitriy Vsekhvalnov wrote: Hi all, Hi! i'm looking for a way to bind event handler (js) to element which also is LinkSubmit, but i'd like my event handler to be executed after LinkSubmit handler. What you actually want is to execute JavaScript when

exception handling

2013-08-21 Thread nn kk
Hi, I want to create my custom exception handling, I saw there are a few ways to replace the Exception Report Page or override the RequestExceptionHandler and again replace the default page. But is it possible to handle only specific type of exceptions, or exceptions from specific pages or form

Submitting id & value of a t:select component onChange

2013-08-21 Thread Ben Titmarsh
I have a Tapestry Grid component with three columns. Each cell contains a select component that I want to submit their id and value via Ajax when the value changes. The id isn't the client side component id but rather an id that the server uses to lookup and save the value that has changed. I

Re: Submitting id & value of a t:select component onChange

2013-08-21 Thread Lance Java
You could use data attributes and some clientside jquery just like a non-tapestry app. TML JS $("#myGrid").find("select").change(function() { var select = $(this); var foo = select.data("foo"); var bar = select.data("bar"); doStuff(foo, bar); };

Re: T5: bind onlick handler after LinkSubmit

2013-08-21 Thread Lenny Primak
FlowLogix library has a mixin for this: http://code.google.com/p/flowlogix/wiki/TLUpdateEvent On Aug 21, 2013, at 9:15 AM, Thiago H de Paula Figueiredo wrote: > On Wed, 21 Aug 2013 09:45:33 -0300, Dmitriy Vsekhvalnov > wrote: > >> Hi all, > > Hi! > >> i'm looking for a way to bind event hand

Re: exception handling

2013-08-21 Thread Lenny Primak
Take a look at Tynamo tapestry-exceptionpage module. http://docs.codehaus.org/display/TYNAMO/tapestry-exceptionpage+guide On Aug 21, 2013, at 9:47 AM, nn kk wrote: > Hi, > I want to create my custom exception handling, I saw there are a few ways to > replace the Exception Report Page or override

Re: exception handling

2013-08-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Aug 2013 10:47:35 -0300, nn kk wrote: Hi, Hi! I want to create my custom exception handling, I saw there are a few ways to replace the Exception Report Page or override the RequestExceptionHandler and again replace the default page. But is it possible to handle only specifi

RE: Submitting id & value of a t:select component onChange

2013-08-21 Thread Ben Titmarsh
Thanks Lance, this looks great! I've not written any raw jQuery Ajax code, in the past I've just left this all to Tapestry. Presumably I should be using this: http://api.jquery.com/jQuery.ajax/ Or is there a preferred approach? > Date: Wed, 21 Aug 2013 15:26:56 +0100 > Subject: Re: Submitting

Re: Submitting id & value of a t:select component onChange

2013-08-21 Thread Lance Java
tapestry-jquery has rewritten Tapestry's javascript and I'm not too familiar with it. I'm sure there's a function in there to trigger a zone update. On 21 Aug 2013 15:26, "Lance Java" wrote: > You could use data attributes and some clientside jquery just like a > non-tapestry app. > > TML > >

Re: AJAX zone refresh not working in IE9 and IE10

2013-08-21 Thread Jonathan Martin
I figured out what was happening. I was using the 'setupRender' method to set the default value for the enumeration, like this: void setupRender() { _selectedBlockEnum = StoreFrontBlocks.HOME; } I didn't realize until now that this method is called after an 'onAction' method, ef

RE: Submitting id & value of a t:select component onChange

2013-08-21 Thread Ben Titmarsh
Well thanks a lot for your advice Lance, this worked beautifully! For reference I added the following data attributes to each of my selects (with a unique event name for each select type): data-cardid="${cubeCard.id}" data-event="colourprofileoverridechanged" Then I wrote the following JS snip

RE: Submitting id & value of a t:select component onChange

2013-08-21 Thread Lance Java
1. You should not generate your URL's clientside. Instead, generate via ComponentResources serverside and add a "data-url" attribute instead. 2. When I look at the tapestry-jquery page here http://tapestry5-jquery.com/mixins/docsbind I can see an include for bind.js ( http://tapestry5-jquery.com

Re: T5: bind onlick handler after LinkSubmit

2013-08-21 Thread Dmitriy Vsekhvalnov
Hey thanks for ideas, i ended with for mixin to do: $(formId).observe(Tapestry.FORM_PROCESS_SUBMIT_EVENT, function(event) { //hide modal }); by some reason is never called. On Wed, Aug 21, 2013 at 6:46 PM, Lenny Primak wrote: > FlowLogix library has a mixin for this: > http://cod

RE: Submitting id & value of a t:select component onChange

2013-08-21 Thread Ben Titmarsh
Thanks Lance, Here is an updated effort using tapestryZone. This is much better as the zone was not being refreshed before! var parameters = {}; parameters["t:zoneid"] = gridZone; $(document).find(".cubeAjaxUpdate").change(fun

RE: Submitting id & value of a t:select component onChange

2013-08-21 Thread Lance Java
You'll need to append a request parameter to a serverside generated event url and use @RequestParam serverside to get the value in the event

Re: AJAX zone refresh not working in IE9 and IE10

2013-08-21 Thread Geoff Callender
Are you sure that's what was happening - how is it IE-related? If the zone to update is *inside* the page or component that has a setupRender(), then setupRender() *will not be called* during handling of an Ajax event request (see http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/what