facebook

How to drag a customize tag to JSP design pane?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #250471 Reply

    cartocar
    Member

    How to drag a customize tag(sush as pallete’s button) to JSP design pane?
    Now we can drag a text to JSP source pane to create a tag, but if drag the text to design pane, can’t create the tag, only treats the event data as text to desian pane.
    follows is code snippet
    viewer.addDragSupport(DND.DROP_COPY,
    new Transfer[] { TextTransfer.getInstance(), EditorInputTransfer.getInstance() },
    new DragSourceListener() {
    public void dragStart(DragSourceEvent event) {}

    public void dragSetData(DragSourceEvent event) {
    event.data = “<h:inputSecret value=\”dg\” rendered=\”true\” required=\”false\” redisplay=\”false\” />”;
    }

    public void dragFinished(DragSourceEvent event) {}
    });
    Whether or not I can get a basic class or interface of the event.data, and I implement it for my tag?
    thanks in advance!

    #250564

    Riyad Kalla
    Member

    Are you trying to develop a plugin that interfaces with the MyEclipse palette?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to drag a customize tag to JSP design pane?

You must be logged in to post in the forum log in