myfaces

MyFaces and WebSphere Liberty Profile (ClassNotFoundException)

谁都会走 提交于 2019-12-11 04:14:11
问题 I've successfully deployed my app on WebSphere Liberty Profile (16.0.0.3), but when I try to use it, I get the following exception: java.lang.ClassNotFoundException: org.apache.myfaces.renderkit.html.HtmlFormRenderer at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibraryClassLoaders(AppClassLoader.java:488) at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:271) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at com.ibm.ws.classloading

How to group Radio Buttons in h:datatable jsf2.0

拈花ヽ惹草 提交于 2019-12-11 03:55:16
问题 I have a column of radio buttons in h:datatable in JSF2 but I can not find a way to group them. Meaning all of them can be selected at the same time where as whole point of radio button is so that only one can be selected at any given time. I am sure there will be standard way of doing it. I am using myfaces. Can use richfaces if really needed to. Can any one help with this. 回答1: When using standard JSF <h:selectOneRadio> component inside a <h:dataTable> you'll need to bring a shot of

MyFaces Tomahawk JSCookMenu - failure to navigate to page defined by action in faces-config

我们两清 提交于 2019-12-11 03:27:45
问题 This is my first attempt at using JSCookMenu and its homepage (http://jscook.yuanheng.org/JSCookMenu/) has been down for more than a week, so forgive me if the answer to my question should appear on there. I have a simple web app, stripped down in order to test JSCookMenu's action forwarding to a new JSF page. I have an admin page with a JSCookMenu (Apache MyFaces Tomahawk tags) with 2 menu items, 'Home Without AL' and 'Home With AL'. I expect that when I click on these menu items that I will

Installing Apache MyFaces 2 on WildFly 8.2.0

☆樱花仙子☆ 提交于 2019-12-11 02:57:55
问题 I want to add apache myfaces 2.2.7 in WildFly 8.2.0 and use it as default implementation. Can anybode please let me know where can I found installer jar for apache myfaces ? I am following the link https://developer.jboss.org/wiki/StepsToAddMyFacesSupportToWildFly to add MyFaces support to WildFly. As I understand correctly, I need to download install-myfaces-2.2.7.jar and then rename it to cli. But where can I find this jar ? I couldn't find the jar on nexus respository as mentioned in the

How can I update Websphere 7 to use EL2.2?

假如想象 提交于 2019-12-11 00:30:04
问题 This is what I have done: Following this post from Lincoln Baxter I downloaded el-api-2.2.jar and el-impl-2.2.jar Then created isolated shard library and added them there. We are using Myfaces so in web.xml added this bit <context-param> <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name> <param-value>com.sun.el.ExpressionFactoryImpl</param-value> </context-param> This is the issue: I do not think it getting picked up and application is still using one out the the box apache based.

Removing MyFaces Orchestra's “conversationContext” GET parameter from static resources (css, images)

徘徊边缘 提交于 2019-12-10 17:24:46
问题 MyFaces Orchestra adds a ?conversationContext=x to each resource on a page. Since I'm not using the conversation scope for the public part of my project (only for the admin part), I'd like to get rid of that parameter for two reasons: it breaks the browser caching of static resources it's ugly :) I'm now going to take a look at Orchestra's source-code, and perhaps bypass something, but it would be best if there is an option for this I'm unaware of 回答1: The answer to that question is simple,

Preserving JSF messages after a redirect

狂风中的少年 提交于 2019-12-10 13:39:43
问题 I have a JSF page (using MyFaces 2.0) that does a bit of data gathering the first time it is displayed. If it can't find some information, it is supposed to provide a message to that effect and redirect back to a different page. I've tried using the solution found here Preserving FacesMessage after redirect for presentation through <h:message> in JSF (setKeepMessages(true)) but the messages aren't displaying after the redirect. The only difference I can pick out is that I'm not using a

How to remove Orchestra converstation context parameter for static resources?

泪湿孤枕 提交于 2019-12-10 10:46:38
问题 To provide proper browser caching I want to get rid of the conversationContext parameter, that Apache MyFaces Orchestra adds to every request, for requests to css files. As Bozho suggested, I've implemented a filter that sets the attribute Orchestra is looking for. public class ResourceFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse theResponse, FilterChain theChain) throws IOException, ServletException { if(shouldNotAppendConversation(request

Icesfaces vs Myfaces vs Primefaces

北慕城南 提交于 2019-12-09 15:42:18
问题 I am starting out a new project that involves the use of JSF 2.0. From my initial reading, the Mojarra and Apache Implementation of the project covers the basic components that you will need. But I know that user's would seek gui with better presentation such as panel tab, accordion, slider etc... Currently, there are other implementation that I am seeing, the Primefaces, RichFaces and Icefaces. But I cant find a good article that discusses which among the three are the best. I have used

How to reference Facelets taglib in JAR from Facelets and web.xml?

偶尔善良 提交于 2019-12-09 12:11:37
问题 I am using the Apache MyFaces Commons Validator TagLib. How should i add this to my web.xml? The commons JAR is downloaded and resolved through Maven. XHTML (I think this is correct): <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.prime.com.tr/ui" **xmlns:mcv="http://myfaces.apache.org/commons/validators"**> web.xml: <context-param> <!-- To add additional tab libs --> <param-name>facelets