Posts

Showing posts from April, 2011

Blah-dee-dah

My previous excitement over the internet was short-lived, as my internet was out pretty much the entire weekend. I'm starting to think that Charter must have some kind of vendetta against me. But it's working now, and that's what counts. I've been listening to a lot of Peter Bjorn & John's "Gimme Some," Florence + the Machine "Lungs," and the Beatles "White Album." Not sure that that has a ton of relevance, but I like to share what I'm listening to. Not getting a ton of writing done yet. It's hard getting comfortable in the new house. I want to write but the space all feels wrong and incomplete. Plus, I'm not sleeping very well. I just toss and turn a lot. I had this bizarre dream that I cut up my favorite bra because I couldn't figure out how to take it off. And then I was really sad in the dream, because the bra was ruined, and I tried to put it back together with staples and duct tape. Nearly every day since we

Quick Note

Image
Moving is no fun. Whoever said it was is probably a crazy person. But the good news is - I have internet at the new house! Yay! I don't have a lot to say right now, but I just wanted to pop in and say hey. I should have a blog pretty soon with tons of information about stuff. But that's all I'm saying right now. But it's lots of good news. Oh, and I fixed the cover for the Trylle Trilogy...

Using dijit.TooltipDialog with Portlet Factory

Image
WPF contains many useful builders for dojo, but these represent only a subset of what is available from the dojo toolkit. I've recently done work with the dijit.TooltipDialog and was able to integrate with portlet factory without too much fuss. Retrieve a Page With Ajax Request The key to integrating the tooltip dialog with WPF is to leverage the href attribute available for the widget. This provides the widget with a mechanism to retrieve the HTML we'd like to display in the dialog, in our case we want the URL to a page. Here's the java that we can use to generate that URL (see this entry for more): JSPSupport.getActionURL(webAppAccess, webAppAccess.getBackchannelURLMapper(false), "keep_page:lm.page1") Now let's throw together some HTML for the page builder that will display the dialog: <html>     <head><title>Default Test Page</title></head>     <body>            <div id="tooltipDialog" dojoType="dijit.T

Adding Custom Snippets to the WPF Picker

Image
Like most websphere software, portlet factory is very customizable and contains several config files which enable the developer to do this. Right now I'm going to focus on the /WEB-INF/config/IndirectJavaExpressions.config file. Add Your Own Code I'm busy using dojo with WPF, and one of the things that I know will come up often is the ability to provide a URL to a model so it can display some HTML. I'll probably be using the reference chooser to this: Now I could just select the replace with java expression item and then type in my code, but that would get tedious and I like things that snap into place (like WPF builders). I can quickly leverage WPF customization by appending some resuable code to the IndirectJavaExpressions.config in my project: DsixE/AjaxPageURL=JSPSupport.getActionURL(webAppAccess, \ webAppAccess.getBackchannelURLMapper(false), "keep_page:yourPageHere") I save the file and go back to my model and now I see this: I can add any number of

Moving and Book Stuff

Image
My blogs are probably going to be sporadic for a bit. We're beginning the move into our new place this week, and that process is probably going to take over my life for a couple weeks. Plus, I need to finish polishing Lost Without You and get it ready for a May release. Every day it seems like there are a million things going on, although lately, it's just been my personal life that's hectic. My mom had a semi-emergency appendectomy last Tuesday. I say "semi-emergency" because it hadn't ruptured yet, but it probably would've in a day or two (I think). But she's doing great now, and she didn't even understand why anyone was worried about her having surgery because it was so minor. Plus, I'm going to a new dentist and trying to get that straightened out (ha! a pun!). I had a couple doctor appointments (routine check up stuff). But mostly I've been getting ready for a house. The most difficult thing has been getting a bed. I currently have a

Dynamically Changing dijit.TooltipDialog

Image
I've spent the last week trying to use dijit.TooltipDialog to display widgets programmatically, and although I've found many examples of how to do this, none really addressed my particular case. In this blog entry I will provide a working example of how to manipulate a TooltipDialog using code. Start Simple Let's just create a dialog with a textbox on it, along with a simple onclick trigger: <div onclick="showDialog()">clickme</div> <br> <br> <div id="dialogTarget">dialog appears here</div>  <script type="text/javascript"> dojo.require("dijit.form.TextBox"); dojo.require("dijit.TooltipDialog"); var dialog; dojo.addOnLoad(function(){ var tb = new dijit.form.TextBox({name:"tb1"}); dialog = new dijit.TooltipDialog({ content: tb, onBlur: function() { dijit.popup.close(dialog); } });

Loading Sametime Proxy Scripts

More useful insight on integrating sametime dojo widgets into a web application - this entry explains how scripts are loaded. Why can't I find these scripts? Inspecting the example HTML provided with the ST proxy, one can identify some scripts such as: <script type="text/javascript" src="http://<YourServer>:9081/stwebclient/dojo_1.2.3/dojo/dojo.js"></script> <script type="text/javascript" src="http://<YourServer>:9081/stbaseapi/baseComps.js"></script> <script type="text/javascript" src="http://<YourServer>:9081/stwebclient/livename.js"></script> but don't go looking for them in your filesystem because you won't find them. The HTTP requests are intercepted by a servlet that maps the filename in the URL to a physical filename in the stproxyweb.war . For example in the above case the request for livename.js is redirected to the physical file /dojo_1.2.3/sametime/L

My Really Long Review of Insidious

Image
I'm tired, and I'd like to go to bed, but Insidious traumatized me. Okay - I know what you're thinking. The first time I saw the trailer for Insidious , I thought, "That looks ridiculous and stupid. I don't want to see that." Then Roger Ebert told me it was quite good, and I thought, "Well... maybe." Me and Eric decided we wanted to go see a movie tonight, and the only two he wanted to see were Hop or Insidious. And I wasn't in the mood for Hop , so I chose Insidious . When we got to the theater, I saw it was PG-13, and I was like, "Oh no, this'll be crap." (Side note: Before Insidious , they had a trailer for Guillermo del Toro's latest production Don't Be Afraid of the Dark . It was the first time I'd seen the trailer in theaters, although I had seen it before, and that looks like it will be terrifying fun).  But let me tell you - it scared the hell out of me. I can honestly say I haven't been that scared during

Vegas

Image
Eric has been my friend for about ten years. In those ten years, I don't think I've ever gotten him a birthday gift. I've gotten him plenty of fabulous gifts for various occasions, but when it came to his birthday, I always seemed to be unnaturally broke by the time March 24th rolled around. So I decided to make it up to him this year, and I said that for his birthday, I would take him wherever he wanted to go. We've been discussing it for some time, but by January of this year, he'd had it set to go to Vegas for his 25th birthday. We invited a couple other friends that we don't see very often, and we left for Vegas on Thursday. We had fun. Nothing too exciting happened, but a good time was had by all. Other than a few mishaps (like the ceiling in our hotel room at the Palms leaking water on us and a cab driver attempting to murder us with his driving), it was fun. Me and Eric in front of the Bellagio the day we go to Vegas Here are some of the highlights: -The