Re: Creating a linked list of pages for easy backward navigation?

2012-08-01 Thread mailingl...@j-b-s.de
Hi Ludwig Am I right you are always using the same page for your refinement selection? Or is it more like a wizzard containing multiple pages? For the first I wonder if this is really a T5 problem.. Can't you just use a stack like object and push/pop the values you need to create/recreate the

Re: #again #strange No service implements the interface tap.execounting.dal.mediators.TeacherMedImpl

2012-08-01 Thread bigcache1
Installed new Eclipse. Everything is fine. One of the first things that I did before running for help, was "mvn clean install". But only after I had new Eclipse installed, I could see (another) Teachers.java of Teachers page, with TeacherMedImpl referenced. So all that time, that second page insta

Re: redirecting to a class with parameter

2012-08-01 Thread Angelo C.
it's an external url, i found out it can be done this way: new URL("http://sample.com?type='123'") Taha Hafeez wrote > > What is url ? Is it a tapestry page or event. > > For page you can use PageRenderLinkSource#createPageRenderLinkWithContext > and for event you can use ComponentResources#c

Re: redirecting to a class with parameter

2012-08-01 Thread Taha Siddiqi
What is url ? Is it a tapestry page or event. For page you can use PageRenderLinkSource#createPageRenderLinkWithContext and for event you can use ComponentResources#createEventLink... On Aug 2, 2012, at 9:10 AM, Angelo C. wrote: > thanks for the fast answer, it works, in a related question, i

How to override a component message

2012-08-01 Thread Matías Blasi
Hi all! I'm trying to override a message from the catalog of a component. It is the LoginForm from the tynamo-security-0.4.6. It includes a LoginForm.properties with "loginLabel=Login". I added that message in my app_es.properties (loginLabel=Acceso) with no effect. What am I missing??? Thank y

Re: redirecting to a class with parameter

2012-08-01 Thread Angelo C.
thanks for the fast answer, it works, in a related question, if I have something like this: URL u = new URL(url); how to add some query parameters? -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirecting-to-a-class-with-parameter-tp5714980p5714982.html Sent from the

Re: redirecting to a class with parameter

2012-08-01 Thread Taha Siddiqi
Hi You can use :- @Inject private PageRenderLinkSource linkSource; @OnEvent(value = EventConstants.SUBMIT, component = "premiumForm") public Object premiumSubmit(){ return linkSource.createPageRenderLinkWithContext(Info.class, "whateverType"); } or may be create a property "type" in "Info"

redirecting to a class with parameter

2012-08-01 Thread Angelo C.
Hi, I have a class that need to return to another class with context parameter, how? Thanks, Angelo public class Info { Object onActivate(String type) { } } @OnEvent(value = EventConstants.SUBMIT, component = "premiumForm") public Object premiumSubmit() { return Inf

Re: Creating a linked list of pages for easy backward navigation?

2012-08-01 Thread Thiago H de Paula Figueiredo
On Wed, 01 Aug 2012 20:46:44 -0300, George Ludwig wrote: My current implementation doesn't work, as it appears that each previousPage is the same object. What's the best way to do this? You posted just a snippet from your code that doesn't include one important step: how do you get the prev

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-01 Thread Thiago H de Paula Figueiredo
On Wed, 01 Aug 2012 19:57:52 -0300, George Ludwig wrote: Josh, Wow, thanks so much! I can definitely learn from this example... Who's Josh? :P -George On Wed, Aug 1, 2012 at 5:12 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: On Tue, 31 Jul 2012 23:02:53 -0300, George Lu

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-01 Thread George Ludwig
Josh, Wow, thanks so much! I can definitely learn from this example... -George On Wed, Aug 1, 2012 at 5:12 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 31 Jul 2012 23:02:53 -0300, George Ludwig > wrote: > > The component is fine. What is unwieldy are the hoops I'd

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
Thanks for these recommendations. The @Persist approach works fine, when the form is submitted in 'add' mode, I can store the newly created identifier temporarily for use on the next ajax call. The form context parameter works as advertised, but I don't think solves my problem as the context is s

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Russell John-Baptiste
http://ephemurl.com/  Cheers -Russell From: Igor Drobiazko To: Tapestry users Sent: Wednesday, August 1, 2012 4:21 PM Subject: Re: Tapestry 5 Book EAP Launched While the ticket is being processed, I'm looking for a service which will allow me to deliver PD

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Igor Drobiazko
While the ticket is being processed, I'm looking for a service which will allow me to deliver PDFs to you guys. I don't want to send the book to everybody individually as a mail attachment. I'd like to upload the PDF into a platform which will send you links that will expire after a short period of

Re: Simple zone/form conundrum

2012-08-01 Thread Thiago H de Paula Figueiredo
On Wed, 01 Aug 2012 17:11:26 -0300, Michael Prescott wrote: (posted) Okay, yes, I may just be running counter to the grain - ajax requests aren't supposed to change the context. I suppose (since the zone is in the form) I could have the zone contain a sort of 'custom context', so that w

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
Yes - excellent. Thanks very much for your help. On 1 August 2012 16:12, George Christman wrote: > your event is always null on a new record after the zone refreshes. You > need > to somehow set the event obj after the zone update. Thiago might have a > better solution than using persisting the

Re: Simple zone/form conundrum

2012-08-01 Thread George Christman
your event is always null on a new record after the zone refreshes. You need to somehow set the event obj after the zone update. Thiago might have a better solution than using persisting the object. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Simple-zone-form-conundr

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
(posted) Okay, yes, I may just be running counter to the grain - ajax requests aren't supposed to change the context. I suppose (since the zone is in the form) I could have the zone contain a sort of 'custom context', so that when I move from adding to editing. Michael On 1 August 2012 15:59, T

Re: MethodAdvice Deprecated

2012-08-01 Thread George Christman
Thank you Howard, as it turns out it was an issue with my IDE not actually importing the new package properly which is why I couldn't figure this out. -- View this message in context: http://tapestry.1045711.n5.nabble.com/MethodAdvice-Deprecated-tp5714955p5714966.html Sent from the Tapestry -

Secure HTTP->HTTPS redirect loses Querystring Parameters

2012-08-01 Thread Ryon Day
I am using Tapestry 5.3.3. http://servername/appname/foo?bar=baz redirects to: https://servername/appname/foo.  Is there any way to fix this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comman

Re: Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
Thanks for replying. Yes, I'm trying to add/edit in the same page. I wondered the same thing, but I think I am. The relevant snippets look like this: // my page public class EventEdit { @Inject private EventDao eventDao; @Property private Event event; @InjectComponent("predictionszone") pr

Re: MethodAdvice Deprecated

2012-08-01 Thread Howard Lewis Ship
Ok, in Java there can be different classes with the same name, in different packages. So org.apache.tapestry5.ioc.MethodAdvice (the old one) has been deprecated, and replaced with the similar org.apache.tapestry5.plastic.MethodAdvice. The method advise(Invocation) is not advise(MethodInvocation);

Re: Simple zone/form conundrum

2012-08-01 Thread Thiago H de Paula Figueiredo
On Wed, 01 Aug 2012 16:41:59 -0300, Michael Prescott wrote: I suspect that, when the form updates a zone, the form has no chance to realize that the page now has a context. The page context is tied to the current URL. AJAX requests don't change the current URL. Only a full-page refresh

Re: MethodAdvice Deprecated

2012-08-01 Thread George Christman
I've read it like 10 times and I still don't understand it, otherwise I wouldn't have posted the question. -- View this message in context: http://tapestry.1045711.n5.nabble.com/MethodAdvice-Deprecated-tp5714955p5714960.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Simple zone/form conundrum

2012-08-01 Thread George Christman
Michael, are you trying to to add / edit your form in the same page? ie passing a url parameter when the record exist and not having a url parameter when the record is new, but updating with ajax? If so, it sounds like your not setting your object after the zone saves and reloads the form. -- V

Re: MethodAdvice Deprecated

2012-08-01 Thread Howard Lewis Ship
Please read the MethodAdviceReceiver JavaDoc for instructions. Also, why did it not occur to you to do that yourself? On Wed, Aug 1, 2012 at 12:27 PM, George Christman wrote: > Hello, a while ago I built this production exception handler. I just noticed > that some of the methods are now marked

Simple zone/form conundrum

2012-08-01 Thread Michael Prescott
I have an add/edit form - if the context is non-null, then I'm editing, otherwise I'm adding. So far, so good. As the user edits, they occasionally submit to the server to get the server's impressions of what they've posted so far (it looks at what they've submitted, works out some metrics). Thes

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Igor Drobiazko
Hi Nicolas, yes, the PDF Perk includes the current manuscript as PDF, alle updates and the final version of the PDF. I just not sure if I'm allowed to fulfill the Perks right now. I'min the process of checking that with Indiegogo. The worst case is that you get your first PDF when the campaign is

MethodAdvice Deprecated

2012-08-01 Thread George Christman
Hello, a while ago I built this production exception handler. I just noticed that some of the methods are now marked as deprecated. I was wondering if someone could tell me what I'm suppose to do to repair the deprecated methods. @Match("RequestExceptionHandler") // service to advise

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread tapestry.kung.fu
Finally Long wait is over! I have funded for Printed Book. I am desperately waiting for more material to master tapestry 5. I know you are still working on final version but it would be great if you can provide what you have in pdf format. Not sure what are rules set by indiegogo.com. Thank you!

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Chris Collins
Dont try this at home: http://www.southparkstudios.com/clips/104408/butters-freezes-cartman C On Aug 1, 2012, at 11:49 AM, Alex Kotchnev wrote: > So, if the cards are already charged, is there any way of getting the books > out before the campaign ends ? > > Cheers, > > Alex K > > On Wed, Au

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Alex Kotchnev
So, if the cards are already charged, is there any way of getting the books out before the campaign ends ? Cheers, Alex K On Wed, Aug 1, 2012 at 1:50 PM, Chris Cureau wrote: > If someone would want to withdraw their contribution, I'd be happy to pay > them instead...a buy out, if you will. :)

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Chris Cureau
If someone would want to withdraw their contribution, I'd be happy to pay them instead...a buy out, if you will. :) Otherwise, I'll contribute...I've been waiting for this book for a long time! On Wed, Aug 1, 2012 at 12:38 PM, Stephan Windmüller < stephan.windmuel...@tu-dortmund.de> wrote: > On

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Stephan Windmüller
On 30.07.2012 20:24, Igor Drobiazko wrote: > I'm not sure. Is there a way to withdraw a contribution? I just checked, my credit card has been charged already. So I think that there is no way to withdraw my contribution unless the funding does not succeed. Regards Stephan signature.asc Descri

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Nicolas Barrera
Hi, just wanted to stay clear with this, If I buy the pdf version perk today, I 'll receive by e-mail the current pdf draft, the next draft updates and lastly the pdf final version? cheers, Nicolás.-

Re: Example of overriding the default ValidationDecorator

2012-08-01 Thread Josh Canfield
You are probably running into the fact that Tapestry rewrites your page/component classes so that there is only one instance of the class used across all requests. To do this all of the property accesses are intercepted and replaced with ThreadLocal values. When you are in development mode tapestry

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-01 Thread Thiago H de Paula Figueiredo
On Tue, 31 Jul 2012 23:02:53 -0300, George Ludwig wrote: The component is fine. What is unwieldy are the hoops I'd need to jump through in order to use it in this particular case. In this case, seeing your code, I'd write a component that uses MarkupWriter, not a template, to output the

Re: relative page links in components

2012-08-01 Thread ZKN __
The component I have will be used in different pages which are located in different packages/namespaces e.g. /management/groups/view /management/clients/view depending on the current path I want the links in the component to point to different locations e.g. /managemen/groups/edit /management/c

Re: Example of overriding the default ValidationDecorator

2012-08-01 Thread mem
Hello, hope this Thread is still alive. I've used a similar approach to figure out if the label is attached to a field which renders a required field. The whole thing is a bit complex as we're using JSR303 annotations on the DTO so i've to get the parameter of the textField and then evaluate the s