Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Linking actions to buttons
Linking actions to buttons [message #475986] Mon, 07 July 2008 21:49 Go to next message
Quintin Beukes is currently offline Quintin BeukesFriend
Messages: 4
Registered: July 2009
Junior Member
Hey,

When editing JSF in netbeans it's much easier to create pages, manage
their classes and creating/editing actions.

You would for instance open faces-config.xml, add a new page (which opens
the JSP). Then you can create a button and simply double click on it. If
it's the first one it will create a new class file. If it doesn't already
exist, an action method will be created, otherwise you will simply be
taken to it.

Is there a way to do something similar in Eclipse?

Eclipse's JSF implementation has a lot of potential. It's the only reason
my company doesn't use Eclipse... it's JSF editor is very plain/weak
compared to that of Netbeans.

I would even be willing to aid in the development of these, as Eclipse is
THEE java editor on the market, and adding better support for JSF would
just make it more of THEE java editor.

Quintin
Re: Linking actions to buttons [message #475988 is a reply to message #475986] Tue, 08 July 2008 19:42 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Q Beukes wrote:

> Hey,

> Is there a way to do something similar in Eclipse?

You can create a new JSP page by right-clicking on the folder where you
want it and going to New->JSP in the Project Explorer (use the JavaEE
perspective). You can drag the page onto the Navigation editor canvas in
the faces-config editor. To drop a button on the JSP, open the file in
the Web Page Editor (may need to right-click the file and select Open
With.. if the WPE is not the default editor), select the button from the
pallette and drop it on the canvas. This may be an extra step or two but
it's basically the same.

> my company doesn't use Eclipse... it's JSF editor is very plain/weak
> compared to that of Netbeans.

Can you elaborate?

> I would even be willing to aid in the development of these, as Eclipse is

Great! We always welcome contributions. The best way to start is to
search on bugs.eclipse.org under the WTP->JavaServer Faces product to see
if the enhancements you want are already logged. If not, create new ones.
Once you have logged an enhancement bug, add a comment on the bug broadly
addressing how you want to solve it and we can start discussing how it
fits into our archtitecture and where in the code to start looking.


--Cam
Re: Linking actions to buttons [message #475989 is a reply to message #475986] Tue, 08 July 2008 19:49 Go to previous message
Raghu Srinivasan is currently offline Raghu SrinivasanFriend
Messages: 265
Registered: July 2009
Senior Member
Hi Quintin,

Thanks for your interest in the JSF Tools Project. All the features you
have requested are enhancements that we would very much like to add to the
project. We have enhancement requests for some of them in the bugzilla.
See,

>Navigation page of Faces Config. Editor should support adding new pages -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173731

>Faces-Config editor should allow New Class wizards -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=167194

We have not addressed these due to resource constraints. We are always on
the lookout for contribution from the community and we would very much
appreciate your contribution. You can see examples of past contributions
that we have included in the latest release in this page:
http://www.eclipse.org/webtools/releases/3.0.0/newandnotewor thy/jsf.php

The first step is to log enhancement requests in the bugzilla,
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces

You can them provide a patch implementing the feature. We also appreciate
any junit tests for the code contribution. We will review the
implementation, run it through an IP review and then integrate it to the
main code. Simple!

If you need any further clarification on this, please post to the
newsgroup. I am looking forward to your particiaption.

Thanks
Raghu Srinivasan
Project Lead - JSF Tools Project


Raghu Srinivasan,
Project Lead - JSF
Re: Linking actions to buttons [message #618311 is a reply to message #475986] Tue, 08 July 2008 19:42 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Q Beukes wrote:

> Hey,

> Is there a way to do something similar in Eclipse?

You can create a new JSP page by right-clicking on the folder where you
want it and going to New->JSP in the Project Explorer (use the JavaEE
perspective). You can drag the page onto the Navigation editor canvas in
the faces-config editor. To drop a button on the JSP, open the file in
the Web Page Editor (may need to right-click the file and select Open
With.. if the WPE is not the default editor), select the button from the
pallette and drop it on the canvas. This may be an extra step or two but
it's basically the same.

> my company doesn't use Eclipse... it's JSF editor is very plain/weak
> compared to that of Netbeans.

Can you elaborate?

> I would even be willing to aid in the development of these, as Eclipse is

Great! We always welcome contributions. The best way to start is to
search on bugs.eclipse.org under the WTP->JavaServer Faces product to see
if the enhancements you want are already logged. If not, create new ones.
Once you have logged an enhancement bug, add a comment on the bug broadly
addressing how you want to solve it and we can start discussing how it
fits into our archtitecture and where in the code to start looking.


--Cam
Re: Linking actions to buttons [message #618313 is a reply to message #475986] Tue, 08 July 2008 19:49 Go to previous message
Raghu Srinivasan is currently offline Raghu SrinivasanFriend
Messages: 265
Registered: July 2009
Senior Member
Hi Quintin,

Thanks for your interest in the JSF Tools Project. All the features you
have requested are enhancements that we would very much like to add to the
project. We have enhancement requests for some of them in the bugzilla.
See,

>Navigation page of Faces Config. Editor should support adding new pages -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173731

>Faces-Config editor should allow New Class wizards -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=167194

We have not addressed these due to resource constraints. We are always on
the lookout for contribution from the community and we would very much
appreciate your contribution. You can see examples of past contributions
that we have included in the latest release in this page:
http://www.eclipse.org/webtools/releases/3.0.0/newandnotewor thy/jsf.php

The first step is to log enhancement requests in the bugzilla,
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces

You can them provide a patch implementing the feature. We also appreciate
any junit tests for the code contribution. We will review the
implementation, run it through an IP review and then integrate it to the
main code. Simple!

If you need any further clarification on this, please post to the
newsgroup. I am looking forward to your particiaption.

Thanks
Raghu Srinivasan
Project Lead - JSF Tools Project


Raghu Srinivasan,
Project Lead - JSF
Previous Topic:Custom JSF Palettes
Next Topic:where can i get more info about the web editor extension
Goto Forum:
  


Current Time: Sat Apr 27 11:34:17 GMT 2024

Powered by FUDForum. Page generated in 0.04060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top