jsf

Putting <a role> in Facelets composition shows message “Attribute role is not allowed here”

本秂侑毒 提交于 2020-06-18 12:28:29
问题 I just tried to setup my jsf project with bootstrap. Everything works fine except that when I added a bootstrap template that includes the " role " attribute. I get a message that says Attribute role is not allowed here I'm not good with design and I'm focusing more with the backend so I really need to use bootstrap. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http

Putting <a role> in Facelets composition shows message “Attribute role is not allowed here”

末鹿安然 提交于 2020-06-18 12:28:25
问题 I just tried to setup my jsf project with bootstrap. Everything works fine except that when I added a bootstrap template that includes the " role " attribute. I get a message that says Attribute role is not allowed here I'm not good with design and I'm focusing more with the backend so I really need to use bootstrap. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http

How to add new line Character ( \n ) in message resource bundle in JSF1.2

ε祈祈猫儿з 提交于 2020-06-14 04:17:45
问题 In my sample JSF application am using rich:dataTable in page to display data. I have 2 header to display value in rich:dataTable like following -------------------------------- | UserDetails | EmpoyeeDetails | -------------------------------- In message resource bundle file having key and value like usrDet = UserDetails empDet = EmpoyeeDetails I need to display like User in one line and Details in next line of that particular header ---------------------- | User | Empoyee | | Details |

primefaces lazy loading is not implemented

若如初见. 提交于 2020-06-12 06:14:08
问题 I am getting "java.lang.UnsupportedOperationException: Lazy loading is not implemented." error. When i degub the project, lazyModel's constructor is working but load method is not executed. my xhtml page; <p:dataTable id="envelopelistid" var="envelope" value="#{incomingEnvelopeListController.lazyEnvelopeDataModel}" selection="#{incomingEnvelopeListController.selectedEnvelope}" selectionMode="single" rowKey="#{envelope.instanceIdentifier}" sortMode="multiple" lazy="true" style="min-height:

What is difference between JavaBean and ManagedBean

被刻印的时光 ゝ 提交于 2020-06-09 12:30:06
问题 I am reading What components are MVC in JSF MVC framework? In the big architectural picture, your own JSF code is the V : M - Business domain/Service layer (e.g. EJB/JPA/DAO) V - Your JSF code C - FacesServlet In the developer picture, the architectural V is in turn dividable as below: M - Entity V - Facelets/JSP page C - Managed bean On the upper case, the JavaBean is a model. But on the lower case, the Managed bean becomes a controller? They are not the same thing? What are the difference?

How to have one instance of Backing Bean per Browser tab?

蹲街弑〆低调 提交于 2020-06-09 05:25:12
问题 My environment : Java 7/JSF 2.1/PrimeFaces 6.1. My goal : to have a certain page of my application instantiated many times, one for each browser tab, each one with a different context. My problem : everytime I open a second browser tab requesting from the same url, but with different object id, the previous one is destroyed, so only one backing bean instance is kept alive. How do I know that : In my backing bean I have one method annotated with @PosConstruct and other with @PreDestroy , so I

How to continuously deploy changes in JSF project without restarting Tomcat?

Deadly 提交于 2020-06-09 04:39:31
问题 I have a JSF project in Eclipse. Now every time I make changes to the .xhtml files, I have to stop Tomcat server, and then start Tomcat server again. Is there any other way where I can continuously build and test my application without restarting the server every time I make changes? 回答1: There are at least two changes you need to make when you need to develop a JSF project: Tell Eclipse to automatically publish changes by changing the Tomcat settings as follows (doubleclick Tomcat server

How to continuously deploy changes in JSF project without restarting Tomcat?

最后都变了- 提交于 2020-06-09 04:39:27
问题 I have a JSF project in Eclipse. Now every time I make changes to the .xhtml files, I have to stop Tomcat server, and then start Tomcat server again. Is there any other way where I can continuously build and test my application without restarting the server every time I make changes? 回答1: There are at least two changes you need to make when you need to develop a JSF project: Tell Eclipse to automatically publish changes by changing the Tomcat settings as follows (doubleclick Tomcat server

Primefaces 5.1 calendar popup doesn't execute the valueChange event

半腔热情 提交于 2020-06-09 02:44:33
问题 I'm try to use the primefaces calendar with popup in this way: <p:calendar pattern="yyyy-MMM-dd" value="#{controller.beginDate}" mask="true" navigator="true"> <f:ajax event="valueChange" listener="#{controller.onChange}" /> </p:calendar> And here is the relative controller: @ManagedBean public class Controller { private Date beginDate; public Date getBeginDate() { return beginDate; } public void setBeginDate(Date beginDate) { this.beginDate = beginDate; } public void onChange() { // do

JSF without @ViewScoped

孤人 提交于 2020-06-08 04:14:19
问题 I've been using JSF for many years and in the next project we're aiming to make the web-tier as stateless as possible. One possibility I'm exploring is removing @ViewScoped beans in favour of @RequestScoped (plus one or two @SessionScoped beans as required). This is proving troublesome for complex pages with AJAX, datatables and conditional rendering. My question is: how well does JSF (and PrimeFaces) work with stateless web beans? Is this something that I should continue to explore, or is