how to load Tapestry 5.3 data with xml document?

2012-03-19 Thread wesleywj2
hi, i'm currently trying out the tapestry 5.3 new tree component and after searched through and study the demo from :- http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse i realized its a recursive tree which i'm not very good at. such that i think there must be an

Re: A translator error

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

JS and jQuery

2012-03-19 Thread mem
Hello, we're currently reevaluating big parts of our application and are also thinking about switching over to GoT5/jQuery. According to recent blog posts there's something like an JS abstraction layer coming, would it be worth to switch now and adapt as soon as this change has been released or

tynamo security login issue

2012-03-19 Thread Paul Stanton
I've just set up the most basic implementation of tapestry-security I could to do some testing and have found a bit of an issue which should be very easy to fix: I've created a page which requires a permission. If, after logging in, I use the loginlink on that page to log out, I am taken to

Re: A translator error

2012-03-19 Thread dick_hu
Thank you very much -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-translator-error-tp5576150p5576432.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
After doing some more digging, I've found the other end of the equation - where the cookie is set: org.tynamo.security.internal.SecurityExceptionHandlerAssistant.handleRequestException(Throwable, ListObject) It creates the cookie's value via

Re: tynamo security login issue

2012-03-19 Thread trsvax
Which version are you running? I had a context problem in 0.4.1 and upgrading to 0.4.3 fixed it. I tried your senario and it works OK for me under 0.4.3 -- View this message in context: http://tapestry.1045711.n5.nabble.com/tynamo-security-login-issue-tp5576297p5576672.html Sent from the

Re: tynamo security login issue

2012-03-19 Thread Paul Stanton
tapestry-security-version0.4.3/tapestry-security-version I've worked around it by overriding SecurityExceptionHandlerAssistant to use WebUtils.getRequestUri instead of WebUtils.getPathWithinApplication. Cheers, p. On 19/03/2012 9:38 PM, trsvax wrote: Which version are you running? I had a

gzip and http1.0

2012-03-19 Thread Paul Stanton
Hi all, We recently ran into a problem with tapestry's GZIP compression and had to disable it. The problem was that a core group of our clients are stuck in ie6 land from within a proxy and its default setting is to use http 1.0 in that scenario. When using http 1.0 the headers are

Re: gzip and http1.0

2012-03-19 Thread Chris Mylonas
Hi Paul, I thought maybe some proxy settings between tapestry and your ie6 clients be another possible workaround? https://httpd.apache.org/docs/2.2/mod/mod_proxy.html#envsettings https://mail-archives.apache.org/mod_mbox/httpd-users/200212.mbox/%3C002b01c2a829$e3592170$0200a8c0@FamHolthaus%3E

Re: Make Report PDF

2012-03-19 Thread jeczmien
Thiago is right. Of course iText is must have. But... In real world you will need something to prepare pdf report. I use xslt transformed to xhtml (plain xml infrastructure from JRE). That xhtml is converted to pdf with Flying sourcer (http://code.google.com/p/flying-saucer/). XSLT transformation

problem in custom javascript with scriptaculous

2012-03-19 Thread gaurav
Hi, I created a drop down box and want to add scriptaculous Draggable in my drop down box but it is not working together. So how can I fix the things. @AfterRender void afterRender(MarkupWriter writer) { writer.end();

Re: Make Report PDF

2012-03-19 Thread trsvax
I've been using FOP http://xmlgraphics.apache.org/fop/ for a number of years. If you like XSLT (or want to learn it) try it out. FOP gives you precise control over the output. I usually combine it with JAXB to convert Java objects to XML then use XSLT to create the PDF. -- View this message in

Re: problem in custom javascript with scriptaculous

2012-03-19 Thread Josh Canfield
Start by saying what isn't working. On Mar 19, 2012 5:36 AM, gaurav gps.gau...@gmail.com wrote: Hi, I created a drop down box and want to add scriptaculous Draggable in my drop down box but it is not working together. So how can I fix the things. @AfterRender

Define stylesheet import order

2012-03-19 Thread Beat Durrer
Hi all, I have a RootLayout component which loads a CSS file, and some SubLayout components add an other CSS. I'm using T5.3.2 and simply applied the @Import(stylesheet={...}) to the Layout classes. At the moment, the CSS from RootLayout is loaded after the SubLayouts and therefore overrides

Re: Define stylesheet import order

2012-03-19 Thread Lance Java
In your AppModule, you can contribute a MarkupRendererFilter to fire after JavaScriptSupport public void contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter configuration) { configuration.addInstance(MyMarkupRendererFilter, MyMarkupRendererFilter.class,

Service creation listener?

2012-03-19 Thread fmaylinch
Hello, We would like to add a service creation observer so this master service is be notified every time a service is created. We would like to do it together with an annotation (let's say @Metric) so every time a @Metric service is created, the master service calls its methods from time to time

Re: Server Side Validation with ajax form loop work around

2012-03-19 Thread George Christman
David, I have a working work around, I'm sure it's not the best, but does work. See code below. @Persist private PurchaseRequest prPersist; private PurchaseRequest pr; private final String NEW_OBJ = new; void onActivate() { if(prPersist != null) {

Re: Service creation listener?

2012-03-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Mar 2012 14:37:45 -0300, fmaylinch ferranmayli...@gmail.com wrote: Hello, Hi! Is there any way to do it in Tapestry? How can we intercept service instantiation? I don't think Tapestry-IoC does. Feel free to post a JIRA about this. On the other hand, I guess you can use

Re: Service creation listener?

2012-03-19 Thread Thiago H. de Paula Figueiredo
On the other hand, I guess you can use Tapestry-IoC service advice to implement this. I should have been more specific: you can add an advice to be applied for all services. Your advice would need to advise all methods and check whether it's the first time a method was invoked on it. You

Re: Server Side Validation with ajax form loop work around

2012-03-19 Thread David Canteros
Hi George, i've done a quick test and it doesnt work on my code, but i will do a full test by tomorrow. Only one question: which object are you using in the ajaxformloop (in the tml code)? pr or prPersist? Regards and thanks! --

Re: Server Side Validation with ajax form loop work around

2012-03-19 Thread George Christman
Hi David, I'm using the pr object like so div t:type=ajaxFormLoop t:id=lineItem source=pr.lineItems value=lineItem addRow=block:addRow show=show encoder=encoderLineItem It seems to be working perfectly for me. I'm only using the prPersist object to hold a temporary copy of the current pr at

Re: Dependencies in a parent service, repeated in children constructors

2012-03-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Mar 2012 16:04:24 -0300, Ferran Maylinch ferranmayli...@gmail.com wrote: Hello, Hi! We have 6 child services that extend a parent service class. This parent service class has 3 dependencies that are only needed in methods inside that parent class. How would we configure these

Re: Using “Persist” annotation in Tapestry is causing Problems with RunJettyRun

2012-03-19 Thread IcedDante
Thanks for the feedback friends. Yes, I wondered if I was seeing a common error or was just having bad luck. I shifted to the command prompt and it was working well from there, but now my instance of jetty is hanging. Every time I try to contact the server or my webapps I get a timeout error. If

Re: Dependencies in a parent service, repeated in children constructors

2012-03-19 Thread fmaylinch
Thank you Thiago, I think I can also wrap those 3 services inside a facade service so there is only one injected service in each child and not 3. But I wonder whether there is a solution with less code repetition and where I can add more child services without them having to know about those

Re: Service creation listener?

2012-03-19 Thread fmaylinch
Thank you Thiago. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Service-creation-listener-tp5577764p5578450.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Using “Persist” annotation in Tapestry is causing Problems with RunJettyRun

2012-03-19 Thread IcedDante
Thiago, Your class solution did work for me. The only problem is I'm not sure /why/ it worked and what the problem was from launching my application from the console, lol. I guess I will just keep trucking along for now. -- View this message in context:

Eclipse import of the sources.

2012-03-19 Thread annon88
Hello. I want to import the tapestry sources into eclipse and tried the following: svn checkout https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk/ tapestry-project Interrupted this after 30 minutes without success. Downloaded 5.3.2 from http://tapestry.apache.org/download.html Than I