I have created a simple JSF project in eclipse running on Tomcat, I tried including the Bootsfaces jar in /WEB-INF/lib and including the tags in my xhtml page (as shown in the Bootsfaces getting started page) ,but that does not seem to be work, I simply get the text without any styling.
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- h:selectOneMenu in p:dataTable doesn't submit
- PrimeFaces block UI does not work when the compone
- primefaces orderlist not getting updated with the
- JSF2 composite cc.attrs expression does not evalua
相关文章
- How to allow numbers only using f:validateRegex
- JSF 2.0: ajax request when press ENTER
- Formatting a double in JSF
- f:convertNumber on Double: ClassCastException
- SeamPhaseListener - Could not start transaction -
- How do I access EJB bean when inside a custom Conv
- Getting value from dynamically created inputText
- JSF 2.0 javascript onload/oncomplete
We've had a lot of trouble with this. I suspect it was the fault of the HeadRenderer in former BootsFaces versions. We've replaced the offending class by a different solution in BootsFaces 0.6.5.
If the problem still persists, try this:
<h:head></h:head>
tag (even if it's empty). Do not use the HTML tag (<head />
).<url-pattern>/pages/</url-pattern>
. Don't do that. There's nothing wrong with simple patterns like ```*.jsf. By the way, this is the default, so you can safely omit the url-pattern altogether.CombinedResourceHandler
of OmniFaces or theUnmappedResourceHandler
of BootsFaces. (As far as I know, that's almost the same implementation as its OmniFaces counterpart, so you can use the OmniFaces version as well - but I didn't test it).localhost:8080/index.xthml
instead oflocalhost:8080/index.jsf
?