Render a single Enum value

2021-08-25 Thread Paul Stanton
Using ${object.enumValue} renders the enum in raw form ie ENUM1 How do I leverage "TapestryInternalUtils.getLabelForEnum" without having to use a BeanDisplay or Grid etc? Or is there super easy way to just render the Enum value formatted without rendering any wrapping html etc?

Re: Apache Tapestry for Java 11

2019-10-25 Thread Paul Stanton
"We can push a new 5.5 beta for early testers." ^-- is this available? if not, any eta? On 11/09/2019 4:43 am, Thiago H. de Paula Figueiredo wrote: On Tue, Sep 10, 2019 at 4:31 AM Chris Poulsen wrote: I did roll an "internal" 5.5-beta version based on the code from 12th July as there are som

beaneditform with option lists of objects

2016-09-21 Thread Paul Stanton
Hi all, I have tables: Parent -- parent_id child_id Child --- child_id and ORM entity: Parent --- Long Id Child child (oneToOne in this case, joinColumn child_id) Child is another ORM entity. Child could be one of many options from the database. I wo

Re: javassist/hibernate enhanced class problem

2015-11-01 Thread Paul Stanton
thanks thiago, i'll look into that solution if i find i run into this again On 30/10/2015 10:39 PM, Thiago H de Paula Figueiredo wrote: On Thu, 29 Oct 2015 20:40:29 -0200, Paul Stanton wrote: further, it is not the 'save' that javassistifies the object, it is 'session.lo

Re: jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Paul Stanton
art in the link below in running under 5.4 beta. I have not run 5.3 in a long time but I believe it requires @Persist in this case. What version are you running? On Thursday, October 29, 2015, Paul Stanton wrote: Hi, I've modelled a form using jumpstart's (7) ajax crud however in my ca

Re: beaneditform not hiding id

2015-10-29 Thread Paul Stanton
n you can manipulate the BeanModel directly and do whatever you want from it. On Thu, 29 Oct 2015 00:02:31 -0200, Paul Stanton wrote: Just further to this, I've decided not to use BeanEditForm because: a) I can't set the context - I'd like to use the Id as context so that

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
rid. using 'get' instead of 'load' seems to avoid this. On 30/10/2015 9:13 AM, Paul Stanton wrote: Hi Thiago, Using 'merge' instead of 'save' does not resolve the issue. I still have to evict. On 29/10/2015 11:04 PM, Thiago H de Paula Figueiredo wrote: O

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Hi Thiago, Using 'merge' instead of 'save' does not resolve the issue. I still have to evict. On 29/10/2015 11:04 PM, Thiago H de Paula Figueiredo wrote: On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton wrote: I have found an issue I believe with tapestery (grid com

jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Paul Stanton
Hi, I've modelled a form using jumpstart's (7) ajax crud however in my case I seem to have to @persist(flash) the equivalent of 'function' http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons I think this is because there are two page instances: one to handle

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Yes, it is necessary to 'evict' after 'save' to avoid this problem. I'm not sure that this is ideal since it increases db io and code but it works. On 29/10/2015 8:23 PM, Paul Stanton wrote: I have found an issue I believe with tapestery (grid component in this case

javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
I have found an issue I believe with tapestery (grid component in this case) where it cannot inspect details of hibernate 'enhanced' objects. This happens when I save an object to the database and then query it out again - the instance is returned from cache as a botched/modified javassist vers

Re: beaneditform not hiding id

2015-10-28 Thread Paul Stanton
which is not suitable I suggest these upgrades are considered On 29/10/2015 12:47 PM, Paul Stanton wrote: According to jumpstart (no mention in tapestry doc) beaneditform auto-hides the id field: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/edit1/1 *But where is Pe

beaneditform not hiding id

2015-10-28 Thread Paul Stanton
According to jumpstart (no mention in tapestry doc) beaneditform auto-hides the id field: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/edit1/1 *But where is Person's |id| property?* BeanEditForm automatically hides properties annotated with |@Id|. From the 'view source' o

Re: tapestry and jquery

2014-11-24 Thread Paul Stanton
You can start with a fresh Tapestry 5.4 (beta) project which has JQuery built in. You will probably want to exclude the PrototypeJs/Scriptaculous support and only use jquery: @Contribute(SymbolProvider.class) @ApplicationDefaults public static void setupEnvironment(MappedConfiguration config

Re: Hints on javascript debugging

2014-11-23 Thread Paul Stanton
I find chrome debugger easier to use and faster than firebug. I used firebug for years before finding chrome more efficient. Once everything works in chrome I take it through firefox+firebug, and then IE tester for multiple versions of ie (we support 8+). I rarely find any issues in safari et

Re: [5.4] module js - takes some time to refresh

2014-11-22 Thread Paul Stanton
Hi Thiago, My mistake, for some reason shift+refresh in chrome isn't doing a full reload. Deleting cache is working correctly. p. On 20/11/2014 11:30 PM, Thiago H de Paula Figueiredo wrote: On Wed, 19 Nov 2014 23:13:13 -0200, Paul Stanton wrote: Hi all, Hi! Creating my own modu

[5.4] module js - takes some time to refresh

2014-11-19 Thread Paul Stanton
Hi all, Creating my own module.js within META-INF/modules/xyz.js If I change the content, it takes some time before the browser sees the change (20-50 seconds). Is this configurable? Thanks, p. - To unsubscribe, e-mail: use

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
iredo wrote: On Wed, 19 Nov 2014 16:10:53 -0200, Paul Stanton wrote: Thiago, Tapestry is smart enough to not download JS twice. I'm not sure you understood my example. It may not download the same JS code twice in the same page, but, considering different pages in the same site

Re: [5.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
Thiago, Tapestry is smart enough to not download JS twice. Your 2nd paragraph sounds more likely - someone took the approach that if a resource is in a stack, then that resource must require the whole stack. I think this logic is flawed, or at least could be optional, certainly documented!

Re: [5.4] javascript - simplify the new paradigm please

2014-11-18 Thread Paul Stanton
Chris, can you point me to an example of this? thanks, p. On 18/11/2014 10:53 AM, Chris Poulsen wrote: I'm moving more of the initializer code over to get client id's etc. from data attributes - the "scanner" pattern for initialization that can be seen in some of tapestrys own components works

Re: [5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
this degree before however I find this alarming and am going to have to abandon my usage of stacks because of this. I am assuming there is no configuration switch to disable the auto-inclusion of stacks unless specifically imported? thanks, p. On 19/11/2014 3:25 PM, Paul Stanton wrote: Hi, I

[5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Hi, I have PageA for which I have created StackA of all the the js it includes by the virtue of its self and its components (for production efficiency). I have PageB for which I have not created a stack, and it does not import StackA. However when I request PageB, StackA is being included

Re: [5.4] javascript - simplify the new paradigm please

2014-11-16 Thread Paul Stanton
tables").invoke("setCurrentElement") .with(SELECTABLES_KEY, selectableName); } }; } In this case I get away with SELECTABLES_KEY being a constant but, as I said above, sometimes you

Re: [5.4] javascript - simplify the new paradigm please

2014-11-14 Thread Paul Stanton
javaScriptSupport.require("activate-selectables").invoke("setCurrentElement") .with(SELECTABLES_KEY, selectableName); } }; } In this case I get away with SELECTABLES_KEY being a con

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Paul Stanton
34 PM, Geoff Callender wrote: Have you had a look at these two: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1 http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/reusablemodal/1 Do they fit your scenario? On 13 Nov 2014, at 3:40 pm

Re: [5.4] JavascriptStack with module and css.

2014-11-13 Thread Paul Stanton
great, and it works. thanks. is this documented? On 13/11/2014 10:31 PM, Thiago H de Paula Figueiredo wrote: On Thu, 13 Nov 2014 04:05:11 -0200, Paul Stanton wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok sin

Re: [5.4] JavascriptStack with module and css.

2014-11-12 Thread Paul Stanton
lah.css"); and in AppModule: public static void contributeJavaScriptStackSource(MappedConfiguration configuration) { configuration.addInstance("YourJavaScriptStack", YourJavaScriptStack.class); } Geoff On 13 Nov 2014, at 4:33 pm, Paul Stanton wr

[5.4] JavascriptStack with module and css.

2014-11-12 Thread Paul Stanton
Hi all, I am trying to include some non-requirejs resources in the most recommended way. In this case, a javascript package which requires some css. From what I can tell the recommended approach is to 'shim' it in from the location "META-INF/assets", which I've done public static void

Re: [5.4] javascript - simplify the new paradigm please

2014-11-12 Thread Paul Stanton
Hi Geoff, I have found your examples invaluable in learning some of the basics of this (and other) concepts. I can't thank you enough .. the only thing I can see is missing currently is the example I asked about in the previous mail: Basically, how do I interact with a js module instance a

Re: [5.4] javascript - simplify the new paradigm please

2014-11-12 Thread Paul Stanton
into it at all if you don't want to. I like the syntax but I'm still not sure if it's worth the additional complexity. Anyway for transcompiling on-the-fly, tapestry-webresources is great and takes all the pain away when developing your own web app. Kalle On Wed, Nov 12, 2014 at 3:

Re: [5.4] javascript - simplify the new paradigm please

2014-11-12 Thread Paul Stanton
AM, Paul Stanton wrote: Hi Thiago, Firstly thanks for the reply. Do you think you could put aside the dissection of my question and defence of position and just answer the question to be helpful? I am not trying to start an idealogical conversation or criticise anyone or any way of thinking

Re: [5.4] javascript - simplify the new paradigm please

2014-11-12 Thread Paul Stanton
to show me what the simple recommended TAPESTRY RELATED usage is. Thanks, p. On 12/11/2014 11:44 PM, Thiago H de Paula Figueiredo wrote: On Wed, 12 Nov 2014 09:13:43 -0200, Paul Stanton wrote: Hi, Hi! so like many developers (i'm guessing) I'm not quite up to speed with all

[5.4] javascript - simplify the new paradigm please

2014-11-12 Thread Paul Stanton
Hi, so like many developers (i'm guessing) I'm not quite up to speed with all these new javascript frameworks: requirejs, closure, etc etc and to be honest I really didn't see a problem with the namespace model of the past. I'm not open to learning but it seems like a paradigm far removed fro

Re: t5.4 alert manager cannot be used in thread...

2014-11-10 Thread Paul Stanton
ew approaches to work around this including: 1. Pass values from the request thread to the worker on the parallel thread (via worker's constructor / anonymous inner class) 2. Return a result (eg an alert) to the request thread and invoke the PerThread service on the request thread. On 6 Nov

t5.4 alert manager cannot be used in thread...

2014-11-05 Thread Paul Stanton
Hi, i'm not sure if this is worth logging as a Jira or if i've missed the point.. please advise. I'm adding an alert via alertManager in an inner thread. void onSomething() { final AlertManager fAlerts = alerts; new Thread() { public void run() { do

Re: 5.4 application-version still required?

2014-10-23 Thread Paul Stanton
same fingerprint, and already be present in the end-user's browser cache. On Tue, Oct 21, 2014 at 6:57 PM, Paul Stanton wrote: https://github.com/apache/tapestry-5/blob/master/54_ RELEASE_NOTES.md#asset-improvements "Prior versions of Tapestry created cacheable URLs for Assets that in

5.4 application-version still required?

2014-10-21 Thread Paul Stanton
https://github.com/apache/tapestry-5/blob/master/54_RELEASE_NOTES.md#asset-improvements "Prior versions of Tapestry created cacheable URLs for Assets that incorporated the application version number. The Assets were served with a far-future expires header: the client browser would not even need

Re: 5.4 logging doesn't work out of the box?

2014-10-21 Thread Paul Stanton
https://github.com/apache/tapestry-5/blob/master/54_RELEASE_NOTES.md#logging-dependencies On Tue, Oct 21, 2014 at 9:15 AM, Paul Stanton wrote: I've created a simple test app with 5.4-beta-22: the only dependency: - org.apache.tapestry

5.4 logging doesn't work out of the box?

2014-10-21 Thread Paul Stanton
I've created a simple test app with 5.4-beta-22: the only dependency: - org.apache.tapestry tapestry-core 5.4-beta-22 My Start.java: --- public class Start { @Inject private Logger log;

Re: notify embedded components

2014-06-19 Thread Paul Stanton
ive tought this woud be a cool feature, but it does not exist yet. On Thursday, March 21, 2013, Paul Stanton wrote: Hi all, Is there a way to trigger an event in a container (Page) which notifies embedded components? I'm hoping to do something like this (pseudo code) : Page {

different results using different binding style

2014-04-24 Thread Paul Stanton
Hi all, My component class has a method as such: public MyEnum getMyEnum1()... If I use the property binding for 'value' it is treated as its 'EnumType' which is compatible with the encoder... ...however using the 'evaluated' binding the 'value' is converted to a String I

Re: Same page secured and unsecured

2013-10-28 Thread Paul Stanton
s due to political issues it will not be fixed, But the workaround in the issue should work for you. I feel your pain because I had to implement a similar workaround as well. On Oct 28, 2013, at 2:35 AM, Paul Stanton wrote: Sorry for the thread revival, however I am coming up against the same pr

Re: Same page secured and unsecured

2013-10-27 Thread Paul Stanton
Sorry for the thread revival, however I am coming up against the same problem. I have a page needs to be served via https for some customers and http for others. If I request the page via https without the @Secure annotation, all ajax event urls are incorrectly altered to: http://domain:443

Re: Injection javascript code - AjaxResponseRenderer vs JavaScriptSupport

2013-06-13 Thread Paul Stanton
, format, args); } }); } } On 16/07/2012 8:11 AM, Paul Stanton wrote: As Lance said, you need to use JavascriptSupport when preparing a non-ajax response, and AjaxResponseRenderer when you are... if (request.isXHR()) { // use AjaxResponseRenderer } else { // use

@Inject vs @javax.inject.Inject

2013-05-15 Thread Paul Stanton
Just noticed that @javax.inject.Inject does not work with org.slf4j.Logger in a service implementation. tapestry's @Inject does. I'm not sure if this is an oversight or a limitation. p. - To unsubscribe, e-mail: users-unsubscr

Re: mixin script added in afterrender not fired for xhr requests

2013-04-23 Thread Paul Stanton
n XHR event handlers. I imagine this has to do with the render phase somehow... would love to hear some experts opinion... thanks, p. On 24/04/2013 2:40 PM, Paul Stanton wrote: Turned out this was because I was adding the script via "ajaxResponseRenderer.addCallback" which used to be

Re: mixin script added in afterrender not fired for xhr requests

2013-04-23 Thread Paul Stanton
ack" should be deprecated now? p. On 22/04/2013 11:56 AM, Paul Stanton wrote: Feel free to answer on StackOverflow and I will give you the rep points. http://stackoverflow.com/questions/16138055/mixin-script-added-in-afterrender-not-fired-for-xhr-requests On 21/04/2013 4:05 PM, Paul St

Re: [Almost every version I used] Page loads takes forever and never loads

2013-04-21 Thread Paul Stanton
If it is your own server not responding quickly do a stack/thread dump. It may however be an embedded script coming from another server? do you use any third party javascript hosted externally? This has caused similar issues for me before, if the remote server is unreachable. Regards, Paul.

Re: mixin script added in afterrender not fired for xhr requests

2013-04-21 Thread Paul Stanton
Feel free to answer on StackOverflow and I will give you the rep points. http://stackoverflow.com/questions/16138055/mixin-script-added-in-afterrender-not-fired-for-xhr-requests On 21/04/2013 4:05 PM, Paul Stanton wrote: this is tapestry 5.3 On 19/04/2013 11:28 AM, Paul Stanton wrote: Hi all

Re: mixin script added in afterrender not fired for xhr requests

2013-04-20 Thread Paul Stanton
this is tapestry 5.3 On 19/04/2013 11:28 AM, Paul Stanton wrote: Hi all, Can someone familiar with the mixin lifecycle please advise me: I have a mixin which triggers some javascript from 'afterRender'. I do this in 'afterRender' because I need the field's clientId

mixing script added in afterrender not fired for xhr requests

2013-04-18 Thread Paul Stanton
Hi all, Can someone familiar with the mixin lifecycle please advise me: I have a mixin which triggers some javascript from 'afterRender'. I do this in 'afterRender' because I need the field's clientId to be initialised. It works great if the Field it attaches to is rendered when the page is

Re: Ajax Parameter Handling

2013-04-02 Thread Paul Stanton
FYI https://issues.apache.org/jira/browse/TAP5-2021 On 3/04/2013 1:32 AM, Tony Nelson wrote: I thought maybe I could contribute a ValueEncoder but that only sees individual parameters, not the whole request. Even this might work: JSONObject onButton1Press(JSONObject jsonObject) {

Re: notify embedded components

2013-03-24 Thread Paul Stanton
Should I jira? On 23/03/2013 3:36 AM, Howard Lewis Ship wrote: ive tought this woud be a cool feature, but it does not exist yet. On Thursday, March 21, 2013, Paul Stanton wrote: Hi all, Is there a way to trigger an event in a container (Page) which notifies embedded components? I'm h

notify embedded components

2013-03-21 Thread Paul Stanton
Hi all, Is there a way to trigger an event in a container (Page) which notifies embedded components? I'm hoping to do something like this (pseudo code) : Page { void onSomeEvent() { notifyListeners("SomethingHappened"); } } EmbeddedComponent { void setupRender() {

Re: AJAX updating table row

2012-11-30 Thread Paul Stanton
each ajax request is still a new request and therefore properties in your page class are lost from the previous render. unless you mark them as @Persist. but in your case, your `service` property is set by the loop component. this is not going to be "emmulated" by the ajax request processing s

Re: Adding a progress listener to UploadedFile

2012-11-22 Thread Paul Stanton
you are referring to: http://commons.apache.org/fileupload/using.html#Watching_progress ? On 23/11/2012 8:49 AM, dkeenan wrote: Hi there. I would like to add a progress listener to UploadedFile to track progress up the file being uploaded. I know that it's possible to do this with apache commo

Re: Popup in Tapestry Link

2012-11-17 Thread Paul Stanton
You can create the link in your java class, see PageRenderLinkSource.createPageRenderLink - and expose it to your javascript and do whatever you like with it. p. On 15/11/2012 6:11 PM, mateen wrote: Hi, My Grid displays a LINK to open a page. Currently i am using window.open, to open the pag

Re: Zone update triggers update on parent Zone

2012-11-15 Thread Paul Stanton
I've since had a similar requirement and i found comparing event.origionalTarget to event.currentTarget solves the problem. On 15/03/2012 8:29 AM, Paul Stanton wrote: like i said, this could be a bug. why not log it in jira and see what the big heads think? On 15/03/2012 1:

Re: Using maps withing templates

2012-11-11 Thread Paul Stanton
You can write a method in your java class instead of trying to write a parameter binding. eg getSomething(String key1, String key2) {...} On 12/11/2012 3:52 AM, Muhammad Gelbana wrote: Here is a sample of what I'm trying to do: ixlTest.parameterGroups{'testOptions'}{'serverIp'} And the e

Re: Dynamic mixins

2012-11-06 Thread Paul Stanton
Thanks Thiago, I'm sure I'll get one of your ideas to work for me! posting on the list for prosperity. On 7/11/2012 1:02 PM, Thiago H de Paula Figueiredo wrote: On Tue, 06 Nov 2012 23:26:25 -0200, Paul Stanton wrote: On 7/11/2012 11:49 AM, Thiago H de Paula Figueiredo wrote: On T

Re: Dynamic mixins

2012-11-06 Thread Paul Stanton
On 7/11/2012 11:49 AM, Thiago H de Paula Figueiredo wrote: On Tue, 06 Nov 2012 22:41:17 -0200, Paul Stanton wrote: .. and then if you have a combination of potential mixins, you end up with n * blocks, with n * fields. Why don't you have a single mixin implementation that has the log

Re: Dynamic mixins

2012-11-06 Thread Paul Stanton
.. and then if you have a combination of potential mixins, you end up with n * blocks, with n * fields. Thanks for the solution Robert, and I can appreciate that this is bumping the limitations of the framework but the situation is not ideal. I'm looking at a case now which is going to end up

beaneditform guide out of date

2012-11-01 Thread Paul Stanton
http://tapestry.apache.org/beaneditform-guide.html the above eg throws an exception in t5.3+ on usage of The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace. -

Re: coffee script .. why?

2012-11-01 Thread Paul Stanton
how my code looks, I think the code is easier to follow and mantain. Brendan Eich thinks so too ... he's adapting idea from CoffeeScript (and from Python, and elsewhere) into the next-generation version of JavaScript. On Thu, Nov 1, 2012 at 11:10 AM, Thiago H de Paula Figueiredo wrote: On T

Re: coffee script .. why?

2012-11-01 Thread Paul Stanton
On 2/11/2012 4:59 AM, Thiago H de Paula Figueiredo wrote: On Thu, 01 Nov 2012 15:34:43 -0200, Paul Stanton wrote: On 1/11/2012 9:37 PM, Thiago H de Paula Figueiredo wrote: On Thu, 01 Nov 2012 01:10:16 -0200, Paul Stanton wrote: I've had to do some pretty in-depth debugging and pat

Re: coffee script .. why?

2012-11-01 Thread Paul Stanton
On 1/11/2012 9:37 PM, Thiago H de Paula Figueiredo wrote: On Thu, 01 Nov 2012 01:10:16 -0200, Paul Stanton wrote: I've had to do some pretty in-depth debugging and patching of tapestry's javascript in the past (particularly around zones) and at least I can understand the s

coffee script .. why?

2012-10-31 Thread Paul Stanton
reading HLS's blog entry: http://tapestryjava.blogspot.com.au/2012/10/zeroing-in-on-tapestry-54.html I was wondering why i didn't understand the code snippets .. were they pseudo code? no, pseudo code is far more legible... Reading further, I notice it's CoffeeScript. I'm keen to hear what t

Re: reference 'dateField' object in javascript

2012-10-14 Thread Paul Stanton
.dateField = function(spec) { $T(spec.field).dateField = new Tapestry.DateField(spec); } I'm not sure why this isn't the standard for all tapestry-created javascript objects? Probably the "they'll never need that" oversight? cheers, p. On 15/10/2012 3:26 PM, Paul Stanto

reference 'dateField' object in javascript

2012-10-14 Thread Paul Stanton
Hi all, I always thought you could attain a reference to the associated javascript object created by the 'Initializer' for tapestry components via the HTML element somehow? In this case I am looking for the "Tapestry.DateField" javascript object for my field "selectedDateElem" tml:

Re: datefield onchange

2012-08-20 Thread Paul Stanton
alert(Tapestry.currentFocusField.id); }); Regards François 2012/8/20, Paul Stanton : Thanks brian, but i am assuming/hoping that the fix for issue 1844 allows me t

Re: datefield onchange

2012-08-20 Thread Paul Stanton
fix might be to add an unload event on the form that checks whether any of the date values changed," but I don't know if that still makes sense. On Mon, Aug 20, 2012 at 6:34 AM, Paul Stanton wrote: I've just tried that too howard, $("selectedDate&qu

Re: datefield onchange

2012-08-20 Thread Paul Stanton
Howard Lewis Ship wrote: Have you tried observing the change event? The onchange attr may get overwritten by the date field JS. On Sunday, August 19, 2012, Paul Stanton wrote: Hi all, I've found the bug report: https://issues.apache.org/** jira/browse/TAP5-1844 <https://issues.apache.

datefield onchange

2012-08-19 Thread Paul Stanton
Hi all, I've found the bug report: https://issues.apache.org/jira/browse/TAP5-1844 .. and am using tapestry 5.3.3 so the fix has been applied, however I still can't get tapestry to call my 'onchange' handler. Is there some extra wiring required? Thanks, Paul. -

Re: Update other zones on zonerefresh event

2012-08-15 Thread Paul Stanton
once you receive the event server side, you can add as many zone updates as you want to AjaxResponseRenderer, you just need to get a handle to them, either by injection or by walking the component/object model. Have a look at ComponentResources.getEmbeddedComponent() On 15/08/2012 10:47 AM, bo

Re: Why should we specify t:id and id for the zone

2012-08-13 Thread Paul Stanton
great answer christian, quote: "brings another caveat: If the actionLink from my example would be specified in the template before the zone this wouldn't work. The zone's clientId would be "null" because the zone hasn't been rendered, yet… You could add some more advanced tricks with Heartbeat

Re: Why should we specify t:id and id for the zone

2012-08-10 Thread Paul Stanton
My take: Because otherwise tapestry has trouble assigning client ids to zones at different stages of the partial render. This makes it hard to control the behaviour unless you set both. p. On 10/08/2012 8:34 AM, bhorvat wrote: Well like it says in the subject, why should we specify both nor

Re: how to run javascript after returning from form submit

2012-08-10 Thread Paul Stanton
AjaxResponseRenderer.addCallback(JavaScriptCallback callback); On 3/02/2012 4:05 AM, hese wrote: Hello, I have a form within a zone. On for submit I do some validations, and if there are errors, I want to remain on the same page, and run a javascript method on the client side. How do I achie

Re: Custom Asset Source for Images

2012-08-10 Thread Paul Stanton
This should give you an idea. Pseudo code: create a service ie YourImageService Inject into it AssetSource and YourDao (or however you have implemented data access) implement your logic: YourImageService { Asset getImageAsset(location, id) { return assetSource.getContextAsse

Re: type coersion - numbers and booleans

2012-08-04 Thread Paul Stanton
While I agree with both of you - accessor methods in java classes is generally better than (minor) logic in templates, there are cases where some logic in templates is preferable, ie when there are perhaps 10's or more different numeric cases on the same property. having 10+ near identical meth

type coersion - numbers and booleans

2012-08-03 Thread Paul Stanton
hi all, originally have an accessor method: public int getNumericValue() { return myInteger; // auto-boxes to int } and wanted to use the following if: however '==' doesn't work, but i know method calls work so i changed to: public Integer getNumericValue() {

Re: Injection javascript code - AjaxResponseRenderer vs JavaScriptSupport

2012-07-15 Thread Paul Stanton
As Lance said, you need to use JavascriptSupport when preparing a non-ajax response, and AjaxResponseRenderer when you are... if (request.isXHR()) { // use AjaxResponseRenderer } else { // use JavascriptSupport } however if the bug (https://issues.apache.org/jira/browse/TAP5-1870 ) aff

Re: Injection javascript code - AjaxResponseRenderer vs JavaScriptSupport

2012-07-15 Thread Paul Stanton
i'm assuming this 'afterrender' is within a component which is within a zone being updated via an ajax request/response? if so, is this the same as the issue i logged?: https://issues.apache.org/jira/browse/TAP5-1870 does your "set" method get called at all? On 15/07/2012 10:33 AM, bhorvat wr

Re: reload message catalog in production mode?

2012-07-11 Thread Paul Stanton
u use glassfish, you can save session state across redeployment. Don't know if other containers support this but they should. On Jul 11, 2012, at 7:14 PM, Paul Stanton wrote: is there a way to force the global messages catalog to be reloaded while runnin

Re: reload message catalog in production mode?

2012-07-11 Thread Paul Stanton
... and exploded war deployment - i've changed the content of target/[project]/WEB-INF/app.properties and need these changes to take effect without a re-deploy. possible? On 12/07/2012 9:16 AM, Paul Stanton wrote: running Tapestry 5.3.3 On 12/07/2012 9:14 AM, Paul Stanton wrote: is th

Re: reload message catalog in production mode?

2012-07-11 Thread Paul Stanton
running Tapestry 5.3.3 On 12/07/2012 9:14 AM, Paul Stanton wrote: is there a way to force the global messages catalog to be reloaded while running in production mode? - To unsubscribe, e-mail: users-unsubscr

reload message catalog in production mode?

2012-07-11 Thread Paul Stanton
is there a way to force the global messages catalog to be reloaded while running in production mode? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Adding confirmation step to form

2012-06-14 Thread Paul Stanton
The simplest way would be to save your form data into a bean, and use the @Persist annotation on your bean so you can display it and then subsequently save it 2 requests later. By default this will use your session to store the bean. Alternatively you can use the @SessionState annotation if yo

ie9 + ajax response + stylesheets - bug/incompatibility

2012-04-16 Thread Paul Stanton
I've found an incompatibility with ie9 and tapestry exposed when an ajax response renders a component(s) which include their own stylesheets. https://issues.apache.org/jira/browse/TAP5-1907 If you use partial renders (ajax responses) and components which include their own stylesheets (@Import)

parameter generic type not respected

2012-04-16 Thread Paul Stanton
Hi all, I have a component with a parameter using a generic type eg: public class MyComponent { @Parameter private List collectionParameter; } However I can set the parameter with a List of any generic type: public class MyPage { @Property private List otherCollection; } ...

Re: Calling fnStandingRedraw to retain the current pagination settings using javaScriptSupport.addInitializerCall

2012-04-03 Thread Paul Stanton
Have you tried javaScriptSupport.addScriptCall("fnStandingRedraw();"); instead? I'm not sure if fnStandingRedraw is in fact a simple javascript method or a valid initializer. p. On 4/04/2012 2:39 AM, russellJB wrote: Hello All! I am using the CreateEventLink method of the ComponentResource

Re: T5.3 datetime settings question

2012-03-26 Thread Paul Stanton
you need to change the timezone setting for the jvm via -Duser.timezone, but even then you need to patch an outstanding bug with the DateField: https://issues.apache.org/jira/browse/TAP5-841 On 25/03/2012 7:48 AM, bigcache1 wrote: Hello, everybody. I want to set the time in the application to

gzip and http1.0

2012-03-19 Thread Paul Stanton
Hi all, We recently ran into a problem with tapestry's GZIP compression and had to disable it. The problem was that a core group of our clients are stuck in ie6 land from within a proxy and its default setting is to use http 1.0 in that scenario. When using http 1.0 the headers are incorre

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
0.4.3 I've worked around it by overriding SecurityExceptionHandlerAssistant to use WebUtils.getRequestUri instead of WebUtils.getPathWithinApplication. Cheers, p. On 19/03/2012 9:38 PM, trsvax wrote: Which version are you running? I had a context problem in 0.4.1 and upgrading to 0.4.3 fixed

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
value via org.apache.shiro.web.util.WebUtils.getPathWithinApplication(HttpServletRequest) which strips the context-path from the URI. Clearly there is an incompatibility between this and "contextRelative" being false (in the receiving end - WebUtils.issueRedirect). Hope this helps, paul. On 19/03/2012 6:33 PM, Paul Stanton wrote: I

tynamo security login issue

2012-03-19 Thread Paul Stanton
I've just set up the most basic implementation of tapestry-security I could to do some testing and have found a bit of an issue which should be very easy to fix: I've created a page which requires a permission. If, after logging in, I use the loginlink on that page to log out, I am taken to th

Re: A translator error

2012-03-19 Thread Paul Stanton
I think you want to ... public void contributeTranslatorAlternatesSource(MappedConfigurationTranslator> configuration) { configuration.add("EditorTranslator", new EditorTranslator("EditorTranslator")); } On 19/03/2012 3:55 PM, dick_hu wrote: I write a string translator

simple user authentication

2012-03-18 Thread Paul Stanton
Hi group, Is it recommended to use a security module such as tynamo's tapestry-security when all you require is username/password authentication to a couple of pages? Is there a simpler add-on module? Is 'roll-your-own' a generally accepted practice for a simple implementation? Discuss...

how to call some js AS SOON AS tapestry is finished initialising

2012-03-16 Thread Paul Stanton
What is the best way to execute some javascript as soon as tapestry is finished all of its Tapestry.init() calls on initial page render? Note, browsers that don't support DOMContentLoaded (ie6,7,8...) can fire any window.load listener before Tapestry.onDOMLoaded. -

Re: xhr requests and thread safety

2012-03-14 Thread Paul Stanton
In our application, many ajax requests are processed in the same session, sometimes causing conflicts when they update shared session information. I found synchronizing the logic within my event handlers to be useless since many components access shared objects from property bindings within the

Re: Zone update triggers update on parent Zone

2012-03-14 Thread Paul Stanton
like i said, this could be a bug. why not log it in jira and see what the big heads think? On 15/03/2012 1:44 AM, nquirynen wrote: Found a solution for my problem (not sure if it's a good solution, but it works): In the update event of the parent zone (zone1 in my example) I added an if state

  1   2   3   4   5   6   >