us site
developer center
search

Archive for the ‘Java’ Category

A Guide to Java MessageFormat (or, How I Learned to Stop Worrying and Love Macros)

Wednesday, December 10th, 2008

While working on an application for a client, I encountered some issues with Java’s MessageFormat. In particular, I needed to pass MessageFormat a string that contained single-quotes and curly braces that would be treated literally. This is an issue, because single-quotes and curly braces are special characters in MessageFormat land.

MessageFormat is designed to allow you to dynamically create a string based on a static pattern and a set of inputs. For example, this is from the MessageFormat JavaDoc:

 Object[] testArgs = {new Long(3), "MyDisk"};

 MessageFormat form = new MessageFormat(
     "The disk \"{1}\" contains {0} file(s).");

 System.out.println(form.format(testArgs));

 // output, with different testArgs
 output: The disk "MyDisk" contains 0 file(s).
 output: The disk "MyDisk" contains 1 file(s).
 output: The disk "MyDisk" contains 1,273 file(s).

(more…)

Tutorial: Hibernate, DWR and dojo.E

Monday, October 6th, 2008

I just presented a tutorial on Friday on using Direct Web Remoting, Hibernate and dojo.E.  It’s a very simple demo, but demonstrates the power of these three technologies combined to create simple, dynamic Java applications very quickly. The tutorial is available on SlideShare.

DWR, Hibernate and Dojo.E - A Tutorial

View SlideShare presentation or Upload your own. (tags: tutorials tutorial)

Note that there is a bug that obscures the URL for the SVN project.  The URL is http://source.nexaweb.com/svn/repos/trunk/tutorials/ajax/DWRExample/.

You can check out the project via SVN using this URL.

Also, to copy and paste the code snippets, download the document and open directly in PowerPoint. When copying and pasting, watch out for “smart quotes”. Some of the quotation characters in the PPT have been replaced with “smart quotes”, which are not recognized by XML parsers.

This will get even more exciting with the new features of DWR 3.0, which will add a RESTful layer to DWR’s remoting.  To learn more about DWR 3.0, I recommend Joe Walker’s presentation from The Ajax Experience last week.  He’s the lead developer for DWR.

Joel Barciauskas

Nexaweb’s IMB gets struck by a Comet

Saturday, August 16th, 2008

Just finished checking in the last of the updates (minus bug fixes) for the new Ajax IMB Client, after a week of straight coding and little else. The new version has been completely rewritten from the ground up. This coincides with Nexaweb’s upcoming release (in a month or so) of an updated version of the Ajax Client. The Ajax Client codebase will be completely updated and run over dojo 1.2. All the coding for these updates follow six principles:

(more…)

Interact with Ajax from Nexaweb’s Java Client

Tuesday, May 27th, 2008

One thing we preach at Nexaweb more than any other is that no one technology / language / runtime… can solve all your needs. As I like to say, “It takes a village” of software technologies to raise your application from an idea to a production application.

Last week one of our Services people came to me and asked, “How would you upload a file using the Nexaweb Java Client?” At first I thought just use the Java Client and open up a file dialog. Then I remembered that under normal circumstances Java creates a very secure environment to run your applications. This “Sandbox” makes it impossible for applications that are not signed to access local resources.

(more…)

Nexaweb Advance Getting Plenty of Attention

Tuesday, March 11th, 2008

Legacy applications are an even bigger headache than was originally thought. The announcement of Nexaweb Advance has generated huge attention in the media and has caused a 400% jump in traffic to www.nexaweb.com over a normal 5 day period. Check out some of the coverage below:

(more…)

Widget Wars vs. The Big Picture

Tuesday, March 4th, 2008

Just my thoughts from talking to people……

Widget Wars - Every time I talk with enterprise scale customers, they always seem to be mostly interested in the latest “sexy” or “fancy” widgets to address a specific item or customer request. They want to use open source libraries and find a clever way to make 46 different tool kits and frameworks all work together seamlessly to deliver a “unique rich user experience”.

(more…)

New version of Studio - beta available

Monday, March 3rd, 2008

We’ve been working hard on a new version of our development environment and we’re releasing a beta into the world.

Some highlights:

  1. Data, data, data - all work flows that interact with data integration have been overhauled
  2. Supporting users that have their own Eclipse environment and don’t want ours
  3. Editing our “macros” - declarative modification blocks that can be executed on the client
  4. Supporting JSON visualization for data sources
  5. Results from usability testing has been added in
  6. and more…

If you would like to take the beta for a spin, email our support department.

Rob Gagne

Overcoming client-side Java’s issues

Wednesday, January 30th, 2008

I have been with Nexaweb for 5 years now and have seen lots of movements in the RIA market. Back in the day (03) it was Nexaweb, Altio, Curl, and a handful of other players. Then came the Ajax Wildfire of ‘5 and focus shifted to leveraging open web technologies for application presentation. The benefit to the RIA market was that the focus was on the presentation; the problem was that it was focused on JavaScript. Need to have an Ajax offering to be in the conversation.

The RIA market now resembles a forest after a real wildfire, lots of small saplings and pretty flowers (AKA Open source projects and startups) but the strong sturdy trees that will sustain the ecosystem still haven’t emerged.

(more…)