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: 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) writer.end(

Re: [OT] T5-IoC in Fantom

2013-08-07 Thread Steve Eynon
y be passed 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 --- "

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

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 wrote: > I ran into this problem also. I think you might be able

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 wrote: > When using OrderedConfiguration the add method's first argument

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: 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(MappedConfiguration config) { config.add(ComponentParameterConstants.GRID_PAGER_POSITION, "NONE"); } >From GridPagerPosition: NONE = Don't show a pager (the application will need to supply its ow

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

2013-03-13 Thread Steve Eynon
There is no way that I found. :( On 13 March 2013 16:52, Lance Java wrote: > In a mixin, I can change the value of a component parameter using > @BindParameter to get a mirror of the parameter and then updating the > mirrored value. > > This is fine with the prop: and var: bindings since they a

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

2013-03-10 Thread Steve Eynon
d the trick, it works perfectly. > > Of course, I'll still need to adjust the module to set up a additional > 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! >

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: /META-INF/modules/formS

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

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 wrote: > Hey, > > I have a problem with a RadioGroup where the setter is called (wit

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

2013-02-14 Thread Steve Eynon
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 value() function wit

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 t

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

2013-02-05 Thread Steve Eynon
T5 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..

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: users-h...@tapestry.apach

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

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

2013-01-30 Thread Steve Eynon
ck", "button.close", -> Patch file for alert.coffee attached. Steve. -- Steve Eynon --- "If at first you don't succeed, so much for skydiving!" - To unsubscribe

[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: ... alerts ... After a call to dismissAll() the HTML looks like: With the inner container nowhere to be found. So when an attempt is next made to show an alert after an ajax call: (t5/core/alert.cof

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

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: 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: users-unsubscr...@tapestry.

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: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
Yup. That's right. On 28 January 2013 00:00, Lance Java 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"). > > > > -- > View this

Re: parameter in tml page?

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

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
ighcharts", new JavaScriptModuleConfiguration(highcharts).exports("Highcharts")); } Steve. On 27 January 2013 23:13, Steve Eynon wrote: > Good questions - I had to work this out myself when moving to T5.4! > > Yes, I personally consider @Import'ing JS deprecated

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
.require("alienfactory/stuff").invoke("f2"); then your JS module looks more like: define(["jquery", "t5/core/console", "bootstrap"], function($, console) { return { f1: function() { .. } f2: function() { .. } }; }); CoffeeScript, if you w

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 wrote: > Dear Tapestry community, > > I'm glad to a

Re: How to set the translate parameter?

2013-01-24 Thread Steve Eynon
sources, "teacherKey"); } }; } 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

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 s

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 wrote: > Considering the simplified example below, can someone please tell me why the >

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: [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 wrote: > Hiya, > > When I use the t:alerts component, it @Imports the core stack, w

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

2013-01-24 Thread Steve Eynon
S? (By the way, 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

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

2013-01-18 Thread Steve Eynon
me anyway) and the depends mechanism probably needs a little more thought / love. Steve. -- Steve Eynon --- "If at first you don't succeed, so much for skydiving!" On 19 January 2013 01:51, Howard Lewis Ship wrote: > Yes, lots of async going on, s

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

2013-01-18 Thread Steve Eynon
quireJS I don't 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 wrote: > Hiya, > > I have the fo

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 wrote: > The problem is we have a custom client side component library that includes > jquery.

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/' S

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 wrote: > Trying to get form

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

2013-01-16 Thread Steve Eynon
same modules. Steve. P.S. So far I'm 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 firs

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
you > need to be after, and put that in the constraints. > Since 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 > wrote: > >> Hi Robert, >> >> I had prev

Re: Ioc Ordering Contraints

2012-09-10 Thread Steve Eynon
cycle ('UnclaimedField' depends on itself via 'ContextNotRequiredWorker'). The dependency has been ignored. Steve. On 10 September 2012 19:37, Robert Zeigler wrote: > Hi Steve, have you tried specifying "after:*", "before:UnclaimedField"? > > Robert >

Re: Ioc Ordering Contraints

2012-09-09 Thread Steve Eynon
27; want to run last - which 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 onA

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( Orde

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 Error

How to return HTTP 404 for in-exact URL requests

2012-08-29 Thread Steve Eynon
ComponentEventHandler() { @Override public void handleEvent(Component instance, ComponentEvent event) { if (event.getContext().length > 0) { String pageName = instance.getComponentResources().getPageName(); throw new MangledUrlException(pageName, M

Re: BigDecimal on Tapestry pages

2012-08-14 Thread Steve Eynon
.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 wrote: > Hi, > > Currently I tested with 'en' locale a

Re: Conditionally (IE) including javascript

2012-08-12 Thread Steve Eynon
write out a dummy tag to prevent T5 from writing it's script tags 'inside' the IE comment! writer.element("script", "type", "text/javascript"); writer.end(); writer.writeRaw("\n\n"); }

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 arr

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 wrote: > On Tue, J

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 wrote: > Following a successful vote, we're happy to announce the release of > Tapestry 5.3.4. > > 5.3.4 includes further performance improvements for

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 commands

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 wrote: > Hello, > > i've two Tapestry components whe

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 pr

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, e-

Re: BigDecimal on Tapestry pages

2012-07-03 Thread Steve Eynon
Floats (just for now) to see if they work correctly. Depending on where you're logging and how 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!

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

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

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: 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 wrote: > Hello, I'm pretty new to Tapestry Selenium and

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

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 d

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 For

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: 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 http://tapestry.apache.org/templating-and-markup-faq.html#TemplatingandMarkupFAQ-WhydomyimagesandstylesheetsendupwithaweirdURLslike%7

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

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?: http://tapestry.apache.org/configuration.html#Configurati

Re: PageTester cant handle querystring ?

2012-06-19 Thread Steve Eynon
-- */ this.path = path; return this; } -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" On 19 June 2012 06:47, Karan Rajanayagam wrote: > > PageTester cant handle query string.. for ex. a

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 yo

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
the Logger isn't... ??? Steve. On 15 June 2012 01:14, Steve Eynon 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.

Re: Disable clientside x on serverside validation

2012-06-14 Thread Steve Eynon
x27;s default BaseValidationDecorator. Steve. -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" On 15 June 2012 01:07, George Christman wrote: > Is there a way to disable the clientside x from appearing when a server sid

Re: Problem injecting a Logger

2012-06-14 Thread Steve Eynon
he.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:322) > at > org.apache.tapestry5.ioc.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:80) > at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:118) > at org.mortbay.jetty.servlet.

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 wrote: > Thanks Steven, nice to know the condition argument can handle multiple > conditions. > > -- > View this message in con

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

Re: Getting Error when do any action in my page

2012-06-14 Thread Steve Eynon
On 14 June 2012 21:20, karthick wrote: > Servlet.service() for servlet ices threw exception What's the "ices" servlet and why is it being called? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional co

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 component. Steve. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry

Re: Javascript && in Tapesytry

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

Re: Tapestry Transactions

2012-05-31 Thread Steve Eynon
bit 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 annotat

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

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. will render Steve. -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" On 24 May 2012 17:27, iberck wrote: > Hi tapestry members: > > How can I create a compone

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: T5 How can I pass a block to a component?

2012-05-23 Thread Steve Eynon
In Test.tml you could also do: wrote: > I found the solution: > > > .tml: > public class Component1 { > >    @Parameter >    @Property >    private Block block1; > } > > .java: > contenido bloque: > > Test.tml: > >         >            texto bloque uno >         >     > > > -- > View this mes

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: $("mediaZone").

Re: Basic question about URL rewriting and Tapestry 5

2012-05-10 Thread Steve Eynon
e: > On Thu, 10 May 2012 08:58:50 -0300, Steve Eynon > 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 t

Re: Basic question about URL rewriting and Tapestry 5

2012-05-10 Thread Steve Eynon
0, Julien Martin wrote: > >> Thanks Steve. >> I was also considering: http://ocpsoft.org/rewrite/ >> Julien. >> >> 2012/5/8 Steve Eynon >> >>> I find Tuckey's Url Rewrite Filter a good option for simple rewrites: >

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

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

2012-05-07 Thread Steve Eynon
field is set *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

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 wrote: > Turns out its mutable fields that don't work.  I was fooled because my

Accessing protected instrumented fields

2012-04-11 Thread Steve Eynon
ed to say so? ( http://tapestry.apache.org/component-classes.html#ComponentClasses-InstanceVariables ) Cheers, Steve. -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" -

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 wrote: > And this: > > http://www.boutell.com/newfaq/creating/backbutton.html > > You can probably find other solutions, just goo

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); org.joda.datetime.DateTimeZone

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, Thi

Re: Boolean Return Values in Custom Component Events

2012-03-21 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 P

  1   2   3   4   >