星期五, 五月 14, 2010

Click4nb 1.1.1 is available now

Click4nb 1.1.1 is available for downloading now. I have uploaded the file to Google Code and NetBeans Plugin center.

Get it and try.

This release does not provide more new features but an improvement for Page class hyperlink support( Issue 1 ).

Currently, click4nb works well on NetBeans 6.8.

I will move my development envoriment ot NetBeans 6.9 for the next version.
In the next version, I will try my best to implement the following features.
1. Add click 2.2 support (Cllick team has just release the first RC of Click 2.2), update the libary to Click 2.2 and improve the Content Assistance for 2.2.
2. Intergrate Cayenne Modeler into NetBeans IDE, add a action to open Cayenne file directly in NetBeans IDE.
3. Configuration for Cayenne ORM framework and Click intergration.

Feel free to submit your feedback by email( hantsy@tom.com ) or leave message on this blog, you can also report your bug in theissue tracker.

星期四, 三月 25, 2010

Click Plugin for NetBeans 1.1 is avai...

Click Plugin for NetBeans 1.1 is available now

Due to the shutdown of Kenai.com, I decided to move this project to Google Code.
You can access from the new host page.
http://code.google.com/p/click4nb/

Some features are provided in 1.1:
1. Click library update to 2.1 release.
2. You can customize a Click library, and create web project using your click library. see bug:NBX-1


3. CssImport and JsImport hyperlink support. see NBX-2


4. If more than one templates are mapped to one page class, it will popup a panel for you to select which file to open.


You can download it from NetBeans Plugin portal or Google Code.



星期三, 十月 21, 2009

Click for NetBeans plugin 1.0 is avai...

Click for NetBeans plugin 1.0 is available now.
I am very pleased to announce that the first version of Click for netBeans plugin is available now. You can get it from the Kenai.com or NetBeans plugin portal.

Click is a simple, but effective and component based web framework, it hosts on the Apache as a incubator project.

This plugin bring basic Click support for NetBeans IDE.
It includes the following features:
1、Project creation wizard.
2、Click Page creation wizard(the interface cloned clickide).
3、Provide basic error checkshyperlinkcode templatescode completionrefacotoring in click.xml file.
4、Also provide hyperlinkcode templatescode completion in menu component configuration file.
5、Switch between Page Template, Page Class , Page properties quickly。


This project is open source under GPL, it hosts on kenai.com.
Homepage:http://kenai.com/projects/nbx

User Forum:http://kenai.com/projects/nbx/forums/user-forum

Mail List:http://kenai.com/projects/nbx/lists

Bugzilla: http://kenai.com/bugzilla/buglist.cgi?product=nbx&order=Importance&limit=25

Svn Repository: http://kenai.com/projects/nbx/sources/subversion/show


Thank Rohan Ranade for helping me during the development progress.


Try it now.

星期三, 八月 26, 2009

NetBeans Struts2 plugin updates

NetBeans Struts 2 plugin updates

NetBeans Struts 2 plugin (http://nbstruts2support.dev.java.net)is not updated for a long time. I checkout the source code and made some modification to the latest NetBeans IDE 6.7.
1.Update Struts library to the latest stable version 2.1.6
2.Update to the latest web framework API。
3.Redesigned configuration panel and provide more flexible configuration options
4.Other modification to Struts 2.1.

Download here :https://dl.getdropbox.com/u/201666/nbstruts2.tar.bz2

Struts 2.1 provides next generation Filter to process request , and also provides a new optional Servlet .


If you like choose Struts Servlet to process request , you can check "Servlet"  radio box in the "Reuqest processed by" section in the "Main" tab.

This will generate some code like the following.



   <servlet>
        <servlet-name>struts2servlet</servlet-name>
        <servlet-class>org.apache.struts2.dispatcher.ng.servlet.StrutsServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>struts2servlet</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>


 
If you would like use Filter  to process request which is recommended by Struts , it will generate some code in web.xml.
 

    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

 

In the new Struts 2.1 , the StrutsPrepareAndExecuteFilter instead of DiispactherFilter. StrutsPrepareAndExecuteFilter has two variants, StrutsPrepareFilter and StrutsExecuteFilter. If you use other Filter together, especially the Sitemesh
Filter,StrutsPrepareFilter will do some clean action.

In the Plugin Support tab, there are some Struts2 plugin configuration are provided.
If you select Filter to process reqeust and use sitemesh filter at the same time.
It will generate the following code in web.xml for you.

  
    <filter>
        <filter-name>struts2prepare</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
    </filter>
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
    </filter>
    <filter>
        <filter-name>struts2execute</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2prepare</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>struts2execute</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

 



In the Main tab, provide a Development Mode checkbox . If you check it , it will add a constant to the struts configuration file. These options will benefit debuging struts2 application in the development phase.

  <constant name="struts.devMode" value="true"/>
  <constant name="struts.configuration.xml.reload" value="true"/>

 

If the Spring support checkbox is selected, it will add constant in the struts cofiguration.

  <constant name="struts.objectFactory" value="org.apache.struts2.spring.StrutsSpringObjectFactory"/>


Struts will use Spring as object factory to create Struts object, include Action , Interceptor etc.
Beside this , it will add some configuration in the web.xml. It also create a new empty Spring configuration file.

 <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>

<listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>


Convention puglin is a new plugin shipped with Struts 2.1, it adopt much concept from other plugin. Using this plugin , you can Java 5 annotation instead of xml configuration.

Convention has a optional parameter, You can input the actions package name , this will help struts at runtime to detect the Action class.
 
For Struts2 beginner, the best learning path may be learngin by example. If you select Create Example Application check box, it will create a simple example which is from the Strust source code.



星期四, 八月 13, 2009

Another NetBeans plugin updated - RichFaces


This a small personal update for  RichFaces plugin for NetBeans (http://nbrichfacessupport.dev.java.net) .
Modification includes:
1. Update richfaces to 3.3.1.GA.
2. Add skin selector to the configuration panel.


Then it will generate the following code in web.xml .




    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>
    <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>japanCherry</param-value>
    </context-param>
    <context-param>
        <param-name>org.richfaces.CONTROL_SKINNING</param-name>
        <param-value>enable</param-value>
    </context-param>


 
download here :RichFaces

星期三, 八月 12, 2009

I updated two NetBeans plugins

The first one is the Wicket 1.4 support for NetBeans (http://nbwicketsupport.dev.java.net).
I checked out nbwicketsupport (http://nbwicketsupport.dev.java.net) of
branch nb_67.

And made a slight modification on it for the Wicket 1.4 release version.

1. update wicket libaray to 1.4 release .

2. make wicket framework detect works.

3. update example (Login, Pizaa) application (Using filter instead of
servlet, remove jasypt lib dependency )




Some problem I encountered.

1. In a maven web project , add Wicket support causes NetBeans dead.
Kill and restart NetBeans, I found it configured correctly.

2. I tried to add some code to disable Wicket configuration and display
the configured information on the Framework panel ( in the Project
properties) after adding it to the Web project( Struts support use this
style). But I do not how to get the "HomePage" from project ( code about
it is commented).


The second is the Stripes plugin (http://code.google.com/p/stripes4netbeans/). Small modification includes:
1. Replace the configuration panel for essential configuration.
2. Add "ActionResolver.Packages" configuration.
3. make Stripes framework detect works.


I encountered the same problem in a maven web project described before.

These are not official updates.

Download: nbwicket.tar.bz2 stripes4netbeans

星期日, 五月 10, 2009

Meet FishCAT Member Hantsy Bai

Judy Tang, the Glassfish SQE manager ask me some question about Galssfish by email.
I expressed my thought about Glassfish and how to spread it in China community.
The link is here(http://blogs.sun.com/judy/entry/testing).