Re: [Tapestry Central] Announcing Tapestry 5.2
As expected, live class reload does not work on service without an interface. I have try it. On Fri, Dec 17, 2010 at 8:45 PM, Michael Gentry mgen...@masslight.net wrote: Well, I've used services without an interface before, so maybe it'll work, although I suspect it won't. I'll give it a try in a few days. :-) Thanks Robert! mrg On Fri, Dec 17, 2010 at 1:48 AM, Robert Zeigler robe...@scazdl.org wrote: Not sure that the DataObjects will work... the live service class reloading basically works b/c there's the public interface, and the private implementation, and the only class that has a reference to the private implementation is the proxy. At least, that's how I understand it. ;) Not sure how that would fly with the data objects, unless you defined an interface on top of each of your data objects... which sounds kinda ugly... - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry Central] Announcing Tapestry 5.2
On 20.12.2010 10:41, Yohan Yudanara wrote: As expected, live class reload does not work on service without an interface. I have try it. There was a post by Howard detailing the idea behind the live reload. Search for it and read it to understand in more details. In simplified words: The idea is that you call the interface methods and there is a switch that sits in-between and monitors your calls. This switch finds the implementation class and redirects your method call to the methods of the implementation class of the service. So if this switch detects that there was a change in the implementation class, it will reload the new version and redirect the call to the new method. With this explanation I think it is pretty clear that you should not even wonder and try if it would work without an interface. It cannot. JRebel is supposedly a good tool that can be used to have live reloading in every piece of your code. I have not used it myself. smime.p7s Description: S/MIME Cryptographic Signature
Re: A more general approach to configuring for compatibility
On Fri, 17 Dec 2010 20:25:48 -0200, Robert Zeigler robe...@scazdl.org wrote: For this to really work, we might need to introduce a mechanism for explicitly overriding components... We don't need to introduce one because we already have it: it's just a matter of decorating or advising the ComponentClassResolver service, specifically the resolveComponentTypeToClassName() method. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry Central] Announcing Tapestry 5.2
Here's the documentation page: http://tapestry.apache.org/reload.html On Mon, Dec 20, 2010 at 5:25 AM, Vangel V. Ajanovski a...@ii.edu.mk wrote: On 20.12.2010 10:41, Yohan Yudanara wrote: As expected, live class reload does not work on service without an interface. I have try it. There was a post by Howard detailing the idea behind the live reload. Search for it and read it to understand in more details. In simplified words: The idea is that you call the interface methods and there is a switch that sits in-between and monitors your calls. This switch finds the implementation class and redirects your method call to the methods of the implementation class of the service. So if this switch detects that there was a change in the implementation class, it will reload the new version and redirect the call to the new method. With this explanation I think it is pretty clear that you should not even wonder and try if it would work without an interface. It cannot. JRebel is supposedly a good tool that can be used to have live reloading in every piece of your code. I have not used it myself. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Select with zone
Hi all, I have a select which updates a zone; that zone has a delegate that calls a function to return an active block. The problem is, when I change the value of the select that function is not called, what could be wrong? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Select with zone
How are you setting up the Select to trigger an event? On Mon, Dec 20, 2010 at 12:01 PM, Sergio Esteves sergio.este...@xpand-it.com wrote: Hi all, I have a select which updates a zone; that zone has a delegate that calls a function to return an active block. The problem is, when I change the value of the select that function is not called, what could be wrong? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
MarkupWriter and TML together?
Hi, is it possible to use the MarkupWriter in the page class in a render stage in addition to a template? The page I'm trying to write needs to feed a component into a delegate from the Layout.tml it belongs to. As far as I can figure out I can only write Tapestry components in the TML file and not with the MarkupWriter. That is to say, my attempts to do so have failed and searching various ends online hasn't shown me otherwise. On the other hand, I want to use the MarkupWriter to build a dynamic set of HTML elements. Specifically, to build a collapsing/expanding hierarchy of Categories built into a form that I will process. By doing the HTML elements in the page class, I figured I could keep track of the elements and their attributes/etc with the least pain so I can process them properly on a form submission. This is 5.1.0.5 by the way. Thanks, Rich - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: MarkupWriter and TML together?
Yes, absolutely. Behind the scenes, the templates are parsed into collections of objects that operate on MarkupWriter, so you can mix a template with render phase methods and many other tricks. On Mon, Dec 20, 2010 at 2:10 PM, Rich M rich...@moremagic.com wrote: Hi, is it possible to use the MarkupWriter in the page class in a render stage in addition to a template? The page I'm trying to write needs to feed a component into a delegate from the Layout.tml it belongs to. As far as I can figure out I can only write Tapestry components in the TML file and not with the MarkupWriter. That is to say, my attempts to do so have failed and searching various ends online hasn't shown me otherwise. On the other hand, I want to use the MarkupWriter to build a dynamic set of HTML elements. Specifically, to build a collapsing/expanding hierarchy of Categories built into a form that I will process. By doing the HTML elements in the page class, I figured I could keep track of the elements and their attributes/etc with the least pain so I can process them properly on a form submission. This is 5.1.0.5 by the way. Thanks, Rich - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: add target to Link
Have you tried this? Just adding a target=foo attribute to the template will get the job done ... that's what informal parameters are for. On Sat, Dec 18, 2010 at 8:34 PM, Chuck Kring cjkr...@pacbell.net wrote: Hello, I have a submit button that returns a link that I'd like to have open in a new window. I noticed that the Tapestry 4 link API supported specification of that target, but I can figure out how to do it in Tapestry 5.1.0.5. How do I specify the target for a Link in Tapestry 5? Thanks in advance. Chuck - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: MarkupWriter and TML together?
Thanks, that's great to know. So that seems to narrow it down to some issue in my approach then, as I am not able to see anything written from my MarkupWriter in the @BeginRender phase. I have components using just the MarkupWriter for output working, so I know it works in general. I'm trying to have the MarkupWriter begin it's rendering after the content from the TML: Page TML html t:type=customerlayout title=Customer Interface t:sidebarTitle= xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter p:contentInfo t:CustomerInfo noedit=true / /p:contentInfo !--*MarkupWriter Content goes here*-- /html Layout TML (edited down for clarity) !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter head meta http-equiv=X-UA-Compatible content=IE=7 / meta http-equiv=content-type content=text/html; charset=utf-8/ title${title}/title /head body div class=header / div class=mainNav / div class=page-container div class=content div class=contentInfo t:if test=contentInfo t:delegate to=contentInfo / /t:if /div *t:body / !-- this is where I'd expect the markup content to occur --* br style=clear: both;/ div class=footer / /div /div /body /html MarkupWriter method: @BeginRender public void getSelectedTab(MarkupWriter writer){ writer.element(div,id,tabContent); writer.element(h2); writer.write(Test); writer.end(); writer.end(); } Thanks, Rich On 12/20/2010 05:21 PM, Howard Lewis Ship wrote: Yes, absolutely. Behind the scenes, the templates are parsed into collections of objects that operate on MarkupWriter, so you can mix a template with render phase methods and many other tricks. On Mon, Dec 20, 2010 at 2:10 PM, Rich Mrich...@moremagic.com wrote: Hi, is it possible to use the MarkupWriter in the page class in a render stage in addition to a template? The page I'm trying to write needs to feed a component into a delegate from the Layout.tml it belongs to. As far as I can figure out I can only write Tapestry components in the TML file and not with the MarkupWriter. That is to say, my attempts to do so have failed and searching various ends online hasn't shown me otherwise. On the other hand, I want to use the MarkupWriter to build a dynamic set of HTML elements. Specifically, to build a collapsing/expanding hierarchy of Categories built into a form that I will process. By doing the HTML elements in the page class, I figured I could keep track of the elements and their attributes/etc with the least pain so I can process them properly on a form submission. This is 5.1.0.5 by the way. Thanks, Rich - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: MarkupWriter and TML together?
On Mon, 20 Dec 2010 20:48:39 -0200, Rich M rich...@moremagic.com wrote: So that seems to narrow it down to some issue in my approach then, as I am not able to see anything written from my MarkupWriter in the @BeginRender phase. Try @BeforeRenderTemplate -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Issue with tapestry.form.refresh (Tapestry 4.1.3)
Hi Hope you can help me. I've been using tapestry.form.refresh(dojo.byId('Form')) for onchange event on PropertySelection. span jwcid=f...@form accept-charset=utf-8 .. But I had to change the name of my form to registerform, but now the instruction tapestry.form.refresh(dojo.byId('registerform')) is not working span jwcid=registerf...@form accept-charset=utf-8 ... Do you know how can I make this onchange event to work? Thanks! alba -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-tapestry-form-refresh-Tapestry-4-1-3-tp3312660p3312660.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5.2.4 Tomcat unable to find .tml files on classpath
Hi all, I'm having problems getting my my T5.2.4 application to work on tomcat. It works correctly when running via jetty (inside eclipse) but when I deploy it to tomcat it throws this error: Embedded component(s) gridPlayerWallPostResponses are defined within component class com.presentation.components.editor.lists.PlayerWallpostResponseList (or a super-class of PlayerWallpostResponseList), but are not present in the component template (null) I have verified the .tml files are in the corerct classpath in the war file (and I have also tried changing the maven-war-plugin setting archiveClass configuration option to true). Any help is much appreciated. A bit more info on the .tml layout (if it helps): Page: Players.tml(path=classes/com/presentation/pages/editor/) ... t:EditPlayer t:id=editPlayer / ... Components: EditPlayer.tml(path=classes/com/presentation/components/editor/) ... t:block t:id=blockPlayerWallPostResponse t:editor.lists.PlayerWallpostResponseList t:id=PlayerWallpostResponseList / /t:block ... PlayerWallpostResponseList.tml: (path=classes/com/presentation/components/editor/lists/) ... t:grid t:id=gridPlayerWallPostResponses ... Thanks, Joe -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-4-Tomcat-unable-to-find-tml-files-on-classpath-tp3312696p3312696.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.2.4 Tomcat unable to find .tml files on classpath
minor correction to my post. This line: t:EditPlayer t:id=editPlayer / is actually: t:editor.EditPlayer t:id=editPlayer / -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-4-Tomcat-unable-to-find-tml-files-on-classpath-tp3312696p3312700.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Bulk] Re: add target to Link
Hi Howard, thanks for the response. The issue is that I'm returning a PageLink from an event handler. There is no template involved. This is called from a form in page embedded in a frame (I know...). In general the form does things like go back, etc, but in one case I want the form to return a page not in the frame - either as a tab or new window. Having said that, I've come up with a workable solution for now. The event handler returns null and rather I use the onClick() event handler on the button with a URL constructed from the PageLink. It's messy but not too bad. I would have preferred a setTarget() method on the Link. Regards, Chuck On 12/20/2010 2:21 PM, Howard Lewis Ship wrote: Have you tried this? Just adding a target=foo attribute to the template will get the job done ... that's what informal parameters are for. On Sat, Dec 18, 2010 at 8:34 PM, Chuck Kringcjkr...@pacbell.net wrote: Hello, I have a submit button that returns a link that I'd like to have open in a new window. I noticed that the Tapestry 4 link API supported specification of that target, but I can figure out how to do it in Tapestry 5.1.0.5. How do I specify the target for a Link in Tapestry 5? Thanks in advance. Chuck - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Bulk] Re: add target to Link
On Mon, 20 Dec 2010 21:45:21 -0200, Chuck Kring cjkr...@pacbell.net wrote: The issue is that I'm returning a PageLink from an event handler. There is no template involved. Returning a component instance in an event handler isn't supported for any native Tapestry event except render lifecycle ones. Having said that, I've come up with a workable solution for now. The event handler returns null and rather I use the onClick() event handler on the button with a URL constructed from the PageLink. It's messy but not too bad. I would have preferred a setTarget() method on the Link. Link != PageLink. Link is not a component and it only represents an URL. There's no way of returning one and getting it to open in another tab without using JavaScript. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Bulk] Re: add target to Link
My mistake. I am only returning a link. I ended up using Javascript and it would have been nice to be able to set the target attribute in Java. My question was based upon the fact that you could do that in Tapestry 4 so I figured there was some other way to do this in T5. On 12/20/2010 4:17 PM, Thiago H. de Paula Figueiredo wrote: Link != PageLink. Link is not a component and it only represents an URL. There's no way of returning one and getting it to open in another tab without using JavaScript. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Issue with tapestry.form.refresh (Tapestry 4.1.3)
It should work... View the source code of the rendered page - what's the id of the form? On Tue, Dec 21, 2010 at 00:45, alba albojorq...@yahoo.com wrote: Hi Hope you can help me. I've been using tapestry.form.refresh(dojo.byId('Form')) for onchange event on PropertySelection. span jwcid=f...@form accept-charset=utf-8 .. But I had to change the name of my form to registerform, but now the instruction tapestry.form.refresh(dojo.byId('registerform')) is not working span jwcid=registerf...@form accept-charset=utf-8 ... Do you know how can I make this onchange event to work? Thanks! alba -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-tapestry-form-refresh-Tapestry-4-1-3-tp3312660p3312660.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry PMC / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org