<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Martin,<br>
<br>
Thanks so much for your reply. Please see comments below.<br>
<br>
Regards,<br>
Olaitan .<br>
<br>
On 07/15/2010 09:11 AM, Martin Höller wrote:
<blockquote cite="mid:201007150812.00393.martin.hoeller@xss.co.at"
 type="cite">
  <pre wrap="">Hi!

Am Montag, 12. Juli 2010 12:03:42 schrieb Olaitan Olamilehin:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Everyone,

Any ideas on how to integrate JSF into OpenCMS so that .jsf files are
used as the view layer instead of .jsp template files?

I tried a small setup description on the OpenCMS wiki(
<a class="moz-txt-link-freetext" href="http://opencms-wiki.org/Java_Server_Faces_(JSF)">http://opencms-wiki.org/Java_Server_Faces_(JSF)</a>
<a class="moz-txt-link-rfc2396E" href="http://opencms-wiki.org/Java_Server_Faces_%28JSF%29"><http://opencms-wiki.org/Java_Server_Faces_%28JSF%29></a>) but I could not
get it to work. The jsf tags are not translated/transformed to html so
my test page is always blank and I dont get any errors in the logs.

Suggestions and tips are warmly welcome.
    </pre>
  </blockquote>
  <pre wrap="">
Disclaimer: I'm currently not using OpenCms, so my help will be very limited 
ATM.

It seems not many people are using OpenCms with JSF and Alcacon is not 
interested in it, which is disappointing, as JSP is a technology which is 
going to die (sooner or later).
  </pre>
</blockquote>
<b>I totally agree with you. It is really sad that OpenCms/Alkacon can
not see that jsp is getting outdated. Especially with the advent of
component based technologies and flexible AJAX frameworks out there. I
really hope they can re-consider using JSF as an alternative to JSP.</b><br>
<blockquote cite="mid:201007150812.00393.martin.hoeller@xss.co.at"
 type="cite">
  <pre wrap="">
However, the last time I used OpenCms with JSF it worked. All I had to do was 
doing all the configuration issues described on the mentioned wiki page. 
Note, that only JSF 1.1 is going to work, which is a  pretty outdated 
version! Which version are you using?
  </pre>
</blockquote>
<b>Actually am currently using the latest version of JSF which is
2.0.3. Maybe this is the problem, I will try out JSF 1.1 then( </b><font
 color="#990000">I hope I can still find it since it is really outdated
:-)</font> <b>). The only limitation I have now is that the UI
component library am using is Primefaces and it only supports JSF 1.2
and JSF 2.0 so maybe I would have to try out some other UI component
library. By the way, did you use any additional UI component library
similar to primefaces? and if you did, what </b><b>component </b><b>library
did you use?</b><br>
<blockquote cite="mid:201007150812.00393.martin.hoeller@xss.co.at"
 type="cite">
  <pre wrap="">
If JSF tags are not translated, it is a common mistake to forget to include 
accoring namespaces at the beginning of the page. Did you do this?
  </pre>
</blockquote>
<b>Yes I did include the required namespaces using </b><font
 color="#990000">@taglib</font><b> and I also tried using facelets
approach (i.e using .xhtml and including the namespaces as e.g </b>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="color: rgb(255, 0, 0); font-family: Consolas,'Courier New',Courier,mono,serif; font-size: 12px; line-height: 14px;">xmlns:h,
</span></span><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="color: rgb(255, 0, 0); font-family: Consolas,'Courier New',Courier,mono,serif; font-size: 12px; line-height: 14px;">xmlns:f</span></span><b>)
but still got a blank page with empty html source. Thanks once again
for your help. I will try JSF 1.1 and will let you know how it turns
out.</b> <br>
<blockquote cite="mid:201007150812.00393.martin.hoeller@xss.co.at"
 type="cite">
  <pre wrap="">
hth,
- martin
  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
</body>
</html>