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

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

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 <pa...@mapshed.com.au> wrote: I have found an issue I believe with tapestery

Re: beaneditform not hiding id

2015-10-29 Thread Paul Stanton
ulate the BeanModel directly and do whatever you want from it. On Thu, 29 Oct 2015 00:02:31 -0200, Paul Stanton <pa...@mapshed.com.au> 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 I can l

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
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: On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton <

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) where it cannot inspect

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

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'

Re: beaneditform not hiding id

2015-10-28 Thread Paul Stanton
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 Person's |id| property?* BeanEditForm

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(MappedConfigurationString,

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

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 pa...@mapshed.com.au wrote: Hi all, Hi

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.3] why is a stack being included when not referenced?

2014-11-19 Thread Paul Stanton
wrote: On Wed, 19 Nov 2014 16:10:53 -0200, Paul Stanton pa...@mapshed.com.au 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

[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:

[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-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.4] javascript - simplify the new paradigm please

2014-11-16 Thread Paul Stanton
a constant but, as I said above, sometimes you have to derive its value from its container or event context. Geoff On 14 Nov 2014, at 9:18 am, Paul Stanton pa...@mapshed.com.au wrote: Oh, so calling require(modal).invoke(activate) and then later require(modal).invoke(deactivate) .. both re

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

2014-11-14 Thread Paul Stanton
); } }; } In this case I get away with SELECTABLES_KEY being a constant but, as I said above, sometimes you have to derive its value from its container or event context. Geoff On 14 Nov 2014, at 9:18 am, Paul Stanton pa...@mapshed.com.au wrote

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 pa...@mapshed.com.au wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i

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

2014-11-13 Thread Paul Stanton
/reusablemodal/1 Do they fit your scenario? On 13 Nov 2014, at 3:40 pm, Paul Stanton pa...@mapshed.com.au wrote: 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

[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

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 pa...@mapshed.com.au wrote: Hi, Hi! so like many developers (i'm guessing) I'm not quite up to speed

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
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:13 AM, Paul Stanton pa...@mapshed.com.au wrote: Hi, so like many developers (i'm guessing) I'm not quite up to speed with all these new javascript

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

[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] JavascriptStack with module and css.

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

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

2014-11-10 Thread Paul Stanton
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 2014 01:33, Paul

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() {

Re: 5.4 application-version still required?

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

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: - dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version5.4-beta-22/version /dependency My Start.java:

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

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

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: notify embedded components

2014-06-19 Thread Paul Stanton
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 { void onSomeEvent

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... t:radiogroup value=selected encoder=myEnumEncoder t:radio t:id=myEnum1 value=myEnum1 /

Re: Same page secured and unsecured

2013-10-28 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:

Re: Same page secured and unsecured

2013-10-28 Thread Paul Stanton
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 p...@mapshed.com.au wrote: Sorry for the thread revival, however I am coming up

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:

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

2013-04-23 Thread Paul Stanton
? 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 Stanton wrote: this is tapestry 5.3

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

2013-04-23 Thread Paul Stanton
... 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 the recommended approach. JavascriptSupport now handles partial renders via

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

2013-04-21 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 to be initialised

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: [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.

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 hoping

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

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

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

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:44 AM

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) {...} t:component parameter=getSomething('key1', 'key2') / On 12/11/2012 3:52 AM, Muhammad Gelbana wrote: Here is a sample of what I'm trying to do:

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

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 p...@mapshed.com.au 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

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 p...@mapshed.com.au wrote: On 7/11/2012 11:49 AM, Thiago H de Paula Figueiredo

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 p...@mapshed.com.au 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

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 p...@mapshed.com.au 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 p...@mapshed.com.au wrote: I've had to do some

Re: coffee script .. why?

2012-11-01 Thread Paul Stanton
-0200, Paul Stanton p...@mapshed.com.au wrote: ok, our usage of the term 'monkey-patch' is where the misunderstanding is. I mean, patch. not monkey-patch, in your definition. That's why I always told my students: use the right words, the right names, the right terminologies all the times

beaneditform guide out of date

2012-11-01 Thread Paul Stanton
http://tapestry.apache.org/beaneditform-guide.html t:beaneditform object=loginCredentials t:parameter name=password t:labelfor=password/ t:passwordfield t:id=password value=loginCredentials.password/ /t:parameter /t:beaneditform the above eg throws an exception in

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

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: reference 'dateField' object in javascript

2012-10-14 Thread Paul Stanton
= 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 Stanton wrote: Hi all, I always thought

Re: datefield onchange

2012-08-20 Thread Paul Stanton
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.org/jira/browse/TAP5-1844 .. and am using

Re: datefield onchange

2012-08-20 Thread Paul Stanton
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 p...@mapshed.com.au wrote: I've just tried that too howard, $(selectedDate).observe(**change, function(event) { alert('here

Re: datefield onchange

2012-08-20 Thread Paul Stanton
); }); Regards François 2012/8/20, Paul Stanton p...@mapshed.com.au: Thanks brian, but i am assuming/hoping that the fix for issue 1844 allows me to do something a little more obvious. if not, i'm sure to use your solution. p. On 20/08/2012 9:16 PM, Bryan Lewis wrote: Ah yes, the problem of not catching

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. t:datefield value=dateValue onchange=alert('here'); / Is there some extra wiring

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,

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 Heartbeats

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

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

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

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

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: t:if test=numericValue == 3 however '==' doesn't work, but i know method calls work so i changed to: public

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

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 )

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:

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

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

Re: reload message catalog in production mode?

2012-07-11 Thread Paul Stanton
, 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 p...@mapshed.com.au wrote: is there a way to force the global messages catalog to be reloaded while running in production mode

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

ie9 + ajax response + stylesheets - bug/incompatibility

2012-04-17 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

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 ListMyType collectionParameter; } However I can set the parameter with a List of any generic type: public class MyPage { @Property private ListOtherType

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 ComponentResources

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

Re: A translator error

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

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

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
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've just set up

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
tapestry-security-version0.4.3/tapestry-security-version 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

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

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?

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: 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

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

Re: Serving Tapestry5 Assets As Static Resources

2012-03-13 Thread Paul Stanton
yes i meant the minimizer, but howard has also hinted tapestry may do more modification in future: Re: Versioned assets (22/02/2012 6:05 AM) The perfect solution would involve the following: - The version number if replaced with the SHA1 hash of the resource's (uncompressed) content - All

Re: Serving Tapestry5 Assets As Static Resources

2012-03-11 Thread Paul Stanton
nice! i'd like to see the checksum approach in tapestry and since css is already modified on the way out, the checksum url 'could' be applied to relative paths in css? maybe... On 12/03/2012 12:02 AM, Dmitry Gusev wrote: FYI:

Re: Customising T5 URL Encoding

2012-03-10 Thread Paul Stanton
+1 possibly with 3 options? : a) tomcat compatible default encoding b) jetty compatible default encoding c) tapestry encoding On 21/06/2010 6:34 AM, Joel Halbert wrote: Agreed, it would be good to have this as a configuration option. On 20/06/10 19:20, Kai Weber wrote: * Nicolas

Re: classloader issues casting objects to their tapestry type

2012-03-06 Thread Paul Stanton
? Thanks, Paul. On 6/03/2012 7:16 AM, Thiago H. de Paula Figueiredo wrote: On Mon, 05 Mar 2012 16:27:30 -0300, Paul Stanton p...@mapshed.com.au wrote: Well it seems to be working (multiple times, so it's finding the zone/component to render) as is, however I'd prefer to implement something

  1   2   3   4   5   6   >