primefaces

issue while loading data

喜夏-厌秋 提交于 2019-12-25 02:54:39
问题 I have multiple forms in page and each form have datatables. When i select the datatable mapped to that control should be shown on the page . Facing the below exception when developing application using primefaces: javax.faces.view.facelets.TagAttributeException: //C:/Workspace/Application/WebContent/transfer.xhtml @28,102 rendered="#{transferMB.mySelectedValues('1')}" Error Parsing: #{transferMB.mySelectedValues('1')} at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression

primefaces p:ajax return value

旧街凉风 提交于 2019-12-25 02:52:39
问题 I have a JSF 2.2 app with primefaces 4.0. I have a page with some checklboxes. What I want to acomplish is that when I click on one checkbox an ajax request to be fired to my managed bean. That request will hit a method that will return a string. So i do no need to update an element, but to get back the string in js, because if i achieve that then I can return an JSON. I have this piece of code : <p:selectManyCheckbox id="queues" value="#{viewAssignUsersMB.queueIds}" layout="grid" columns="3"

primefaces p:ajax return value

ε祈祈猫儿з 提交于 2019-12-25 02:52:20
问题 I have a JSF 2.2 app with primefaces 4.0. I have a page with some checklboxes. What I want to acomplish is that when I click on one checkbox an ajax request to be fired to my managed bean. That request will hit a method that will return a string. So i do no need to update an element, but to get back the string in js, because if i achieve that then I can return an JSON. I have this piece of code : <p:selectManyCheckbox id="queues" value="#{viewAssignUsersMB.queueIds}" layout="grid" columns="3"

Primefaces <p:printer> inside a Dialog is not Working in IE?

ぐ巨炮叔叔 提交于 2019-12-25 02:47:41
问题 I am using JSF 2.0 ,Primefaces 3.5 & JBoss Application Server 7.0.. In my Online Shopping Application , i am trying to print the details of the Order(My Code). Everything is working fine in Chrome and FireFox, but in IE9 and above it is throwing an error "Internet Stopped Working" and the print is been failed! How to fix this issue ? Doubt: Is the issue because of using a Dialog Box. Or is it a Browser compatibility Issue. Is there any Other Way to Achieve this ? My Code: MyController import

Primefaces DataTable ajax not updating any component except itself

不打扰是莪最后的温柔 提交于 2019-12-25 02:15:02
问题 <h:form id="form"> <p:messages /> <p:panel header="Análise"> <h:outputText value="Mês da análise: " /> <p:selectOneMenu value="#{report005.selectedMes}"> <f:selectItems var="data" value="#{report005.analiseMeses}" itemLabel="#{report005.formataDataCombo(data)}" /> <f:convertDateTime pattern="MM/yyyy" /> </p:selectOneMenu> <p:commandButton value="Análises" update="analiseTable" actionListener="#{report005.loadAnalise()}" /> <p:dataTable id="analiseTable" var="pes" value="#{report005

Open p:confirmDialog on clicking of p:commandLink

末鹿安然 提交于 2019-12-25 02:09:03
问题 I am trying to open a PrimeFace ConfirmDialog on clicking of a PrimeFace CommandLink. But when the link is clicked the dialog is opened for a moment but vanishes instantly, I guess the page is being submitted. Here is the code: <p:commandLink value="Delete" onclick="confirmation.show()" /> <p:confirmDialog message="Are you sure, you want to delete ?" header="Initiating deleting process" widgetVar="confirmation"> <p:commandButton value="Yes Sure" onclick="confirmation.hide()" actionListener="#

using templates in primefaces JSF

耗尽温柔 提交于 2019-12-25 02:06:05
问题 I have main page index.xhtml with declared place to put content dependent on page clicked. <br> <div id="centerContent"> <ui:insert name="centerContent" > <ui:param name="mainTag" value="" /> <ui:include src="/template/commonContent.xhtml" /> </ui:insert> <h4>#{mainTag}</h4> </div> </br><br></br> <p:panel id="content"> <h:form> <h:inputText id="namez" ></h:inputText> </h:form> </p:panel> </p:layoutUnit> my template commonContent is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC

(netbeans) jsf page not auto changing in browser

匆匆过客 提交于 2019-12-25 02:02:08
问题 i have weird issue when building jsf application in netbeans. when i run index.xhtml and then i change some text inside that file and save,the file won't get update on the browser. the browser still have the old page. i also try to clean and build again (without shutting down tomcat) and the result still not updated. but when i stop tomcat and run the application again,the update will show. i build it with maven project structure. i use Netbeans 7.4, primefaces 4.0,JSF 2.2.5 i already tried

c:forEach not iterating through list in a TabView

大城市里の小女人 提交于 2019-12-25 02:01:28
问题 I have been trying to iterate through a list of tabs (my own custom tab object) by using c:forEach tag. But when I run the code, the tabs are not getting displayed. The page has no tabs. When I debugged the code, I found that the getter method for the list object in the c:forEach items is not getting called. Please refer the below xhtml code: <p:tabView id="tabView" dynamic="true" cache="false"> <p:ajax event="tabChange" listener="#{tabsController.onTabChange}" /> <c:forEach items="#

Values of h:inputText inside p:tabView are not processed

↘锁芯ラ 提交于 2019-12-25 01:56:00
问题 I want to process this form (valueChangueListener is not valid in real case). This is the back bean: private List<Management> managements; //getters setters protected static final Logger logger = Utils.loggerForThisClass(); @PostConstruct public void init() { TreeNode root1 = new DefaultTreeNode("root", null); TreeNode root2 = new DefaultTreeNode("root", null); TreeNode root3 = new DefaultTreeNode("root", null); TreeNode child1 = new DefaultTreeNode(new Element("Total"), root1); TreeNode