Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » How to attach source of JSF implementation?
How to attach source of JSF implementation? [message #475405] Mon, 04 February 2008 17:05 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
The problem I'm having here probably isn't JSF-specific, but since I ran
into it with respect to the JSF implementation, perhaps someone here has
run into this.

I've created a dynamic web app, with JSF 1.2 as one of the facets. As a
result, the JSF implementation (Sun's) is not available as a normal User
Library. I guess it has to be this way in order for the JSF tooling to
work. The problem I'm having is that I want to debug something in the JSF
implementation by stepping through the code. Strangely, the IDE is
preventing me from attaching the source for the JSF implementation. I can
edit the source reference, but it doesn't get stored. When I click OK on
the dialog and then reenter project properties and look at it again, the
setting is empty again.

Similarly, if I try to view a particular class file from the
implementation and then click the "Attach Source" button and enter the
root of the JSF source tree, it doesn't do anything. It doesn't "fail",
it just has no effect.
Re: How to attach source of JSF implementation? [message #475531 is a reply to message #475405] Tue, 05 February 2008 05:29 Go to previous messageGo to next message
epson wang is currently offline epson wangFriend
Messages: 32
Registered: July 2009
Member
On Mon, 4 Feb 2008 17:05:58 +0000 (UTC), david.karr@wamu.net (David
Karr) wrote:

>The problem I'm having here probably isn't JSF-specific, but since I ran
>into it with respect to the JSF implementation, perhaps someone here has
>run into this.
>
>I've created a dynamic web app, with JSF 1.2 as one of the facets. As a
>result, the JSF implementation (Sun's) is not available as a normal User
>Library. I guess it has to be this way in order for the JSF tooling to
>work. The problem I'm having is that I want to debug something in the JSF
>implementation by stepping through the code. Strangely, the IDE is
>preventing me from attaching the source for the JSF implementation. I can
>edit the source reference, but it doesn't get stored. When I click OK on
>the dialog and then reenter project properties and look at it again, the
>setting is empty again.
>
>Similarly, if I try to view a particular class file from the
>implementation and then click the "Attach Source" button and enter the
>root of the JSF source tree, it doesn't do anything. It doesn't "fail",
>it just has no effect.
>


This is a problem about the wtp from the 2.0 maybe.
I solve this by using define a "User Library", It is work just like
the normal way.

define the user lib and add this library to your project.

I use this way a long time, it work fine, In the user library, you
can attach the javadoc and source, Work fine.
Hope can help you..

Regards
ginkgo
Re: How to attach source of JSF implementation? [message #475533 is a reply to message #475405] Tue, 05 February 2008 08:10 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I've created a dynamic web app, with JSF 1.2 as one of the facets. As a
> result, the JSF implementation (Sun's) is not available as a normal User
> Library. I guess it has to be this way in order for the JSF tooling to

Can you walk me through the "as a result" part? The JSF 1.2 facet should
not stop you from having anything that you want on your classpath. One
issue that arises with JSF 1.2 is that if you are using a JavaEE
container, then the JSF runtime is expected to be already there, so in the
JSF libraries setup you can select "Server Supplied JSF Implementation" to
indicate you don't want your own on the classpath. Then you need to be
sure that your target runtime container is on the classpath. You can do
this from the new project wizard or afterward by going to the Project
Properties menu and going to "Targeted Runtime". Your selected runtime
should show up in the Navigator (either right under the project in the
Package Explorer or under Java Resources/Libraries in the JavaEE Project
Explorer).

I know this doesn't address your source attachment problem, but hopefully
goes a little further toward explaining our intent. Note that in this
situation, JSF libraries are still useful (your source attachment bug not
withstanding) for deploying third-party components like Trinidad.


--Cameron
Re: How to attach source of JSF implementation? [message #475534 is a reply to message #475531] Tue, 05 February 2008 08:12 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> define the user lib and add this library to your project.

How do you get the library to deploy? Do you still need to check it for
deployment in the J2EE module dependency properties?
Re: How to attach source of JSF implementation? [message #475535 is a reply to message #475534] Tue, 05 February 2008 17:29 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Yes.
Re: How to attach source of JSF implementation? [message #617108 is a reply to message #475405] Tue, 05 February 2008 05:29 Go to previous message
epson wang is currently offline epson wangFriend
Messages: 32
Registered: July 2009
Member
On Mon, 4 Feb 2008 17:05:58 +0000 (UTC), david.karr@wamu.net (David
Karr) wrote:

>The problem I'm having here probably isn't JSF-specific, but since I ran
>into it with respect to the JSF implementation, perhaps someone here has
>run into this.
>
>I've created a dynamic web app, with JSF 1.2 as one of the facets. As a
>result, the JSF implementation (Sun's) is not available as a normal User
>Library. I guess it has to be this way in order for the JSF tooling to
>work. The problem I'm having is that I want to debug something in the JSF
>implementation by stepping through the code. Strangely, the IDE is
>preventing me from attaching the source for the JSF implementation. I can
>edit the source reference, but it doesn't get stored. When I click OK on
>the dialog and then reenter project properties and look at it again, the
>setting is empty again.
>
>Similarly, if I try to view a particular class file from the
>implementation and then click the "Attach Source" button and enter the
>root of the JSF source tree, it doesn't do anything. It doesn't "fail",
>it just has no effect.
>


This is a problem about the wtp from the 2.0 maybe.
I solve this by using define a "User Library", It is work just like
the normal way.

define the user lib and add this library to your project.

I use this way a long time, it work fine, In the user library, you
can attach the javadoc and source, Work fine.
Hope can help you..

Regards
ginkgo
Re: How to attach source of JSF implementation? [message #617112 is a reply to message #475405] Tue, 05 February 2008 08:10 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I've created a dynamic web app, with JSF 1.2 as one of the facets. As a
> result, the JSF implementation (Sun's) is not available as a normal User
> Library. I guess it has to be this way in order for the JSF tooling to

Can you walk me through the "as a result" part? The JSF 1.2 facet should
not stop you from having anything that you want on your classpath. One
issue that arises with JSF 1.2 is that if you are using a JavaEE
container, then the JSF runtime is expected to be already there, so in the
JSF libraries setup you can select "Server Supplied JSF Implementation" to
indicate you don't want your own on the classpath. Then you need to be
sure that your target runtime container is on the classpath. You can do
this from the new project wizard or afterward by going to the Project
Properties menu and going to "Targeted Runtime". Your selected runtime
should show up in the Navigator (either right under the project in the
Package Explorer or under Java Resources/Libraries in the JavaEE Project
Explorer).

I know this doesn't address your source attachment problem, but hopefully
goes a little further toward explaining our intent. Note that in this
situation, JSF libraries are still useful (your source attachment bug not
withstanding) for deploying third-party components like Trinidad.


--Cameron
Re: How to attach source of JSF implementation? [message #617114 is a reply to message #475531] Tue, 05 February 2008 08:12 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> define the user lib and add this library to your project.

How do you get the library to deploy? Do you still need to check it for
deployment in the J2EE module dependency properties?
Re: How to attach source of JSF implementation? [message #617116 is a reply to message #475534] Tue, 05 February 2008 17:29 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Yes.
Previous Topic:Re: JSF app no longer deploys class files
Next Topic:How to modify faces-config.xml programmatically?
Goto Forum:
  


Current Time: Thu Apr 18 13:29:31 GMT 2024

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

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

Back to the top