• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Is there any canvas like component in JSF?

Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I am newbie to JSF and RichFaces.

I need a canvas like component on which I can drag and drop some custom components from pallate.

I also need a good tutorial which can guide me to develop custom components.

Any help regarding this highly appreciated.
Saloon Keeper
Posts: 22483
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are mistaking a Canvas for a Container. A Canvas is a raw drawing surface that you use graphics primitives methods to render into. A Container can hold UI controls, and that often includes nested containers - some of which may even be canvases.

A Canvas is not possible on any web platform. The closest you can get is to draw into a graphics buffer and serve up its context in response to an HTML image request. Any UI controls would have to be superimposed on it using HTML CSS.

There are a number of Container controls in JSF, however, including the DataTable and panelGrid controls.

As far as drag-drop-and-drool UI interface design in JSF, Netbeans is supposed to have one, Oracle JDeveloper has one (but it's about like the old-time Mozilla page design tool), and IBM's RAD extensions to Eclipse are supposed to have one (although they cause IBM proprietary code to be inserted into the application).
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

Actually I want to implement a page in which I will have a pallete of custom components.
Now I want a page into which I can put this components absolutely wherever I want (movable) and link them through other components.
So I am browsing through web for it in JSF/RichFaces.

Not found anything useful yet.

Thanks for making me clear about canvas and container.
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic