Monday August 14, 2006
Using a jMaki Widget in a Phobos Application
Last week I blogged about how to use the new publish/subscribe mechanism in jMaki to handle an event of the jMaki fisheye widget. To demonstrate this, I created an application that uses the fisheye widget to display bios of some of Sun's engineers.
This week, I'll describe how I used the jMaki fisheye widget to implement the same use case in a Phobos application. You can find this example in the apps/bioFisheyeWidget directory of the
Phobos workspace.
The Phobos project is focussed on building a web application framework that allows you to develop your web applications with a scripting language. Just as you can add jMaki widgets to web applications built with JSP technology, you can add jMaki widgets to web applications built with Phobos.
Here again is a screenshot from the web application I described last week:
To implement this web application in Phobos, I performed these steps:
bioFisheyeWidget, located in the apps directory of your Phobos installation.
bioFisheyeWidget/static directory.
index.js in the bioFisheyeWidget/application/script directory. What this script does is it forwards to the controller, which handles the rendering of the view. Here is the index.js file:
library.httpserver.sendRedirect(library.httpserver.makeUrl("/fisheye"));
fisheye.js inside the bioFisheyeWidget/application/controller directory. It creates the Fisheye controller object, which renders the view. Here are the contents of fisheye.js:
library.common.define(controller, "fisheye", function() {
this.Fisheye = function() {
this.index = function() {
library.view.render("fisheye.ejs");
};
};
});
fisheye.ejs and added it to the bioFisheyeWidget/application/view directory. It is just like1 the JSP page from the application I blogged about last week, except for one thing: Instead of using the custom ajax tag, you need to call the jmaki.insert function provided by Phobos to add the widget to the page:
<% library.jmaki.insert({component: "dojo.fisheye", args:{items:[
{iconSrc:'JayashriVisvanathan.jpg',caption:'Jayashri', index:1},
{iconSrc:'chinnici.jpg',caption:'Roberto',index:2},
{iconSrc:'blog_murray.jpg',caption:'Greg',index:3}]}}); %>
</p>
</div>
1: There is one other difference between fisheye.ejs and the JSP page I described last week: In fisheye.ejs, I use double quotes around the response text and don't escape the single quotes. After you check out the example code, you can compare the JSP page with the view script.
Posted at 08:01PM Aug 14, 2006 by jenniferb in Sun | Comments[43]
Posted by Buy cialis. on April 15, 2007 at 08:16 PM PDT #
Research Paper
Posted by Research Papers on October 16, 2007 at 08:50 PM PDT #
Outsourcing
Posted by Outsourcing on October 16, 2007 at 08:52 PM PDT #
It is a very interesting fact...
Posted by Free essays on May 04, 2009 at 02:44 AM PDT #
FAF
Posted by 59.145.240.133 on May 23, 2009 at 08:35 AM PDT #
Thanks for tips, very usefull
Posted by buy essay on June 03, 2009 at 01:11 AM PDT #
Thats great that project is focussed on building a web application framework that allows you to develop your web applications with a scripting language.
Regards,
<a href="http://termpaperwriter.org">College Term Paper</a>
Posted by gatoo on June 11, 2009 at 05:10 AM PDT #
Custom essays
Posted by buy essay on June 23, 2009 at 02:05 AM PDT #
The cost of a paper is relatively cheap.
Depending on how much help you need. If you compare that to the value of a good job, it's not much.
Posted by writing service on June 23, 2009 at 02:06 AM PDT #
Buy resume
Posted by Buy resume on June 23, 2009 at 02:06 AM PDT #
Buy dissertation
Posted by Buy dissertation on June 23, 2009 at 02:07 AM PDT #
buy thesis
Posted by buy thesis on June 23, 2009 at 02:07 AM PDT #
It is a very questionable theme. Moreover,
as you want to learn something concerning jMaki Widge and order a good
paper about it, you have to visit http://primewritings.com and buy any essay.
Posted by Donnie on July 08, 2009 at 12:53 AM PDT #
Thats great that project is focussed on building a web application framework that allows you to develop your web applications with a scripting language.
Posted by buy term paper on July 14, 2009 at 03:39 AM PDT #
Students can order already written essays and <a href="http://www.supremeessays.com">buy essay paper </a> about Using a jMaki Widget in a Phobos Application, opting for the writing services.
Posted by buy essay papers on July 15, 2009 at 03:04 AM PDT #
It's not so easy to buy a professional already written essay, preferably if you are busy. I give advice you to <a href=" http://www.qualityessay.com">buy essay online</a> and to be free from scruple that your work will be done by paper writing service
Posted by 77.120.80.207 on July 15, 2009 at 09:58 AM PDT #
If you compare that to the value of a good job, it's not much.
Posted by club penguin cheats on July 16, 2009 at 05:51 PM PDT #
What about this research. I must say this topic is very interesting for writing a research paper.
Posted by Free Essay on July 24, 2009 at 01:19 AM PDT #
If you need more information about it simply order essay, term paper or research paper at custom writing service http://www.qualityessay.com is your best companion in saving your precious time and money in a wiser manner
Posted by briannew220 on July 29, 2009 at 06:06 AM PDT #
I suppose, this is the best text just about Using a jMaki Widget in a Phobos Application. One will <a href="http://www.supremeessays.com">buy custom essay </a> and buy a research paper at the writing service.
Posted by buy essays on August 03, 2009 at 02:01 AM PDT #
Great site. Thanks.
___
I am a medical student and love to travel. Check out these resources for info on my hopeful next trip!
<a href="http://www.eiffel-tower.us">Eiffel Tower</a> | <a href="http://www.eiffel-tower.us/Eiffel-Tower-Facts.html">Eiffel Tower Facts</a> | <a href="http://www.great-wall-of-china.org">Great Wall of China</a> | <a href="http://www.great-wall-of-china.org/Great-Wall-of-China-Facts.html">Great Wall of China Facts</a>
Posted by Eiffel Tower on August 06, 2009 at 06:45 AM PDT #
To see information about Using a jMaki Widget in a Phobos Application, you buy term paper or professays custom essay at the paper writing service. Moreover, the papers writing services furnish the persuasive essay writing about Using a jMaki Widget in a Phobos Application.
Posted by custom written essay on August 07, 2009 at 05:30 AM PDT #
Very captivating circumstance, but still this argument is to not an easy task to considerate.That is why we have managed to create a custom writing service to help hopeful students. They can buy college term paper at http://www.essaysprofessors.com that is custom and made by professional, buy persuasive essay at http://www.essaysprofessors.com or even buy written research paper at http://www.essaysprofessors.com. But when students use this kind of business – an ethical question is raised: Is it ok to use these kinds of services? Is it ok to use them, and will you be punished for using them.
Posted by Andrew Lukas on August 26, 2009 at 05:27 AM PDT #
Very captivating circumstance, but still this argument is to not an easy task to considerate.That is why we have managed to create a custom writing service to help hopeful students. They can buy college term paper at http://www.bankofwow.com
cheap wow gold online.
Posted by wow gold on August 29, 2009 at 04:24 AM PDT #
still this argument is to not an easy task to considerate.That is why we have managed to create a custom writing service to help hopeful students.
Posted by term paper on September 13, 2009 at 07:25 PM PDT #
well, I tried to use it myself, but nothing really happened... I think I messed up with creating a controller and view script.
Posted by Paul on September 17, 2009 at 12:05 PM PDT #
thanks for useful article about Phobos Application. regards
Posted by Custom written essays on September 24, 2009 at 02:53 AM PDT #
Excellent site. information can be taken for the dissertation
Posted by summary_essay on October 03, 2009 at 05:32 PM PDT #
If you compare that to the value of a good job, it's not much!
Posted by essays_in_english on October 04, 2009 at 04:31 PM PDT #
I found your website perfect for my needs. It contains wonderful and helpful posts. I have read most of them and got a lot from them. To me, you are doing the great work. Carry on this. work at home In the end, I would like to thank you for making such a nice website.
Posted by My IP address on October 05, 2009 at 07:56 PM PDT #
Thanks for help, you do a great job.
Posted by Thesis Writing on October 05, 2009 at 07:59 PM PDT #
That's nice post!
Posted by webpage screenshot on October 05, 2009 at 08:01 PM PDT #
Interesting article thanks for sharing this site stuff with me.
Posted by Content Writing on October 05, 2009 at 08:03 PM PDT #
Fantastic post. Bookmarked this site and emailed it to a few friends, your post was that great, keep it up.
Useful information for users of drupal.Thank you very much for this information.I like this site.
Posted by Custom Essays on October 05, 2009 at 08:09 PM PDT #
Yes! Last week I blogged about how to use the new publish/subscribe mechanism in jMaki
Posted by cialis on October 07, 2009 at 05:55 PM PDT #
I will check out Building a Phobos Distribution, if I'm ever working with jMaki and Phobos.
Posted by First Class Fashionista on October 12, 2009 at 07:28 PM PDT #
http://www.crazypurchase.com China Wholesale
Posted by buy on October 25, 2009 at 08:48 PM PDT #
Although the construction industry has seen numerous changes over the years,[url=http://www.ibay24.com]wow gold[/url]we
Posted by aion kinah on October 26, 2009 at 02:49 AM PDT #
still this argument is to not an easy task to considerate.That is why we have managed to create a custom writing service to help hopeful students.
Posted by sexy corsets on October 28, 2009 at 10:27 AM PDT #
Hi,
This is a new issue for me, but I must say that you have tried it well. Good work!
<a href="http://www.bizplancorner.com"> Business Plan Writers</a>
Posted by Business Plan Writing on November 12, 2009 at 04:10 AM PST #
I just found this post from the search engine, after a while reading from the top down, now I got new idea for my own blog. Thanks it becomes my inspiration.
Posted by buy essays on November 13, 2009 at 06:23 AM PST #
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here.
Posted by Essays on November 13, 2009 at 06:25 AM PST #
Well, I just found your blog unexpectedly from the search engine. First time I saw it, I know it's a very informative blog. I got so many something new from here. Good work and thanks for that!
Posted by College Paper on November 13, 2009 at 06:28 AM PST #