myfaces

t:dataScroller not working correctly on refresh

∥☆過路亽.° 提交于 2019-12-12 02:12:52
问题 I'm using t:dataScroller to scroll some data from a t:dataTable and it is working fine except for one thing: every time an action that causes the screen to be refreshed is triggered the t:dataScroller's index is set to 1. To be more clear: when i'm in the second page (index == 2) and a screen refreshing action triggers, after the refresh, the data of the dataTable is still from index 2 but the dataScroller shows that the page being displayed is the first one. I'm using the dataScroller this

Null pointer exception in FlashImpl.java in IBM JSF

烂漫一生 提交于 2019-12-11 23:12:00
问题 I am getting a null pointer exception sometimes in my web application, which runs in RAD 8.5 and WAS 8.5 . The exception is : An exception was thrown by one of the service methods of the servlet [Faces Servlet] in application [Gedit]. Exception created : [java.lang.NullPointerException at org.apache.myfaces.shared_impl.context.flash. FlashImpl.isKeepMessages(FlashImpl.java:367) at org.apache.myfaces.shared_impl.context.flash. FlashImpl._saveMess` I am not using myfaces , but the ibm faces .

MyFaces renderResponse - skip browser

给你一囗甜甜゛ 提交于 2019-12-11 17:31:11
问题 We are using MyFaces 1.1.1 My question is - Is it possible to skip the browser ( discard the rendered jsp) during renderResponse in jsf lifecycle and instead send an HttpRequest to simulate user clicking a button in the jsp at times(say based on some 'skip' variable) ? I am trying to see how if jsf lifecycle can somehow be changed to abandon rendering of the current page and instead simulate the click of a button on the current page. 来源: https://stackoverflow.com/questions/52647470/myfaces

ClassNotFoundException: ClassUtils when trying to use MyFaces 2.1.10 with IBM WebSphere 7.0

会有一股神秘感。 提交于 2019-12-11 12:40:14
问题 Because of PrimeFaces bug with p:messages I've tried to upgrade the MyFaces version used with IBM WebSphere 7.0 from 2.0.7 to 2.1.10. Unfortunatelly, the myfaces-impl jar I've downloaded from myFaces page does not contain many utility classes from package org/apache/myfaces/shared_impl/util/ that were in the version 2.0.7 that was already in the project. The whole stack trace is: java.lang.NoClassDefFoundError: org/apache/myfaces/shared_impl/util/ClassUtils at com.ibm.ws.jsf.config.annotation

com.sun.facelets.tag.jsf.core.CoreLibrary must be an instance of org.apache.myfaces.view.facelets.tag.TagLibrary Error

大兔子大兔子 提交于 2019-12-11 11:13:33
问题 I am using Myfaces 2.2.8 and Richfaces 4.5.x jar and tomcat 8. But when launch my url I am getting an error "java.lang.Exception: com.sun.facelets.tag.jsf.core.CoreLibrary must be an instance of org.apache.myfaces.view.facelets.tag.TagLibrary" My web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app

Is it possible to deploy JSF MyFaces 1.1.5 applications to TomEE

自闭症网瘾萝莉.ら 提交于 2019-12-11 09:24:08
问题 With Tomcat7 i can deploy several application with misced use of MyFaces 1.x / 2.x In TomEE i run to many exceptions if i deploy Applications with MyFaces 1.x, because tomee has builtin myfaces2 support.. Any ideas, is there a possibility to switch of modules like in jboss? 回答1: Should work fine. Just delete the myfaces-*.jars from <tomcat-home>/lib/ and then include the desired MyFaces jars in each webapp. 来源: https://stackoverflow.com/questions/13515424/is-it-possible-to-deploy-jsf-myfaces

Validating one form with multiple tabs, how to switch tabs without losing validation errors? Using Myfaces and Trinidad

丶灬走出姿态 提交于 2019-12-11 07:20:09
问题 I have 1 very long form that needs to be split into pieces, but it is submitted and validated as one. I have split it into tr:panelTabbed sections each of which displays a set of fields. The validation messages are displayed currectly in the first tab but if one of the other tabs is checked its' validation messages are not displayed. Tabbing back to the original, its' validation messages are also not displayed. Is there any way around this? It looks like the tab interface only generates 1 tab

ajax4jsf doubles <body> and <head> tags in modern browsers [duplicate]

丶灬走出姿态 提交于 2019-12-11 06:31:47
问题 This question already has an answer here : Why usage of any a4j element in jsf add to page code second body and head tags? (1 answer) Closed 3 months ago . I'm trying to fix an error with a web application, which uses JSF (myfaces 1.1), facelets, tomahawk and ajax4jsf. In modern browsers, like Firefox 12+ or Chrome, there are duplicated <body> and <head> tags (can be seen with FireBug). Obviously, it is generated by javascript, because the source of the pages does not have it. The problem

JSF Myfaces NullPointerException: serialFactory

ぃ、小莉子 提交于 2019-12-11 05:45:03
问题 Im a bit at my wits end here. Im getting the following in my logs when I try to render a JSF page: java.lang.NullPointerException: serialFactory at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:182) at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:149) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeViewStateField(HtmlResponseStateManager.java:104) at org.apache.myfaces.renderkit.html.HtmlResponseStateManager

ui:include in richfaces 4 only gets updated on second click

故事扮演 提交于 2019-12-11 05:15:12
问题 I am new to Richfaces4 and JSF2 and having lots of issues. Same code start to work suddenly and then it breaks. Currently I have a ui:include tag that update the page when the a4j:commandLink is clicked. Using debugging feature of eclipse I can see that the methods are being called and correct value is stored in the bean but page never gets updated until I click on it the second time. It seems the page is updated before the values are set in the backing bean. Following is my code. The same