Netbeans预定义可视网页布局插件

来源:互联网 发布:买资料注册淘宝 编辑:程序博客网 时间:2024/05/16 02:03
 

Netbeans预定义可视网页布局插件

<script type="text/javascript"><!--google_ad_client = "pub-2332279788637932";//300x250, 创建于 07-12-5google_ad_slot = "9916274731";google_ad_width = 300;google_ad_height = 250;//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><iframe width="300" scrolling="no" height="250" frameborder="0" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-2332279788637932&amp;dt=1208099304765&amp;lmt=1208099304&amp;output=html&amp;slotname=9916274731&amp;correlator=1208099304765&amp;url=http%3A%2F%2Fwww.netbeans.com.cn%2Fread-htm-tid-157.html&amp;ref=http%3A%2F%2Fwww.netbeans.com.cn%2Fthread-htm-fid-8-search--orderway-lastpost-asc-DESC-page-1.html&amp;frm=0&amp;cc=100&amp;ga_vid=761570731.1207995379&amp;ga_sid=1208099139&amp;ga_hid=359777549&amp;ga_fc=true&amp;flash=9.0.124&amp;u_h=900&amp;u_w=1440&amp;u_ah=870&amp;u_aw=1440&amp;u_cd=32&amp;u_tz=480&amp;u_his=5&amp;u_java=true&amp;u_nplug=15&amp;u_nmime=50" name="google_ads_frame"></iframe>

One of the glaring gap in the Netbeans Visual Web Application development is lack of ability to create Pages using predefined Page Layouts. Currently Visual Web users create a Visual Web JSF page using New -> Visual JSF page. This creates the "boring" empty page with no page layouts. It is up to the users to create their page layouts. Users tend to create Page Layout using external tools like Dream Weaver and import them in to VW pages. Unfortunately, page layouts created using these external tools require lots of hand crafting to fit in the VW design paradigm. I was thinking, how nice it would be if Visual Web provides some predefined Page Layouts for the users to select when they create their pages. So I wrote this experimental module that allows you to select such predefined Page Layouts.

Disclaimer:This is not a Netbeans 6.0 release supported plugin. It did not go through any rigorous QA tests like other Netbeans 6.0 Visual Web plugins. So comes without out any warranty.

Steps to install the plugin and create page from Page Layout

  • Download and install Netbeans 6.0 Beta2 (Important: You need NB 6.0 Beta2 or later)

  • Download and install the plugin org-netbeans-modules-visualweb-woodstock-pagetemplates.nbm

  • Once you installed the plugin, it is easy to create a Visual Web Page with one of the predefined Page Layout. Create a Visual Web Application
    Install Page Layout Module

  • Next create a Visual Web Page using New -> Visual Web JSF Page as usual. You will notice that New wizard has one more panel. Page Layout creation wizard

  • Select a Page Layout and click finish. This creates the page with desired layout which can be edited in the designer later.
    Page with Page Layout in the designer

Note: As I mentioned earlier, this is an experimental module and the Page Layouts I've added are experimental too. If you think this module should be converted to an officially supported module, leave a comment to this blog or vote for the feature request at the issue #120748. My idea is to pick some layouts from Open Source Web Design and convert them as Visual Web Page Layouts and present them via the New Page Wizard. Here is an example (andreas01)

OSWD Page Layout

原创粉丝点击