RE: Resolving PersistentClass instances mapping to the same entity
Great proposal, @Lava! :) But for that method MappedConfiguration.override(...) I will have to include TypeCoercion so that Tapestry exactly knows how to handle with the following String --> long ( my entity Article has it's @Id positioned on id field, so HibernateModule.contributeValueEncoderSource() catches itself on that field ). Any comment on this flow? > Date: Tue, 18 Jun 2013 10:01:05 +0100 > Subject: RE: Resolving PersistentClass instances mapping to the same entity > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > Can you guarantee that name is unique and will never change? > > If not, you might want to concatenate name and id in your ValueEncoder and > ignore the name in the lookup so that old bookmarks and duplicate names are > not broken. > > As Thiago suggested, use MappedConfiguration.override(...) to override the > default encoder contributed by tapestry-hibernate.
RE: Resolving PersistentClass instances mapping to the same entity
I would like to have on @PageActivationContext to return name() instead of id(). That's the only reason for my ValueEncoder service. Do you happen to know some other workaround this issue? > Date: Mon, 17 Jun 2013 23:01:25 -0300 > Subject: Re: Resolving PersistentClass instances mapping to the same entity > From: thiag...@gmail.com > To: users@tapestry.apache.org > > As the exception says, both HibernateModule.contributeValueEncoderSource() > and AppModule.contributeValueEncoderSource() are contributing a > ValueEncoder for a given type and that's forbidden. Do you really need to > provide your own ValueEncoders? Doesn't the Tapestry-Hibernate provided > ones suit your needs? If you don need your own ValueEncoders, you can > contribute them using the MappedConfiguration.override() method instead of > add(). Otherwise, just don't provide your own ones. > > > On Mon, Jun 17, 2013 at 10:42 PM, Nomen Nomanum wrote: > > > Hi. :) > > I have following case: > > Article > > - - > > - - > > Fruits Vegetables > > > > > > Fruits and Vegetables inherits Article, and both Fruits and Vegetables > > have same DiscriminatorValue. Now when I try to do some ValueEncoder magic > > like in following > > public class ArticleEncoder implements ValueEncoder< Article>, > > ValueEncoderFactory< Article> { > > > > private LogicDAO logicDAO; > > > > @Override > > public String toClient(final Article v) { > > return String.valueOf(v.getName()); > > } > > > > @Override > > public Artikal toValue(String string) { > > Article result = new Article(); > > result = logicDAO.listSpecificArticle(string); > > return result; > > } > > > > @Override > > public ValueEncoder< Article> create(Class< Article> type) { > > return this; > > } > > } > > > > > > I get following > > HTTP Status 500 - Exception constructing service > > 'ValueEncoderSource': Error invoking service contribution method > > > > org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, > > boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, > > LoggerSource): Service contribution (to service 'ValueEncoderSource') > > conflicts with existing contribution (by > > com.google.tapestrySection.teamAlpha.services.AppModule.contributeValueEncoderSource(MappedConfiguration, > > LogicDAO) (at AppModule.java:1264)). > > > > Anyone knows how to hack this issue here? :) > > > > > > > -- > Thiago
Resolving PersistentClass instances mapping to the same entity
Hi. :) I have following case: Article - - - - Fruits Vegetables Fruits and Vegetables inherits Article, and both Fruits and Vegetables have same DiscriminatorValue. Now when I try to do some ValueEncoder magic like in following public class ArticleEncoder implements ValueEncoder< Article>, ValueEncoderFactory< Article> { private LogicDAO logicDAO; @Override public String toClient(final Article v) { return String.valueOf(v.getName()); } @Override public Artikal toValue(String string) { Article result = new Article(); result = logicDAO.listSpecificArticle(string); return result; } @Override public ValueEncoder< Article> create(Class< Article> type) { return this; } } I get following HTTP Status 500 - Exception constructing service 'ValueEncoderSource': Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource): Service contribution (to service 'ValueEncoderSource') conflicts with existing contribution (by com.google.tapestrySection.teamAlpha.services.AppModule.contributeValueEncoderSource(MappedConfiguration, LogicDAO) (at AppModule.java:1264)). Anyone knows how to hack this issue here? :)
RE: PageURL rewriting deprecated
Also, I plead You to explain me in text of course( not by source code ), if You can step by step how to change following: localhost:8080/MyApp/MyPage1/1 to just localhost:8080/MyApp/1 How to delete MyPage1 context from link url and to leave only localhost:8080/MyApp/1
RE: PageURL rewriting deprecated
You are master, master of knowledge, giving help thousands of people here who strive for it, so don't be modest. Your words expose to us new light how things function in a best possible way. For instance, without you I nor my fellows wouldn't know this: This first level (the context/webapp name) isn't handled by Tapestry, but by Tomcat/Jetty/other servlet container, so no URL rewriting logic in Tapestry (or any other framework) would work here. :) So, back to topic, why my app fails when I deploy it as ROOT, clicking on any link, it takes him to nowhere, ie. if I click to lets say Fashion link, it directs him to listFashion.Fashion ( and with it points to nothing, instead just to Fashion ), ie component linking is not bound, if You follow me here.
RE: PageURL rewriting deprecated
Hi, @Thiago! :) Yes, you are right, I have no idea what am I doing. But with a help from master, I hope I will. My scenario is following: I have something as following: localhost:8083/MyApp/MyPage now I want to be something like localhost:8083/MyPage So, I have renamed my war file to ROOT file, and in order this to work, I have to rewrite incoming and outcoming URLS, so it would be something like RewriteRuleApplicability.BOTH; . So, I will have to have decodePage rule in which to substring everything before first "/" and process method to process my incoming and outcoming urls, to test whether path starts with localhost:8083/MyApp/MyPage and to change it to localhost:8083/MyPage Is there any light in my vision, master? > Date: Mon, 17 Jun 2013 14:20:43 -0300 > Subject: Re: PageURL rewriting deprecated > From: thiag...@gmail.com > To: users@tapestry.apache.org > > Hi, Nomen! > > I didn't understand what you're trying to do nor you said what do you mean > by "it won't work". Do you want to rewrite incoming URLs (i.e. the ones > received by Tapestry) or outgoing ones (i.e. the ones generated by > Tapestry)? Anyway, your logic seems wrong, indicating you don't know yet > what you're doing. > > > On Mon, Jun 17, 2013 at 11:32 AM, Nomen Nomanum wrote: > > > Your module is great, @Thiago, however it seems to me I can't setup the > > following scenario: > > > > Substring everything before second /, ie > > > > localhost:8080/X/Y/Z/ > > where X stands for app name. I have tried the following, but it won't work. > > > > URLRewriterRule rule1 = new URLRewriterRule() { > > public Request process(Request request, > > URLRewriteContext context) {String serverName = > > request.getServerName();String path = > > request.getPath().toLowerCase(); if > > (serverName.equals("localhost") && path.equals("/X")) { > > request = new SimpleRequestWrapper(request, "/"); > > } return request; > > } > > public RewriteRuleApplicability applicability() { > > return RewriteRuleApplicability.OUTBOUND; > > } > > };so that final output would be something like > > localhost:8080/Y/Z/ > > instead of > > localhost:8080/X/Y/Z/ > > > > > > > To: users@tapestry.apache.org > > > Subject: Re: PageURL rewriting deprecated > > > Date: Sun, 16 Jun 2013 16:56:21 -0300 > > > From: thiag...@gmail.com > > > > > > On Sun, 16 Jun 2013 14:06:22 -0300, Howard Lewis Ship > > > wrote: > > > > > > > The original implementation of url rewriting was flawed and replaced. > > > > > > Why flawed? Besides a couple bugs, it worked. I'd say it has some > > > advantages and disadvantages over the current Link Rewriter API. IMHO URL > > > rewriter is better at incoming URLs and Link Rewriter at outgoing ones. > > > > > > I ported it (the Tapestry 5.1.0.5 URL rewriter API) to Tapestry 5.3.x and > > > the code is here: https://github.com/thiagohp/tapestry-url-rewriter. > > > > > > -- > > > Thiago H. de Paula Figueiredo > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > > > -- > Thiago
RE: PageURL rewriting deprecated
Your module is great, @Thiago, however it seems to me I can't setup the following scenario: Substring everything before second /, ie localhost:8080/X/Y/Z/ where X stands for app name. I have tried the following, but it won't work. URLRewriterRule rule1 = new URLRewriterRule() { public Request process(Request request, URLRewriteContext context) {String serverName = request.getServerName();String path = request.getPath().toLowerCase(); if (serverName.equals("localhost") && path.equals("/X")) { request = new SimpleRequestWrapper(request, "/"); } return request; } public RewriteRuleApplicability applicability() { return RewriteRuleApplicability.OUTBOUND; } };so that final output would be something like localhost:8080/Y/Z/ instead of localhost:8080/X/Y/Z/ > To: users@tapestry.apache.org > Subject: Re: PageURL rewriting deprecated > Date: Sun, 16 Jun 2013 16:56:21 -0300 > From: thiag...@gmail.com > > On Sun, 16 Jun 2013 14:06:22 -0300, Howard Lewis Ship > wrote: > > > The original implementation of url rewriting was flawed and replaced. > > Why flawed? Besides a couple bugs, it worked. I'd say it has some > advantages and disadvantages over the current Link Rewriter API. IMHO URL > rewriter is better at incoming URLs and Link Rewriter at outgoing ones. > > I ported it (the Tapestry 5.1.0.5 URL rewriter API) to Tapestry 5.3.x and > the code is here: https://github.com/thiagohp/tapestry-url-rewriter. > > -- > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
PageURL rewriting deprecated
Hi. I am using latest version of Tap, and in it URL rewriting module is deprecated. What troubles me is why is it deprecated, any particular reason for it, or just because there are many others modules which contribute to that part more optimal like Apaches mod, Tuckey etc... Also, if you had an experience with this field so far what alternative would you recommend for page url rewriting that would suit the best?
RE: Adding tapestry project to Cpanel
Hi, Michael and thanks for reply. I was thinking, what about nginx, is that also good reliable option to go? > From: michael.r.presc...@gmail.com > Date: Sat, 15 Jun 2013 11:06:44 -0400 > Subject: Re: Adding tapestry project to Cpanel > To: users@tapestry.apache.org > > A search of this list will turn up some options, people were talking about > this within the last couple of months. I have an app running within Jetty > as a custom app on Webfaction. > > > On 15 June 2013 11:00, Nomen Nomanum wrote: > > > Hi. > > I have finished my first app, I am s happy and now I am in dilemma how > > and where to deploy it on the web. I have bought some server, and I thought > > to implement it in Cpanel, although it can get nasty while setup, not to > > mention Cpanel might not work around mydomain.com/8080:myApp problem. > > ROOT.war won't work there. So for me it's yes or no now. I would be so > > grateful, if you share some of your ideas about how and on what to deploy. > >
Adding tapestry project to Cpanel
Hi. I have finished my first app, I am s happy and now I am in dilemma how and where to deploy it on the web. I have bought some server, and I thought to implement it in Cpanel, although it can get nasty while setup, not to mention Cpanel might not work around mydomain.com/8080:myApp problem. ROOT.war won't work there. So for me it's yes or no now. I would be so grateful, if you share some of your ideas about how and on what to deploy.
RE: Contains a child component with id
Thanks Lava! :) > Date: Wed, 12 Jun 2013 15:38:40 +0100 > Subject: Re: Contains a child component with id > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > You can't have 2 components on the page with the same id. > > Use eventlink instead of the deprecated actionlink. Both links can then > have the same event. > On 12 Jun 2013 15:29, "Nomen Nomanum" wrote: > > > Hi! I have implemented following scenario: > > > > based on the following result > > > > public boolean getOutcome(){ > > return article.getOutcomevalue() == 1; > > } > > > > public Article getArticleSpecific(){ > > return article; > > } > > > > > > to render my page > > > > > > > > > > > > > > > > > > > > However, it complains "... contains a child component with id > > 'articleSpecific'
Contains a child component with id
Hi! I have implemented following scenario: based on the following result public boolean getOutcome(){ return article.getOutcomevalue() == 1; } public Article getArticleSpecific(){ return article; } to render my page However, it complains "... contains a child component with id 'articleSpecific'
Localization issue
I have made localization for english, bulgarian, serbian and spanish language, and it all worked fine on my laptop which uses Spanish as default, however, once I have deployed my app to another PC, which has English as root language, I am encountiring following issue: -I have set my property files as following : IndexPage.property IndexPage_en.property IndexPage_bg.property IndexPage_sr.property and on my laptop which uses Spanish, it all works fine, ie, once I am in localhost:3434/IndexPage - it's in Spanish localhost:3434/en/IndexPage -it's in English but on my PC which uses English as default language, it's following: localhost:3434/IndexPage - it's in English?! localhost:3434/en/IndexPage - it's in English ?! Anyone else had similiar issue to this one? What am I doing wrong?
RE: PageURL Rewriting, pulling name instead of id
OK, i have already implemented it. I have page ListArticle, which serves only for once user click on some article takes him to the following path someweb.mx:3032/ListArticle/SpecificNameOfArticle. However, how to proceed further, ie how to delete ListArticle/ from the path context and leave only SpecificNameOfArticle? I am reading documenation, but I can't learn nothing from it? There is an inkling in some spring app and your url-rewriter app I have found on the web, however I am green in tapestry field for now, and can't figure out it best. > To: users@tapestry.apache.org > Subject: Re: PageURL Rewriting, pulling name instead of id > Date: Tue, 11 Jun 2013 09:00:28 -0300 > From: thiag...@gmail.com > > On Mon, 10 Jun 2013 19:56:06 -0300, Nomen Nomanum > wrote: > > > #Thiago > > Yes, that would work in the case where I want something like > > > > localhost:8080/FullArticle/NameOfArticle > > > > but what if I wanted > > > > localhost:8080/NameOfArticle > > ? > > How to achieve this behavior? > > You could use an Index page for that and use the name of the article (or > some modification of it) as the activation context. If you don't do that, > you'll need to use some form of URL rewriting, but then you create another > problem for you: you'll need to figure out yourself whether the URL is for > a Tapestry page or an article name. > > -- > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
RE: PageURL Rewriting, pulling name instead of id
#Thiago Yes, that would work in the case where I want something like localhost:8080/FullArticle/NameOfArticle but what if I wanted localhost:8080/NameOfArticle ? How to achieve this behavior? #Jens I completely agree with you. But what if I build wrapper around my listing of the articles, and tapestry register based on the clicked article creates in the flow page name for it? Is it possible? > Subject: Re: PageURL Rewriting, pulling name instead of id > From: mailingl...@j-b-s.de > Date: Tue, 11 Jun 2013 00:46:42 +0200 > To: users@tapestry.apache.org > > Be carefull with article names...make sure a name is unique in all supported > languages similar to the PK-ID you are using right now. From experience a > name is usually not sufficient to guarantee this, thus attributes like color > or size are required as well in your final name or as part of your > ActivationContext. But this depends on your product catalogue of course and > is not a Tapestry topic any longer :-) > > I believe URL rewriting is the only solution to even remove the pagename. > > > Jens > > Sent from my iPhone > > On 10.06.2013, at 23:38, "Thiago H de Paula Figueiredo" > wrote: > > > Just use the name of the article as the page activation context instead. No > > URL rewriting needed. > > > > On Mon, 10 Jun 2013 17:59:42 -0300, Nomen Nomanum > > wrote: > > > >> Hi. I have an issue with the following: Lets say I click on my article, > >> and it directs me to that specific page > >> > >> localhost:8080/FullArticle/3 > >> where 3 denotes id of article, however I don't want, what I want is to be > >> something like > >> > >> localhost:8080/FullArticle/NameOfArticle > >> > >> or even better > >> > >> > >> localhost:8080/nameOfArticle > >> > >> Any tips how to achieve this? > >> > > > > > > -- > > Thiago H. de Paula Figueiredo > > > > - > > 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 >
PageURL Rewriting, pulling name instead of id
Hi. I have an issue with the following: Lets say I click on my article, and it directs me to that specific page localhost:8080/FullArticle/3 where 3 denotes id of article, however I don't want, what I want is to be something like localhost:8080/FullArticle/NameOfArticle or even better localhost:8080/nameOfArticle Any tips how to achieve this?
RE: How to know what language is on
Hi Thiago! :) I have solved my issue, minutes after posting here. I have got an idea to use Locale instead PersistLocale, and it worked like a charm! :)
How to know what language is on
I am trying to test something by testing in what language is current page with following: public boolean getEnglishVersionOfDescription() { if ("en".equalsIgnoreCase(persistentLocale.get().getLanguage())) { return true; } else { return false; } } tml ${proposition.getEnglishProposition} my proposition is pulled from db with following public List getPropositioning() { List l; l = session.createCriteria(Proposition.class).add(Restrictions.eq("article.id", this.getId())). list(); return l; } However I keep getting Render queue error in BeginRender[Testing:if]: Failure reading parameter 'test' of component Testing:if: org.apache.tapestry5.ioc.internal.util.TapestryException and I have no clue what is it complaining about?
RE: One possible bug with image showing
Thank, both of, you very much! :)
One possible bug with image showing
Hi. I have following in css file something like following .displayingBackground{ background-image:url('../graphics/SectionForGifs/myImage.gif'); } and it's OK, it shows just fine in following segments www.mySite.com/thisPage www.mySite.com/thatPage www.mySite.com/* * where denotes any sort of the page however, it won't show up in the following terms www.mySite.com/thatPage/SomeOtherPage www.mySite.com/thatPage/SomeOtherPageTwo www.mySite.com/thatPage/* * where denotes any sort of the page Also, I am using getImages(){} in www.mySite.com/thatPage/* kind pages, with public String getImages(){ return "graphics/" + image.getLocation(); } and it produces following output : graphics/locationOfImage.png, which is OK, however, it won't render, until I put in my firebug ../ infront of it, i.e. ../graphics/locationOfImage.png . It seems to me that Tapestry is confused with url from CSS code, and it gets to some folder, i.e. SectionForGifs( aformentioned in the CSS example ) and stucks there all the way. Any help or advise about this issue is grateful. Thank you. how
RE: Boosting TapJQuery GMap3
Great! :) I follow your steps, and it seems to me I am somehow lost. I have written this small piece of code, just to see whether or not my Gmap3 takes parameters, and it doesn't, which is a sign that I am not doing it right. public JSONObject getParams() { JSONObject json = new JSONObject(); json.put("height", 600); // test height json.put("width",600); // test width json.put("mapTypeId","google.maps.MapTypeId.TERRAIN"); // test map type json.put(); return json; } and in my tml file I have > Date: Fri, 31 May 2013 09:06:04 +0200 > Subject: Re: Boosting TapJQuery GMap3 > From: demey.emman...@gmail.com > To: users@tapestry.apache.org > > Hi, > > You just need to set the parameters params of this components. It is JSON > Object. It corresponds to the one provided by the jQuery widget. > > For callback, ,i will recommend to use JavaScript closures. You can find > example in one other projet tapestry-jquery-jqgrid : > https://github.com/got5/tapestry5-jquery-jqgrid/blob/master/src/test/java/org/got5/tapestry5/jquery/jqgrid/test/pages/BASIC_ColumnChooser.java > https://github.com/got5/tapestry5-jquery-jqgrid/blob/master/src/test/jquery/jqgrid/webapp/static/js/demo.js > > Manu > > > 2013/5/31 Nomen Nomanum > > > Hi! I have implemented TapJQuery GMap3, and it works just fine. However, I > > would like to be more or less like the example on Gmap3 page, > > http://gmap3.net/en/pages/19-demo/ . > > > > > > How to achieve this, any tips, anything? Thanks in advance. > > > > > > > -- > Emmanuel DEMEY > Ingénieur Etude et Développement > ATOS Worldline > +33 (0)6 47 47 42 02 > demey.emman...@gmail.com > http://emmanueldemey.fr/ > > Twitter : @EmmanuelDemey
Boosting TapJQuery GMap3
Hi! I have implemented TapJQuery GMap3, and it works just fine. However, I would like to be more or less like the example on Gmap3 page, http://gmap3.net/en/pages/19-demo/ . How to achieve this, any tips, anything? Thanks in advance.
RE: Pulling different description for image based on choosen language
Thank you! :) I have solved even this issue. Now, lets get something more challenging! :)
RE: Pulling different description for image based on choosen language
OK, one more question concerns me. Do I have to put jquery.js in head or in java class, once I get Tapestry-JQuery downloaded in my project?
RE: Pulling different description for image based on choosen language
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) ... 56 more > From: horvat.z.bo...@gmail.com > Date: Thu, 30 May 2013 12:49:11 +0200 > Subject: Re: Pulling different description for image based on choosen language > To: users@tapestry.apache.org > > See now this is a problem, but how did you expect to get an answer to this > from your first mail? :S > > Anyway I guess it could be dependency issue. What version of tapestry and > tapestry-jquery are you using? I would advise 5.3.7 and 3.3.7-SNAPSHOT > respectively. > > I guess printing dependency tree would be a bad thing to see as well. Also > you mentioned Tomcat but could you start it on Jetty? > > Cheer > > > On Thu, May 30, 2013 at 3:56 AM, Nomen Nomanum wrote: > > > Great proposal, Horvat! :) Will do exactly that. However, one more concern > > is on my mind right now. I have included Tap-JQuery library, and everything > > is fine, until I load it! My app can't even be deployed, from the Tomcat > > logs, I can see it keeps complaining about > > > > 30.05.2013 14:32:46 org.apache.catalina.core.StandardContext filterStart > > SEVERE: Exception starting filter app > > java.lang.RuntimeException: Exception loading module(s) from manifest > > jar:file:/C:/Users/Daniel_Sabado_Images/Documents/NetBeansProjects/ObligadoProecto > > /build/web/WEB-INF/lib/tapestry-jquery.jar!/META-INF/MANIFEST.MF: Failure > > loading Tapestry IoC module class > > org.got5.tapestry5.jquery.services.JQueryModule: Error invoking service > > binder method > > org.got5.tapestry5.jquery.services.JQueryModule.bind(ServiceBinder) (at > > JQueryModule.java:155): org/apache/tapestry5/upload/services/UploadedFile > > > > > > > -- > Sincerely > *Boris Horvat*
RE: 5.4-alpha-4 preview release
Sorry, it took me ages before I could retrieve this mail to see new posts and reply. What I meant by dual modding is the ability for any Tapestry user to use whatever JS framework he or she likes. There were rumours that in Tap5.4 Prototype will be once and for all put out of focus, and Prototype activities would be replaced by JQuery. That is what I meant, hope it is now more clear. :) > Date: Wed, 29 May 2013 19:16:57 -0500 > Subject: Re: 5.4-alpha-4 preview release > From: trs...@gmail.com > To: users@tapestry.apache.org > > On Wed, May 29, 2013 at 11:08 AM, Howard Lewis Ship wrote: > > > > > > > > > > > I had one problem getting it to run. I had to add > > > > > > > > > > > > org.slf4j > > > > > > slf4j-log4j12 > > > > > > 1.7.2 > > > > > > > > > > > > > > > to my pom file. It appears to be in tapestry-core but marked test. > > > > > > > > This has been going back and forth; the idea is to not lock you into a > > particular SLF4J implementation, at the expense of making you select one. > > If this was included as a core dependency and you wanted to switch to, say, > > logback, you would have to exclude this dependency then include logback. > > The Maven archetype will include a specific SLF4J implementation. > > > > > In general I would prefer things work out of the box and exclude the > dependency if needed, but it did not take too long to figure out the > problem. > > > > > > > > > > > > I tried BeanEditForm and have a question about it. Unfortunately > > Bootstrap > > > changes the markup for forms when the class is form-horizontal. It > > appears > > > BeanEditForm always outputs the markup for form-horizontal so the other > > > form styles do not work correctly. > > > > > > > > More information on that would be great. > > > > Basic forms in Bootstrap have little to no extra markup. The example has > > http://twitter.github.io/bootstrap/base-css.html#forms > > >1. >2. >3. Legend >4. Label name >5. >6. Example block-level help text here. >7. >8. Check me out >9. >10. Submit >11. >12. > > > Only the form-horizontal has the extra control group > >1. >2. Password >3. >4. >5. >6. >7. >8. >9. >10. Remember me >11. >12. Sign in >13. >14. > > > While the simple forms work with the control group the extra tags change > the output format. This means the output of each property in the BeanEditor > is dependent on the class parameter to BeanEditForm or Form. I guess the > class could be added to FormSupport so the underlying parameters could > render differently depending on the class. Also just to make things more > difficult notice how the label for the checkbox spans the input but the > textfield label does not. > > On my Bootstrap module I did all this using the DOM and a visitor, but if > you are creating components from scratch I don't think I would do it that > way. > > > > > > > > > > > I'll try and build something real this weekend. > > > > > > Thanks > > > Barry > > > > > > > > > On Tue, May 28, 2013 at 3:28 PM, Howard Lewis Ship > > > wrote: > > > > > > > For all you early adopters ... > > > > > > > > 5.4-alpha-4 preview release is now available > > > > > > > > Maven Repository: > > > > > > > > > https://repository.apache.org/content/repositories/orgapachetapestry-019/ > > > > > > > > Big improvements: > > > > > > > > - URLs for compressed assets are now separate from uncompressed assets > > > > - Many problems with CSS url() rewriting have been fixed > > > > - new tapestry-wro4j library for runtime: > > > > - CoffeeScript to JavaScript compilation > > > > - Less to CSS compilation > > > > - JavaScript minimization > > > > - CSS minimization > > > > > > > > -- > > > > 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 > > > > > > > > > > > > > > > -- > > 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: Pulling different description for image based on choosen language
Great proposal, Horvat! :) Will do exactly that. However, one more concern is on my mind right now. I have included Tap-JQuery library, and everything is fine, until I load it! My app can't even be deployed, from the Tomcat logs, I can see it keeps complaining about 30.05.2013 14:32:46 org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter app java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/C:/Users/Daniel_Sabado_Images/Documents/NetBeansProjects/ObligadoProecto /build/web/WEB-INF/lib/tapestry-jquery.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class org.got5.tapestry5.jquery.services.JQueryModule: Error invoking service binder method org.got5.tapestry5.jquery.services.JQueryModule.bind(ServiceBinder) (at JQueryModule.java:155): org/apache/tapestry5/upload/services/UploadedFile
Pulling different description for image based on choosen language
Hi! I want to implement for my app processing of different description for my image based on choosen language. So, if user chooses Spanish, only Spanish description for my image should be rendered. Thanks in advance.
RE: 5.4-alpha-4 preview release
What happened to dual modding? Is it possible that Tapestry itself will figure out when prototype, jquery or some other JS library is involved, and therefore process it's parameters as scheduled from template listing? > From: kcola...@live.com > To: users@tapestry.apache.org > Subject: Re: 5.4-alpha-4 preview release > Date: Tue, 28 May 2013 19:52:08 -0400 > > nice... and thanks... > > I will see if I can run with it >
Lightbox integration: Image isn't displayed
I have set up prototype lightbox modal box, and everything works fine, until I click on my t:actionlink. It pops out everything as expected, however image can't be seen. What's the reason for image isn't properly displayed?
RE: Image can't be seen inside a zone
Also, in the zone I get following error from the firebug: ConnectioncloseContent-EncodinggzipContent-Typetext/html;charset=UTF-8DateMon, 27 May 2013 18:05:00 GMTServerApache-Coyote/1.1Transfer-EncodingchunkedX-Tapestry-ErrorMessageException%20in%20method%20null%2C%20parameter%20%231%3A%20Exception%20converting%20%27gfx%27%20to%20instance%20of%20java.lang.Long%20%28id%20type%20for%20entity%20rs.co.dw.proba.entities.Artikal%29%3A%20Coercion%20of%20gfx%20to%20type%20java.lang.Long%20%28via%20String%20--%3E%20Long%29%20failed%3A%20For%20input%20string%3A%20%22gfx%22 GET galleryImage.png 500 Internal Server Errorlocalhost:808016,7 KB[::1]:8080 So, it is not render in the zone ever? > From: getibi...@outlook.com > To: users@tapestry.apache.org > Subject: RE: Image can't be seen inside a zone > Date: Mon, 27 May 2013 18:35:54 +0100 > > Hi Thiago! > OK, my scenario is following. I have stored location of the file to db, and > it is being pulled from there by > public String getPictures(){ > if (picture.getPictureLocation() == null || > picture.getPictureLocation().isEmpty()) { > return "picturesFolder/no_image.png"; > } > return "picturesFolder/" + picture.getPictureLocation(); > } > Now, the thing is following: I have two loops, one loop inside another. First > loop lists all articles, and the second one pictures for that articles. It's > all displayed as blocks using some css styling, etc. What I have observed is > that only pictures from the first loop( first article) are being displayed, > later one are not. What may be the cause to it, and how to prevent such state? > > > To: users@tapestry.apache.org > > Subject: Re: Image can't be seen inside a zone > > Date: Mon, 27 May 2013 09:27:36 -0300 > > From: thiag...@gmail.com > > > > On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum > > wrote: > > > > > Ok, this behavior is very strange to me now. I have stored key location > > > of my file in db, and it is being pulled via getImages to show the > > > images to the user, however set of images from one article is displayed, > > > and from the others is not. Also, images from that one article which are > > > visible on the index page, once you click on that article, can't be > > > visible anymore in article gallery listing, even though same code is > > > used here and there. > > > > You're probably relying in some variable which is being set in page > > renders but not in zone updates, probably by use of @SetupRender (or > > setupRender(), same thing), which isn't called in AJAX requests. > > > > -- > > Thiago H. de Paula Figueiredo > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > >
RE: Image can't be seen inside a zone
Hi Thiago! OK, my scenario is following. I have stored location of the file to db, and it is being pulled from there by public String getPictures(){ if (picture.getPictureLocation() == null || picture.getPictureLocation().isEmpty()) { return "picturesFolder/no_image.png"; } return "picturesFolder/" + picture.getPictureLocation(); } Now, the thing is following: I have two loops, one loop inside another. First loop lists all articles, and the second one pictures for that articles. It's all displayed as blocks using some css styling, etc. What I have observed is that only pictures from the first loop( first article) are being displayed, later one are not. What may be the cause to it, and how to prevent such state? > To: users@tapestry.apache.org > Subject: Re: Image can't be seen inside a zone > Date: Mon, 27 May 2013 09:27:36 -0300 > From: thiag...@gmail.com > > On Sun, 26 May 2013 12:52:12 -0300, Nomen Nomanum > wrote: > > > Ok, this behavior is very strange to me now. I have stored key location > > of my file in db, and it is being pulled via getImages to show the > > images to the user, however set of images from one article is displayed, > > and from the others is not. Also, images from that one article which are > > visible on the index page, once you click on that article, can't be > > visible anymore in article gallery listing, even though same code is > > used here and there. > > You're probably relying in some variable which is being set in page > renders but not in zone updates, probably by use of @SetupRender (or > setupRender(), same thing), which isn't called in AJAX requests. > > -- > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
RE: Image can't be seen inside a zone
Ok, this behavior is very strange to me now. I have stored key location of my file in db, and it is being pulled via getImages to show the images to the user, however set of images from one article is displayed, and from the others is not. Also, images from that one article which are visible on the index page, once you click on that article, can't be visible anymore in article gallery listing, even though same code is used here and there. > To: users@tapestry.apache.org > Subject: Re: Image can't be seen inside a zone > Date: Thu, 23 May 2013 08:51:27 -0300 > From: thiag...@gmail.com > > On Thu, 23 May 2013 06:17:35 -0300, Nomen Nomanum > wrote: > > > I have images listing wrapped inside a zone, however I am unable to see > > them. What may cause such behavior? From the code itself, everything is > > OK, since the same code I have applied already on other spot, and it > > works great. > > Have you checked the HTML DOM with Firebug or other HTML inspector after > the zone update? Or is this happening even before zone updates are done? > > -- > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
Tawus AjaxUpload can't be built.
Hi! I want to implement in my app mr. Siddiqi AjaxUpload library, however I can't do so cause I am constantly getting this error: Dynamic properties are deprecated: http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html Deprecated dynamic property: "tapestryVersion" on "root project 'tawus-master'", value: "5.3-rc-3-multipledb-SN...". Deprecated dynamic property: "testngVersion" on "root project 'tawus-master'", value: "5.14.9". Deprecated dynamic property: "nexusUsername" on "root project 'tawus-master'", value: "tawus". Deprecated dynamic property: "nexusPassword" on "root project 'tawus-master'", value: "liridwm". :tapz-core:compileJava UP-TO-DATE :tapz-core:processResources UP-TO-DATE :tapz-core:classes UP-TO-DATE :tapz-core:jar UP-TO-DATE :tapz-core:javadoc UP-TO-DATE :tapz-core:javadocJar UP-TO-DATE :tapz-core:sourcesJar UP-TO-DATE :tapz-core:assemble UP-TO-DATE :tapz-core:compileTestJava UP-TO-DATE :tapz-core:processTestResources UP-TO-DATE :tapz-core:testClasses UP-TO-DATE :tapz-core:test FAILURE: Build failed with an exception. * What went wrong: Could not resolve all dependencies for configuration ':tapz-core:testRuntime'. > Could not find group:org.apache.tapestry, module:tapestry-core, > version:5.3-rc-3-multipledb-SNAPSHOT. Required by: com.googlecode.tawus:tapz-core:0.2-SNAPSHOT > Could not find group:org.apache.tapestry, module:tapestry-test, > version:5.3-rc-3-multipledb-SNAPSHOT. Required by: com.googlecode.tawus:tapz-core:0.2-SNAPSHOT * Try: Run with --info or --debug option to get more log output. I have tried changing my build.gradle properties, by putting lattest module of Tap-core, and excluding test properties, however no effort. What may cause such behavior?
Image can't be seen inside a zone
I have images listing wrapped inside a zone, however I am unable to see them. What may cause such behavior? From the code itself, everything is OK, since the same code I have applied already on other spot, and it works great.
RE: FormFragment checkbox not working
Here is the code to see how this could be achieve dgdgdgdg fsfsf dgdgde gdgdgd @InjectComponent private Zone zone; @Persist(PersistenceConstants.FLASH)// will keep your data consistent during just one page life cycle. private boolean first,second; @Inject private Block firstBlock, secondBlock; public void onActionFromFirst() { first= true; second=false; } public void onActionFromSecond() { first = false; second=true; } // you could easily implement that once ticked, sets mod to true, false otherwise. public Object getChoosenOne() { if(first==true){ zona.getBody(); return firstBlock; } else if(second== true) { zona.getBody(); return blokLokaciji; } else zona.getBody(); return null; }
RE: Is there will be any Tapestry5 + AngularJS integration?
I don't understand. Do you mean we should compensate our Tap5 services, components with AngularJS behavior or what, as built-in support? > From: dmitry.gu...@gmail.com > Date: Tue, 21 May 2013 18:09:12 +0400 > Subject: Re: Is there will be any Tapestry5 + AngularJS integration? > To: users@tapestry.apache.org > > On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum wrote: > > > > To: users@tapestry.apache.org > > > Subject: Re: Is there will be any Tapestry5 + AngularJS integration? > > > Date: Tue, 21 May 2013 10:41:20 -0300 > > > From: thiag...@gmail.com > > > > > > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev > > > > > wrote: > > > > > > > Hi, > > > > > > Hi! > > > > > > Hi! ^^ > > > > > > just curious if there is any plans integrating AngularJS with tapestry5? > > > > > > What do you mean by "integration" in this case? > > > > > > > Anything? :) > > > > > AngularJS can easily be implemented already into Tap5. What's your > > concern about it? > > > > > > > > AngularJS can be implemented in plain HTML, I know this. > > I was just hope maybe tapestry5 will provide some support for it... > > Some integration with components maybe... helpers, mixins, ajax and zones, > anything? > > > > > > > > Thiago H. de Paula Figueiredo > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > > > > -- > Dmitry Gusev > > AnjLab Team > http://anjlab.com
RE: Is there will be any Tapestry5 + AngularJS integration?
> To: users@tapestry.apache.org > Subject: Re: Is there will be any Tapestry5 + AngularJS integration? > Date: Tue, 21 May 2013 10:41:20 -0300 > From: thiag...@gmail.com > > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev > wrote: > > > Hi, > > Hi! > > Hi! ^^ > > just curious if there is any plans integrating AngularJS with tapestry5? > > What do you mean by "integration" in this case? > > AngularJS can easily be implemented already into Tap5. What's your concern > about it? > > Thiago H. de Paula Figueiredo > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
RE: FormFragment checkbox not working
OK, remove completely annotation @Persist, since you don't need it, if you want that behavior.
RE: FormFragment checkbox not working
Try adding @Persist(PersistenceConstant.FLASH) to your renew and see how would it behave. From: getibi...@outlook.com To: users@tapestry.apache.org Subject: RE: FormFragment checkbox not working Date: Sun, 19 May 2013 20:53:42 +0100 Pozdrav Nikola! Could you be more specific about what troubles you? From the code, it looks more-less just fine. What is it supposed to do? Date: Sun, 19 May 2013 17:28:02 +0200 Subject: Re: FormFragment checkbox not working From: nivuk...@gmail.com To: users@tapestry.apache.org tml file http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"> Add new expense form (*): (*): (*): (*): : Calculate payment from (*): Repeat payment every (*): (*): Calculate payment until (*): Select currency form (*): List of your expenses [Grid here] remove payment List of expenses from trusted List of all clients in your home Page class /* * To change this template, choose Tools | Templates * and open the template in the editor. */package rs.edu.fit.cs230web.pages; import java.util.List;import logic.ws.Client;import logic.ws.ClientType;import logic.ws.ClientWebService;import logic.ws.ExpenseWebService;import
RE: FormFragment checkbox not working
Pozdrav Nikola! Could you be more specific about what troubles you? From the code, it looks more-less just fine. What is it supposed to do? Date: Sun, 19 May 2013 17:28:02 +0200 Subject: Re: FormFragment checkbox not working From: nivuk...@gmail.com To: users@tapestry.apache.org tml file http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"> Add new expense form (*): (*): (*): (*): : Calculate payment from (*): Repeat payment every (*): (*): Calculate payment until (*): Select currency form (*): List of your expenses [Grid here] remove payment List of expenses from trusted List of all clients in your home Page class /* * To change this template, choose Tools | Templates * and open the template in the editor. */package rs.edu.fit.cs230web.pages; import java.util.List;import logic.ws.Client;import logic.ws.ClientType;import logic.ws.ClientWebService;import logic.ws.ExpenseWebService;import logic.ws.Money; import org.apache.tapestry5.PersistenceConstants;import org.apache.tapestry5.annotations.Persist;import org.apache.tapestry5.annotations.Property;import org.apache.tapestry5.annotations.SessionState; import org.apache.ta
RE: Adding search service in Tapestry app
Thanks Thiago and Lance! I will try this and see what happens. > Date: Sat, 18 May 2013 21:47:22 +0100 > Subject: Re: Adding search service in Tapestry app > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > Unfortunately, hibernate's Search.getFullTextSession(...) casts the session > to a concrete type which fails if you pass the session singleton provided > by tapestry-hibernate. > > Instead, you must do something like the following in your AppModule > > @Scope(ScopeConstants.PERTHREAD) > public static FullTextSession buildFullTextSession(HibernateSessionManager > sessionManager { >return Search.getFullTextSession(sessionManager.getSession()); > } > > > > On 18 May 2013 21:05, Nomen Nomanum wrote: > > > Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Is > > there anything I should get in concern before doing it? How to > > wrap/decorate that service? And how could I make service to be injected? > > Thanks in reply. > >
Adding search service in Tapestry app
Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Is there anything I should get in concern before doing it? How to wrap/decorate that service? And how could I make service to be injected? Thanks in reply.
Zone and content changment
I want to implement a scenario where based on clicked actionlink, zone updates it's content. Lets say I have stored some divs inside that zone, and I need trigger, videlicit checker to see what div to render. How to achieve this behavior?
RE: Restarting rendereing block once you get back to page
Hvala puno! :) I just can't figure out how did I forget that! :) > From: horvat.z.bo...@gmail.com > Date: Sat, 18 May 2013 01:30:18 +0200 > Subject: Re: Restarting rendereing block once you get back to page > To: users@tapestry.apache.org > > I assume that you have @Persist annotation on the filed that controls what > block will be displayed. Remove it and that way the users selection wont be > remembered > > > On Sat, May 18, 2013 at 1:10 AM, Nomen Nomanum wrote: > > > I have implemented some zone with delegate and blocks on some web page. > > Now when I go to another page, and come back to the previous, it shows the > > last block from previous "session", but I don't want that to happen. How > > can I implement to restart rendering of the blocks from previous session? > > > > > > > -- > Sincerely > *Boris Horvat*
RE: Zone and content changment
Thanks! I have implemented this. :) > From: horvat.z.bo...@gmail.com > Date: Fri, 17 May 2013 23:05:38 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > I am not sure what you really wont. > > Here you have 2 choice. > > First you can use and I dont recommend this one. The ideas that for > every actionlink clicked you set some boolean value to true and in the > you check which one is set to true and then display that part of the > html. > > The second choice is to use delegates and blocks > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Delegate.html > > I usually keep an enum field and then return the appropriate block given > that value. > > Cheers > > > > > On Fri, May 17, 2013 at 10:58 PM, Nomen Nomanum wrote: > > > Great! That's the answer I have been waiting for. But how my could > > know what actionlink is clicked? Lets say I have following scenario: > > > > > > // my zone > test=""> // how to test what actionlink is clicked > > // get me to modelBlock1 block > > // how to test what > > actionlink is clicked > to="block2" /> // get me to modelBlock2 block > > block1 > > > > block2 > > > > > From: horvat.z.bo...@gmail.com > > > Date: Fri, 17 May 2013 22:35:26 +0200 > > > Subject: Re: Zone and content changment > > > To: users@tapestry.apache.org > > > > > > And why dont you want to use delegates and blocks? That is what they are > > > there for...You could use > > > > > > > > > On Fri, May 17, 2013 at 10:33 PM, Nomen Nomanum > >wrote: > > > > > > > Hmm... well, what troubles me is this scenario: > > > > Suppose in my tml I have > > > > > > > > > > > > > > > > > > > > > > > > Now, based on clicked actionlink1, I want to render only div1, and not > > > > div2. How to achieve this not including delegates and blocks? Is there > > any > > > > other way? > > > > > > > > > From: horvat.z.bo...@gmail.com > > > > > Date: Fri, 17 May 2013 21:58:32 +0200 > > > > > Subject: Re: Zone and content changment > > > > > To: users@tapestry.apache.org > > > > > > > > > > Generic question requires a generic answer :) > > > > > > > > > > Start from here http://tapestry.apache.org/ajax-and-zones.html > > > > > > > > > > > > > > > On Fri, May 17, 2013 at 9:49 PM, Nomen Nomanum < > > getibi...@outlook.com > > > > >wrote: > > > > > > > > > > > I want to implement a scenario where based on clicked actionlink, > > zone > > > > > > updates it's content. Lets say I have stored some divs inside that > > > > zone, > > > > > > and I need trigger, videlicit, checker to see what div to render. > > How > > > > to > > > > > > achieve this behavior? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Sincerely > > > > > *Boris Horvat* > > > > > > > > > > > > > > > > > > > -- > > > Sincerely > > > *Boris Horvat* > > > > > > > -- > Sincerely > *Boris Horvat*
Restarting rendereing block once you get back to page
I have implemented some zone with delegate and blocks on some web page. Now when I go to another page, and come back to the previous, it shows the last block from previous "session", but I don't want that to happen. How can I implement to restart rendering of the blocks from previous session?
RE: Zone and content changment
Great! That's the answer I have been waiting for. But how my could know what actionlink is clicked? Lets say I have following scenario: // my zone // how to test what actionlink is clicked // get me to modelBlock1 block // how to test what actionlink is clicked // get me to modelBlock2 block block1block2 > From: horvat.z.bo...@gmail.com > Date: Fri, 17 May 2013 22:35:26 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > And why dont you want to use delegates and blocks? That is what they are > there for...You could use > > > On Fri, May 17, 2013 at 10:33 PM, Nomen Nomanum wrote: > > > Hmm... well, what troubles me is this scenario: > > Suppose in my tml I have > > > > > > > > > > > > Now, based on clicked actionlink1, I want to render only div1, and not > > div2. How to achieve this not including delegates and blocks? Is there any > > other way? > > > > > From: horvat.z.bo...@gmail.com > > > Date: Fri, 17 May 2013 21:58:32 +0200 > > > Subject: Re: Zone and content changment > > > To: users@tapestry.apache.org > > > > > > Generic question requires a generic answer :) > > > > > > Start from here http://tapestry.apache.org/ajax-and-zones.html > > > > > > > > > On Fri, May 17, 2013 at 9:49 PM, Nomen Nomanum > >wrote: > > > > > > > I want to implement a scenario where based on clicked actionlink, zone > > > > updates it's content. Lets say I have stored some divs inside that > > zone, > > > > and I need trigger, videlicit, checker to see what div to render. How > > to > > > > achieve this behavior? > > > > > > > > > > > > > > > > > > > -- > > > Sincerely > > > *Boris Horvat* > > > > > > > -- > Sincerely > *Boris Horvat*
RE: Zone and content changment
Hmm... well, what troubles me is this scenario: Suppose in my tml I have Now, based on clicked actionlink1, I want to render only div1, and not div2. How to achieve this not including delegates and blocks? Is there any other way? > From: horvat.z.bo...@gmail.com > Date: Fri, 17 May 2013 21:58:32 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > Generic question requires a generic answer :) > > Start from here http://tapestry.apache.org/ajax-and-zones.html > > > On Fri, May 17, 2013 at 9:49 PM, Nomen Nomanum wrote: > > > I want to implement a scenario where based on clicked actionlink, zone > > updates it's content. Lets say I have stored some divs inside that zone, > > and I need trigger, videlicit, checker to see what div to render. How to > > achieve this behavior? > > > > > > > -- > Sincerely > *Boris Horvat*
Zone and content changment
I want to implement a scenario where based on clicked actionlink, zone updates it's content. Lets say I have stored some divs inside that zone, and I need trigger, videlicit, checker to see what div to render. How to achieve this behavior?