Hi Howard, I am happy that you finally commented here. I really appreciate it. Yes, I did some deep study today and I am able to resolve my problem :) Now, I am able to supply JSON data via Tapestry initializer mechanism and also view my tree diagram in the Tapestry page -- successfully.
Thanks to all for their help Thanks & Regards, Vivek -----Original Message----- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: Friday, April 04, 2014 9:48 PM To: Tapestry users Subject: Re: I am not able to call JSON file in my tapestry template file .. Native HTML standalone works finr in browsers .. http://catb.org/esr/faqs/smart-questions.html The problem(s) you are having is that you are treating Tapestry component templates and assets as if they are simple files. They are not. The URLs for accessing a page, and accessing an asset (such as the d3.js script and your JSON file) are different. Tapestry has the facilities to help you link these things together (with a lot of added benefits besides), but you haven't done the basic research on the web site, and you've also failed to engage the community of people who could help you in a way that gives any of them any incentive to provide assistance. On Thu, Apr 3, 2014 at 9:37 PM, Chris Mylonas <ch...@opencsta.org> wrote: > Vivek, > > Yes, linking to your plain HTML files hosted somewhere showing the example > and a snippet would get a less hostile response :) > > What Lenny suggested would help i.e. your workflow/troubleshooting. > > View Source from the browser and opening links from that source would give > you a 404 error, to which you could direct a more specific question. > > Good luck with your app! Hopefully thiago's response will get you going. > > Chris > On 04/04/2014 3:25 am, "Lenny Primak" <lpri...@hope.nyc.ny.us> wrote: > > > Well, then there is browser "View Source" or firebug that you can use. > > Again, out of scope of the tapestry mailing list. > > Tapestry is open source. Use the debugger to go through sources if you > > have to, > > (you don't really have to) but you need to be self-suficient if you can't > > produce > > a simple self-contained code that illustrates the problem. > > > > On Apr 3, 2014, at 12:21 PM, Chauhan, Vivek wrote: > > > > > Primak, > > > > > > The problem is that I do not get any error at all with the > > Tapestry page when it loads but I also cannot see my family tree diagram > > (which I am able to see separately running HTML in a browser) > > > Therefore, I cannot attach any error snippet > > > > > > Regards, > > > Vivek > > > > > > -----Original Message----- > > > From: Lenny Primak [mailto:lpri...@hope.nyc.ny.us] > > > Sent: Thursday, April 03, 2014 9:47 PM > > > To: Tapestry users > > > Subject: Re: I am not able to call JSON file in my tapestry template > > file .. Native HTML standalone works finr in browsers .. > > > > > > Vivek, > > > Tapestry forum (or any other forum) is not a free consulting / support > > forum. There is no such thing. > > > If you have a specific problem, you need to include simple snippet that > > illustrates it, > > > along with any error messages you received. > > > > > > Nobody on this forum is going to do the work that you should be doing > > yourself to isolate the problem that you are having. > > > You should do the work required to research and isolate the problem you > > may (or probably may not) have. > > > > > > On Apr 3, 2014, at 12:12 PM, Chauhan, Vivek wrote: > > > > > >> Hello Lance, > > >> > > >> As I mentioned, the 5 files are simply standalone HTML stuff > > (Tapestry not required). Have the 5 files together, and run HTML in any > > browser. > > >> Now, I want to run the HTML in my Tapestry project. > > >> For you to understand, just try to get the base HTML running in > > any of your own Tapestry project .. you can create your own Tapestry page > > .. try if you can do it .. > > >> In case, you can then please send me Tapestry page template along > > with page class. > > >> > > >> Regards, > > >> Vivek > > >> > > >> -----Original Message----- > > >> From: Lance Java [mailto:lance.j...@googlemail.com] > > >> Sent: Thursday, April 03, 2014 9:37 PM > > >> To: Tapestry users > > >> Subject: RE: I am not able to call JSON file in my tapestry template > > file .. Native HTML standalone works finr in browsers .. > > >> > > >> So you want me to download your files, convert it to a tapestry webapp > > and > > >> tell you what you were doing wrong. All without you telling me what > > error > > >> messages you are getting and what issues you've faced? > > >> > > >> Good luck with that! > > >> On 3 Apr 2014 16:46, "Chauhan, Vivek" <vivek.chau...@sap.com> wrote: > > >> > > >>> Hello Lance, > > >>> > > >>> It's not that cryptic. I send 5 files. Kindly copy those 5 > files > > >>> at one place and run the HTML. It will show you a family tree. > > >>> I want to do same via Tapestry page but not able to get the > > proper > > >>> .tml format and corresponding page class ... Below is my Tapestry > page > > : > > >>> > > >>> > > >>> > > > ------------------------------------------------------------------------------------------ > > >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " > > >>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > >>> <html t:type="layout" title="Family Tree" > > >>> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > > >>> xmlns:p="tapestry:parameter"> > > >>> > > >>> <head> > > >>> <title>Family Tree</title> > > >>> <meta http-equiv="content-type" content="text/html; > > >>> charset=utf-8"/> > > >>> <style type="text/css"> > > >>> <![CDATA[ > > >>> .node { > > >>> cursor: pointer; > > >>> } > > >>> > > >>> .overlay{ > > >>> background-color:#EEE; > > >>> } > > >>> > > >>> .node circle { > > >>> fill: #fff; > > >>> stroke: green; > > >>> stroke-width: 1.5px; > > >>> } > > >>> > > >>> .node text { > > >>> font-size:11px; > > >>> font-family:sans-serif; > > >>> } > > >>> > > >>> .link { > > >>> fill: none; > > >>> stroke: #ccc; > > >>> stroke-width: 1.5px; > > >>> } > > >>> > > >>> .templink { > > >>> fill: none; > > >>> stroke: red; > > >>> stroke-width: 3px; > > >>> } > > >>> > > >>> .ghostCircle.show{ > > >>> display:block; > > >>> } > > >>> > > >>> .ghostCircle, .activeDrag .ghostCircle{ > > >>> display: none; > > >>> } > > >>> ]]> > > >>> </style> > > >>> > > >>> <script src="jquery-1.10.2.min.js"></script> > > >>> <script type="text/javascript"> <![CDATA[ alert('Hello > > >>> Vivek1'); ]]> </script> > > >>> <script src="d3.v3.min.js"></script> > > >>> <script type="text/javascript"> <![CDATA[ alert('Hello > > >>> Vivek2'); ]]> </script> > > >>> <script src="dndTree.js"> </script> > > >>> <script type="text/javascript"> <![CDATA[ alert('Hello > > >>> Vivek3'); ]]> </script> > > >>> </head> > > >>> <body> > > >>> <p> Note: Welcome to our Family Tree. Our Grand-grand > > >>> fathers belong from Aaschaura Village, Post Bansdih and District - > > Ballia > > >>> (UP) India.</p> > > >>> <div id="tree-container"></div> > > >>> </body> > > >>> </html> > > >>> ---------------------------------------------------------------- > > >>> > > >>> But I do not the D3 javascript enabled family tree diagram. > > Kindly > > >>> assist. > > >>> > > >>> > > >>> Best Regards, > > >>> Vivek > > >>> > > >>> -----Original Message----- > > >>> From: Lance Java [mailto:lance.j...@googlemail.com] > > >>> Sent: Thursday, April 03, 2014 9:09 PM > > >>> To: Tapestry users > > >>> Subject: Re: I am not able to call JSON file in my tapestry template > > file > > >>> .. Native HTML standalone works finr in browsers .. > > >>> > > >>> Seriously?? You expect us to trawl through all code to find your > > problem? > > >>> If you post a few snippets of relevant code you are much more likely > > to get > > >>> an answer. > > >>> > > >>> --------------------------------------------------------------------- > > >>> 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 > > >> > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org