-
1. Re: Is there any way to get dataTable with some default columns when we drag & drop Richfaces tag dataTable from Jboss tools palette to visual page editor?
dmaliarevich Oct 24, 2012 8:09 AM (in response to mushfik.mk)Mushfik Khan wrote:
Hi,
JBoss Tools eclipse plugin for JSF development provides visual page editor to visualize the component at design time. When we drag and drop any Richfaces component from Jboss Tools palette it appears in editor. When we drag and drop components like dataTabel, dataGrid etc without giving any property, it puts tag <rich:dataTabel> </rich:dataTabel> and it does not display any tabel in visual page editor since there is no default columns inside tag.
Is there any way (by extending any plugin provided by Jboss tools like org.jboss.tools.vpe) to get dataTabel with some default rows and column when we drag it from palette to visual page editor?
the only way to get dataTable with some default rows and column when we drag it from palette to visual page editor -- is to change source code in our plugins. I doubt that extending org.jboss.tools.vpe will help.
We want to support similar feature provided by Eclipse WTP, when we drag and drop dataTable into WTP editor, it includes some columns and headers by default, so that a complete tabel can be visualized.
We should distinguish between what you want: a) to extend VPE functionality or b) have the ability to drop the table with default columns. Please answer.
-
2. Re: Is there any way to get dataTable with some default columns when we drag & drop Richfaces tag dataTable from Jboss tools palette to visual page editor?
mushfik.mk Oct 24, 2012 8:58 AM (in response to dmaliarevich)Hi Denis,
Thanks for your reply. We wanted to have the ability to drop the table with default column. My concern is whether we can achive it in VPE (either by extending some plugin or by any other way). Please reply.
-
3. Re: Is there any way to get dataTable with some default columns when we drag & drop Richfaces tag dataTable from Jboss tools palette to visual page editor?
dmaliarevich Oct 24, 2012 11:48 AM (in response to mushfik.mk)There is similar question about extending dnd functionality: extending VPE (for MBean property) , where it is also said "Dnd to VPE does not provide an extension point." So you cannot change dnd behavior or the inserted html code from external. Simply because VPE do *NOT* have this functionality.
You can add a feature request to JBoss Jira for JBossTools project. At least you can ask for two solutions (or both):
1) about adding rich:column to generated rich:dataTable source code while inserting it from the Palette.
2) to allow customization of the elemnts in Palette.
-
4. Re: Is there any way to get dataTable with some default columns when we drag & drop Richfaces tag dataTable from Jboss tools palette to visual page editor?
maxandersen Nov 6, 2012 2:44 AM (in response to dmaliarevich)+1 for having a way to get default columns into rich:dataTable.
Just having <rich:dataTable> doesn't help users much - they could type that faster than dragging it.