jsf-2.2

Primefaces UploadedFileName Turkish character issue

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:55:57
问题 I'm using PrimeFaces 5.1 and p:fileUpload component for uploading images. But I got undefined chrachters for Turkish chracters(for example "ı ç ş ğ"). I researched and tried a lot of wat but I couldn't succeed.I saw this question but not solved my problem. My char encoding filter like below. I also defined filter for this in web.xml file. public class CharacterEncodingFilter implements Filter { public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws

f:ajax not working when dropdown return null

笑着哭i 提交于 2019-12-12 04:49:33
问题 The dropdown is linked with converter. The ajax works when dropdown value is changed. But in case of selection of "-- Select --" item from dropdown, ajax does not invoke listener. I could not find any good solution. Code is given below. <h:selectOneMenu value="#{cc.attrs.beanProperty}" converter="myConverter" > <f:selectItem itemValue="#{null}" itemLabel="-- Select --" /> <f:selectItems value="#{cc.attrs.list}" var="item" itemValue="#{item}" itemLabel="#{item.name}" /> <f:ajax render=":form1"

CommandButton does not fire action when <h:form> includes enctype=“multipart/form-data”

和自甴很熟 提交于 2019-12-12 04:24:10
问题 I have already posted a question regarding p:fileupload a few days ago. After digging deeper into this problem I realized that my main issue seems to be of a different origin and I therefore opened up a new question. I am developing a web app (JSF2.2) for mobile devices where a user can upload a file at several occasions. I want to use Primefaces' p:fileupload component for this job which does not seem to work. I discovered that the problem seems to be connected with the enctype="multipart

jsf2 search bean request scope is not displaying results

蹲街弑〆低调 提交于 2019-12-12 04:09:16
问题 Here is my code, search.xhtml page <h:form id="searchform"> <h:inputText id="deptId" value="#{searchBean.departmentId}"></h:inputText> <h:inputText id="deptName" value="#{searchBean.deparmentName}"></h:inputText> <h:commandButton value="Click to Search" action="#{searchBean.searchEmployees}"> </h:commandButton> </h:form> searchresults.xhtml page <rich:dataTable value="#{searchBean.employeeList}" var="e" id="table"> <rich:column> <f:facet name="header"> <h:outputText value="FNAME"/> </f:facet>

jetty9,spring4.2,hibernate5,omnifaces2.2,can't work - “CDI BeanManager instance is not available in JNDI.”

橙三吉。 提交于 2019-12-12 04:04:57
问题 The application can't startup correctory,the root cause is: java.lang.IllegalStateException: CDI BeanManager instance is not available in JNDI. at org.omnifaces.config.BeanManager.<init>(BeanManager.java:106) at org.omnifaces.config.BeanManager.<clinit>(BeanManager.java:49) at org.omnifaces.application.OmniApplication.<init>(OmniApplication.java:69) at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89) at org.omnifaces.application

@Inject annotation for object and two different behaviors of this object

时光怂恿深爱的人放手 提交于 2019-12-12 03:26:39
问题 I use a JSF 2.2 and CDI. I created below example to show you a heart of my problem. You can see below: the two xhtml pages, the session scoped CDI bean ( LoginController ) which is the controller for the xhtml page1, the view scoped CDI bean ( DataController ) which is controller for the xhtml page2, the request scoped CDI bean ( DataServiceImpl ) which is the service for the DataController bean. This is a use case and flow of the data: xhtml page2 -> the DataController controller -> call

Show progress percentage of h:inputFile upload

怎甘沉沦 提交于 2019-12-12 02:49:27
问题 I found this very nice example of file upload using JSF 2.2. Is it possible to add progress bar with percent of file upload or total uploaded bytes? <script type="text/javascript"> function progressBar(data) { if (data.status === "begin") { document.getElementById("uploadMsgId").innerHTML=""; document.getElementById("progressBarId").setAttribute("src", "./resources/progress_bar.gif"); } if (data.status === "complete") { document.getElementById("progressBarId").removeAttribute("src"); } } <

ClassNotFoundException for JSTL jar when I try to migrate JBoss 7.1 application to JSF 2.2

╄→尐↘猪︶ㄣ 提交于 2019-12-12 02:37:23
问题 I am trying to migration JSF 2.2 in JBoss 7.1.1 Final. I already install modules suggested from this website (JSF 2.2inJBoss 7.1.1 Final). modules javax.servlet-api-3.0.1.jar javax.servlet.jsp.jstl-api-1.2.1.jar jsf-api-2.2.1.jar jsf-impl-2.2.1.jar When I use javax.servlet.jsp.jstl-api-1.2.1.jar as JSTL module, I got following exception: Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.ConditionalTagSupport from [Module "javax.servlet.jstl.api:main" from local module

faces-config with from-outcome not being string (boolean) fails with NullPointerException

时光毁灭记忆、已成空白 提交于 2019-12-12 02:03:13
问题 I've been using JSF 2.1 with mojarra-2.1.20 , and I've configured in my faces-config.xml a navigation case like this: <navigation-rule> <from-view-id>/loggedOut.xhtml</from-view-id> <navigation-case> <from-action>#{sessionManager.isLoggedIn}</from-action> <from-outcome>true</from-outcome> <to-view-id>/login.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> The action is executed using seam-faces viewAction (similiar to JSF 2.2 new tag). All has been working fine. Today I

Subscribing to PostValidationEvent of dynamicaly created child component

允我心安 提交于 2019-12-12 01:27:57
问题 For a forms framework in which I like to use JSF as the real UI frontend, I am searching for a way that a parent component gets informed if in a child component the value is changed. The facelet of a basic 'control' looks like this(body/head omitted since no-one can run it anyway without a dozen classes): <xf:input ref="/my/xpath/value"> <xf:label>Label</xf:label> </xf:input> The xf:input component which I developed, dynamically creates a real ui component (PrimeFaces ones) based on the type