Re: Tapestry 5.1 exception "Could not find a coercion from type ..." on form submit

2009-06-12 Thread Robert Zeigler
Hi, There was a change from using pkencoder to valueencoder (it's noted in the upgrade notes) in 5.1 for loops contained in forms. See: http://tapestry.apache.org/tapestry5.1/upgrade.html Particularly, the section: "Release 5.1.0.0 Primary Key Encoder This is the change between releases that

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Angelo Chen
Hi Onno, I like what you are doing, keep us posted about your testing project, Prototype free t5 app is something I'm dreaming of:) Onno Scheffers-3 wrote: > >> >> >> Look forward to seeing what you come up with and I hope you enjoy the >>> challenge! >>> >> >> Me too! :) It's wonderful to kn

Re: Decoration passed by parameter. Possible?

2009-06-12 Thread Lukasz Jazgar
2009/6/12 Sergey Didenko : > Could you help me, I can't understand how it is wired together. > > What is passed as its "by" parameter. Generally, Block with inside, which I name "decorator". > Where the class Decorate is used? Take a look at my former post. Page.tml has ComplexComponent and pa

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Luther Baker
> > It would be very nice to have Tapestry components be more Javascript > framework agnostic, but pushing Howard (and the other committers too, they > exist!, hehehe) to do this and not working on other issues (after all, this > is all about fixing something that already works, just doesn't work a

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Onno Scheffers
> > > Look forward to seeing what you come up with and I hope you enjoy the >> challenge! >> > > Me too! :) It's wonderful to know that people want to contribute to the > framework we love. ;) Thanks guys. If anyone is interested, I'll be documenting my progress here: http://piraya-blog.blogspo

Re: T5.1: get the current page context from a component

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 18:54:59 -0300, Sergey Didenko escreveu: And call onPassivate() through reflection, right? Yes. But we can try to find a bfile a JIRA for a better way of getting that info without using reflection. I missed this case because did not expect my "live" page to extend i

Re: T5.1: get the current page context from a component

2009-06-12 Thread Sergey Didenko
And call onPassivate() through reflection, right? I missed this case because did not expect my "live" page to extend interface Component that is returned from componentResources.getPage() Thanks for your answers! On Sat, Jun 13, 2009 at 12:26 AM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 12

Re: T5.1: get the current page context from a component

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 18:18:10 -0300, Sergey Didenko escreveu: Well, how I can inject not just ConcretePage but the current page? So the component can be reused on different pages. @Inject ComponentResources and then call its getPage() method. You may need to cast the returned object. --

[Tapestry Central] Back from Tapestry 5 Training / Madison, WI

2009-06-12 Thread Howard
Just got back last night from training in Madison WI. This was primarily an intro to Tapestry 5 for Tapestry 4 developers (and a couple of new-to-web-programming developers) and a lot of hands on pair programming to get them going with their conversion work. It was a lot of fun, and as usual, I lea

Re: T5.1: get the current page context from a component

2009-06-12 Thread Sergey Didenko
Well, how I can inject not just ConcretePage but the current page? So the component can be reused on different pages. > You could also inject the container into the component, and then reference > your context somehow directly. Using "inherit" binding also means parameter declaration as I unders

T5 enhancement: Redirecting from ComponentEventLinkEncoder.decodePageRenderRequest()

2009-06-12 Thread Blower, Andy
I recently moved authentication for our project in method advice for the ComponentEventLinkEncoder method decodePageRenderRequest() because some other method advice to the same method has some modified URL processing and it saves duplicating it in an authentication dispatcher. In some situations

Re: best book for T5

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 17:03:30 -0300, Blower, Andy escreveu: I meant Igor's book translated to English Thiago... there must be a bigger market for an English version IMO, so his publishers would be crazy not to do one surely, and I hope to see it soon. :-D I know. My German knowledge is nu

RE: best book for T5

2009-06-12 Thread Blower, Andy
I meant Igor's book translated to English Thiago... there must be a bigger market for an English version IMO, so his publishers would be crazy not to do one surely, and I hope to see it soon. :-D Not that I wouldn't welcome another of course. > -Original Message- > From: Thiago H. de Pa

Re: best book for T5

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 16:52:46 -0300, Blower, Andy escreveu: I can't believe that there wouldn't be an even bigger market for a well written T5 book in English, so I hope to see it soon! I would love to be a co-author in a Tapestry 5 book, but I don't have the resources nor I want to do th

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 16:50:44 -0300, Blower, Andy escreveu: That sounds fine, I would be more bothered if it was to take up a massive amount of Howards' time meaning that he had less time to push Tapestry forward in other areas. That's exactly something I was tyring to say but couldn't fi

RE: best book for T5

2009-06-12 Thread Blower, Andy
I can't believe that there wouldn't be an even bigger market for a well written T5 book in English, so I hope to see it soon! Love that cover, awesome. > -Original Message- > From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] > Sent: 12 June 2009 07:41 > To: Tapestry users > Subject:

RE: Switch from Prototype to jQuery?

2009-06-12 Thread Blower, Andy
That sounds fine, I would be more bothered if it was to take up a massive amount of Howards' time meaning that he had less time to push Tapestry forward in other areas. Look forward to seeing what you come up with and I hope you enjoy the challenge! > -Original Message- > From: Onno Sch

Re: T5.1: get the current page context from a component

2009-06-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 16:32:51 -0300, Andy Pahne escreveu: You could also inject the container into the component, and then reference your context somehow directly. Calling onPassivate() directly? ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor htt

Re: T5.1: get the current page context from a component

2009-06-12 Thread Andy Pahne
Never tried it, but isn't the inherited: binding what you are looking for? You could also inject the container into the component, and then reference your context somehow directly. Andy Sergey Didenko schrieb: Hi, Is there a way to get the page context from a subcomponent? Right now I

T5.1: get the current page context from a component

2009-06-12 Thread Sergey Didenko
Hi, Is there a way to get the page context from a subcomponent? Right now I pass it as a component parameter, but that looks ugly. Regards, Sergey. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional c

Modify 'title', 'rel'... attributes on link html element.

2009-06-12 Thread Cordenier Christophe
Hello, Yesterday I discover the ClientInfrastructure service and how easy it is to add our own resources on the Tapestry5 CSS and JS stack. But I need to add a title on some of my css links, and it was frustrating not being able to achieve this in a simple way, idem with the 'rel' attribute whic

Re: How to show a Select component in a zone ?

2009-06-12 Thread Thibaut Gadiolet
Thank you Thiago, Putting the entire Form in my zone is definitely not an ideal solution (I'd like to show a part of my form, not the whole form) I tried to use FormFragment with the triggerFragment mixin, but you can just trigger show() and hide() from a checkbox or a radioButton. Is there a way

Re: Decoration passed by parameter. Possible?

2009-06-12 Thread Sergey Didenko
Could you help me, I can't understand how it is wired together. Where the class Decorate is used? What is passed as its "by" parameter. Should "t:complexcomponent" be "t:decorate"? On Wed, Jun 10, 2009 at 6:57 AM, DH wrote: > Well, a simple implementation here may be like: > > public class Decora

Re: Decoration passed by parameter. Possible?

2009-06-12 Thread Lukasz Jazgar
Great! I'm impressed by simplicity of this solution and by power of Tapestry, again. Thanks a lot. Lukasz 2009/6/10 DH : > Well, a simple implementation here may be like: > > public class Decorate { >   �...@parameter(required = true) >    private Object by; > >   �...@inject >    private Compone

Tapestry 5.1 exception "Could not find a coercion from type ..." on form submit

2009-06-12 Thread m!ga
Hi everyone. We just started migration from tapestry 5.0 to 5.1 and found a lot of strange exeptions. Here is one of them. page class: public class Test { @SuppressWarnings({"unused", "UnusedDeclaration"}) @Component(id = "form") private Form form; @Prop

Re: How to remove Blackbird.css

2009-06-12 Thread Peter Stavrinides
Hi Robert, While the client side AJAX error reporting is a plus, I still want to be able to remove / customize / control in its entirety *anything that is displayed to end users! cheers, Peter - Original Message - From: "Robert Zeigler" To: "Tapestry users" Sent: Saturday, 6 June

Re: Tapestry working with ZK component

2009-06-12 Thread Thiago H. de Paula Figueiredo
Nice! One suggestion: instead of injecting RequestGlobals, you can inject HttpServletRequest directly. ;) -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tap

Re: Two Menu Components

2009-06-12 Thread Otho
Oops, sorry. My bad. This doesn't work with components in this way. If you want to update with Ajax I suggest you try donf jangs solution. The following works on full page refresh. You need to have MainMenu and SideMenu as components in your Layout.java Layout.java @Component private MainMenu

Re: Re: best book for T5

2009-06-12 Thread Andreas Andreou
Yea, great news and nice cover! On Fri, Jun 12, 2009 at 1:00 PM, nille hammer wrote: > Hi Igor, > > that is great news. Can't wait to get a copy of that. Be sure I will travel > to Düsseldorf to have it signed by you ;-) > > Greetings from Darmstadt and have a nice weekend, nillehammer > > == > h

Tapestry working with ZK component

2009-06-12 Thread Julien Ruchaud
Hi, I played a little bit with ZK and Tapestry this morning and I achieved something quite nice : I succeeded in inserting a ZK component in Tapestry page, and this component can call Tapestry actions. Here is how to do it : 1) Install ZK : 2) The Tapestry Component that allows including any ZK c

T5.1: Palette causing a NPE upon form submit

2009-06-12 Thread immutability
I've been trying to figure this out for a few hours I've got a strange issue with the Palette component causing a NullPointerException upon form submit, but only on form failure involving server-side validator's such as the email validator (i.e. the form is submitted - onSubmit called but onSu

RE: Two Menu Components

2009-06-12 Thread Eldred Mullany
Hi Otho Thank you for the feedback, I am trying this example, but notice that I get a transformation exception if I inject my component as per your example. Complaining about it not having a serviceID ? Using T5 5.1.0.5 How do I provide a serviceID to ComponentResourcesInjectionProvider ? Th

Re: Re: best book for T5

2009-06-12 Thread nille hammer
Hi Igor, that is great news. Can't wait to get a copy of that. Be sure I will travel to Düsseldorf to have it signed by you ;-) Greetings from Darmstadt and have a nice weekend, nillehammer == http://www.winfonet.eu - original Nachricht Betreff: Re: best book for T5 Gesendet: Fr,

RE: RequestCycle access without injecting

2009-06-12 Thread Howard.Kelsey
Hi Thanks for the advice but I've found that moving the TableColumns component below the TableRows in the .html fixed the issue. The sort still occurs in the rewind phase but after the rewind of the rows so the checkbox can get the row from the current page data. Howard -Original Message--

Re: Switch from Prototype to jQuery?

2009-06-12 Thread Onno Scheffers
On Thu, Jun 11, 2009 at 11:37 PM, Blower, Andy wrote: > I'd just like to echo everything Robert said in this message. Hi Andy, don't worry. I've read Roberts message and his concerns are valid. I'm aware this whole thing won't be easy but it's not impossible. Besides, if we keep ignoring the is

Dynamic grid editable

2009-06-12 Thread Jsebak
Hi, I try to do an dynamic editable grid, that means that I want to create a grid that will be able to display and edit a set of data which name, type and structure are unknown at compilation time. My need is that my grid should be able to dynamically detect on runtime the type and the structure