JSF with PrimeFaces support

16 views
Skip to first unread message

Raymond J Steele

unread,
Sep 30, 2016, 3:34:38 PM9/30/16
to ozoneplatform-users
How can I load a JSF 2.2 application that uses PrimeFaces into a widget using OWF 7.17 ? I've configured the widget to point to the index.xhtml page, but it is not displaying the content because the source is unconverted JSF tags and not the raw HTML.


Thanks!

Raymond J Steele

unread,
Sep 30, 2016, 3:40:52 PM9/30/16
to ozoneplatform-users
I changed the URL path in the widget configuration to point the the top level directory instead of the index.html page. the page appears, but many of the html components are not displaying correctly.

Raymond J Steele

unread,
Sep 30, 2016, 4:40:36 PM9/30/16
to ozoneplatform-users
None of the components that are associated with a managed bean are displaying. Why?


On Friday, September 30, 2016 at 1:34:38 PM UTC-6, Raymond J Steele wrote:

Ross Pokorny

unread,
Oct 3, 2016, 7:55:51 AM10/3/16
to ozoneplat...@googlegroups.com
Raymond

The URL to use as the launch URL in OWF would be the same URL that you would
use to load the page standalone in a separate browser tab. Are you able to
open a new tab and use some URL to load your widget successfully as a normal
web page? If so, use that URL in OWF.

Ross Pokorny

Raymond J Steele

unread,
Oct 3, 2016, 12:07:26 PM10/3/16
to ozoneplat...@googlegroups.com
Thanks Ross. I was able to get  the page to display. However, my JSF components must not be going through the servlet when use Tomcat because they are not displaying on the page. They are displaying if I use glassfish, though.

--
You received this message because you are subscribed to a topic in the Google Groups "ozoneplatform-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ozoneplatform-users/F3d33sCzKvU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ozoneplatform-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ross Pokorny

unread,
Oct 3, 2016, 12:16:44 PM10/3/16
to ozoneplat...@googlegroups.com
I am guessing you have attempted to install your JSF webapp into the same
Tomcat in which OWF is running? Be aware that that is not necessary. Widgets
can be served from other servers and even other domains. Feel free to use
Glassfish to serve your widgets.

If you do specifically want to use JSF in Tomcat, I don't think that is
something that Tomcat supports out of the box. You would likely need to do
some research to figure out what jars and configurations to add in order to
make that work.

Ross Pokorny

Raymond J Steele

unread,
Oct 3, 2016, 12:21:35 PM10/3/16
to ozoneplat...@googlegroups.com
Fantastic, thanks for the quick response!

Raymond J Steele

unread,
Oct 3, 2016, 3:15:11 PM10/3/16
to ozoneplat...@googlegroups.com
I have the JSF app running in glassfish, I am able to hit the localhost URL outside of OWF, but when I add that same URL to the widget, I receive an empty (white) browser page. 

Ross Pokorny

unread,
Oct 3, 2016, 3:19:03 PM10/3/16
to ozoneplat...@googlegroups.com
Do your browser's development tools report any errors?

Ross

Raymond J Steele

unread,
Oct 3, 2016, 5:19:05 PM10/3/16
to ozoneplat...@googlegroups.com
Ross. thanks for your help.I switched the URL to the secure https address and now it is showing up in the app component.
Reply all
Reply to author
Forward
0 new messages