t:select enum conflict

2011-01-30 Thread Paul Stanton
Hi all, A hypothetical: I have 2 separate entities, each with a 'Type' enum with different options. Both of these are used in multiple components by t:select input fields. How do I provide my 'translations' in my 'application message catalog' so that they do not conflict?

Re: t:select enum conflict

2011-01-30 Thread Paul Stanton
; if (messages.contains(key)) return messages.get(key); if (messages.contains(name)) return messages.get(name); return toUserPresentable(name.toLowerCase()); } On 31/01/2011 11:38 AM, Thiago H. de Paula Figueiredo wrote: On Sun, 30 Jan 2011 21:21:37 -0200, Paul Stanton p

Re: t:select enum conflict

2011-01-30 Thread Paul Stanton
ClassName$EnumName if the enum is inline with the class. It would be better to use value.getClass.getSimpleName() this is in 5.1 i'm not sure if that's already fixed in 5.2 will check later. cheers, p. On 31/01/2011 12:56 PM, Paul Stanton wrote: yes thiago, tried that (t5.1) is that maybe a 5.2

Re: t:select enum conflict

2011-01-30 Thread Paul Stanton
and PropertyDisplayBlocks could use this without issue. do you think this is worth logging? p. On 31/01/2011 1:15 PM, Paul Stanton wrote: Also, There's a bug in that class if you're using an inline enum: public static String getLabelForEnum(Messages messages, Enum value

Re: t:select enum conflict

2011-02-22 Thread Paul Stanton
thiago, is this how it's supposed to work? On 31/01/2011 1:40 PM, Paul Stanton wrote: Sorry, I realise I'm not being very easy to understand, i'll clarify: 1. Yes thiago, I tried that and it doesn't work. It doesn't resolve the message entry. Which makes sense given the source code

how to debug a testng suite?

2011-02-22 Thread Paul Stanton
Hi all, I'm new to testNG, and wrote a simple java class to run my tests. Problem is, it doesn't seem to run my @BeforeClass methods. For some services, I like to write tests and develop to satisfy the test, so I need to be able to debug (use breakpoints) and run them rapidly and many times.

Re: how to debug a testng suite?

2011-02-22 Thread Paul Stanton
) On 22/02/2011 10:28 PM, Ulrich Stärk wrote: I usually run my tests from within Eclipse with the testng plugin. right-click, run as - TestNG test. Works like a charm. Uli On 22.02.2011 12:22, Paul Stanton wrote: Hi all, I'm new to testNG, and wrote a simple java class to run my tests

Re: t:select enum conflict

2011-02-26 Thread Paul Stanton
see jira: https://issues.apache.org/jira/browse/TAP5-1452 On 22/02/2011 9:51 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 22 Feb 2011 07:18:08 -0300, Paul Stanton p...@mapshed.com.au wrote: thiago, is this how it's supposed to work? What exactly

waitForPage / onDOMLoaded hybrid

2011-03-06 Thread Paul Stanton
Hi all, i'm using tapestry 5.1.0.5 on this particular project. I'm not 100% sure this isn't already available, but before duplicating logic i thought I'd check... I need to be able to call a function at any point in the page state (ie before it's loaded, during loading, after load) but have

Re: waitForPage / onDOMLoaded hybrid

2011-03-06 Thread Paul Stanton
) == undefined) throw(callWhenPageLoaded called too early); if (Tapestry.pageLoaded) callback.call(this); else Tapestry.onDOMLoaded(callback); } If something like this doesn't exist in tapestry already, I think it should. p. On 7/03/2011 9:44 AM, Paul Stanton wrote: Hi

Re: waitForPage / onDOMLoaded hybrid

2011-03-06 Thread Paul Stanton
RenderSupport.addScript is server side, not client side. (right?) I need to do this from a JS and in another case from a TML. It's a complicated structure and not easy to re-model to suit. p. On 7/03/2011 10:38 AM, Thiago H. de Paula Figueiredo wrote: On Sun, 06 Mar 2011 19:44:09 -0300, Paul

Re: waitForPage / onDOMLoaded hybrid

2011-03-06 Thread Paul Stanton
already, I think it should. p. On 7/03/2011 9:44 AM, Paul Stanton wrote: Hi all, i'm using tapestry 5.1.0.5 on this particular project. I'm not 100% sure this isn't already available, but before duplicating logic i thought I'd check... I need to be able to call a function at any point

Re: waitForPage / onDOMLoaded hybrid

2011-03-06 Thread Paul Stanton
I think it would be better to provide this without going back to the server. On 7/03/2011 10:54 AM, Thiago H. de Paula Figueiredo wrote: On Sun, 06 Mar 2011 20:49:49 -0300, Paul Stanton p...@mapshed.com.au wrote: RenderSupport.addScript is server side, not client side. (right?) It's server

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
when it should be executed. I figured this mechanism would be useful to others... p. On 7/03/2011 12:30 PM, Thiago H. de Paula Figueiredo wrote: On Sun, 06 Mar 2011 21:58:02 -0300, Paul Stanton p...@mapshed.com.au wrote: I think it would be better to provide this without going back

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
too early); if (Tapestry.pageLoaded) callback.call(this); else Tapestry.onDOMLoaded(callback); } If something like this doesn't exist in tapestry already, I think it should. p. On 7/03/2011 9:44 AM, Paul Stanton wrote: Hi all, i'm using tapestry 5.1.0.5

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
think it should. p. On 7/03/2011 9:44 AM, Paul Stanton wrote: Hi all, i'm using tapestry 5.1.0.5 on this particular project. I'm not 100% sure this isn't already available, but before duplicating logic i thought I'd check... I need to be able to call a function at any point in the page state (ie

ascii code 153 (tm) not displaying properly

2011-03-28 Thread Paul Stanton
Hi all, I'm having some character set issues in that I can't get #153; to display as ™ in my tapestry page. Here's my doctype and html declarations: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html

Re: ascii code 153 (tm) not displaying properly

2011-03-29 Thread Paul Stanton
trade; works fine thanks Ulrich. On 29/03/2011 10:42 PM, Ulrich Stärk wrote: btw,trade; should work as well. Uli On 29.03.2011 13:15, Yohan Yudanara wrote: standar value in unicode for trademark symbol is not#169;. 169 is trademark character on windows-1252 encoding. The standard unicode

updating a zone which does not exist...

2011-04-05 Thread Paul Stanton
Hi All, I recently came across something confusing regarding zone updates and component injection ... The problem is that tapestry allows you to inject and update a zone which might not have rendered due to conditional logic, however when the client attempts to update the zone an error is

Re: updating a zone which does not exist...

2011-04-05 Thread Paul Stanton
Well, I could do that, but it seems more complicated than just a) duplicating my conditional logic where I request the zone update (ie not update the zone based on the same conditional logic) or b) putting the t:if inside the t:zone both of these are workarounds, however - I think tapestry

transposed form loop

2011-05-03 Thread Paul Stanton
Hi all, I have a strange requirement and i'm not clear on the recommended tapestry approach... (T5.1.2) It seems similar to AjaxFormLoop or Form+Loop except that I need to transpose the table, ie each Column is a record and each Row is an attribute. Is there a way to use AjaxFormLoop in a

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

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

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

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

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

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

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

Re: transposed form loop

2011-05-09 Thread Paul Stanton
The fields are of different types so I need to use different form components ie checkbox, textfield, select ... so transposing in prior to tml would make things more complicated imho. On 4/05/2011 10:49 PM, Chris Poulsen wrote: Hi, Can't you just prepare/transpose your model in java and keep

simple int selection model

2011-05-09 Thread Paul Stanton
Hi all, I need to make a select consisting of the options 0,1,2,3,4,5. I remember reading somewhere that there is a simple syntax for defining this model - something like [model=0..5] however that isn't it... Does anyone else know what I'm referring to or was this a dream/legacy feature?

Re: simple int selection model

2011-05-09 Thread Paul Stanton
, 09 May 2011 20:53:47 -0300, Paul Stanton p...@mapshed.com.au wrote: Hi all, Hi! I need to make a select consisting of the options 0,1,2,3,4,5. I remember reading somewhere that there is a simple syntax for defining this model - something like [model=0..5] however that isn't it... model

Re: simple int selection model

2011-05-10 Thread Paul Stanton
model=literal:0,1,2,3,4,5 works On 10/05/2011 1:05 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 09 May 2011 23:00:49 -0300, Paul Stanton p...@mapshed.com.au wrote: Hi thiago, That's what I thought, however t:Select t:value=myValue t:model=0..5 / is being rendered as select id=select_4

is there a beforeRender for partial renders?

2011-05-11 Thread Paul Stanton
Hi all, I have an ajax event handler which performs some db updates and then commits via tapestry-hibernate: @CommitAfter private MultiZoneUpdate onSomeEvent() { ... return mzu; } After the commit, I need to refresh my persistent object prior to the partial render or the MZU. Is

Re: submit context in loop

2011-05-16 Thread Paul Stanton
thanks guys, defer=false works fine. josh, i do want the other form fields to save their values as part of this operation. cheers, p. On 17/05/2011 3:39 AM, Josh Canfield wrote: defer=true This is the right place to look, but the wrong value. True is the default and tells the submit to

chenillekit version for tap 5.1.0.5

2011-05-16 Thread Paul Stanton
hi all, does chenillekit have documentation regarding version compatibility, and which version of chenillekit-tapestry should I use alongside tapestry 5.1.0.5 ? thanks, p. - To unsubscribe, e-mail:

Re: chenillekit version for tap 5.1.0.5

2011-05-16 Thread Paul Stanton
' of component X is bound to null p. On 17/05/2011 9:27 AM, Paul Stanton wrote: hi all, does chenillekit have documentation regarding version compatibility, and which version of chenillekit-tapestry should I use alongside tapestry 5.1.0.5 ? thanks, p

Re: chenillekit version for tap 5.1.0.5

2011-05-16 Thread Paul Stanton
never mind, my mistake :( On 17/05/2011 10:17 AM, Paul Stanton wrote: Ok i've gone with version 1.2.0 and figured out the confusing 'exclusions' required in the pom... is that the most up to date version compatible with T5.1.0.5 ? If so, where can I find the component documentation

form validation for async submission

2011-05-16 Thread Paul Stanton
Hi List, In the following example, where does the recordError message go and how do I get the partial render to display the validation messages/recorded errors? tml excerpt: t:zone t:id=myZone t:form t:id=myForm t:zone=myZone t:submit value=submit / /t:form /t:zone java excerpt:

Re: form validation for async submission

2011-05-17 Thread Paul Stanton
doh!. i am blind sometimes. thanks. On 17/05/2011 3:52 PM, Taha Hafeez wrote: Hi To display error messages putt:errors/ anywhere inside your form regards Taha On Tue, May 17, 2011 at 10:56 AM, Paul Stantonp...@mapshed.com.au wrote: Hi List, In the following example, where does the

Re: datefield - no option to cancel?

2011-05-24 Thread Paul Stanton
that some of you use tapx or chenillekit for date pickers, but the default implementation should still work... regards, Paul. On 10/01/2011 8:09 AM, Thiago H. de Paula Figueiredo wrote: On Sun, 09 Jan 2011 19:06:59 -0200, Paul Stanton p...@mapshed.com.au wrote: there is now (as of about 2 hrs

Re: datefield - no option to cancel?

2011-05-30 Thread Paul Stanton
hi antal, i'm using your patch now as it is more complete than mine. it still leaves one problem which is that the selected date (ie 25th) is highlighted no matter what month/year calendar you are looking at. ie, if you have selected 25th of may 2011, open the calendar, change the month and

vbscript support?

2011-06-06 Thread Paul Stanton
Hi All, I've been asked to 'sniff' users' windows username via a vbscript snippet and am having trouble getting this to work in the tapestry (5.1.0.5) application. It seems tapestry is trying to interpret the vbscript as javascript and therefore failing. The vbscript snippet (below) is

Re: vbscript support?

2011-06-06 Thread Paul Stanton
linking to it how? script type=text/vbscript language=vbscript src=xyz.vbs/script .. ? On 7/06/2011 11:24 AM, Howard Lewis Ship wrote: You might have better luck packaging the script is a .vbs file, making sure your MIME mappings are correct in web.xml, and linking to it, rather than

Re: form observe submit not working?

2011-06-12 Thread Paul Stanton
alan, there is no javascript on the page you suggested. i don't think you understand the question. p. On 13/06/2011 9:08 AM, ael wrote: I think this can help you. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen

Re: datefield - no option to cancel?

2011-06-15 Thread Paul Stanton
except that if you move to the next month, and then back, the highlight for the currently selected date is gone. On 31/05/2011 7:03 PM, antalk wrote: DatePicker.prototype.goToNextMonth = function () { var d = new Date(this._selectedDate); d.setDate(Math.min(d.getDate(),

datefield timezone

2011-07-11 Thread Paul Stanton
Hi all, Tapestry 5.1... I've run into a problem with the datefield component and am about to look into patching it, but if anyone can offer some advice it would be appreciated. Our server is running in Australia/Brisbane timezone and some of our clients are in the India/Mumbai timezone.

Re: datefield timezone

2011-07-11 Thread Paul Stanton
PM, Paul Stanton wrote: Hi all, Tapestry 5.1... I've run into a problem with the datefield component and am about to look into patching it, but if anyone can offer some advice it would be appreciated. Our server is running in Australia/Brisbane timezone and some of our clients

Re: datefield timezone

2011-07-11 Thread Paul Stanton
is not multi-timezone safe, and should be fixed. Regards, Paul. On 12/07/2011 8:45 AM, Paul Stanton wrote: Sorry, I need to clarify the steps to reproduce: If load the page with a null value, the first selection from the widget works fine (ie 01/07/2011). If you use the widget again

Re: datefield timezone

2011-07-12 Thread Paul Stanton
are in a different timezone to your server, be very careful with this component. it is currently broken. https://issues.apache.org/jira/browse/TAP5-1575 On 12/07/2011 10:25 AM, Paul Stanton wrote: From looking at the code, it seems like DateField will always have issues if the DateFormat parameter does

Re: Free J2ee hosting

2011-07-15 Thread Paul Stanton
what's the story with cloudbees and session store ? It says they don't offer it under the free account: http://cloudbees.com/run-pricing.cb but i can't find any definition of what they're talking about... On 14/07/2011 12:34 PM, Taha Hafeez wrote: Hi Mark, David On Thu, Jul 14, 2011 at 7:31

what is called when - ajax version

2011-07-17 Thread Paul Stanton
In the past, I've found the what is called when example from the jumpstart collection very useful, however there is no version for the partial render or ajax case. I'm trying to figure out if there is an event I can handle which is called everytime a partial render or zone update is returned

Re: what is called when - ajax version

2011-08-09 Thread Paul Stanton
/2011, at 11:05 AM, Paul Stanton wrote: In the past, I've found the what is called when example from the jumpstart collection very useful, however there is no version for the partial render or ajax case. I'm trying to figure out if there is an event I can handle which is called everytime a partial

component scope service with injected messages

2011-08-22 Thread Paul Stanton
Hi all, I am aware that there is something special about tapestry services/resources such as Request, Messages etc which are only available in the context of a component render. I need to create a service which makes heavy use of the messages store and is available only in the scope of a

Re: component scope service with injected messages

2011-08-29 Thread Paul Stanton
just injecting messages didn't work when i tried it. Caused by: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ioc.Messages. at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:560) at

Re: component scope service with injected messages

2011-08-29 Thread Paul Stanton
Do you mean I should do the following: public Object doSomethingUseful(Object someParameter, Messages messages) {...} and thereby call: t:output value=myService.doSomethingUseful(something,message) ... / for example? On 30/08/2011 10:14 AM, nillehammer wrote: Don't inject it in the

IncludeJavaScriptLibrary doesn't work if component is included later

2011-11-14 Thread Paul Stanton
Hi all, I'm still using T5.1, so please keep that in mind... I have a component which is hidden (via a t:loop which starts with zero elements) at the initial page render. Later, via ajax/zone updates, the t:loop is reloaded with elements, each of which create an instance of my component.

Re: IncludeJavaScriptLibrary doesn't work if component is included later

2011-11-14 Thread Paul Stanton
my mistake! i had a syntax error in the js. IncludeJavaScriptLibrary works as expected! On 15/11/2011 6:19 PM, Paul Stanton wrote: Hi all, I'm still using T5.1, so please keep that in mind... I have a component which is hidden (via a t:loop which starts with zero elements) at the initial

xhr requests and thread safety

2011-12-11 Thread Paul Stanton
Hi all, I found a nasty situation where some xhr requests were running into nullpointers on properties of persistent page properties/fields. My theory being that there is some access to fields of a persistent field in XHR request A, while XHR request B is still setting the values for the

Re: xhr requests and thread safety

2011-12-11 Thread Paul Stanton
ps that quote is from http://tapestry.apache.org/tapestry-tutorial.html On 11/12/2011 9:04 PM, Paul Stanton wrote: Hi all, I found a nasty situation where some xhr requests were running into nullpointers on properties of persistent page properties/fields. My theory being that there is some

remote archetype catalog for quickstart

2011-12-22 Thread Paul Stanton
Hi All, I'm trying to create a tapestry quickstart project via the eclipse maven plugin. Eclipse version: Helios Service Release 2 Build id: 20110301-1815 Maven Plugin: Sonatype Inc Maven Integration for Eclipse 0.12.1.20110112-1712 I am following the rough 'getting started' guide (as

Re: remote archetype catalog for quickstart

2011-12-22 Thread Paul Stanton
I gave up and installed maven to do this. not sure why m2eclipse doesn't work... On 23/12/2011 1:31 PM, Paul Stanton wrote: Hi All, I'm trying to create a tapestry quickstart project via the eclipse maven plugin. Eclipse version: Helios Service Release 2 Build id: 20110301-1815 Maven

development with eclipse+tomcat

2011-12-22 Thread Paul Stanton
Its been over 2 years since I started a new production tapestry application, and once again in the same server environment we need to do our development testing in the environment familiar with the team: ie tomcat. For productivity, live class reloading, the ability to step through code and

Re: development with eclipse+tomcat

2011-12-23 Thread Paul Stanton
Thanks Kalle, That document is great, much better than what I could find last time around. The only step which I had to go searching elsewhere to solve was finding where the DevLoader was! 7. Install devloader for Tomcat (for Tomcat 7.x use devloader from version 3.3). Unzip and copy the

Re: xhr requests and thread safety

2011-12-29 Thread Paul Stanton
Thanks josh and howard, After my initial realisation it all makes more sense now. p. On 27/12/2011 9:25 AM, Howard Lewis Ship wrote: For example, rather than directly creating and manipulating an entity object inside a page or component event handler method, you might move the logic into a

Re: development with eclipse+tomcat

2012-01-02 Thread Paul Stanton
to org.apache.tapestry5.corelib.components.Zone So the object returned from ComponentResources.getEmbeddedComponent is from the tapestry classloader, while the Zone class is from the default classloader. Is there a way to resolve this? Thanks, p. On 24/12/2011 8:37 PM, Paul Stanton wrote

ajax improvements in 5.3

2012-01-02 Thread Paul Stanton
Hi all, I've started using T5.3 for the latest project and am migrating some of the ajax api 'extensions' I had to write in order to become productive. I've noticed that much has improved since T5.1 and am eager to make sure that I am not missing out on further improvements by

messages bundle containing special characters

2012-01-19 Thread Paul Stanton
Hi all, I'm looking for the best way to store special characters such as ® (#174; / reg;) in the messages properties bundle (i.e. app.properties). I'm aware that I can store the entity name within the bundle and then use the 'outputraw' component to render the appropriate symbol in the

Re: messages bundle containing special characters

2012-01-19 Thread Paul Stanton
Hi Josh, I did try just the ®initially, however it doesn't seem to work. The unicode-escape sequence does however, so that is what I will go ahead with. key=reg; \u00AE ® t:outputraw value=message:key / ® ® � ${message:key} reg; ® � Thanks, Paul. On 20/01/2012 3:35 PM, Josh Canfield

Re: messages bundle containing special characters

2012-01-22 Thread Paul Stanton
Ah, that's it .. my project/eclipse workspace defaults to ISO-8859-1 which i thought was recommended.. ? On 20/01/2012 6:23 PM, Kalle Korhonen wrote: On Thu, Jan 19, 2012 at 10:30 PM, Paul Stantonp...@mapshed.com.au wrote: I did try just the ®initially, however it doesn't seem to work. The

Re: Zone and Eventlink refresh problem

2012-01-26 Thread Paul Stanton
Just a side note, this has caught a few users over time (since t5.1). Boris' expected behaviour does not seem to me to be too unrealistic an expectation! Depending on your personality type ;) you may even consider this a bug. Maybe the zone re-rendering process should handle this client id

Re: EmptyStackException in production mode in the AssetsModule.ResourceMinimizer

2012-01-27 Thread Paul Stanton
my 2c: the symbols tapestry.compress-whitespace tapestry.enable-minification should not default to true (in production mode) since they both are known to cause issues. p. On 5/01/2012 3:51 AM, Howard Lewis Ship wrote: https://issues.apache.org/jira/browse/TAP5-1729 On Wed, Jan 4, 2012 at

contributeSymbolSource doesn't always work for me?

2012-01-29 Thread Paul Stanton
Hi all, I've seen in a few examples and posts that the way to configure tapestry from a properties file is to use contributeSymbolSource. I would like to configure tapestry firstly from a properties file and secondly hard-set a couple of values from AppModule. I am doing the following:

Re: contributeSymbolSource doesn't always work for me?

2012-01-29 Thread Paul Stanton
contribution order. On Sun, 29 Jan 2012 23:45:11 -0200, Paul Stanton p...@mapshed.com.au wrote: Hi all, I've seen in a few examples and posts that the way to configure tapestry from a properties file is to use contributeSymbolSource. I would like to configure tapestry firstly from a properties

Re: contributeSymbolSource doesn't always work for me?

2012-01-29 Thread Paul Stanton
misconfiguration. Cheers, p. On 30/01/2012 3:48 PM, Paul Stanton wrote: Hi Thiago, I assume you mean on my SymbolSource contribution for 'tapestry.properties' .. Which should it be? before:* so that it gets loaded first (to initialise correctly), or after:* so it gets loaded last (to override

subclass overrides parameter value

2012-01-30 Thread Paul Stanton
Hi all, I have a component with: @Parameter(defaultPrefix = BindingConstants.LITERAL, value = 30) private int maxResults; and I also have a subclass component for which I would like to change the default the value for 'maxResults' to 10. When either component (super or sub) is used,

Re: java.lang.ClassFormatError: Illegal field modifiers in class lxyz/web2/components/codebook/controls/Button: 0x12

2012-02-19 Thread Paul Stanton
Thanks Steve, I ran into this too upgrading from t5.1 to t5.3. IMO this is a bug, since an interface designed specifically for my tapestry pages should be able to co-exist in the pages package. https://issues.apache.org/jira/browse/TAP5-1851 p. On 23/08/2011 12:00 PM, Steve Ragle wrote:

Re: Versioned assets

2012-02-19 Thread Paul Stanton
Hi Cezary, I think I have the same need as you. We use load balanced servers, and when upgrading we upgrade one at a time so that there is always a server running. But the side effect is that the upgraded server can receive requests for the old assets, and we don't want to fail in this

tomcat/sysdeo devloader and loading order

2012-02-19 Thread Paul Stanton
Hi all, Does anyone out there who uses devloader know how to manipulate the order the classpath entries are loaded? My .tomcatplugin lists a webClassPathEntry at the top of the list, but for some reason it is always loaded 2nd last. Moving it in this file seems to have no effect on the

tapestry 5.3 antlr version

2012-02-20 Thread Paul Stanton
Hi all, I've recently noticed that in tapestry-hibernate 5.3.2 directly depends on antlr 2.7.6, while tapestry-core 5.3.2 depends no antlr 2.7.7 Is this a mistake? Thanks, Paul. - To unsubscribe, e-mail:

best way to patch tapestry?

2012-02-20 Thread Paul Stanton
Hi All, Like many of you, I've had to create a couple of local patches to get certain things in tapestry working correctly. For example, a fix for the DateField component (https://issues.apache.org/jira/browse/TAP5-841) and a custom AssetDispatcher to perform a 302 redirect instead of

Re: best way to patch tapestry?

2012-02-20 Thread Paul Stanton
Kalle, I hadn't thought of the version bit .. I think that sounds good. I will try to get that working. One problem is that (while I know I should) I haven't had the time to create our own internal maven repository yet. We currently include a bunch of jars via scopesystem ... ugly, I know

Re: java.lang.ClassFormatError: Illegal field modifiers in class lxyz/web2/components/codebook/controls/Button: 0x12

2012-02-21 Thread Paul Stanton
: I don't think it's a bug. Can't find the place in the docs that describes this but I'm sure it's somewhere written that you shall not store anything but page classes in the page package. Am 20.02.2012 um 04:05 schrieb Paul Stanton: Thanks Steve, I ran into this too upgrading from t5.1

Re: Versioned assets

2012-02-21 Thread Paul Stanton
Here's my implementation: // Copyright 2006, 2008, 2009, 2010, 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the License); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // //

Re: Versioned assets

2012-02-21 Thread Paul Stanton
Didn't think there was a Jira yet, I'll try to get around to logging it later this week. On 22/02/2012 8:38 AM, Howard Lewis Ship wrote: Patches are best provided on JIRA; there's a checkbox that shows you have granted the rights to the patch code to the Apache Software Foundation. Thanks!

Re: Versioned assets

2012-02-21 Thread Paul Stanton
, Paul Stanton wrote: Didn't think there was a Jira yet, I'll try to get around to logging it later this week. On 22/02/2012 8:38 AM, Howard Lewis Ship wrote: Patches are best provided on JIRA; there's a checkbox that shows you have granted the rights to the patch code to the Apache Software

Re: best way to patch tapestry?

2012-02-21 Thread Paul Stanton
the implementation of DateField, there is a broken component that I don't want other developers to forget not to use. Cheers, p. On 22/02/2012 8:12 AM, Thiago H. de Paula Figueiredo wrote: On Mon, 20 Feb 2012 20:47:15 -0200, Paul Stanton p...@mapshed.com.au wrote: Hi All, Hi! Don't patch: find

Re: best way to patch tapestry?

2012-02-21 Thread Paul Stanton
From what I can tell, it overrides the DateFieldStack, and the javascript used - not the component class its self... am i wrong? On 22/02/2012 3:03 PM, Jonathan Barker wrote: Perhaps the tapestry5-jquery project can give you some ideas. It overrides the DateField component. On Tue, Feb 21,

Re: how to get the index in tapestry loop and change background color of a table

2012-02-21 Thread Paul Stanton
1. use the 'index' attribute of loop: t:loop source=topnewsdatas value=newsItem index=indexProp 2. add the indexProp to your page class @Property private int indexProp; 3. use a property symbol for the appropriate style attribute (i'm assuming the tr) tr class=linkboxbold

Re: best way to patch tapestry?

2012-02-22 Thread Paul Stanton
Thanks Thiago, I managed it by decorating ComponentInstantiatorSource and overriding DateFieldStack. No patched jar required now! On 22/02/2012 8:50 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 21 Feb 2012 22:55:30 -0200, Paul Stanton p...@mapshed.com.au wrote: Hi Thiago, Hi, Paul

component documentation regression

2012-02-22 Thread Paul Stanton
Hi Tapestry team, I'm confused as to why the 'current' documentation for tapestry components in some cases (eg textfield) does not contain information regarding parameters and example usage we used to have? new:

classloader error constructing helper classes within service

2012-02-22 Thread Paul Stanton
Hi all, I'm in the process of upgrading a project from t5.1 to t5.3.2. I have one service which creates a bunch of helper objects and stores them in a map. The helper classes save an instance of another service as a field. public MyServiceImpl(MyOtherService service) {

Re: eventLink to an event in a component

2012-02-23 Thread Paul Stanton
You could use @InjectComponent to inject the component into your Layout class, and then call whatever method needs calling directly from your handler in Layout: public class Layout { @InjectComponent private YourComponent yourComponent; void onSomeEvent(String context) {

<    1   2   3   4   5   6   >