primefaces-mobile

The prefix “pt” for attribute “pt:data-inset” associated with an element type “p:dataList” is not bound

可紊 提交于 2019-12-24 02:43:17
问题 I have following Primefaces page and controller. Page <!DOCTYPE html> <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.org/ui" xmlns:pm="http://primefaces.org/mobile"> <f:view renderKitId="PRIMEFACES_MOBILE"/> <h:head> </h:head> <h:body id="body"> <pm:page id="page"> <pm:header title="MyProduct"> </pm:header> <pm:content id="content"> <p:dataList value="#{likeditems.likedItems}" var="item" pt

PrimeFaces Mobile requests undefined/undefined.css and undefined/undefined.js, causing JSF1064 warning and 404 error

自闭症网瘾萝莉.ら 提交于 2019-12-23 13:16:36
问题 When I add a <p:selectBooleanButton> to my PrimeFaces Mobile page, then I get the following warning in server log WARNING: JSF1064: Unable to find or serve resource, undefined/undefined.css, from library, primefaces. Jan 11, 2015 3:00:36 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource and the following error in browser console: 404 (Not Found) http://localhost:8080/ewpmob/javax.faces.resource/undefined/undefined.js.xhtml?ln=primefaces&v=5.1.7 How is this caused

PrimeFaces Mobile requests undefined/undefined.css and undefined/undefined.js, causing JSF1064 warning and 404 error

大憨熊 提交于 2019-12-23 13:16:14
问题 When I add a <p:selectBooleanButton> to my PrimeFaces Mobile page, then I get the following warning in server log WARNING: JSF1064: Unable to find or serve resource, undefined/undefined.css, from library, primefaces. Jan 11, 2015 3:00:36 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource and the following error in browser console: 404 (Not Found) http://localhost:8080/ewpmob/javax.faces.resource/undefined/undefined.js.xhtml?ln=primefaces&v=5.1.7 How is this caused

Primefaces Mobile's Ajax does not update a <p:selectOneMenu>

主宰稳场 提交于 2019-12-11 10:09:53
问题 I have an autoComplete field and, after selecting an object from it, I want to update some other fields. The p:inputText fields are updated, but I want to update a p:selectOneMenu field too, and this specific field is not updated at all. If I remove Primefaces Mobile RenderKit, it works perfectly, but this is a mobile project.. My view: <h:form id="formCadastro"> <p:accordionPanel> <p:tab title="Informações do Proprietário"> <pm:field> <p:outputLabel for="proprietario" value="Nome:" /> <p

InputText PrimeFaces not applying maxlength

耗尽温柔 提交于 2019-12-08 20:37:57
问题 I'm using PrimeFaces 3.4 with PrimeFaces Mobile 0.9.3. I specified maxlength in the inputText attribute, but it is not being rendered across in the HTML. My code: <p:inputText id="price" value="#{bean.price}" styleClass="r-align" type="number" maxlength="9" validator="priceValidator"/> Later I found that when I remove the "type" attribute from the tag, max length works. Does anyone know why this is the case? 回答1: That's simply because maxlength attribute is not supported on the HTML5 <input

Block entire page

若如初见. 提交于 2019-12-07 20:22:18
问题 When I change the page (page1 to page2) exists some delay and it is possible to click other buttons and these actions go run. So I would like to block the page during the waiting time for loading the following page, how do I? I use jsf2 and primefaces. At this time already tested blockUI and blockUI-extensions -> not work 回答1: You should tell us. Why p:blockUI is not work? Try this. It is work. page1.xhtml <?xml version="1.0" encoding="UTF-8"?> <!-- To change this license header, choose

Block entire page

时光怂恿深爱的人放手 提交于 2019-12-06 09:37:29
When I change the page (page1 to page2) exists some delay and it is possible to click other buttons and these actions go run. So I would like to block the page during the waiting time for loading the following page, how do I? I use jsf2 and primefaces. At this time already tested blockUI and blockUI-extensions -> not work You should tell us. Why p:blockUI is not work? Try this. It is work. page1.xhtml <?xml version="1.0" encoding="UTF-8"?> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the

Primefaces Mobile ajax update of selectOneMenu fails

此生再无相见时 提交于 2019-12-01 08:47:02
问题 I want to create a mobile form using Primefaces 5.2 where one selectOneMenu result updates a second selectOneMenu via Ajax, exactly like the showcase example here: http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml but then a mobile version. My question is very similar to this one: Primefaces Mobile's Ajax does not update a <p:selectOneMenu> but there is no answer. I have created a JSF page and backingbean exactly like the showcase example, and it works. However when I add the mobile