You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jochen Wuttke <wu...@lu.unisi.ch> on 2008/09/25 16:32:49 UTC

Where are the Core examples?

Hi,

I saw in the archive that this question has been asked about a year  
ago, but I couldn't find an answer to it:

Where are the examples? http://myfaces.apache.org/core12/gettingstarted.html 
  says they should be here http://myfaces.apache.org/download.html ,  
but they are not.

I tried to work around those missing examples by installing the SUN RI  
examples, in the way that is also discussed on the page. But those  
examples don't work unless I use Sun's implementation of JSF, which as  
I understand it is not what the "Getting started" page says.

Any help on how I get the examples that actually work with MyFaces?

Thanks,
Jochen

Re: Where are the Core examples?

Posted by Jochen Wuttke <wu...@lu.unisi.ch>.
On Sep 25, 2008, at 4:42 PM, Simon Kitching wrote:

Thanks for the fast response!

> Jochen Wuttke schrieb:
>> Hi,
>>
>>
> You can find the source code for the examples here:
>   http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/

Thanks, I'll check this out.

>
>>
>> I tried to work around those missing examples by installing the SUN  
>> RI
>> examples, in the way that is also discussed on the page. But those
>> examples don't work unless I use Sun's implementation of JSF, which  
>> as
>> I understand it is not what the "Getting started" page says.
> The sun examples will work with MyFaces. That's the whole point of  
> JSF.

I was expecting that, but since the instructions require me to copy  
some JARs from the MyFaces examples to WEB-INF/lib I could only guess  
which ones they are and copied all of the JARS in the MyFaces Core  
binary distribution.

Plus, the link to the adjusted web XML does not work. But I guess what  
needs to be adjusted are the classnames in the _demo applications_  
web.xml?

Jochen

Re: Where are the Core examples?

Posted by Simon Kitching <sk...@apache.org>.
Jochen Wuttke schrieb:
> Hi,
>
> I saw in the archive that this question has been asked about a year 
> ago, but I couldn't find an answer to it:
>
> Where are the examples? 
> http://myfaces.apache.org/core12/gettingstarted.html says they should 
> be here http://myfaces.apache.org/download.html , but they are not.

The myfaces nightly build system has not been working for a long time 
now. It's one of those things that never quite gets to the top of  the 
todo list for any of the busy myfaces developers.

You can find the source code for the examples here:
   http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/
>
> I tried to work around those missing examples by installing the SUN RI 
> examples, in the way that is also discussed on the page. But those 
> examples don't work unless I use Sun's implementation of JSF, which as 
> I understand it is not what the "Getting started" page says.
The sun examples will work with MyFaces. That's the whole point of JSF.

The sun jsf jars need to be removed and the myfaces jars used instead. 
And the web.xml may need to be adjusted. But nothing else should need to 
be changed.

Regards,
Simon