[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools.jsf] Re: Customize JSP tools in wpe palette

Hi Xino,

Extending the WPE they way you want should be achievable, although you will need to understand plugin development to do it.

The pagedesigner extension is the place to do most of what you want. The paletteFactory extension option would let you replace the palette with your own. There is also a way to modify what is dropped using metadata; look at jsf_html_pi.xml in org.eclipse.jst.jsf.standard.tagsupport, particularly the tag-create trait on certain tags like the dataTable. You can also customize what is dropped or created by implementing an elementEditFactory and returning your own implementation of the appropriate API.


Thanks,

Cameron


Xino wrote:

Hi all,

I want to develop a custom WYSIWYG jsp editor with my own tools in the palette.
The editor is very similar with the wpe jsp editor but i am not sure with the best way to implement the little differences between the wpe editor and mine.

I am a newbie in plugins development and i am not able to estimate the time needed do that.

Here are my questions to answer my customer. What is the best way to :

- Provide my own palette or simply complete the existing palette with my own tools ?

- Match those tools with exiting jsp tags or my own tags ?

- and finally,to change the behaviour of the dropped components (for example, i want to display a default string value in the text component since they are dropped into the wysiwig editor)


I have already check out the org.eclipse.jst.pagedesigner.pageDesignerExtension source code and it seems to be the solution but i am not sure of that.Maybye it exists a more straightforward solution.

Thank you for your answer.

RV