jsf-2

primefaces schedule time not showing on week

谁说我不能喝 提交于 2019-12-25 00:15:35
问题 this is my problem. it is not showing time when i am clicking on week. 回答1: :) Look at the Calendar again... Your month view of April shows the beginning of May as well.. So its a 1/5 and 4/5 events are actually belongs to May While the week display shows you the first week of April.... you should advance the week view further to the beginning of May... there you should see the events of 1/5 and 4/5 来源: https://stackoverflow.com/questions/10022515/primefaces-schedule-time-not-showing-on-week

PrimeFaces datatable scrollbar position

江枫思渺然 提交于 2019-12-25 00:14:58
问题 How to set a scrollbar position of primefaces datatable from last to first? Actually, I want see the information from bottom to top. Below is my code: <p:dataTable var="c" value="#{MessagingUserBean.inboxDetails1}" scrollable="true" scrollHeight="517" liveScroll="true" emptyMessage="No Message Found" scrollRows="8" scrollWidth="815" > 回答1: Well you can try to not use a liveScroll because you then don't know the end of dataList. Try this and maybe this suit your needs. This will scrolldown to

How to implement foreach in jsf?

旧巷老猫 提交于 2019-12-24 23:25:12
问题 How do I create ofer_has_location objects (join object from location and ofer) using the current ofer and the selected items from the h:selectManyCheckBox <h:selectOneMenu id="companyidCompany" value="#{oferController.selected.companyidCompany}" title="#{bundle.CreateOferTitle_companyidCompany}" required="true" requiredMessage="#{bundle.CreateOferRequiredMessage_companyidCompany}"> <f:ajax event="valueChange" execute="companyidCompany" render="locationCollection" /> <f:selectItems value="#

f:ajax inside ui:repeat

蓝咒 提交于 2019-12-24 22:44:03
问题 I need to show a list of auction items. When a user clicks on a Bid button next to each item, I'd like to have ajax open a bid form right under this auction item. So I'm going with a ui:repeat and a f:ajax as shown below, but when I go to the page all the auction items have the bid component open next to them. And clicking any of the buttons doesn't do anything. This is the code (with the bid form simplified to just an outputText: ) <h:form> <table border="1"> <ui:repeat var="parcel"

Upload into system folder using jsf2.0

别说谁变了你拦得住时间么 提交于 2019-12-24 21:33:13
问题 I am new to jsf frame work.I am using jsf2.0 in eclipse ide.I have try to upload a images in jsf2.0.I have uploaded the image but it stored on eclipse server.The problem is when i clean the server the images are deleted.So i need a help,to upload photo into system local folder.please find and help me. public void processFileUpload(FileUploadEvent event) throws AbortProcessingException { System.out.println("Uploaded: " +event.getFile().getFileName()); UploadedFile file = event.getFile(); byte[

Update a field when another field changes

妖精的绣舞 提交于 2019-12-24 21:23:00
问题 I'm sure there's more than one way to do this, but what's a good way of updating one JSF/PrimeFaces component when another one changes? I've got a slider, that correctly updates an input field with it's value (including the value in the backing bean). But that value is a number, and I want to display it as a text value e.g. if it's 1, I want to display "Easy" and if it's 4, display "Difficult". I've got it partly working by hiding the input field that stores the numeric value. And then I've

org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse “/WEB-INF/web.xml” at [6,1]

删除回忆录丶 提交于 2019-12-24 20:57:16
问题 I create simple app with PrimeFaces 3.4 and JSF 2.1. When I deploy the application in my JBoss AS 7.0, I encounter the following error 18:55:27,684 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "Getting-started-with-Primefaces.war" 18:55:29,480 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."Getting-started-with-Primefaces.war".PARSE: org.jboss.msc.service.StartException in service

Accessing a context specific realm with Tomcat 7

半城伤御伤魂 提交于 2019-12-24 19:16:52
问题 I am using a "home made" realm in a JSF webapp. <Context docBase="senateurs" jndiExceptionOnFailedWrite="false" path="/senateurs" reloadable="true"> <Resource auth="Container" description="Extraction des roles" maxActive="3" maxIdle="1" maxWait="60" name="jdbc/authSen" type="javax.sql.DataSource" validationQuery="select * from senateurs.qua"/> <Realm className="org.apache.catalina.realm.SenatLdapDataSourceRealm" dataSourceName="jdbc/authSen" instanceName="realm-senateurs" localDataSource=

Dynamic <ui:include> doesn't work

╄→尐↘猪︶ㄣ 提交于 2019-12-24 19:03:40
问题 I want to use a dynamic ui:include, like this. <ui:repeat value="#{FormsService.getTemplates(component.form)}" var="template"> <ui:include src="forms/#{template.id}.xhtml"/> </ui:repeat> Somehow this always results in an include of "forms/.xhtml", as if #[template.id} would be empty. But I know that #{template.id} is not empty. I.e. just printing it out like that gives me the expected value. So what goes wrong here? Any help is appreciated. 回答1: These tags are somewhat confusing since <ui

JSF2 Viewscope validation issue

梦想与她 提交于 2019-12-24 18:33:42
问题 Trying to display the pages dynamically based on the dropdown list value.All the associated components are rendering properly.When I bean is in view scope the validations are not triggering whereas the samething is working fine with session scope.Could anyone please help me to resolve the issue? Here follows my code of Main.xhtml This page contains the dropdownlist.Based on the dropdown value dynamically including the pages. <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3