Tapestry 5.4 URLs on download page

2013-08-27 Thread Steve Eynon
Hi, I was just wondering if the the T5.4 URLs on: http://tapestry.apache.org/download.html could be updated to point to: https://repository.apache.org/content/groups/staging For currently, the alpha1 and alpha2 URLs mentioned don't exist. Steve.

Re: [OT] T5-IoC in Fantom

2013-08-07 Thread Steve Eynon
into Registry.autobuild() - emphasis on annotations (facets) and not naming conventions I learnt a lot from the project and now certainly appreciate the recursive complexity involved in maintaining an IoC registry! Cheers, Steve. -- Steve Eynon --- If at first you don't

Re: Conditional wrapping html element

2013-08-07 Thread Steve Eynon
You could create a simple component that optionally renders the div element. Something like: public class IfDiv { @Parameter private boolean test; void setupRender(MarkupWriter writer) { if (test) writer.element(div); } void afterRender(MarkupWriter writer) { if (test)

[OT] T5-IoC in Fantom

2013-08-06 Thread Steve Eynon
Hello, If imitation is the sincerest form of flattery then T5-IoC has been paid a huge compliment... ...there's an IoC in the language Fantom that bears a striking resemblance to T5-IoC! afIoc - http://repo.status302.com/doc/afIoc/#overview I've been an avid fan of Tapestry since v3, and with

Re: TapestryIoC: Is it possible to receive an OrderedConfiguration's ID?

2013-03-17 Thread Steve Eynon
Nothing specific that I know of... ...you could iterate over the ServiceActivities in the ServiceActivityScoreboard service looking for a matching service interface and take the ID from there. It's not nice, but as long as you know the type of the service, it should work.

Re: Read only bindings - How do I set their value from a mixin?

2013-03-16 Thread Steve Eynon
Here's the thread where I ran into the problem: http://tapestry.1045711.n5.nabble.com/How-to-set-the-translate-parameter-tt5719495.html Luckily, for my use case, I was able to Munky Patch T5. Steve. On 16 March 2013 05:25, trsvax trs...@gmail.com wrote: I ran into this problem also. I think

Re: TapestryIoC: Is it possible to receive an OrderedConfiguration's ID?

2013-03-15 Thread Steve Eynon
No, but if your contribution is a service then you can inject the ServiceId using the @Symbol annotation: http://tapestry.apache.org/symbols.html#Symbols-InjectingValuesfromSymbols Steve. On 15 March 2013 11:26, Eli Doran e...@elidoran.com wrote: When using OrderedConfiguration the add

Re: Read only bindings - How do I set their value from a mixin?

2013-03-14 Thread Steve Eynon
Is there any reason the following doesn't work? public static void contributeApplicationDefaults(MappedConfigurationString, String config) { config.add(ComponentParameterConstants.GRID_PAGER_POSITION, NONE); } From GridPagerPosition: NONE = Don't show a pager (the application will need to

Re: Read only bindings - How do I set their value from a mixin?

2013-03-14 Thread Steve Eynon
Okay, add the following to App Defaults then: (!) config.add(ComponentParameterConstants.GRID_ROWS_PER_PAGE, Integer.MAX_VALUE); I usually set the number to 500 or some other large number. Big enough so you rarely see it, but if you do happen to get 1000s of rows, then your HTML doesn't bloat to

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Steve Eynon
Oh, I see - you have inline javascript in the onchange handler. I don't think that's going to work - you need to wrap the element in T5s core DOM which is defined by RequireJS: http://people.apache.org/~hlship/t5api/coffeescript/t5-core-dom-prototype.html Do this instead:

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Steve Eynon
event handlers for other events, but I guess I can figure that out (i.e. Initialize#invoke(String)) now that you've given me a good start. Thanks! On Sun, Mar 10, 2013 at 8:28 PM, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Oh, I see - you have inline javascript in the onchange handler. I

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-09 Thread Steve Eynon
Try this: this.form.fire(submit) I've not tried it, but I was looking at: http://people.apache.org/~hlship/t5api/coffeescript/forms.html Steve. --- If at first you don't succeed, so much for skydiving!

Re: RadioGroup disable bug(?)

2013-03-05 Thread Steve Eynon
Looking at the RadioGroup code I think you're right. It has a somewhat unused 'disabled' field and there is no code that prevents processSubmission() from being called. Steve. On 4 March 2013 20:45, Erik Östman erik.ost...@cerion.fi wrote: Hey, I have a problem with a RadioGroup where the

Re: The tml file is not being rendered properly

2013-03-05 Thread Steve Eynon
Erm... is this not a Velocity question rather than a Tapestry one? On 5 March 2013 16:07, harishpatarla harishpata...@gmail.com wrote: -- View this message in context: http://tapestry.1045711.n5.nabble.com/The-tml-file-is-not-being-rendered-properly-tp5720336p5720337.html Sent from the

[T5.4-alpha-2] w jQuery Infrastructure - Checkboxes are always checked

2013-02-14 Thread Steve Eynon
t:checkboxes ... are always submitted as checked. Boils down to a bug in the value() function in t5-core-dom-prototype.coffee. The value() function assumes the $.val() function works for all input elements, which is not the case. See http://api.jquery.com/val/ As a workaround I've patched my

Re: Tapestry-5.4-alpha-2 css overriding

2013-02-09 Thread Steve Eynon
There are few T5.4-a2 components (that I seem to use) that pull in the core stack which then imports the bootstrap.css. Alerts is one of them, which I've Munky Patched not to. You're then free to import whatever CSS you want in whatever order as per usual. Another option (which I also do to keep

Re: Tapestry 5.3 makes it impossible to load symbols from DB (TAP5-1823)

2013-02-05 Thread Steve Eynon
not to look elsewhere for the service definition. Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Re: Disable operations caused due to back and forward buttons

2013-01-31 Thread Steve Eynon
As it's a server side process you're trying to protect, store a flag in the session when the user has clicked Run. Then before you kick off the process again, check the status of the flag. - To unsubscribe, e-mail:

Re: [T5.4-alpha-2] Ajax alerts not rendered after a call to dismissAll()

2013-01-31 Thread Steve Eynon
Can you please open an issue and attach the patch there? https://issues.apache.org/jira/browse/TAP5-2062 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

[T5.4-alpha-2] Ajax alerts not rendered after a call to dismissAll()

2013-01-30 Thread Steve Eynon
When first rendered via a call to setupUI the alerts HTML looks like: div data-container-type=alerts div class=well div data-container-type=inner ... alerts ... /div /div /div After a call to dismissAll() the HTML looks like: div data-container-type=alerts /div With the inner

Re: parameter in tml page?

2013-01-29 Thread Steve Eynon
Okay, I getcha. You can use String literals if that helps... e.g. ${getObject('bob')} - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: 5.4 - Javascript best practices

2013-01-29 Thread Steve Eynon
I've just noticed that @Import now has a module parameter, that can be used for modules methods that take no parameters. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: tapestry jQuery theme

2013-01-28 Thread Steve Eynon
I'm assuming you know that, by default, T.3 doesn't use jQuery - so which library are you using to import jQuery. Could you be more specific with your question? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: How to get code coverage of Integration Test ?

2013-01-28 Thread Steve Eynon
T5 instruments pages and components itself and uses it's own class loader to reload them, so it's very unlikely Sonar is able to hook that. (Not that I know anything of Sonar.) - To unsubscribe, e-mail:

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
: define([jquery, t5/core/console, bootstrap], function($, console) { return { f1: function() { .. } f2: function() { .. } }; }); CoffeeScript, if you wanna get into it, makes everything look a lot neater! Steve. -- Steve Eynon --- If at first you don't

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
. On 27 January 2013 23:13, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Good questions - I had to work this out myself when moving to T5.4! Yes, I personally consider @Import'ing JS deprecated - though it is still valid if you don't wish to use RequireJS. In your component put

Re: parameter in tml page?

2013-01-27 Thread Steve Eynon
Could you use: ComponentResources.getInformalParameter(String name, ClassT type); ??? Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 27 January 2013 22:18, sommeralex alexander.som...@gmail.com wrote: i dont wont a page

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
Yup. That's right. On 28 January 2013 00:00, Lance Java lance.j...@googlemail.com wrote: Thanks Steve, I've lost a few hours trying to figure this out. So I only need to contribute to ModuleManager if I don't follow the convention? (ie module foo is located at /META-INF/modules/foo.js).

Re: Tapestry 5 book is here

2013-01-25 Thread Steve Eynon
Nice! You get even your own personalised PDF copy! Sweet! -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 25 January 2013 17:20, Igor Drobiazko igor.drobia...@gmail.com wrote: Dear Tapestry community, I'm glad to announce

[T5.4-alpha-2] Alerts CSS BootStrap Styling

2013-01-24 Thread Steve Eynon
, I have a workaround, I'm just pointing stuff out for discussion.) Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! - To unsubscribe, e-mail: users-unsubscr

Re: [T5.4-alpha-2] Alerts CSS BootStrap Styling

2013-01-24 Thread Steve Eynon
Oh, and could: severityToClass = info: alert alert-info be added to the t5/core/alert module to add some styling for info alerts. Cheers. On 24 January 2013 20:04, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Hiya, When I use the t:alerts component, it @Imports the core stack

How to set the translate parameter?

2013-01-24 Thread Steve Eynon
Here's a puzzler... I've extended AbstractTextField and I want to set the translate @Parameter from within my subclass. Given this parameter is private in the superclass, how may I do it? I went as far as making a mixin to set a bound translate parameter on setupRender, e.g. @BindParameter

Re: [5.4-alpha-2] Environment cloaked during ajax component event

2013-01-24 Thread Steve Eynon
This came in around T5.3, I believe the cloak / de-cloak was put in for Ajax requests so the environment used in the action phase didn't leak into the render phase. Steve. On 25 January 2013 01:31, Lance Java lance.j...@googlemail.com wrote: Considering the simplified example below, can someone

Re: Tapestry Session Service

2013-01-24 Thread Steve Eynon
I'm guessing the reason why you can't inject the Session is exactly for the reason you stated - how do you inject it if you don't want it to be created? Can't say I've ever explicitly needed the Session obj myself - see here: http://tapestry.apache.org/session-storage.html As to why it's in the

Re: How to set the translate parameter?

2013-01-24 Thread Steve Eynon
); } }; } Is there any reason for the default translate to be package protected AND final?? is it okay if I make a JIRA asking for it to be protected scope and non-final? (It's a 9 character change!) Steve. -- Steve Eynon --- If at first you don't succeed, so much

Re: T5.4-alpha-2: Module Initialization Priority / Order

2013-01-18 Thread Steve Eynon
know how to go about fixing this. Should I raise a JIRA? Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 17 January 2013 13:32, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Hiya, I have the following in a component

Re: T5.4-alpha-2: Module Initialization Priority / Order

2013-01-18 Thread Steve Eynon
you'd be fighting the RequireJS way of things. I think what is in place is good, only the InitialisationPriority should probably be scrapped (it always seemed like a course grained cludge to me anyway) and the depends mechanism probably needs a little more thought / love. Steve. -- Steve Eynon

Re: 5.4-alpha-2 Render queue error in BeginRender

2013-01-17 Thread Steve Eynon
Works fine for me (T5.4-alpha-2) - could it be something to do with your layout component? Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 18 January 2013 00:41, sthomps stho...@gmail.com wrote: Trying to get forms working

Re: 5.4-alpha-2 quickstart

2013-01-17 Thread Steve Eynon
I had a current project using T5.3 (built by gradle). For that I simply changed the version to 5.4-alpha-2 and added the following to my list of repositories: // for T5.4-alpha-2 mavenRepo url: 'https://repository.apache.org/content/repositories/orgapachetapestry-096/' Steve. -- Steve Eynon

Re: 5.4-alpha-2 Render queue error in BeginRender

2013-01-17 Thread Steve Eynon
As long as your custom client side component library plays nicely when jQuery is in noConflictMode, then there are no issues using T5 / Prototype and jQuery together. On 18 January 2013 01:25, sthomps stho...@gmail.com wrote: The problem is we have a custom client side component library that

T5.4-alpha-2: Module Initialization Priority / Order

2013-01-16 Thread Steve Eynon
liking the use of RequireJS - I get a cosy feeling from having my dependencies injected into my JS modules, it's like an IoC for JS! -- Steve Eynon --- If at first you don't succeed, so much for skydiving

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
'ContextNotRequiredWorker'). The dependency has been ignored. Steve. On 10 September 2012 19:37, Robert Zeigler robert.zeig...@roxanemy.com wrote: Hi Steve, have you tried specifying after:*, before:UnclaimedField? Robert On Sep 9, 2012, at 9/99:33 PM , Steve Eynon wrote: Hi Michael, just specify

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
you know what you actually are putting in your app, that will never change until you add more modules. On Sep 10, 2012, at 10:46 AM, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Hi Robert, I had previously tried before:UnclaimedField, after:* - but doesn't matter which way round

Ioc Ordering Contraints

2012-09-09 Thread Steve Eynon
Hi, I have a transform worker which I want to run after everything else (it checks for the existence of an onActive() method) so I have the following Module method, note the after:* @Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideTransformWorkers(

Re: Ioc Ordering Contraints

2012-09-09 Thread Steve Eynon
isn't allowed. the trick is to specify multiple constraints I could specify many after clauses for T5 workers as you mention, but that then won't (be guaranteed to) work if some other another module adds an onActivate() method. Stumpted, Steve. -- Steve Eynon

How to return HTTP 404 for in-exact URL requests

2012-08-29 Thread Steve Eynon
= instance.getComponentResources().getPageName(); throw new MangledUrlException(pageName, MangledUrlMessages.contextNotWanted(event.getEventContext().toStrings())); } } }); } } -- Steve Eynon --- If at first you don't succeed

Re: How to return HTTP 404 for in-exact URL requests

2012-08-29 Thread Steve Eynon
If T5 could throw more specific exceptions, as oppose the generic ones that it does, then it'd be a simple exception handling matter for the user to decide what to do. (As mentioned above.) I rose a JIRA about this last year: Throw bespoke exceptions so they may be more easily identified by

Re: BigDecimal on Tapestry pages

2012-08-14 Thread Steve Eynon
org.apache.tapestry5.services.LocalizationSetter for more details. Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 14 August 2012 06:41, arterzatij arterza...@gmail.com wrote: Hi, Currently I tested with 'en' locale and it works well

Re: Conditionally (IE) including javascript

2012-08-12 Thread Steve Eynon
(MarkupWriter writer) { writer.writeRaw(\n![endif]--\n); } } html head titleFeel The Pain/title t:ifIe test=lt IE 9 script type=text/javascript src=${asset:context:/javascript/html5shiv-rc1.js}/script /t:ifIe /head ... -- Steve Eynon

Re: linksubmit t:mode=CANCEL and t:errors

2012-07-23 Thread Steve Eynon
Yeah, this is kind of a known and, I think, not really ideal. The Cancel mode mainly bypasses client side validation. On the server you still have to clear the validation errors via the environmental ValidationTracker. I waited in anticipation for ages for the Cancel Mode, but when it finally

Re: Tapestry 5.3.4

2012-07-17 Thread Steve Eynon
Just to say the 'Release Notes' link on Announcing Tapestry 5.3.4 links to 5.3.3 and not 5.3.4. Steve. On 18 July 2012 00:09, Howard Lewis Ship hls...@gmail.com wrote: Following a successful vote, we're happy to announce the release of Tapestry 5.3.4. 5.3.4 includes further performance

Re: Tapestry 5.3.4

2012-07-17 Thread Steve Eynon
The Release Notes say: Breaking Features Tapestry's use of the Javassist bytecode library has been completely removed, along with many related services, such as ClassFactory, that were deprecated in 5.3. Use PlasticProxyFactory instead. On 18 July 2012 00:34, Kalle Korhonen

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Steve Eynon
I would imagine, similar to specifying the order of CSS, the scripts that get added in the later render methods get added later. e.g. scripts added in setupRender() will appear before scripts added in afterRender() On 12 July 2012 21:40, mem memcacher+tapes...@gmail.com wrote: Hello, i've

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Steve Eynon
wouldn't it be generally better if the @Import obeys the parent child order Possibly, but I believe it's quite an edge case you have there. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: Async process ComponentRequestHandler and JavaScriptSupport

2012-07-10 Thread Steve Eynon
Check that your Environment hasn't been cloaked(). During an Ajax call, when the phase switches from the action phase to a render phase, the Env is `cloaked` effectively hiding all the stuff previously put into the Env. This is new in 5.3 - quite annoying really! I added some hacky code to one

Re: BigDecimal on Tapestry pages

2012-07-04 Thread Steve Eynon
you're saving, the problem could be with your Database mapping. e.g. By default Hibernate doesn't preserve the BigDecimal scale. Steve. (Side note: Urgh! BigDecimals are horrid horrid things! But yeah, for monetary values there's nothing else to use by default in Java. Sigh.) -- Steve Eynon

Re: BigDecimal on Tapestry pages

2012-07-04 Thread Steve Eynon
tapestry js are handling decimalSeparator as coma So, how I can change this? That's set from NumericTranslatorSupportImpl#createJSONDecimalFormatSymbols() which looks it up from the Locale of the browser. - To unsubscribe,

Re: Setting up selenium and testng

2012-06-30 Thread Steve Eynon
I don't know what your setup is, but no, I've never had to duplicate code or resources when using T5 and Selenium. Whatever runs your tests, just ensure the path / classpath is setup correctly. Steve. On 30 June 2012 03:12, George Christman gchrist...@cardaddy.com wrote: Hello, I'm pretty new

Re: Using ajaxformloop to add a label and a textfield

2012-06-30 Thread Steve Eynon
The AjaxFormLoop is complicated to get working correctly. So I would either first work through the T5 tutorial to get a better understanding of T5 ( http://tapestry.apache.org/tapestry-tutorial.html ) or get the Double Negative example working in your project, then trim down the code until it does

Re: Breaking auto realding feature with embeded classes

2012-06-30 Thread Steve Eynon
Correct, the Enum class has to reside outside of the special packages. Otherwise, as observed, once the Enum class is reloaded, it's a totally different class, incompatible with any previous references. T5 cannot replace these references as a) they're not injected b) may be used in non-T5

Re: Breaking auto realding feature with embeded classes

2012-06-30 Thread Steve Eynon
Alas no. All classes inside those packages (and sub packages) are transformed (re-loaded) by T5. I either stick it in the services package or create a separate package called util or entity. com.myapp.components com.myapp.pages com.myapp.services -- here com.myapp.entities -- or here

Re: @Symbol and web context-params

2012-06-21 Thread Steve Eynon
because i need multiple apps running side by side. Err... http://tapestry.apache.org/configuration.html#Configuration-SegregatingApplicationsIntoFolders says, At this time, it is still not possible to run multiple Tapestry 5 applications within the same web application. Other than that there's

Re: JSON issue when upgrading to 5.3.3 from 5.2.6

2012-06-20 Thread Steve Eynon
See below for more details: http://tapestry.apache.org/how-to-upgrade.html http://tapestry.apache.org/configuration.html#Configuration-tapestry.applicationversion

Re: AppModule: using injected service in ContributeWebSecurityManager

2012-06-20 Thread Steve Eynon
Hi! I'm pretty sure your dataSource is being injected, otherwise you'd receive a different error and not an NPE. This looks wrong to me: binder.bind(DataSource.class, AppModule.getJndiDataSource().getClass()).withId(blog.dataSource); Specifically the: AppModule.getJndiDataSource().getClass()

Re: T.5.2.6 recordError on FormAjaxLoop

2012-06-20 Thread Steve Eynon
I don't think it is. The default implementation of the ValidationTracker records errors against individual fields, of which in the loop there is only one. (Caveat: I've not looked at the FormAjaxLoop specifically.) In a standard loop, this implementation helps - you may be able to adjust for a

Re: Difference between renderSupport.addScript and JSON addInit(function, JSON Object)

2012-06-20 Thread Steve Eynon
in address.js remove the last call to loadAddresse. i.e. just have Tapestry.Initializer.loadAddresse = function loadAddresse(jsonObject){ ... } it is probably that last surplus : loadAddresse(jsonObject); that caused the JS error ('cos there is no global function called loadAddresse) which then

Re: PageTester cant handle querystring ?

2012-06-19 Thread Steve Eynon
= path; return this; } -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 19 June 2012 06:47, Karan Rajanayagam karan.rajanaya...@dossier.no wrote: PageTester cant handle query string.. for ex. an link like:  admin/clazz/edit

Re: Getting Error when do any action in my page

2012-06-19 Thread Steve Eynon
Still... Servlet.service() for servlet ices threw exception ...sounds like a servlet is being invoked which is causing the NPE. T5 is a servlet filter, no servlet should be being called. Depending on your setup - have you read this?:

Re: PageTester cant handle querystring ?

2012-06-19 Thread Steve Eynon
There is also a duplicate JIRA for the PageTester bug and a patch file here: REOPEN TAP5-698 - PageTester's setupRequestFromURI incorrectly uses substring twice on same string https://issues.apache.org/jira/browse/TAP5-1936 Steve. -- Steve Eynon --- If at first you

Re: How to tap into live class realoading

2012-06-16 Thread Steve Eynon
From a quick peek... The ReloadableObjectCreatorSource creates the proxies (ReloadableServiceImplementationObjectCreator) which create the Service. Each ReloadableServiceImplementationObjectCreator implements UpdateListener which is called when it should check for changes / updates. But you are

Re: Disable clientside x on serverside validation

2012-06-15 Thread Steve Eynon
That's not a server class, that's done in JavaScript. Look at the createUI() function in Tapestry.ErrorPopup around line 1300 in tapestry.js You may have to monkey patch the JS with your own function(s) / class. Steve. -- Steve Eynon --- If at first you don't succeed

Re: Getting Error when do any action in my page

2012-06-14 Thread Steve Eynon
On 14 June 2012 21:20, karthick nk.karth...@gmail.com wrote: Servlet.service() for servlet ices threw exception What's the ices servlet and why is it being called? - To unsubscribe, e-mail:

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
The clue is in StylesheetLink#add. Try this: void afterRender() {    js.importStylesheet(new StylesheetLink(ieOnlyStylesheet, new StylesheetOptions(null).withCondition((IE 7)|(IE 8))) ); } Only the constructor and getter are deprecated. Steve. -- Steve Eynon

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
Yeah, this isn't a T5 thing - it's Java! @Inject private Logger log; public My() { log.info(Logger injected in service using @javax.inject.Inject); } T5 can't do field injection until it's constructed the class. But when T5 constructs the class you access the field -- NPE!

Re: How to use StyleSheetOptions with condition

2012-06-14 Thread Steve Eynon
To be honest I've never tried it, but it says here it should be okay: http://en.wikipedia.org/wiki/Conditional_comment Steve. On 15 June 2012 00:13, George Christman gchrist...@cardaddy.com wrote: Thanks Steven, nice to know the condition argument can handle multiple conditions. -- View

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at runjettyrun.Bootstrap.main(Bootstrap.java:82) 2012-06-14 18:55:47.637:INFO::Started SelectChannelConnector@0.0.0.0:80 On Thu, Jun 14, 2012 at 6:26 PM, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Yeah

Re: Disable clientside x on serverside validation

2012-06-14 Thread Steve Eynon
default BaseValidationDecorator. Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 15 June 2012 01:07, George Christman gchrist...@cardaddy.com wrote: Is there a way to disable the clientside x from appearing when a server side error

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
the Logger isn't... ??? Steve. On 15 June 2012 01:14, Steve Eynon steve.ey...@alienfactory.co.uk wrote: Just tried it on T5.3.3 and it worked fine with both @Inject annotations... Though I wouldn't advise injecting services into your module - that just seems... well, weird! Steve. On 15

Re: HowTo break out of a Tapestry loop?

2012-06-06 Thread Steve Eynon
There is no 'break' in the loop component, but you can wrap your inner loops in a conditional t:if test=.. component. Steve. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Javascript in Tapesytry

2012-06-03 Thread Steve Eynon
Could you not use a t:outputRaw / component and put the JS in a java string? On 4 June 2012 00:32, Felix Gonschorek fe...@netzgut.net wrote: okay, last one ;) or you could do: if ([xhr2.readyState, xhr2.status].join( ) == 4 200) { } (typesafe check gets lost, though...) Am

Re: Tapestry Transactions

2012-05-31 Thread Steve Eynon
more the part below Steve Eynon wrote unlike T5's @CommitAfter, it doesn't always commit or start a new transaction. The T5 annotation always commits when there is not RuntimeException so what does @Transactional annotation does then :S tnx -- View this message in context: http

Re: Tapestry Transactions

2012-05-30 Thread Steve Eynon
Yeah, you can put the Spring @Transactional annotation on any Spring bean / service. Both on the class and its methods. The propagation=Propagation.REQUIRED ensures the code runs inside a transaction but unlike T5's @CommitAfter, it doesn't always commit or start a new transaction. It sounds like

Re: Tapestry Transactions

2012-05-25 Thread Steve Eynon
, isolation=Isolation.READ_COMMITTED, readOnly = true) public class MyHibernateDAO extends HibernateDaoSupport { ... } Hope it helps, Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 25 May 2012 17:26, bhorvat horvat.z.bo...@gmail.com

Re: How can I create a component that generates unique ids?

2012-05-24 Thread Steve Eynon
All IDs rendered by T5 are already unique. e.g. t:any t:mixins=renderClientId / t:any t:mixins=renderClientId / will render div id=any/ div id=any_0/ Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 24 May 2012 17:27, iberck

Re: T5 How can I pass a block to a component?

2012-05-23 Thread Steve Eynon
In Test.tml you could also do: t:component1 block1=block:dude / t:block t:id=dude texto bloque uno /t:block Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 24 May 2012 07:43, iberck ibe...@gmail.com wrote: I found

Re: Tapestry Transactions

2012-05-23 Thread Steve Eynon
Here is our implementation with Spring 3.1.0 - it lets you use the Spring transaction annotations on your Spring services. First in your module: public static void bind(ServiceBinder binder) { binder.bind(ComponentRequestFilter.class, OpenSpringSessionInViewFilter.class).withSimpleId();

Re: mixin with t:datefield bug?

2012-05-14 Thread Steve Eynon
Rather writing out your own disabled attribute, try having your Mixin bind to the disabled parameter: @BindParameter private boolean disabled; then set this to false and have the input component disable itself: void beginRender() { disabled = true; } -- Steve Eynon

Re: Tapestry.ZONE_UPDATED_EVENT issue

2012-05-13 Thread Steve Eynon
Try removing the double quotes from Tapestry.ZONE_UPDATED_EVENT : $jq(mediaZone).on(Tapestry.ZONE_UPDATED_EVENT, function(){ alert(EVENT TRIGGERED); }); Failing that, not knowing anything about jQuery integration, I'd try the more T5 standard Prototype functions:

Re: Basic question about URL rewriting and Tapestry 5

2012-05-10 Thread Steve Eynon
...@gmail.com wrote: Thanks Steve. I was also considering: http://ocpsoft.org/rewrite/ Julien. 2012/5/8 Steve Eynon steve.ey...@alienfactory.co.uk I find Tuckey's Url Rewrite Filter a good option for simple rewrites: http://www.tuckey.org/urlrewrite/ Steve. -- Steve Eynon

Re: Basic question about URL rewriting and Tapestry 5

2012-05-10 Thread Steve Eynon
wrote: On Thu, 10 May 2012 08:58:50 -0300, Steve Eynon steve.ey...@alienfactory.co.uk wrote: It's just that implementing a LinkTransformer is lot of work and constructing / deconstructing PageRenderRequestParameters from a raw Request is not a simple task. Whereas the external solutions offer

Re: Basic question about URL rewriting and Tapestry 5

2012-05-08 Thread Steve Eynon
I find Tuckey's Url Rewrite Filter a good option for simple rewrites: http://www.tuckey.org/urlrewrite/ Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 8 May 2012 04:23, Julien Martin bal...@gmail.com wrote: Thanks Thiago

[T5.3.3] Removing The LoopBack Parameter From An EventLink

2012-05-07 Thread Steve Eynon
*after* it is written out, which is a little late for my purpose. Any thoughts? Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! - To unsubscribe, e-mail: users-unsubscr

Re: Accessing protected instrumented fields

2012-04-12 Thread Steve Eynon
Oh sweet. That is good news, cheers! -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 13 April 2012 06:47, Howard Lewis Ship hls...@gmail.com wrote: Turns out its mutable fields that don't work.  I was fooled because my tests

Accessing protected instrumented fields

2012-04-11 Thread Steve Eynon
://tapestry.apache.org/component-classes.html#ComponentClasses-InstanceVariables ) Cheers, Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! - To unsubscribe, e-mail

Re: Which method is called in a page when click back button from browser

2012-04-02 Thread Steve Eynon
I always enjoyed this post on the topic: http://tapestry.1045711.n5.nabble.com/Browser-Back-Button-td4909542.html#a4917143 Steve. On 31 March 2012 02:08, fredramsey fredram...@gmail.com wrote: And this: http://www.boutell.com/newfaq/creating/backbutton.html You can probably find other

Re: T5.3 datetime settings question

2012-03-26 Thread Steve Eynon
Our apps have something like this in the module: @Startup public static void setDefaultTimeZones(@Inject @Symbol(PlatformSymbols.DEFAULT_TIMEZONE_TO_UTC) boolean setTimezoneToUtc) { if (setTimezoneToUtc) { System.setProperty(user.timezone, UTC);

Re: Boolean Return Values in Custom Component Events

2012-03-22 Thread Steve Eynon
); } }; I guess I would rather the callback not be wrapped and instead have an abstract implmentation for the default Boolean behaviour. Steve. -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 21 March 2012 20:19, Thiago H. de Paula Figueiredo

Re: MarkupWriter + HTML (5) Validation

2012-03-22 Thread Steve Eynon
Sounds like this Jira: Filter out attributes with default value (from DTD) when parsing templates https://issues.apache.org/jira/browse/TAP5-171 -- Steve Eynon --- If at first you don't succeed,    so much for skydiving! On 23 March 2012 05:28, Thiago H. de Paula

Boolean Return Values in Custom Component Events

2012-03-20 Thread Steve Eynon
? Cheers, Steve. -- Steve Eynon - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5.3] Contributing a Service Override using addInstance()

2012-03-06 Thread Steve Eynon
it you can't have it injected into the override method) and will throw errors whenever the service is injected without a specific ID. There are 100's of places where we have plain injections and is not practical to change them. -Original Message- From: Steve Eynon [mailto:steve.ey

  1   2   3   4   >