jsf-2.2

datasource mapping doesn't work when droppable is in nested dataList

北城余情 提交于 2019-12-11 05:25:01
问题 This is the main view which contains the draggable items. In this view I have a ui:include for including a UI fragment that also has the drop area. mainView.xhtml <p:dataList id="outerList" var="varOuter" value="#{myVO.getOuterList()}"> <div> <span>#{varOuter.someVal}</span> </div> <p:dataList id="innerList" var="innerVar" value="#{myVO.getInnerList()}"> <div class="crew-list"> <h:form> <h:panelGroup id="draggableItem" layout="block"> <span>#{innerVar.someVal}</span> </h:panelGroup> <p

Custom filters and converters in p:dataTable

…衆ロ難τιáo~ 提交于 2019-12-11 05:15:25
问题 Since PrimeFaces does not yet support converter for <p:dataTable> filters, I'm trying to implement my own custom filter for <p:calendar> (of course, the design of this filter still looks somewhat ugly. It needs to apply proper CSS that I cannot). <p:column id="discountStartDate" sortBy="#{row.discountStartDate}" style="width:140px;"> <f:facet name="header"> Start Date<br/> <p:calendar id="startDateFilter" converter="#{dateTimeConverter}" timeZone="Asia/Kolkata" locale="#{localeBean.locale}"

PrimeFaces button on scrollpanel which is in tabview

我与影子孤独终老i 提交于 2019-12-11 04:29:59
问题 I have view in Dialog: <p:scrollPanel style="height: 610px; width: 740px;"> <p:messages id="messages" showDetail="false" autoUpdate="false" closable="true" /> <p:tabView id="tabs"> <p:tab id="header" title="Ogólne"> <ui:include src="Header.xhtml" /> </p:tab> <p:tab id="source" title="Pomiary" > <ui:include src="Source.xhtml" /> </p:tab> </p:tabView> </p:scrollPanel> And source: <h:panelGroup> <p:scrollPanel style="height: 530px;"> <p:panelGrid > <p:row> <p:column > <p:commandButton

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

EL expressions in Omnifaces CDN resource handler not resolved in Wildfly 9

人走茶凉 提交于 2019-12-11 03:33:08
问题 I am playing around with new Wildfly 9.0.0.Final. After the deployment of my JSF2.2 web application, the Omnifaces2.1 CDNResourceHandler stopped resolving EL expression. My definition in web.xml: <context-param> <param-name>org.omnifaces.CDN_RESOURCE_HANDLER_URLS</param-name> <param-value> styles:*=#{CDNResourcesBean.styles}/* </param-value> </context-param> In .xhtml, style.css file exists in resources of the project structure <h:outputStylesheet library="styles" name="style.css"/> Generated

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

@FacesConverter(forClass = Clazz.class) and p:calendar

自作多情 提交于 2019-12-11 02:41:17
问题 Basic Joda Time converter (the code is absolutely superfluous for the context of this thread) : @Named @ApplicationScoped @FacesConverter(forClass = DateTime.class) public class DateTimeConverter implements Converter { @Override public Object getAsObject(FacesContext context, UIComponent component, String value) { if (value == null || value.isEmpty()) { return null; } try { return DateTimeFormat.forPattern("dd-MMM-yyyy hh:mm:ss aa Z").parseDateTime(value).withZone(DateTimeZone.UTC); } catch

Primefaces Commandbutton not working after an update made by select box

泄露秘密 提交于 2019-12-11 01:54:17
问题 Iam having four select menus in my page. My problem is weird i.e. without selecting any of the dropdown menu if you click on submit, it is working fine. But when i select subgroup dropdown menu and later if i click the submit button it is not calling the method it intended to call... Heres my code.. <?xml version="1.0"?> <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p

PrimeFaces block UI does not work when the component to be blocked is updated via AJAX

邮差的信 提交于 2019-12-10 21:01:05
问题 I have displayed some components in <p:panel> as follows. <p:growl id="growl" /> <p:panel id="panel" header="New User" style="margin-bottom:10px;"> <p:messages id="messages" /> <h:panelGrid columns="3"> <h:outputLabel for="firstName" value="FirstName: *" /> <p:inputText id="firstName" required="true" label="FirstName"> <f:validateLength minimum="2" /> </p:inputText> <p:message for="firstName" /> <h:outputLabel for="surname" value="Surname: *" /> <p:inputText id="surname" required="true" label

How to set timeout on jsf/primefaces ajax request?

旧城冷巷雨未停 提交于 2019-12-10 19:37:11
问题 I am using JSF2/Primefaces and I was wondering how to implement a timeout callback either with jsf or primefaces ? I want to make the timeout for the ajax request 30 seconds and if the request timed out do something as a callback . 回答1: I put my foot where my mouth is and investigated the source and found a hint. Not to clear but a start so I did some quick Googling and one of the first hits was a PrimeFaces forum topic about setting the timeout As a result of this (weird that I did not do