Re: QName::=(NCName':')?NCName error when tml is parsed

2014-05-16 Thread Andreas Fink
Can you post DataManaging.tml > Caused by: org.xml.sax.SAXParseException: Element or attribute do not match > QName production: QName::=(NCName':')?NCName. The 'production' part seems odd. Cheers, Andi. - To unsubscribe, e-ma

Re: @CommitAfter for GenericDao

2014-05-16 Thread John
so this? FooFacade { @CommitAfter public void saveSomething(Something something) { doSaveSomething(something); } @CommitAfter public void saveAListOfSomethings(List somethings) { for (Something something : somethings) { doSaveSomething(something); } } private void doSaveSomething(Somethi

Re: QName::=(NCName':')?NCName error when tml is parsed

2014-05-16 Thread Thiago H de Paula Figueiredo
On Wed, 07 May 2014 03:51:12 -0300, mailingl...@j-b-s.de wrote: It looks like the library mapping name is causing this effect: in case the name begins with a digit as first character like "1st" component rendering fails. Using "first" instead fixes the problem and everything works as exp

T5.3 - Per-page custom localization axis

2014-05-16 Thread Robert Hailey
Greetings, I've been looking deep into Tapestry's localization mechanisms, especially with regards to "skinning". What I'm looking for now, is an easier (automatic) way to set the selector per-request ahead of time via the passivate functions. Sorta like this: @LocaleAxis public enum MyAxis

Re: Invalidating a session

2014-05-16 Thread Michael Gentry
Hi Thiago, I wasn't aware there could be additional consequences, so thanks for the information. mrg On Wed, May 14, 2014 at 3:37 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 14 May 2014 11:02:24 -0300, Michael Gentry > wrote: > > Generally, yes, but sometimes you

Re: formatting attributes

2014-05-16 Thread Robert Zeigler
Why not specify the format to use in the i18n properties file for the template? Then your java code can read in the date string from he property file. Tapestry makes this über simple, just inject the Messages object (see http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/Message

Re: Asset placement t5.4

2014-05-16 Thread Sven Homburg
Put your layout.css into META-INF/assets/css and call it via @Import(stylesheet = {"css/layout.css"}) thats all 2014-05-08 15:10 GMT+02:00 George Christman : > Hi everyone, I'm getting the following error, > > (AssetSourceImpl.java:188) - Packaging of classpath assets has changed in > release

T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Robert Hailey
Greetings, I've run into a case where I must be able to tell if the current request is a page-render request, or component-event request from within an onActivate() function. Is there a common/easy/concise way to do this? Something like: public class MyPage { @Inject private

Asset placement t5.4

2014-05-16 Thread George Christman
Hi everyone, I'm getting the following error, (AssetSourceImpl.java:188) - Packaging of classpath assets has changed in release 5.4; Assets should no longer be on the main classpath, but should be moved to 'META-INF/assets/' or a sub-folder. Future releases of Tapestry may no longer support assets

Re: T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Thiago H de Paula Figueiredo
On Fri, 16 May 2014 15:01:13 -0300, Robert Hailey wrote: Greetings, Hi! I've run into a case where I must be able to tell if the current request is a page-render request, or component-event request from within an onActivate() function. Is there a common/easy/concise way to do this?

Re: T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Dmitry Gusev
Maybe try this? http://tapestry.apache.org/5.3.7/apidocs/org/apache/tapestry5/services/ComponentEventLinkEncoder.html#decodeComponentEventRequest(org.apache.tapestry5.services.Request) On Fri, May 16, 2014 at 10:01 PM, Robert Hailey wrote: > > Greetings, > > I've run into a case where I must b

autocomplete data source

2014-05-16 Thread Ilya Obshadko
It turns out that running an event handler (onProvideCompletionsFrom) in the same component/page may result in various race condition problems. Suppose you have a complex form and data initialization occurs during onActivate phase. Then, this initialization is going to happen every time onProv

Re: autocomplete data source

2014-05-16 Thread John
Could you cache your hibernate results for subsequent calls? - Original Message - From: Ilya Obshadko To: Tapestry users Sent: Thursday, May 08, 2014 1:33 PM Subject: autocomplete data source It turns out that running an event handler (onProvideCompletionsFrom) in the sa

Re: formatting attributes

2014-05-16 Thread Aristedes Maniatis
Lance Java wrote: > I'm not sure how you have assumed that tapestry knows how understand a > "format:" binding prefix. Certainly none of the tapestry documentation > mentions it? I was trying to extrapolate from this: http://wiki.apache.org/tapestry/Tapestry5HowToFormatDateTimeEtc Really, I wa

Re: Possible to use a tapestry application for webservice and web front end development

2014-05-16 Thread Daniel Jue
We are using Tynamo's RESTEasy integration with various js libraries, including ExtJs. We deploy it as a single war, however our build is a bit more complicated since our main codebase is more of a skeleton, and we use War overlays for specific implementations. In the end it's all one war with al

passing data from component class to javascript

2014-05-16 Thread John
I have a time picker component I need to pass an array of dates to. The picker will use the dates to choose whether displayed hours and minutes are selectable. I want all the disabling/enabling code to be client side. Do I pass data to the js functions in my regulra component in the same way as

Re: autocomplete data source

2014-05-16 Thread Michael Gentry
Hi Ilya, onActivate() gets called for both normal page render requests and AJAX/XHR requests (used by the autocomplete). Have you tried: @Inject private Request request; and calling the isXHR() method in request in your onActivate() to determine if the request is normal or AJAX? onActivate() {

Re: Tapestry 5.4 Select: Can't stop tapestry generating it's own clientId

2014-05-16 Thread Lance Java
https://issues.apache.org/jira/browse/TAP5-2331

Re: Invalidating a session

2014-05-16 Thread Sanket Sharma
Thank you for the response everyone. Interesting..I never realised that myself :-) On Wed, May 14, 2014 at 9:37 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 14 May 2014 11:02:24 -0300, Michael Gentry > wrote: > > Generally, yes, but sometimes you need access to metho