Re: tapestry5-jquery simple sample not working
Well if someone could relay this into the google group that would be great. I'm logged into google but cannot create a new topic :( pfft! Thanks Chris On 04/04/2012, at 4:12 PM, Chris Mylonas wrote: > Hi All, > > I'll post this in the google groups linked to the tapestry5-jquery project as > well. > To repeat what I have done: > > > 1) Create a package under pages called test. > 2) Create class JQuery.java with this in it. > > package org.example.jquerytest.pages.test; > > import org.apache.tapestry5.annotations.Import; > > @Import(stylesheet="context:layout/mouseover.css",library={"context:js/mouseover.js"}) > @ImportJQueryUI("jquery.ui.mouse") > public class JQuery { > > } > > 3. Create src/main/webapp/layout/mouseover.css with this in it. > > div.out { width:40%; height:120px; margin:0 15px; > background-color:#D6EDFC; float:left; } > div.in { width:60%; height:60%; > background-color:#FFCC00; margin:10px auto; } > p { line-height:1em; margin:0; padding:0; } > > 4. Create src/main/webapp/js/mouseover.js with this in it. > > var i = 0; > $("div.overout").mouseover(function() { > i += 1; > $(this).find("span").text( "mouse over x " + i ); > }).mouseout(function(){ > $(this).find("span").text("mouse out "); > }); > > var n = 0; > $("div.enterleave").mouseenter(function() { > n += 1; > $(this).find("span").text( "mouse enter x " + n ); > }).mouseleave(function() { > $(this).find("span").text("mouse leave"); > }); > > > 5. Create the template for the pages/test/JQuery.java file calling it > pages/test/JQuery.tml > >xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"; > xmlns:p="tapestry:parameter"> > > JQuery Testing > > > move your mouse > > > > > > move your mouse > > > > > > > > > The css and js files are included in the html source and i can view them, so > they are there and jquery.ui.mouse.min.js is also included and viewable. > > MouseOver function as per the jquery example http://api.jquery.com/mouseover/ > does not work though. > > Any ideas? > > Cheers > Chris
tapestry5-jquery simple sample not working
Hi All, I'll post this in the google groups linked to the tapestry5-jquery project as well. To repeat what I have done: 1) Create a package under pages called test. 2) Create class JQuery.java with this in it. package org.example.jquerytest.pages.test; import org.apache.tapestry5.annotations.Import; @Import(stylesheet="context:layout/mouseover.css",library={"context:js/mouseover.js"}) @ImportJQueryUI("jquery.ui.mouse") public class JQuery { } 3. Create src/main/webapp/layout/mouseover.css with this in it. div.out { width:40%; height:120px; margin:0 15px; background-color:#D6EDFC; float:left; } div.in { width:60%; height:60%; background-color:#FFCC00; margin:10px auto; } p { line-height:1em; margin:0; padding:0; } 4. Create src/main/webapp/js/mouseover.js with this in it. var i = 0; $("div.overout").mouseover(function() { i += 1; $(this).find("span").text( "mouse over x " + i ); }).mouseout(function(){ $(this).find("span").text("mouse out "); }); var n = 0; $("div.enterleave").mouseenter(function() { n += 1; $(this).find("span").text( "mouse enter x " + n ); }).mouseleave(function() { $(this).find("span").text("mouse leave"); }); 5. Create the template for the pages/test/JQuery.java file calling it pages/test/JQuery.tml http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"> JQuery Testing move your mouse move your mouse The css and js files are included in the html source and i can view them, so they are there and jquery.ui.mouse.min.js is also included and viewable. MouseOver function as per the jquery example http://api.jquery.com/mouseover/ does not work though. Any ideas? Cheers Chris
Re: Issue with Component Parameter
Thanks I was able to fix the issue by rewriting the code and removing all the static references. No easy way around :) - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-Component-Parameter-tp5612950p5616931.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
Deveopment mode suggestion
Hi All, In development mode, is adding the ability to browse to a page e.g. example/TapestrySymbols, to view the currently loaded/configured symbols on the cards? Maybe enabled by a contributeApplicationDefaults setting. I was having some class reloading problems after removing some @Import annotations, so just restarted jetty and things worked. Reading on https://tapestry.apache.org/class-reloading.html it says to check a bunch of stuff. Class reloading is working, I just had a problem with some js related stuff - tried a different browser, same result. Restarted jetty. CM - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestry5-jquery js question
Howdy tapestry list, i'm mucking around with the jquery module and it's pretty simple to get the quickstart going. i'm adding my own stuff now and i seem to be breaking ALL jquery from working. In my Index.java I have @Import(library={"context:js/recept.js"}) @ImportJQueryUI("jquery.ui.core") There is no reference to the imported recept.js file, and increment via ajax is broken. Because I'm using some ui functions, by not including them in @ImportJQueryUI - that shouldn't break existing jquery stuff should it? Any help is grande cheers chris
Re: Calling fnStandingRedraw to retain the current pagination settings using javaScriptSupport.addInitializerCall
Have you tried javaScriptSupport.addScriptCall("fnStandingRedraw();"); instead? I'm not sure if fnStandingRedraw is in fact a simple javascript method or a valid initializer. p. On 4/04/2012 2:39 AM, russellJB wrote: Hello All! I am using the CreateEventLink method of the ComponentResources class to create a link to a delete event on my page called UserList using the following: "resources.createEventLink("delete", user.getUserId()).toURI();" The UserList page uses datatables to create a list of user's data and a delete link. When the delete link is clicked, the delete event is called on the same page and everyone is happy. The problem is the datatable goes back to the first page of records after a user is deleted. For example, if I am on page 5 of my datatable, on the UserList page, and I click delete it will stay on the Userlist page, but my datatable will reset itself to the first page. After some research I haved discovered that the fnStandingRedraw plugin from datatables will fix this issue: http://datatables.net/plug-ins/api Going through the documentation I have learned that I should use: javaScriptSupport.addInitializerCall("fnStandingRedraw", ""); to call the following in js file via an Import notation: Tapestry.Initializer.fnStandingRedraw = function(oSettings) { //redraw to account for filtering and sorting // concept here is that (for client side) there is a row got inserted at the end (for an add) // or when a record was modified it could be in the middle of the table // that is probably not supposed to be there - due to filtering / sorting // so we need to re process filtering and sorting // BUT - if it is server side - then this should be handled by the server - so skip this step if(oSettings.oFeatures.bServerSide === false){ var before = oSettings._iDisplayStart; oSettings.oApi._fnReDraw(oSettings); //iDisplayStart has been reset to zero - so lets change it back oSettings._iDisplayStart = before; oSettings.oApi._fnCalculateEnd(oSettings); } //draw the 'current' page oSettings.oApi._fnDraw(oSettings); }; However I get the error: Uncaught TypeError: Cannot read property 'bServerSide' of undefined Tapestry.Initializer.fnStandingRedrawhelpdesk.js:16 $.extend.inittapestry-jquery.js:32 jQuery.extend.eachjquery-1.6.2.js:655 $.extend.inittapestry-jquery.js:26 jQuery.extend.eachjquery-1.6.2.js:649 $.extend.inittapestry-jquery.js:18 (anonymous function)list:70 jQuery.extend._Deferred.deferred.resolveWithjquery-1.6.2.js:1008 jQuery.extend.readyjquery-1.6.2.js:436 DOMContentLoadedjquery-1.6.2.js:915 Any guidance would be most appreciated...Thanks in advance!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Calling-fnStandingRedraw-to-retain-the-current-pagination-settings-using-javaScriptSupport-addInitial-tp5615771p5615771.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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled
Thiago, Thanks for the rapid reply. While putting together a test case to send you (the actual code is very long and complex), I figured out this was an error on my part. Basically, I assumed the exception was being thrown by one method, when in fact it was being thrown by a different method Obviously I need to take a break! Best, George On Tue, Apr 3, 2012 at 2:38 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 03 Apr 2012 18:34:11 -0300, George Ludwig > wrote: > > Hi all, >> > > Hi! > > > The problem is that when an Exception is thrown during the calculation of >> the number, Tapestry detects that an Exception was thrown even though it >> was gracefully handled, and throws a TapestryException. This completely >> de-rails my own Exception handling. >> >> Is this considered correct behavior? >> > > No. Full page code and stack trace please. > > -- > 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 >
Re: image shown & not shown
I found the solution, but it still is wired. WORKING STARTPAGE url(img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) NOT WORKING ON ANOTHER PAGE url(img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) WORKING STARTPAGE url(/img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) WORKING ON ANOTHER PAGE url(/img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) -- View this message in context: http://tapestry.1045711.n5.nabble.com/image-shown-not-shown-tp5616322p5616480.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: Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled
On Tue, 03 Apr 2012 18:34:11 -0300, George Ludwig wrote: Hi all, Hi! The problem is that when an Exception is thrown during the calculation of the number, Tapestry detects that an Exception was thrown even though it was gracefully handled, and throws a TapestryException. This completely de-rails my own Exception handling. Is this considered correct behavior? No. Full page code and stack trace please. -- 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: image shown & not shown
On Tue, 03 Apr 2012 17:34:23 -0300, sommeralex wrote: Hi! Hi! I have a component which is loading an image. The wired thing: the same component is not showing the (same) image on another page. so, if i am embedding the component on another page, it is not shown. Even the page-source (html) shows the similar output. url(img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg Use absolute URLs instead of relative ones. This isn't related to Tapestry at all, by the way. -- 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
Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled
Hi all, In my page there is a method that calculates a number, which might throw a divide by zero or null pointer Exception. This number is used in other methods that do some calculation and return a useful String to be displayed by the UI. The problem is that when an Exception is thrown during the calculation of the number, Tapestry detects that an Exception was thrown even though it was gracefully handled, and throws a TapestryException. This completely de-rails my own Exception handling. Is this considered correct behavior? Is there a graceful workaround to this? Most trivial example: MyPage.java: public String getMyNumber() { try { int number=calcMyNumber(); return String.parseInt(number); } catch(Exception e) { return "number not available"; } } private int calcMyNumber() throws Exception { int theNumber= ... // calculations that may throw a divide by zero or NPE return theNumber; } MyPage.tml: Here is the number: ${myNumber} When Tapestry tries to render the page, even though any Exception thrown by calcMyNumber() is properly caught by getMyNumber() and a proper String value is returned, Tapestry still throws a TapestryException after getMyNumber() returns the String "number not available". This behavior makes it impossible for me to handle Exceptions! Best, George
Re: Dynamic CSS depending on URL
Take a look at my RequestDelegate class which delegates every method to another class. I then override one method which I want to change. You could do exactly the same and create a LinkDelegate. After all, it's just an interface :) On Tuesday, 3 April 2012, Juan Alba wrote: > First of all thanks a lot for all your time and help Lance. I have used > your example and worked perfect. I could use the mode to put the > css dynamically as I wished. Thanks a lot. > > Now my problem is trying to use it in my web app. In tapestry 5.1.0.5 > LinkImpl doesn't have getBasePath(), or copyWithBasePath(). You are using > them in the ModeComponentEventLinkEncoder. > > I decided to replace the getBasePath() with toAbsoluteURI() and to create a > private method to copy the link passing the link as an attribute but it is > imposible to create an instance of LinkImpl from the link because I can't > get the values of optimizable, linkforForm, response, optimizer from it. > I don't know how to continue from here and if I can replace the basePath > with the AbsoluteUri. :( > > Thanks. > > On Sat, Mar 31, 2012 at 9:43 AM, Lance Java wrote: > >> I've put together a little demo decorating the ComponentEventLinkEncoder >> which I'm sure you could adapt to the deprecated URLRewriter if you prefer >> it that way. I've done it in tapestry 5.3 but it could be packported to >> tapestry 5.1.0.5 as is. >> >> I've setup three "special" prefixes for "foo", "bar" and "facebook" >> >> If you download it and mvn jetty:run then hit >> http://localhost:8080/tapestry-sandbox/facebook/modepage1. You will see >> that the "mode" environmental is set to "facebook". Click on either of the >> links and you will be sent to >> http://localhost:8080/tapestry-sandbox/facebook/modepage2< >> http://localhost:8080/tapestry-sandbox/facebook/modepage1> >> >> Likewise, you can try >> http://localhost:8080/tapestry-sandbox/foo/modepage1< >> http://localhost:8080/tapestry-sandbox/facebook/modepage1> >> (mode >> = foo) >> >> Or >> http://localhost:8080/tapestry-sandbox/modepage1< >> http://localhost:8080/tapestry-sandbox/facebook/modepage1> >> (mode >> = null) >> >> >> Code is here >> https://github.com/uklance/tapestry-sandbox >> >> Interesting files here >> >> https://github.com/uklance/tapestry-sandbox/tree/master/src/main/java/com/github/uklance/extras >> >> >> Cheers, >> Lance. >> >
Re: Tapestry 4 chrome support
Thanks for the quick response Howard. Your comment on the DTD sounds spot on and I didn't consider that (probably the most obvious thing) earlier today. The framework is pretty ancient compared to what's currently vogue, but our Tapestry 4 application is a mature product that has established a strong position in the market and has a solid revenue stream, so it certainly does it's job. As I understand, upgrading to Tapestry 5 from 4 is not the simplest of tasks, so it would be difficult to approach the business highlighting the fact that we have technical debt and wish to progress to "yet another framework", which will probably have the same issues 5 years (1 year web time..) down the line. I believe keeping up with technologies (even more so in the domain of web development) is beneficial from a technical standpoint, but If I need to bin a framework in favour of what is currently vogue in the market, which (from the point of view of the business) brings no additional revenue in, then I've going to have a tough battle with management. It's a sad fact that we are dominated by deadlines and limited budgets and somewhere in between, we (technical folk) are trying to make the best product we can :) I doubt there is any flaws in Tapestry 4, I just thought I'd run this past the forum before doing any further investigations. I'll take a look tomorrow and if I find anything, I'll update the post. Thanks again for the promptly reply and suggestions! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-4-chrome-support-tp5615994p5616198.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: Tapestry 4 chrome support
Alas, Tapestry 4 is pretty out of date at this point; all the effort for several years has gone into Tapestry 5. Which version of Tapestry 4 are you using? For the most part, T4 renders straight HTML and does a lot less client and JavaScript than T5. Chances are, your (now ancient :-) application is producing markup with a DOCTYPE that is causing your rendering problems. You need to provide a lot more information if you expect any real help. On Tue, Apr 3, 2012 at 11:06 AM, Stephen Munro wrote: > Hello, > > Can anyone tell me if there are any Tapestry 4 issues with Chrome? Today, I > viewed one of our Tapestry 4 applications in Chrome and it didn't render > properly. Some of the forms and components created via Tapestry 4 wouldn't > work correctly. I've going to investigate this further tomorrow, but I > thought I'd run this past the forum in case anyone has seen similar issues > and possibly shed some light on any problems Tapestry 4 may have with > Chrome. > > -- > Warmest Regards, > > Stephen Munro -- 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Calling fnStandingRedraw to retain the current pagination settings using javaScriptSupport.addInitializerCall
Hello All! I am using the CreateEventLink method of the ComponentResources class to create a link to a delete event on my page called UserList using the following: "resources.createEventLink("delete", user.getUserId()).toURI();" The UserList page uses datatables to create a list of user's data and a delete link. When the delete link is clicked, the delete event is called on the same page and everyone is happy. The problem is the datatable goes back to the first page of records after a user is deleted. For example, if I am on page 5 of my datatable, on the UserList page, and I click delete it will stay on the Userlist page, but my datatable will reset itself to the first page. After some research I haved discovered that the fnStandingRedraw plugin from datatables will fix this issue: http://datatables.net/plug-ins/api Going through the documentation I have learned that I should use: javaScriptSupport.addInitializerCall("fnStandingRedraw", ""); to call the following in js file via an Import notation: Tapestry.Initializer.fnStandingRedraw = function(oSettings) { //redraw to account for filtering and sorting // concept here is that (for client side) there is a row got inserted at the end (for an add) // or when a record was modified it could be in the middle of the table // that is probably not supposed to be there - due to filtering / sorting // so we need to re process filtering and sorting // BUT - if it is server side - then this should be handled by the server - so skip this step if(oSettings.oFeatures.bServerSide === false){ var before = oSettings._iDisplayStart; oSettings.oApi._fnReDraw(oSettings); //iDisplayStart has been reset to zero - so lets change it back oSettings._iDisplayStart = before; oSettings.oApi._fnCalculateEnd(oSettings); } //draw the 'current' page oSettings.oApi._fnDraw(oSettings); }; However I get the error: Uncaught TypeError: Cannot read property 'bServerSide' of undefined Tapestry.Initializer.fnStandingRedrawhelpdesk.js:16 $.extend.inittapestry-jquery.js:32 jQuery.extend.eachjquery-1.6.2.js:655 $.extend.inittapestry-jquery.js:26 jQuery.extend.eachjquery-1.6.2.js:649 $.extend.inittapestry-jquery.js:18 (anonymous function)list:70 jQuery.extend._Deferred.deferred.resolveWithjquery-1.6.2.js:1008 jQuery.extend.readyjquery-1.6.2.js:436 DOMContentLoadedjquery-1.6.2.js:915 Any guidance would be most appreciated...Thanks in advance!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Calling-fnStandingRedraw-to-retain-the-current-pagination-settings-using-javaScriptSupport-addInitial-tp5615771p5615771.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
Tapestry 4 chrome support
Hello, Can anyone tell me if there are any Tapestry 4 issues with Chrome? Today, I viewed one of our Tapestry 4 applications in Chrome and it didn't render properly. Some of the forms and components created via Tapestry 4 wouldn't work correctly. I've going to investigate this further tomorrow, but I thought I'd run this past the forum in case anyone has seen similar issues and possibly shed some light on any problems Tapestry 4 may have with Chrome. -- Warmest Regards, Stephen Munro
Re: Dynamic CSS depending on URL
First of all thanks a lot for all your time and help Lance. I have used your example and worked perfect. I could use the mode to put the css dynamically as I wished. Thanks a lot. Now my problem is trying to use it in my web app. In tapestry 5.1.0.5 LinkImpl doesn't have getBasePath(), or copyWithBasePath(). You are using them in the ModeComponentEventLinkEncoder. I decided to replace the getBasePath() with toAbsoluteURI() and to create a private method to copy the link passing the link as an attribute but it is imposible to create an instance of LinkImpl from the link because I can't get the values of optimizable, linkforForm, response, optimizer from it. I don't know how to continue from here and if I can replace the basePath with the AbsoluteUri. :( Thanks. On Sat, Mar 31, 2012 at 9:43 AM, Lance Java wrote: > I've put together a little demo decorating the ComponentEventLinkEncoder > which I'm sure you could adapt to the deprecated URLRewriter if you prefer > it that way. I've done it in tapestry 5.3 but it could be packported to > tapestry 5.1.0.5 as is. > > I've setup three "special" prefixes for "foo", "bar" and "facebook" > > If you download it and mvn jetty:run then hit > http://localhost:8080/tapestry-sandbox/facebook/modepage1. You will see > that the "mode" environmental is set to "facebook". Click on either of the > links and you will be sent to > http://localhost:8080/tapestry-sandbox/facebook/modepage2< > http://localhost:8080/tapestry-sandbox/facebook/modepage1> > > Likewise, you can try > http://localhost:8080/tapestry-sandbox/foo/modepage1< > http://localhost:8080/tapestry-sandbox/facebook/modepage1> > (mode > = foo) > > Or > http://localhost:8080/tapestry-sandbox/modepage1< > http://localhost:8080/tapestry-sandbox/facebook/modepage1> > (mode > = null) > > > Code is here > https://github.com/uklance/tapestry-sandbox > > Interesting files here > > https://github.com/uklance/tapestry-sandbox/tree/master/src/main/java/com/github/uklance/extras > > > Cheers, > Lance. >
Re: Lightweight TapestryTools update site
Yep, thanks. On Tue, Apr 3, 2012 at 4:34 PM, Gavin Lei wrote: > Hi Igor, > > I think you mean "supporting Indigo and Juno" :-D > > 2012/4/3 Igor Drobiazko : > > @All: guys, please don't forget that this tool is built within a limited > > time frame of GSoC. In order to provide a kick-ass tool for the Tapestry > > community, Gavin needs to concentrate on a limited feature set. Of > course, > > it would be cool to cover older eclipse versions too, but Elipse June > will > > be released in June 2012. I'd rather concentrate on supporting Helios and > > Juno. > > > > On Tue, Apr 3, 2012 at 4:05 PM, Gavin Lei > wrote: > > > >> Hi Thiago, > >> > >> Yeah, we will focus on TapestryTools core features implementation > >> first. Support for past Eclipse version is in my plan, but low > >> priority, it depends on future users' demand and my free time > >> > >> 2012/4/3 Thiago H. de Paula Figueiredo : > >> > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei > > >> > wrote: > >> > > >> >> Hi Athneria, > >> > > >> > > >> > Hi, guys! > >> > > >> > > >> >> Thank you for your response. I just start my development job it in > >> Eclipse > >> >> Indigo, and does not test Eclipse 3.6 yet, this seems to be a > compatible > >> >> issue. We will try to cover > >> >> 3.6 in the future once we have a stable release, but currently you > >> should > >> >> better try it in Indigo instead. > >> > > >> > > >> > Gavin, my advice to you is to not spend any time trying to make your > >> project > >> > working in past versions of Eclipse. I don't think it's worth. > >> > > >> > -- > >> > 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 > >> > > >> > >> > >> > >> -- > >> - > >> Best Regards > >> Gavin Lei (雷银) > >> Email: gavingui2...@gmail.com > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > > > -- > > Best regards, > > > > Igor Drobiazko > > http://tapestry5.de > > http://twitter.com/drobiazko > > > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavingui2...@gmail.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Best regards, Igor Drobiazko http://tapestry5.de http://twitter.com/drobiazko
Re: Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)
Hmmm...never seen that DevelopmentModule before Thanks & Sorry! On 04/04/2012, at 12:33 AM, trsvax wrote: > It looks like you might be contributing > > "tapestry.production-mode", false > "tapestry.compress-whitespace", false > > in your AppModule and DevelopmentModule > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Broke-something-In-contributeApplicationDefaults-when-adding-tapestry5-jquery-jetty-run-tp5615255p5615332.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 > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: First Custom Component -> Confused; source = null, but values populated mysteriously
>> tapestry could benefit from a "rosetta stone" of the equivalent methods of >> doing the same thing. > > That's a good documentation suggestions . . . JIRA please? :) Usually, > Tapestry avoids to provide more than one way of doing the same thing. On the > other hand, sometimes the Tapestry flexibility and architecture ends up > providing alternatives. Created fool! (MR T reference of course) https://issues.apache.org/jira/browse/TAP5-1894
Re: Lightweight TapestryTools update site
Hi Igor, I think you mean "supporting Indigo and Juno" :-D 2012/4/3 Igor Drobiazko : > @All: guys, please don't forget that this tool is built within a limited > time frame of GSoC. In order to provide a kick-ass tool for the Tapestry > community, Gavin needs to concentrate on a limited feature set. Of course, > it would be cool to cover older eclipse versions too, but Elipse June will > be released in June 2012. I'd rather concentrate on supporting Helios and > Juno. > > On Tue, Apr 3, 2012 at 4:05 PM, Gavin Lei wrote: > >> Hi Thiago, >> >> Yeah, we will focus on TapestryTools core features implementation >> first. Support for past Eclipse version is in my plan, but low >> priority, it depends on future users' demand and my free time >> >> 2012/4/3 Thiago H. de Paula Figueiredo : >> > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei >> > wrote: >> > >> >> Hi Athneria, >> > >> > >> > Hi, guys! >> > >> > >> >> Thank you for your response. I just start my development job it in >> Eclipse >> >> Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible >> >> issue. We will try to cover >> >> 3.6 in the future once we have a stable release, but currently you >> should >> >> better try it in Indigo instead. >> > >> > >> > Gavin, my advice to you is to not spend any time trying to make your >> project >> > working in past versions of Eclipse. I don't think it's worth. >> > >> > -- >> > 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 >> > >> >> >> >> -- >> - >> Best Regards >> Gavin Lei (雷银) >> Email: gavingui2...@gmail.com >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > Best regards, > > Igor Drobiazko > http://tapestry5.de > http://twitter.com/drobiazko -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)
It looks like you might be contributing "tapestry.production-mode", false "tapestry.compress-whitespace", false in your AppModule and DevelopmentModule -- View this message in context: http://tapestry.1045711.n5.nabble.com/Broke-something-In-contributeApplicationDefaults-when-adding-tapestry5-jquery-jetty-run-tp5615255p5615332.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: Lightweight TapestryTools update site
@All: guys, please don't forget that this tool is built within a limited time frame of GSoC. In order to provide a kick-ass tool for the Tapestry community, Gavin needs to concentrate on a limited feature set. Of course, it would be cool to cover older eclipse versions too, but Elipse June will be released in June 2012. I'd rather concentrate on supporting Helios and Juno. On Tue, Apr 3, 2012 at 4:05 PM, Gavin Lei wrote: > Hi Thiago, > > Yeah, we will focus on TapestryTools core features implementation > first. Support for past Eclipse version is in my plan, but low > priority, it depends on future users' demand and my free time > > 2012/4/3 Thiago H. de Paula Figueiredo : > > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei > > wrote: > > > >> Hi Athneria, > > > > > > Hi, guys! > > > > > >> Thank you for your response. I just start my development job it in > Eclipse > >> Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible > >> issue. We will try to cover > >> 3.6 in the future once we have a stable release, but currently you > should > >> better try it in Indigo instead. > > > > > > Gavin, my advice to you is to not spend any time trying to make your > project > > working in past versions of Eclipse. I don't think it's worth. > > > > -- > > 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 > > > > > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavingui2...@gmail.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Best regards, Igor Drobiazko http://tapestry5.de http://twitter.com/drobiazko
Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)
Tapes-Try, I broke something. Prior to adding tapestry5-jquery to my pom as per the suggestions on the Usage tab @ http://tapestry5-jquery.com/ I had some contributeApplicationDefaults added. Namely: configuration.add("tapestry.production-mode", false); configuration.add("tapestry.compress-whitespace", false) ; The stack trace from jetty says at line 52 - which is the tapestry.production-mode symbol in appModule. If I comment out the above two lines and mvn clean jetty:run - it loads (but jquery doesn't seem to be working for now - increment via Ajax doesn't do it's normal thing) Has anyone seen this? [INFO] Starting jetty 6.1.16 ... 2012-04-04 00:01:04.846::INFO: jetty-6.1.16 2012-04-04 00:01:05.013::INFO: No Transaction manager found - if your webapp requires one, please configure one. [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.hibernate.HibernateModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.hibernate.HibernateCoreModule [INFO] ioc.RegistryBuilder Adding module definition for class org.got5.tapestry5.jquery.services.JQueryModule [INFO] ioc.RegistryBuilder Adding module definition for class org.got5.tapestry5.jquery.services.js.JSModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.json.services.JSONModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.upload.services.UploadModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.yuicompressor.services.YuiCompressorModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.TapestryModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.internal.services.InternalModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.assets.AssetsModule [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.services.pageload.PageLoadModule [INFO] ioc.RegistryBuilder Adding module definition for class org.opencsta.hibernatetesting.services.AppModule [INFO] ioc.RegistryBuilder Adding module definition for class org.opencsta.hibernatetesting.services.DevelopmentModule [ERROR] ioc.Registry Error invoking service contribution method org.opencsta.hibernatetesting.services.DevelopmentModule.contributeApplicationDefaults(MappedConfiguration): Service contribution (to service 'ApplicationDefaults') conflicts with existing contribution (by org.opencsta.hibernatetesting.services.AppModule.contributeApplicationDefaults(MappedConfiguration) (at AppModule.java:52)). [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Realizing service ServletApplicationInitializer [ERROR] ioc.Registry [ 2] Instantiating service ServletApplicationInitializer implementation via org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:1395) [ERROR] ioc.Registry [ 3] Constructing module class org.apache.tapestry5.services.TapestryModule [ERROR] ioc.Registry [ 4] Determining injection value for parameter #1 (org.apache.tapestry5.ioc.services.PipelineBuilder) [ERROR] ioc.Registry [ 5] Resolving object of type org.apache.tapestry5.ioc.services.PipelineBuilder using MasterObjectProvider [ERROR] ioc.Registry [ 6] Realizing service ServiceOverride [ERROR] ioc.Registry [ 7] Instantiating service ServiceOverride implementation via org.apache.tapestry5.ioc.internal.services.ServiceOverrideImpl(Map) (at ServiceOverrideImpl.java:31) via org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at TapestryIOCModule.java:49) [ERROR] ioc.Registry [ 8] Creating plan to instantiate org.apache.tapestry5.ioc.internal.services.ServiceOverrideImpl via public org.apache.tapestry5.ioc.internal.services.ServiceOverrideImpl(java.util.Map) [ERROR] ioc.Registry [ 9] Determining injection value for parameter #1 (java.util.Map) [ERROR] ioc.Registry [10] Collecting mapped configuration for service ServiceOverride [ERROR] ioc.Registry [11] Invoking org.apache.tapestry5.services.TapestryModule.productionModeOverrides(MappedConfiguration, boolean) (at TapestryModule.java:2871) [ERROR] ioc.Registry [12] Determining injection value for parameter #2 (boolean) [ERROR] ioc.Registry [13] Resolving object of type boolean using MasterObjectProvider [ERROR] ioc.Registry [14] Realizing service ApplicationDefaults [ERROR] ioc.Registry [15] Instantiating service ApplicationDefaults implementation via org.apache.tapestry5.ioc.internal.services.MapSymbolProvider(Map) (at MapSymbolProvider.java:30) via org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at TapestryIOCModule.java:49) [ERROR] ioc.Registry [16]
Re: Lightweight TapestryTools update site
Hi Thiago, Yeah, we will focus on TapestryTools core features implementation first. Support for past Eclipse version is in my plan, but low priority, it depends on future users' demand and my free time 2012/4/3 Thiago H. de Paula Figueiredo : > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei > wrote: > >> Hi Athneria, > > > Hi, guys! > > >> Thank you for your response. I just start my development job it in Eclipse >> Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible >> issue. We will try to cover >> 3.6 in the future once we have a stable release, but currently you should >> better try it in Indigo instead. > > > Gavin, my advice to you is to not spend any time trying to make your project > working in past versions of Eclipse. I don't think it's worth. > > -- > 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 > -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: First Custom Component -> Confused; source = null, but values populated mysteriously
On Tue, 03 Apr 2012 10:06:38 -0300, Chris Mylonas wrote: thanks again Mr T heheheh I don't look like him much, but I sometimes read some questions in this mailing lists (fortunately, just a few) and think "what's this jibber-jabber you're talking?", hehehe tapestry could benefit from a "rosetta stone" of the equivalent methods of doing the same thing. That's a good documentation suggestions . . . JIRA please? :) Usually, Tapestry avoids to provide more than one way of doing the same thing. On the other hand, sometimes the Tapestry flexibility and architecture ends up providing alternatives. i've spent a few hours today templating my first component with MarkupWriter.element()/end(), writeRaw() and .tml files. Each have their strengths. Yep. Templates are generally easier to read and write, but MarkupWriter is better when you have more complex logic and attributes that may or may not be added. In addition, MarkupWriter supports recursion (it's just Java code, after all), while templates don't. -- 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: Lightweight TapestryTools update site
Hi Chris, Thank you for your trial and response 在 2012年4月3日 下午8:40,Chris Mylonas 写道: > Gavin, > > Looking forward to more template editing now that I don't have to refer to > (or try to remember) all the available attributes! > I reckon I've referred to the Grid apidocs at least 2 dozen times in the last > 6 months. That is why we think auto-complete feature is really necessary :-) > > > Is #3 (Convenient switch) implemented yet? I haven't got a CMD-R feature or > the tapestry tools menu. > Looks like you've scheduled it in for Jun9-16 and called it change-over > function. I think Convenient Switch is a better way to refer to it. Yeah, it will absolutely come true. No matter what we call it, we can use CMD + R to switch between TML and Java file > > > All the features listed on the install guide page are working. > osx 10.6.8 > $ java -version > java version "1.6.0_24" > Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) > Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) > > Eclipse Java EE IDE for Web Developers. > > Version: Indigo Service Release 1 > Build id: 20110916-0149 > > > Keep up the great work! > > > On 03/04/2012, at 9:25 PM, Gavin Lei wrote: > >> This project in still in proposal prepare period and this is still a >> *trial* version for Eclipse Indigo. We will think about covering >> Helios in the future, thank you for your feedback, Lance :-) >> >> 在 2012年4月3日 下午7:17,Lance Java 写道: >>> Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. >>> I wasn't able to see any working features. >>> >>> On Tuesday, 3 April 2012, Gavin Lei wrote: Hi Lance, Cann't you see Tapestry component list at all ? Or some features work well, but in some special conditions, error occur? 在 2012年4月2日 下午7:37,Lance Java 写道: > Hi, code completion is not working for me. Details below > > Cheers, > Lance > > Unexpected runtime error while computing a text hover > > java.lang.ClassCastException: > org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to > org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode > > at > >>> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) > > at > >>> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) > > at > >>> org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) > > at > >>> org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) > > > > eclipse.buildId=M20100909-0800 > java.version=1.6.0_21 > java.vendor=Sun Microsystems Inc. > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB > Framework arguments: -product org.eclipse.epp.package.jee.product > Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 >>> -ws > win32 -arch x86 -product org.eclipse.epp.package.jee.product > > On Monday, 2 April 2012, Athneria, Mahendra > wrote: >> HI Gavin, >> >> >> >> I am using Eclipse Version=3.6.1 and installed the plugin. I am able to > see the tapestry logo with tml file name but when I tried to open the tml > page then it will give me below error. >> >> >> >> "An error has occurred. See error log for more details. >> >> > >>> org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" >> >> >> >> Do you have any idea about it? >> >> >> >> >> >> Regards, >> >> Mahendra Athneria >> >> >> >> Ext-+91 22 6733 3729 >> >> Mob-+91 9833 121 309 >> >> mahendra.athne...@atos.net >> >> >> >> >> >> -Original Message- >> From: Gavin Lei [mailto:gavingui2...@gmail.com] >> Sent: Sunday, April 01, 2012 8:28 PM >> To: Tapestry users >> Cc: Igor Drobiazko >> Subject: Lightweight TapestryTools update site >> >> >> >> Hi all, >> >> >> >> I have finished basic auto-complete feature for Eclipse XML editor >> >> based lightweight TapestryTools, and create update site for it. If you >> >> are interested, you can find its install guide here[1] (so easy to >> >> install, in fact) and have a trial of it. I will continue with its >> >> development job in the future, and will update current develop >> >> progress in this install guide wiki page. >> >> >> >> Meanwhile, i have submit my project proposal into Google melange >> >> system[2] as an Apache GSoC 2012 project this year, if you like my >> >> project, can leave comments for it. Thank you >> >> >> >> >> >> [1] > >>> http://code.go
Re: First Custom Component -> Confused; source = null, but values populated mysteriously
thanks again Mr T tapestry could benefit from a "rosetta stone" of the equivalent methods of doing the same thing. i've spent a few hours today templating my first component with MarkupWriter.element()/end(), writeRaw() and .tml files. Each have their strengths. In this case e.g. VM arguments -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false VS AppModule.contributeApplicationDefaults() configuration.add("tapestry.production-mode", false); configuration.add("tapestry.compress-whitespace", false) ; I guess more of the same from here http://tapestry.apache.org/configuration.html > On Tue, 03 Apr 2012 00:02:36 -0300, Chris Mylonas wrote: > >> That's awesome!!! Thanks a lot Thiago >> >> VM arguments for the unwashed are: >> -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false > > You can use contributeApplicationDefaults() in your AppModule instead if you > want. >
Re: Lightweight TapestryTools update site
+1 but i didn't want to say it :) I checked out that 3.5 (Galileo?) is still available for d/l and it was released in 2009 - so it looks like the product life-cycle is 3 years. Helios will be EOL in 15 months anyway. On 03/04/2012, at 10:57 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei wrote: > >> Hi Athneria, > > Hi, guys! > >> Thank you for your response. I just start my development job it in Eclipse >> Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible >> issue. We will try to cover >> 3.6 in the future once we have a stable release, but currently you should >> better try it in Indigo instead. > > Gavin, my advice to you is to not spend any time trying to make your project > working in past versions of Eclipse. I don't think it's worth. > > -- > 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 > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Lightweight TapestryTools update site
On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei wrote: Hi Athneria, Hi, guys! Thank you for your response. I just start my development job it in Eclipse Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible issue. We will try to cover 3.6 in the future once we have a stable release, but currently you should better try it in Indigo instead. Gavin, my advice to you is to not spend any time trying to make your project working in past versions of Eclipse. I don't think it's worth. -- 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: Lightweight TapestryTools update site
The unicorn icon in the editor pane is handy to differentiate between .java files and .tml files with late-night bleary eyes :) Can't wait for Convenient Switch On 03/04/2012, at 9:25 PM, Gavin Lei wrote: > This project in still in proposal prepare period and this is still a > *trial* version for Eclipse Indigo. We will think about covering > Helios in the future, thank you for your feedback, Lance :-) > > 在 2012年4月3日 下午7:17,Lance Java 写道: >> Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. >> I wasn't able to see any working features. >> >> On Tuesday, 3 April 2012, Gavin Lei wrote: >>> Hi Lance, >>> >>> Cann't you see Tapestry component list at all ? Or some features work >>> well, but in some special conditions, error occur? >>> >>> 在 2012年4月2日 下午7:37,Lance Java 写道: Hi, code completion is not working for me. Details below Cheers, Lance Unexpected runtime error while computing a text hover java.lang.ClassCastException: org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) at >> org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) at >> org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) eclipse.buildId=M20100909-0800 java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 >> -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product On Monday, 2 April 2012, Athneria, Mahendra wrote: > HI Gavin, > > > > I am using Eclipse Version=3.6.1 and installed the plugin. I am able to see the tapestry logo with tml file name but when I tried to open the tml page then it will give me below error. > > > > "An error has occurred. See error log for more details. > > >> org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" > > > > Do you have any idea about it? > > > > > > Regards, > > Mahendra Athneria > > > > Ext-+91 22 6733 3729 > > Mob-+91 9833 121 309 > > mahendra.athne...@atos.net > > > > > > -Original Message- > From: Gavin Lei [mailto:gavingui2...@gmail.com] > Sent: Sunday, April 01, 2012 8:28 PM > To: Tapestry users > Cc: Igor Drobiazko > Subject: Lightweight TapestryTools update site > > > > Hi all, > > > > I have finished basic auto-complete feature for Eclipse XML editor > > based lightweight TapestryTools, and create update site for it. If you > > are interested, you can find its install guide here[1] (so easy to > > install, in fact) and have a trial of it. I will continue with its > > development job in the future, and will update current develop > > progress in this install guide wiki page. > > > > Meanwhile, i have submit my project proposal into Google melange > > system[2] as an Apache GSoC 2012 project this year, if you like my > > project, can leave comments for it. Thank you > > > > > > [1] >> http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools > > [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 > > > > -- > > - > > Best Regards > > Gavin Lei (雷银) > > Email: > > > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavingui2...@gmail.com > > - > 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: Lightweight TapestryTools update site
Gavin, Looking forward to more template editing now that I don't have to refer to (or try to remember) all the available attributes! I reckon I've referred to the Grid apidocs at least 2 dozen times in the last 6 months. Is #3 (Convenient switch) implemented yet? I haven't got a CMD-R feature or the tapestry tools menu. Looks like you've scheduled it in for Jun9-16 and called it change-over function. I think Convenient Switch is a better way to refer to it. All the features listed on the install guide page are working. osx 10.6.8 $ java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149 Keep up the great work! On 03/04/2012, at 9:25 PM, Gavin Lei wrote: > This project in still in proposal prepare period and this is still a > *trial* version for Eclipse Indigo. We will think about covering > Helios in the future, thank you for your feedback, Lance :-) > > 在 2012年4月3日 下午7:17,Lance Java 写道: >> Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. >> I wasn't able to see any working features. >> >> On Tuesday, 3 April 2012, Gavin Lei wrote: >>> Hi Lance, >>> >>> Cann't you see Tapestry component list at all ? Or some features work >>> well, but in some special conditions, error occur? >>> >>> 在 2012年4月2日 下午7:37,Lance Java 写道: Hi, code completion is not working for me. Details below Cheers, Lance Unexpected runtime error while computing a text hover java.lang.ClassCastException: org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) at >> org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) at >> org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) eclipse.buildId=M20100909-0800 java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 >> -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product On Monday, 2 April 2012, Athneria, Mahendra wrote: > HI Gavin, > > > > I am using Eclipse Version=3.6.1 and installed the plugin. I am able to see the tapestry logo with tml file name but when I tried to open the tml page then it will give me below error. > > > > "An error has occurred. See error log for more details. > > >> org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" > > > > Do you have any idea about it? > > > > > > Regards, > > Mahendra Athneria > > > > Ext-+91 22 6733 3729 > > Mob-+91 9833 121 309 > > mahendra.athne...@atos.net > > > > > > -Original Message- > From: Gavin Lei [mailto:gavingui2...@gmail.com] > Sent: Sunday, April 01, 2012 8:28 PM > To: Tapestry users > Cc: Igor Drobiazko > Subject: Lightweight TapestryTools update site > > > > Hi all, > > > > I have finished basic auto-complete feature for Eclipse XML editor > > based lightweight TapestryTools, and create update site for it. If you > > are interested, you can find its install guide here[1] (so easy to > > install, in fact) and have a trial of it. I will continue with its > > development job in the future, and will update current develop > > progress in this install guide wiki page. > > > > Meanwhile, i have submit my project proposal into Google melange > > system[2] as an Apache GSoC 2012 project this year, if you like my > > project, can leave comments for it. Thank you > > > > > > [1] >> http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools > > [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 > > > > -- > > - > > Best Regards > > Gavin Lei (雷银) > > Email: > > > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavin
Re: First Custom Component -> Confused; source = null, but values populated mysteriously
On Tue, 03 Apr 2012 00:02:36 -0300, Chris Mylonas wrote: That's awesome!!! Thanks a lot Thiago VM arguments for the unwashed are: -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false You can use contributeApplicationDefaults() in your AppModule instead if you want. -- 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: Readable HTML output
Hi Thaigo, oh yeah good point. i associate firebug with css only really from my drupal days. i was going to get onto that next now that i've sorted out my asset:context:layout/images/email.png stuff. i have a several plugins in firefox for privacy and no tracking that most of the b.s. internet is broken with it - and with it, my train of thought - i hadn't even thought about firebug for html! Thanks - it led to a few good things brought up in the email-trail whilst you were away anyway. It can't all be efficient web-development ;) Cheers Chris On 03/04/2012, at 9:25 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 03 Apr 2012 06:23:28 -0300, Chris Mylonas wrote: > >> Hi Tap List, > > Hi! > >> I've got production mode set to false and the parts of the html document >> that I haven't created come out quite nicely. >> The parts I have rendered in my component (below) are coming out on one >> line. It's the eye-sore of the document!! > > Why don't you use some tool like Firebug (Firefox) or Dragonfly (Opera) or > the Chrome development tools? They provide a nice tree vie of the HTML (most > accurately, the client-side DOM) regardless of how the HTML is written. > > -- > 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: Readable HTML output
On Tue, 03 Apr 2012 06:23:28 -0300, Chris Mylonas wrote: Hi Tap List, Hi! I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. The parts I have rendered in my component (below) are coming out on one line. It's the eye-sore of the document!! Why don't you use some tool like Firebug (Firefox) or Dragonfly (Opera) or the Chrome development tools? They provide a nice tree vie of the HTML (most accurately, the client-side DOM) regardless of how the HTML is written. -- 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: Lightweight TapestryTools update site
This project in still in proposal prepare period and this is still a *trial* version for Eclipse Indigo. We will think about covering Helios in the future, thank you for your feedback, Lance :-) 在 2012年4月3日 下午7:17,Lance Java 写道: > Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. > I wasn't able to see any working features. > > On Tuesday, 3 April 2012, Gavin Lei wrote: >> Hi Lance, >> >> Cann't you see Tapestry component list at all ? Or some features work >> well, but in some special conditions, error occur? >> >> 在 2012年4月2日 下午7:37,Lance Java 写道: >>> Hi, code completion is not working for me. Details below >>> >>> Cheers, >>> Lance >>> >>> Unexpected runtime error while computing a text hover >>> >>> java.lang.ClassCastException: >>> org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to >>> org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode >>> >>> at >>> > org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) >>> >>> at >>> > org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) >>> >>> at >>> > org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) >>> >>> at >>> > org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) >>> >>> >>> >>> eclipse.buildId=M20100909-0800 >>> java.version=1.6.0_21 >>> java.vendor=Sun Microsystems Inc. >>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB >>> Framework arguments: -product org.eclipse.epp.package.jee.product >>> Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 > -ws >>> win32 -arch x86 -product org.eclipse.epp.package.jee.product >>> >>> On Monday, 2 April 2012, Athneria, Mahendra >>> wrote: HI Gavin, I am using Eclipse Version=3.6.1 and installed the plugin. I am able to >>> see the tapestry logo with tml file name but when I tried to open the tml >>> page then it will give me below error. "An error has occurred. See error log for more details. >>> > org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" Do you have any idea about it? Regards, Mahendra Athneria Ext-+91 22 6733 3729 Mob-+91 9833 121 309 mahendra.athne...@atos.net -Original Message- From: Gavin Lei [mailto:gavingui2...@gmail.com] Sent: Sunday, April 01, 2012 8:28 PM To: Tapestry users Cc: Igor Drobiazko Subject: Lightweight TapestryTools update site Hi all, I have finished basic auto-complete feature for Eclipse XML editor based lightweight TapestryTools, and create update site for it. If you are interested, you can find its install guide here[1] (so easy to install, in fact) and have a trial of it. I will continue with its development job in the future, and will update current develop progress in this install guide wiki page. Meanwhile, i have submit my project proposal into Google melange system[2] as an Apache GSoC 2012 project this year, if you like my project, can leave comments for it. Thank you [1] >>> > http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 -- - Best Regards Gavin Lei (雷银) Email: -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Lightweight TapestryTools update site
Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. I wasn't able to see any working features. On Tuesday, 3 April 2012, Gavin Lei wrote: > Hi Lance, > > Cann't you see Tapestry component list at all ? Or some features work > well, but in some special conditions, error occur? > > 在 2012年4月2日 下午7:37,Lance Java 写道: >> Hi, code completion is not working for me. Details below >> >> Cheers, >> Lance >> >> Unexpected runtime error while computing a text hover >> >> java.lang.ClassCastException: >> org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to >> org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode >> >> at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) >> >> at >> org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) >> >> at >> org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) >> >> at >> org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) >> >> >> >> eclipse.buildId=M20100909-0800 >> java.version=1.6.0_21 >> java.vendor=Sun Microsystems Inc. >> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB >> Framework arguments: -product org.eclipse.epp.package.jee.product >> Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 -ws >> win32 -arch x86 -product org.eclipse.epp.package.jee.product >> >> On Monday, 2 April 2012, Athneria, Mahendra >> wrote: >>> HI Gavin, >>> >>> >>> >>> I am using Eclipse Version=3.6.1 and installed the plugin. I am able to >> see the tapestry logo with tml file name but when I tried to open the tml >> page then it will give me below error. >>> >>> >>> >>> "An error has occurred. See error log for more details. >>> >>> >> org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" >>> >>> >>> >>> Do you have any idea about it? >>> >>> >>> >>> >>> >>> Regards, >>> >>> Mahendra Athneria >>> >>> >>> >>> Ext-+91 22 6733 3729 >>> >>> Mob-+91 9833 121 309 >>> >>> mahendra.athne...@atos.net >>> >>> >>> >>> >>> >>> -Original Message- >>> From: Gavin Lei [mailto:gavingui2...@gmail.com] >>> Sent: Sunday, April 01, 2012 8:28 PM >>> To: Tapestry users >>> Cc: Igor Drobiazko >>> Subject: Lightweight TapestryTools update site >>> >>> >>> >>> Hi all, >>> >>> >>> >>> I have finished basic auto-complete feature for Eclipse XML editor >>> >>> based lightweight TapestryTools, and create update site for it. If you >>> >>> are interested, you can find its install guide here[1] (so easy to >>> >>> install, in fact) and have a trial of it. I will continue with its >>> >>> development job in the future, and will update current develop >>> >>> progress in this install guide wiki page. >>> >>> >>> >>> Meanwhile, i have submit my project proposal into Google melange >>> >>> system[2] as an Apache GSoC 2012 project this year, if you like my >>> >>> project, can leave comments for it. Thank you >>> >>> >>> >>> >>> >>> [1] >> http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools >>> >>> [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 >>> >>> >>> >>> -- >>> >>> - >>> >>> Best Regards >>> >>> Gavin Lei (雷银) >>> >>> Email:
Re: Lightweight TapestryTools update site
FYI - (i have not tried the Lightweight TapestryTools update site) For anyone concerned, I have Indigo installed separately to whatever 3.6 was called (it has been a month or so already) and run-jetty-run and m2eclipse are working fine. Gavin I will give your stuff a shot tomorrow! Cheers Chris On 03/04/2012, at 9:02 PM, Gavin Lei wrote: > Hi Athneria, > > Thank you for your response. I just start my development job it in Eclipse > Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible > issue. We will try to cover > 3.6 in the future once we have a stable release, but currently you should > better try it in Indigo instead. > > 在 2012年4月2日 下午6:32,Athneria, Mahendra 写道: > >> HI Gavin, >> >> ** ** >> >> I am using Eclipse Version=3.6.1 and installed the plugin. I am able to >> see the tapestry logo with tml file name but when I tried to open the tml >> page then it will give me below error. >> >> ** ** >> >> "*An error has occurred. See error log for more details.* >> >> * >> org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V >> *" >> >> ** ** >> >> Do you have any idea about it? >> >> ** ** >> >> >> >> ** ** >> >> Regards, >> >> Mahendra Athneria >> >> ** ** >> >> Ext-+91 22 6733 3729 >> >> Mob-+91 9833 121 309 >> >> mahendra.athne...@atos.net >> >> ** ** >> >> ** ** >> >> -Original Message- >> From: Gavin Lei [mailto:gavingui2...@gmail.com] >> Sent: Sunday, April 01, 2012 8:28 PM >> To: Tapestry users >> Cc: Igor Drobiazko >> Subject: Lightweight TapestryTools update site >> >> ** ** >> >> Hi all, >> >> ** ** >> >> I have finished basic auto-complete feature for Eclipse XML editor >> >> based lightweight TapestryTools, and create update site for it. If you >> >> are interested, you can find its install guide here[1] (so easy to >> >> install, in fact) and have a trial of it. I will continue with its >> >> development job in the future, and will update current develop >> >> progress in this install guide wiki page. >> >> ** ** >> >> Meanwhile, i have submit my project proposal into Google melange >> >> system[2] as an Apache GSoC 2012 project this year, if you like my >> >> project, can leave comments for it. Thank you >> >> ** ** >> >> ** ** >> >> [1] >> http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools >> >> >> [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 >> >> ** ** >> >> -- >> >> - >> >> Best Regards >> >> Gavin Lei (雷银) >> >> Email: gavingui2...@gmail.com >> >> ** ** >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> ** ** >> >> ** ** >> -- >> This e-mail and the documents attached are confidential and intended >> solely for the addressee; it may also be privileged. If you receive this >> e-mail in error, please notify the sender immediately and destroy it. As >> its integrity cannot be secured on the Internet, the Atos group liability >> cannot be triggered for the message content. Although the sender endeavors >> to maintain a computer virus-free network, the sender does not warrant that >> this transmission is virus-free and will not be liable for any damages >> resulting from any virus transmitted. >> -- >> > > > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavingui2...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Hide/remove with hidden inputs in a beaneditor
> Lance! That worked perfectly :) Great > Mesa is a happy dev right now. Good to hear that jar-jar ;) If you'd like to add your mixin to every beaneditor without explicitely setting your mixin, checkout Taha's post http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ I should also give the tapestry XPath project a plug at this stage which can often improve readability / maintainability when manipulating the DOM http://tapestryxpath.sourceforge.net/
Re: Lightweight TapestryTools update site
Hi Lance, Cann't you see Tapestry component list at all ? Or some features work well, but in some special conditions, error occur? 在 2012年4月2日 下午7:37,Lance Java 写道: > Hi, code completion is not working for me. Details below > > Cheers, > Lance > > Unexpected runtime error while computing a text hover > > java.lang.ClassCastException: > org.eclipse.wst.xml.core.internal.document.ElementImpl cannot be cast to > org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode > > at > org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:80) > > at > org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257) > > at > org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo(BestMatchHover.java:98) > > at > org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168) > > > > eclipse.buildId=M20100909-0800 > java.version=1.6.0_21 > java.vendor=Sun Microsystems Inc. > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB > Framework arguments: -product org.eclipse.epp.package.jee.product > Command-line arguments: -data C:\misc\eclipse\workspace-neo -os win32 -ws > win32 -arch x86 -product org.eclipse.epp.package.jee.product > > On Monday, 2 April 2012, Athneria, Mahendra > wrote: >> HI Gavin, >> >> >> >> I am using Eclipse Version=3.6.1 and installed the plugin. I am able to > see the tapestry logo with tml file name but when I tried to open the tml > page then it will give me below error. >> >> >> >> "An error has occurred. See error log for more details. >> >> > org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V" >> >> >> >> Do you have any idea about it? >> >> >> >> >> >> Regards, >> >> Mahendra Athneria >> >> >> >> Ext-+91 22 6733 3729 >> >> Mob-+91 9833 121 309 >> >> mahendra.athne...@atos.net >> >> >> >> >> >> -Original Message- >> From: Gavin Lei [mailto:gavingui2...@gmail.com] >> Sent: Sunday, April 01, 2012 8:28 PM >> To: Tapestry users >> Cc: Igor Drobiazko >> Subject: Lightweight TapestryTools update site >> >> >> >> Hi all, >> >> >> >> I have finished basic auto-complete feature for Eclipse XML editor >> >> based lightweight TapestryTools, and create update site for it. If you >> >> are interested, you can find its install guide here[1] (so easy to >> >> install, in fact) and have a trial of it. I will continue with its >> >> development job in the future, and will update current develop >> >> progress in this install guide wiki page. >> >> >> >> Meanwhile, i have submit my project proposal into Google melange >> >> system[2] as an Apache GSoC 2012 project this year, if you like my >> >> project, can leave comments for it. Thank you >> >> >> >> >> >> [1] > http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools >> >> [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 >> >> >> >> -- >> >> - >> >> Best Regards >> >> Gavin Lei (雷银) >> >> Email: gavingui2...@gmail.com >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> >> >> >> >> This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Atos group liability > cannot be triggered for the message content. Although the sender endeavors > to maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. >> -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Lightweight TapestryTools update site
Hi Athneria, Thank you for your response. I just start my development job it in Eclipse Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible issue. We will try to cover 3.6 in the future once we have a stable release, but currently you should better try it in Indigo instead. 在 2012年4月2日 下午6:32,Athneria, Mahendra 写道: > HI Gavin, > > ** ** > > I am using Eclipse Version=3.6.1 and installed the plugin. I am able to > see the tapestry logo with tml file name but when I tried to open the tml > page then it will give me below error. > > ** ** > > "*An error has occurred. See error log for more details.* > > * > org.eclipse.wst.xml.ui.internal.contentassist.XMLStructuredContentAssistProcessor.setAutoActivationDelay(I)V > *" > > ** ** > > Do you have any idea about it? > > ** ** > > > > ** ** > > Regards, > > Mahendra Athneria > > ** ** > > Ext-+91 22 6733 3729 > > Mob-+91 9833 121 309 > > mahendra.athne...@atos.net > > ** ** > > ** ** > > -Original Message- > From: Gavin Lei [mailto:gavingui2...@gmail.com] > Sent: Sunday, April 01, 2012 8:28 PM > To: Tapestry users > Cc: Igor Drobiazko > Subject: Lightweight TapestryTools update site > > ** ** > > Hi all, > > ** ** > > I have finished basic auto-complete feature for Eclipse XML editor > > based lightweight TapestryTools, and create update site for it. If you > > are interested, you can find its install guide here[1] (so easy to > > install, in fact) and have a trial of it. I will continue with its > > development job in the future, and will update current develop > > progress in this install guide wiki page. > > ** ** > > Meanwhile, i have submit my project proposal into Google melange > > system[2] as an Apache GSoC 2012 project this year, if you like my > > project, can leave comments for it. Thank you > > ** ** > > ** ** > > [1] > http://code.google.com/p/tapestrytools/wiki/Install_Guide_Lightweight_TapestryTools > > > [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 > > ** ** > > -- > > - > > Best Regards > > Gavin Lei (雷银) > > Email: gavingui2...@gmail.com > > ** ** > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > ** ** > > ** ** > -- > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Atos group liability > cannot be triggered for the message content. Although the sender endeavors > to maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > -- > -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com
Re: Hide/remove with hidden inputs in a beaneditor
Lance! That worked perfectly :) Mesa is a happy dev right now. For those interested in the implementation of the solution: - Add the mixin to the beaneditor: - Add this java class to your mixins namespace: package yournamespace.mixins; import java.util.List; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.dom.Element; import org.apache.tapestry5.dom.Node; public class HideHidden { public void afterRender(MarkupWriter writer) { Element element = writer.getElement(); List children = element.getChildren(); for (Node rowNode : children) { Element row = (Element)rowNode; List rowChildren = row.getChildren(); if (rowChildren.size() == 1) { Element childElement = (Element)rowChildren.get(0); String tag = childElement.getName(); String type = childElement.getAttribute("type"); if ("input".equals(tag) && "hidden".equals(type)) row.addClassName("hidden-input"); } } } } - Add this CSS to whatever CSS file that's applicable div.t-beaneditor-row.hidden-input { display: none !important; } @trsvax: Ooo. that seems like a bit overkill for this task, but maybe useful for future tasks. Thank you for answerring. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hide-remove-div-class-t-beaneditor-row-with-hidden-inputs-in-a-beaneditor-tp5614469p5614810.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: Readable HTML output
I have not tried to use MarkupWriter to generate a CSV but I do return CSVs with StreamResponse. I usually use StreamReponse for XML also but sometimes it's more work than necessary. For example if you just want something like OK MarkupWriter is much easier than either StreamResponse or a .tml file. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Readable-HTML-output-tp5614619p5614765.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: Readable HTML output
Nope, it must be XML as MarkupWriter is backed by a DOM. Consider a tempting language such as Freemarker and a StreamResponse for non-XML text formats On Tuesday, 3 April 2012, Chris Mylonas wrote: > wow! coolso you could essentially respond with csv files as well? > > On 03/04/2012, at 8:11 PM, trsvax wrote: > >> It works fine for generating XML. I have many rest style web services that >> are really Tapestry pages, but I have not tried to put at >> the top of the document. I think that might be tricky but doable one way or >> another. >> >> -- >> View this message in context: http://tapestry.1045711.n5.nabble.com/Readable-HTML-output-tp5614619p5614703.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 >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Readable HTML output
I like the .tml approach better so far by a mile. I can see it easily and it's not too much brain work to get it onto "paper" so to speak. On 03/04/2012, at 8:12 PM, Lance Java wrote: > I would still use .tml to generate XML. Tapestry is tied to http, it is > implemented as a http request filter. > > The only way to use tapestry without http is using tapx-templating, even > then you would still probably choose .tml for generating XML > > On Tuesday, 3 April 2012, Chris Mylonas wrote: >> I guess the MarkupWriter comes in handy for generating XML documents as > well >> >> does tapestry allow the output of say, >> >> >> >> >> >> >> That would come in handy for submitting xml documents to other services > without HTTP. >> >> >> On 03/04/2012, at 7:54 PM, Lance Java wrote: >> >>> I always favour .tml for generating markup. >>> >>> The MarkupWriter gives you complete control but in this case, I think > that >>> .tml would suit your use case better >>> >>> On Tuesday, 3 April 2012, Lance Java wrote: This should work: private static final String NEWLINE = >>> System.getProperty("line.separator"); ... writer.element("div", "class", "userbackground"); writer.writeRaw(NEWLINE); writer.element("div","id",currentPhone.getNumber(), "class","user"); ... On Tuesday, 3 April 2012, Chris Mylonas wrote: > Hi Tap List, > > > I've got production mode set to false and the parts of the html > document >>> that I haven't created come out quite nicely. > The parts I have rendered in my component (below) are coming out on one >>> line. It's the eye-sore of the document!! > > How do I fix this? > > > I'm also wondering what the advantages are of using code to generate > the >>> html if I've already built the template in html? > This > > writer.element("div", "class", "userbackground"); > writer.element("div","id",currentPhone.getNumber(), >>> "class","user"); > writer.element("div","class","infoline1"); > writer.element("div","class","name"); > writer.write(currentPhone.getName() + " " + >>> currentPhone.getNumber()); > writer.end(); > writer.end(); > writer.element("div","class","infoline2"); > writer.element("div","class","voicemail"); > writer.element("img","src","email.png"); > writer.end(); > writer.end(); > writer.end(); > writer.element("div", "class","currentcall >>> currentcallplaceholder"); > writer.writeRaw(" "); > writer.end(); > writer.end(); > writer.end(); > writer.element("div","class","spacer"); > writer.end(); > > VS > this > > writer.writeRaw("" + > "" + > "" + > "" + > "" + currentPhone.getName() + " " + >>> currentPhone.getNumber() + "" + > "" + > "" + > " class=- >> 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: Readable HTML output
wow! coolso you could essentially respond with csv files as well? On 03/04/2012, at 8:11 PM, trsvax wrote: > It works fine for generating XML. I have many rest style web services that > are really Tapestry pages, but I have not tried to put at > the top of the document. I think that might be tricky but doable one way or > another. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Readable-HTML-output-tp5614619p5614703.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 > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Readable HTML output
I would still use .tml to generate XML. Tapestry is tied to http, it is implemented as a http request filter. The only way to use tapestry without http is using tapx-templating, even then you would still probably choose .tml for generating XML On Tuesday, 3 April 2012, Chris Mylonas wrote: > I guess the MarkupWriter comes in handy for generating XML documents as well > > does tapestry allow the output of say, > > > > > > > That would come in handy for submitting xml documents to other services without HTTP. > > > On 03/04/2012, at 7:54 PM, Lance Java wrote: > >> I always favour .tml for generating markup. >> >> The MarkupWriter gives you complete control but in this case, I think that >> .tml would suit your use case better >> >> On Tuesday, 3 April 2012, Lance Java wrote: >>> This should work: >>> >>> private static final String NEWLINE = >> System.getProperty("line.separator"); >>> ... >>> >>> writer.element("div", "class", "userbackground"); >>> writer.writeRaw(NEWLINE); >>> writer.element("div","id",currentPhone.getNumber(), "class","user"); >>> ... >>> >>> On Tuesday, 3 April 2012, Chris Mylonas wrote: Hi Tap List, I've got production mode set to false and the parts of the html document >> that I haven't created come out quite nicely. The parts I have rendered in my component (below) are coming out on one >> line. It's the eye-sore of the document!! How do I fix this? I'm also wondering what the advantages are of using code to generate the >> html if I've already built the template in html? This writer.element("div", "class", "userbackground"); writer.element("div","id",currentPhone.getNumber(), >> "class","user"); writer.element("div","class","infoline1"); writer.element("div","class","name"); writer.write(currentPhone.getName() + " " + >> currentPhone.getNumber()); writer.end(); writer.end(); writer.element("div","class","infoline2"); writer.element("div","class","voicemail"); writer.element("img","src","email.png"); writer.end(); writer.end(); writer.end(); writer.element("div", "class","currentcall >> currentcallplaceholder"); writer.writeRaw(" "); writer.end(); writer.end(); writer.end(); writer.element("div","class","spacer"); writer.end(); VS this writer.writeRaw("" + "" + "" + "" + "" + currentPhone.getName() + " " + >> currentPhone.getNumber() + "" + "" + "" + " To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Readable HTML output
It works fine for generating XML. I have many rest style web services that are really Tapestry pages, but I have not tried to put at the top of the document. I think that might be tricky but doable one way or another. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Readable-HTML-output-tp5614619p5614703.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: Readable HTML output
I guess the MarkupWriter comes in handy for generating XML documents as well does tapestry allow the output of say, That would come in handy for submitting xml documents to other services without HTTP. On 03/04/2012, at 7:54 PM, Lance Java wrote: > I always favour .tml for generating markup. > > The MarkupWriter gives you complete control but in this case, I think that > .tml would suit your use case better > > On Tuesday, 3 April 2012, Lance Java wrote: >> This should work: >> >> private static final String NEWLINE = > System.getProperty("line.separator"); >> ... >> >> writer.element("div", "class", "userbackground"); >> writer.writeRaw(NEWLINE); >> writer.element("div","id",currentPhone.getNumber(), "class","user"); >> ... >> >> On Tuesday, 3 April 2012, Chris Mylonas wrote: >>> Hi Tap List, >>> >>> >>> I've got production mode set to false and the parts of the html document > that I haven't created come out quite nicely. >>> The parts I have rendered in my component (below) are coming out on one > line. It's the eye-sore of the document!! >>> >>> How do I fix this? >>> >>> >>> I'm also wondering what the advantages are of using code to generate the > html if I've already built the template in html? >>> This >>> >>> writer.element("div", "class", "userbackground"); >>> writer.element("div","id",currentPhone.getNumber(), > "class","user"); >>> writer.element("div","class","infoline1"); >>> writer.element("div","class","name"); >>> writer.write(currentPhone.getName() + " " + > currentPhone.getNumber()); >>> writer.end(); >>> writer.end(); >>> writer.element("div","class","infoline2"); >>> writer.element("div","class","voicemail"); >>> writer.element("img","src","email.png"); >>> writer.end(); >>> writer.end(); >>> writer.end(); >>> writer.element("div", "class","currentcall > currentcallplaceholder"); >>> writer.writeRaw(" "); >>> writer.end(); >>> writer.end(); >>> writer.end(); >>> writer.element("div","class","spacer"); >>> writer.end(); >>> >>> VS >>> this >>> >>> writer.writeRaw("" + >>> "" + >>> "" + >>> "" + >>> "" + currentPhone.getName() + " " + > currentPhone.getNumber() + "" + >>> "" + >>> "" + >>> "" + >>> "" + >>> " " + >>> "" + >>> "" + >>> "" + >>> "" + >>> ""); >>> >>> >>> >>> It's just a copy paste, run over it with some backslashes where I need > to. >>> >>> Cheers >>> Chris - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Hide/remove with hidden inputs in a beaneditor
see https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/services/bootstrapprovider/FormProvider.java It contains a visitor that could be used by a mixin in cleanupRender. The visitor converts the BeanEditForm DOM to one that can be styled with Bootstrap CSS. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hide-remove-div-class-t-beaneditor-row-with-hidden-inputs-in-a-beaneditor-tp5614469p5614674.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: Readable HTML output
Hmmm .tml fragments for the components seems to be the way to go for me in this instance, I'll look further down this track. I've already knocked up most of the html/css/js from some prototyping the UI last year - I'd rather just keep it XML-like rather than do it in code for this particular task. Thanks for your suggestion - I saw it in jumpstart and thought it was Geoff's variable out of his utils package and didn't want to go down that alley :) Chris On 03/04/2012, at 7:34 PM, Lance Java wrote: > This should work: > > private static final String NEWLINE = System.getProperty("line.separator"); > ... > > writer.element("div", "class", "userbackground"); > writer.writeRaw(NEWLINE); > writer.element("div","id",currentPhone.getNumber(), "class","user"); > ... > > On Tuesday, 3 April 2012, Chris Mylonas wrote: >> Hi Tap List, >> >> >> I've got production mode set to false and the parts of the html document > that I haven't created come out quite nicely. >> The parts I have rendered in my component (below) are coming out on one > line. It's the eye-sore of the document!! >> >> How do I fix this? >> >> >> I'm also wondering what the advantages are of using code to generate the > html if I've already built the template in html? >> This >> >> writer.element("div", "class", "userbackground"); >> writer.element("div","id",currentPhone.getNumber(), > "class","user"); >> writer.element("div","class","infoline1"); >> writer.element("div","class","name"); >> writer.write(currentPhone.getName() + " " + > currentPhone.getNumber()); >> writer.end(); >> writer.end(); >> writer.element("div","class","infoline2"); >> writer.element("div","class","voicemail"); >> writer.element("img","src","email.png"); >> writer.end(); >> writer.end(); >> writer.end(); >> writer.element("div", "class","currentcall > currentcallplaceholder"); >> writer.writeRaw(" "); >> writer.end(); >> writer.end(); >> writer.end(); >> writer.element("div","class","spacer"); >> writer.end(); >> >> VS >> this >> >> writer.writeRaw("" + >> "" + >> "" + >> "" + >> "" + currentPhone.getName() + " " + > currentPhone.getNumber() + "" + >> "" + >> "" + >> "" + >> "" + >> " " + >> "" + >> "" + >> "" + >> "" + >> ""); >> >> >> >> It's just a copy paste, run over it with some backslashes where I need to. >> >> Cheers >> Chris - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Readable HTML output
I always favour .tml for generating markup. The MarkupWriter gives you complete control but in this case, I think that .tml would suit your use case better On Tuesday, 3 April 2012, Lance Java wrote: > This should work: > > private static final String NEWLINE = System.getProperty("line.separator"); > ... > > writer.element("div", "class", "userbackground"); > writer.writeRaw(NEWLINE); > writer.element("div","id",currentPhone.getNumber(), "class","user"); > ... > > On Tuesday, 3 April 2012, Chris Mylonas wrote: >> Hi Tap List, >> >> >> I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. >> The parts I have rendered in my component (below) are coming out on one line. It's the eye-sore of the document!! >> >> How do I fix this? >> >> >> I'm also wondering what the advantages are of using code to generate the html if I've already built the template in html? >> This >> >>writer.element("div", "class", "userbackground"); >>writer.element("div","id",currentPhone.getNumber(), "class","user"); >>writer.element("div","class","infoline1"); >>writer.element("div","class","name"); >>writer.write(currentPhone.getName() + " " + currentPhone.getNumber()); >>writer.end(); >>writer.end(); >>writer.element("div","class","infoline2"); >>writer.element("div","class","voicemail"); >>writer.element("img","src","email.png"); >>writer.end(); >>writer.end(); >>writer.end(); >>writer.element("div", "class","currentcall currentcallplaceholder"); >>writer.writeRaw(" "); >>writer.end(); >>writer.end(); >>writer.end(); >>writer.element("div","class","spacer"); >>writer.end(); >> >> VS >> this >> >>writer.writeRaw("" + >>"" + >> "" + >>"" + >>"" + currentPhone.getName() + " " + currentPhone.getNumber() + "" + >>"" + >>"" + >>"" + >>"" + >>" " + >>"" + >> "" + >> "" + >> "" + >> ""); >> >> >> >> It's just a copy paste, run over it with some backslashes where I need to. >> >> Cheers >> Chris
Re: Readable HTML output
Thanks Lance, but not quite what I'm after. It's only given new lines but no indentation (which I presume will disappear in production mode) It's made my code look a bit ugly. Maybe I should look at a .tml file set up. writer.element("div", "class", "userbackground"); writer.writeRaw(NEWLINE); writer.element("div","id",currentPhone.getNumber(), "class","user"); writer.writeRaw(NEWLINE); writer.element("div","class","infoline1"); writer.writeRaw(NEWLINE); writer.element("div","class","name"); writer.writeRaw(NEWLINE); writer.write(currentPhone.getName() + " " + currentPhone.getNumber()); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.element("div","class","infoline2"); writer.writeRaw(NEWLINE); writer.element("div","class","voicemail"); writer.writeRaw(NEWLINE); writer.element("img","src","email.png"); writer.end(); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.element("div", "class","currentcall currentcallplaceholder"); writer.writeRaw(" "); writer.end(); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.end(); writer.writeRaw(NEWLINE); writer.element("div","class","spacer"); writer.writeRaw(NEWLINE); writer.end(); Because I don't have the luxury of having a web designer pass me a template, what happens in this case. You're given a shit-hot template from the designer - you just put it into .tml fragments to go along with the component? On 03/04/2012, at 7:34 PM, Lance Java wrote: > This should work: > > private static final String NEWLINE = System.getProperty("line.separator"); > ... > > writer.element("div", "class", "userbackground"); > writer.writeRaw(NEWLINE); > writer.element("div","id",currentPhone.getNumber(), "class","user"); > ... > > On Tuesday, 3 April 2012, Chris Mylonas wrote: >> Hi Tap List, >> >> >> I've got production mode set to false and the parts of the html document > that I haven't created come out quite nicely. >> The parts I have rendered in my component (below) are coming out on one > line. It's the eye-sore of the document!! >> >> How do I fix this? >> >> >> I'm also wondering what the advantages are of using code to generate the > html if I've already built the template in html? >> This >> >> writer.element("div", "class", "userbackground"); >> writer.element("div","id",currentPhone.getNumber(), > "class","user"); >> writer.element("div","class","infoline1"); >> writer.element("div","class","name"); >> writer.write(currentPhone.getName() + " " + > currentPhone.getNumber()); >> writer.end(); >> writer.end(); >> writer.element("div","class","infoline2"); >> writer.element("div","class","voicemail"); >> writer.element("img","src","email.png"); >> writer.end(); >> writer.end(); >> writer.end(); >> writer.element("div", "class","currentcall > currentcallplaceholder"); >> writer.writeRaw(" "); >> writer.end(); >> writer.end(); >> writer.end(); >> writer.element("div","class","spacer"); >> writer.end(); >> >> VS >> this >> >> writer.writeRaw("" + >> "" + >> "" + >> "" + >> "" + currentPhone.getName() + " " + > currentPhone.getNumber() + "" + >> "" + >> "" + >> "" + >> "" + >> " " + >> "" + >> "" + >> "" + >> "" + >> ""); >> >> >> >> It's just a copy paste, run over it with some backslashes where I need to. >> >> Cheers >> Chris
Re: Readable HTML output
This should work: private static final String NEWLINE = System.getProperty("line.separator"); ... writer.element("div", "class", "userbackground"); writer.writeRaw(NEWLINE); writer.element("div","id",currentPhone.getNumber(), "class","user"); ... On Tuesday, 3 April 2012, Chris Mylonas wrote: > Hi Tap List, > > > I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. > The parts I have rendered in my component (below) are coming out on one line. It's the eye-sore of the document!! > > How do I fix this? > > > I'm also wondering what the advantages are of using code to generate the html if I've already built the template in html? > This > >writer.element("div", "class", "userbackground"); >writer.element("div","id",currentPhone.getNumber(), "class","user"); >writer.element("div","class","infoline1"); >writer.element("div","class","name"); >writer.write(currentPhone.getName() + " " + currentPhone.getNumber()); >writer.end(); >writer.end(); >writer.element("div","class","infoline2"); >writer.element("div","class","voicemail"); >writer.element("img","src","email.png"); >writer.end(); >writer.end(); >writer.end(); >writer.element("div", "class","currentcall currentcallplaceholder"); >writer.writeRaw(" "); >writer.end(); >writer.end(); >writer.end(); >writer.element("div","class","spacer"); >writer.end(); > > VS > this > >writer.writeRaw("" + >"" + > "" + >"" + >"" + currentPhone.getName() + " " + currentPhone.getNumber() + "" + >"" + >"" + >"" + >"" + >" " + >"" + > "" + > "" + > "" + > ""); > > > > It's just a copy paste, run over it with some backslashes where I need to. > > Cheers > Chris
Readable HTML output
Hi Tap List, I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. The parts I have rendered in my component (below) are coming out on one line. It's the eye-sore of the document!! How do I fix this? I'm also wondering what the advantages are of using code to generate the html if I've already built the template in html? This writer.element("div", "class", "userbackground"); writer.element("div","id",currentPhone.getNumber(), "class","user"); writer.element("div","class","infoline1"); writer.element("div","class","name"); writer.write(currentPhone.getName() + " " + currentPhone.getNumber()); writer.end(); writer.end(); writer.element("div","class","infoline2"); writer.element("div","class","voicemail"); writer.element("img","src","email.png"); writer.end(); writer.end(); writer.end(); writer.element("div", "class","currentcall currentcallplaceholder"); writer.writeRaw(" "); writer.end(); writer.end(); writer.end(); writer.element("div","class","spacer"); writer.end(); VS this writer.writeRaw("" + "" + "" + "" + "" + currentPhone.getName() + " " + currentPhone.getNumber() + "" + "" + "" + "" + "" + " " + "" + "" + "" + "" + ""); It's just a copy paste, run over it with some backslashes where I need to. Cheers Chris
Re: Problem setting request parameters using PageRenderLinkSource
No the url that comes out in the debug works perfectly fine. - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-setting-request-parameters-using-PageRenderLinkSource-tp5614443p5614551.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: Hide/remove with hidden inputs in a beaneditor
You could write a mixin to decorate the generated markup however you like by implementing afterRender(MarkupWriter writer) MarkupWriter has getElement() to get the current element and also getDocument() Cheers, Lance On Tuesday, 3 April 2012, pantera9 wrote: > Is there any way at all to hide the DIVs with class t-beaneditor-row that > only contains hidden input values? These rows are made by the excellent > beaneditor in tapestry. > > The problem is that we style the class t-beaneditor-row with some padding, > inline-block, width, etc. The rows with hidden fields will then look like > this: > > http://zipdot.net/shared/annoyance.png <-- prettyy, prettyy annoying. > > Possible solutions could be: > - Adding a class like this: . I > could then easily hide it with CSS. > - Hide it with JS after each ajax request (ff!) > - Make tapestry somehow _not_ wrap hidden fields with a class="t-beaneditor-row"> > - Change the class alltogether to 't-beaneditor-hidden' or something > similar. > > FYI: the form uses ajax. > > Field reordering is not a fix ;) > > Any pointers would be greatly appreciated :) ! > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Hide-remove-div-class-t-beaneditor-row-with-hidden-inputs-in-a-beaneditor-tp5614469p5614469.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: Problem setting request parameters using PageRenderLinkSource
out of curiosity, do you still get the exception when you put teh debug URL into your browser address bar? On 03/04/2012, at 5:34 PM, ksrijith wrote: > Hi, > I have a select component onchange of whose value I'm returning a PageLink > with request parameters. The id for the select component is "pcat". Please > find the method being called on change of the value. > > public Object onValueChangedFromPcat(ItemCategory pcat) { > this.pcat = pcat; > this.cat = null; > this.refreshModels(); > this.refreshCatModels(); > this.refreshGallarymodel(); >// Generating the Link > Link fwd = pageRenderLS.createPageRenderLink(ItemBrowse.class); >// Adding the request parameters > fwd.addParameterValue("pcat", this.pcat); > fwd.addParameterValue("cat", this.cat); > fwd.addParameterValue("coll", this.coll); >// Debug - clean up > log.debug("URL VALUE" + fwd.toAbsoluteURI()); > return fwd; > } > > On doing so the URL on the browser comes out as: > http://localhost:8080/km/store/itembrowse%3Fcat=$N&coll=$N&pcat=20120311143401335000 > > > On the other hand the debug message shows it as: > http://localhost:8080/km/store/itembrowse?cat=$N&coll=$N&pcat=20120311143401335000 > > > If you see closely instead of '?' the hex value of '%3F' is populated which > translates to '??' and I get an exception as: > java.lang.IllegalArgumentException > Input string 'itembrowse?cat=$N&coll=$N&pcat=20120311143401335000' is not > valid; the character '?' at position 11 is not valid. > > I haven't faced this issue when the url is generated using the t:pagelink > tag but only when using PareRenderLinkSource to generate the URL. > > Is this a Tapestry issue? Please do advice as to what could have caused this > to happen and if it could be resolved. > > Thanks and Regards, > Srijith > > - > -- > Don't Forget to Rate > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Problem-setting-request-parameters-using-PageRenderLinkSource-tp5614443p5614443.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 > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Hide/remove with hidden inputs in a beaneditor
Is there any way at all to hide the DIVs with class t-beaneditor-row that only contains hidden input values? These rows are made by the excellent beaneditor in tapestry. The problem is that we style the class t-beaneditor-row with some padding, inline-block, width, etc. The rows with hidden fields will then look like this: http://zipdot.net/shared/annoyance.png <-- prettyy, prettyy annoying. Possible solutions could be: - Adding a class like this: . I could then easily hide it with CSS. - Hide it with JS after each ajax request (ff!) - Make tapestry somehow _not_ wrap hidden fields with a - Change the class alltogether to 't-beaneditor-hidden' or something similar. FYI: the form uses ajax. Field reordering is not a fix ;) Any pointers would be greatly appreciated :) ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hide-remove-div-class-t-beaneditor-row-with-hidden-inputs-in-a-beaneditor-tp5614469p5614469.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
Problem setting request parameters using PageRenderLinkSource
Hi, I have a select component onchange of whose value I'm returning a PageLink with request parameters. The id for the select component is "pcat". Please find the method being called on change of the value. public Object onValueChangedFromPcat(ItemCategory pcat) { this.pcat = pcat; this.cat = null; this.refreshModels(); this.refreshCatModels(); this.refreshGallarymodel(); // Generating the Link Link fwd = pageRenderLS.createPageRenderLink(ItemBrowse.class); // Adding the request parameters fwd.addParameterValue("pcat", this.pcat); fwd.addParameterValue("cat", this.cat); fwd.addParameterValue("coll", this.coll); // Debug - clean up log.debug("URL VALUE" + fwd.toAbsoluteURI()); return fwd; } On doing so the URL on the browser comes out as: http://localhost:8080/km/store/itembrowse%3Fcat=$N&coll=$N&pcat=20120311143401335000 On the other hand the debug message shows it as: http://localhost:8080/km/store/itembrowse?cat=$N&coll=$N&pcat=20120311143401335000 If you see closely instead of '?' the hex value of '%3F' is populated which translates to '??' and I get an exception as: java.lang.IllegalArgumentException Input string 'itembrowse?cat=$N&coll=$N&pcat=20120311143401335000' is not valid; the character '?' at position 11 is not valid. I haven't faced this issue when the url is generated using the t:pagelink tag but only when using PareRenderLinkSource to generate the URL. Is this a Tapestry issue? Please do advice as to what could have caused this to happen and if it could be resolved. Thanks and Regards, Srijith - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-setting-request-parameters-using-PageRenderLinkSource-tp5614443p5614443.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