Questions tagged [jsf]

16757 questions
1

votes
2

answer
28

Views

Then Inputtext lost mask when Edit information, what´s wrong?

I need show the mask in InputText field after click in hiperlink for Edit information in my FORM. When I access the form in first time the inputext fields show me the masks correctly. Follow my code: CPF $('#inputcpf').mask('999.999.999-99'); And the EDIT part of code: After clicking on the link the...
Mauricio Sanches
-1

votes
0

answer
89

Views

Selectonemenu value is not set inside datatable inside dialog

Removed my commentary and added screenshots instead. Problem statement - selectOneMenu value is never displayed in edit dialog. My Listing page - I click on Create button and land on next page - Now, I click on + icon on child2 parent node and filled all values on add dialog - I saved the dialog d...
Tirath
1

votes
1

answer
5.6k

Views

JSF rendered is not working

I have something like this on my webpage, a select/drop down menu. This drop down menu should generate another drop down menu based on selected item. The way I am doing it, is by calling But it is not happening as I expected. While selecting item in the dropdown menu trigger the listener in the aja...
Haikal Nashuha
1

votes
2

answer
2.4k

Views

EL expressions are not evaluated in JSP page of JSF

My inputname.jsp file enter your name page My welcome.jsp file Welcome , to JSF 1.2 World! my web.xml file Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet *.jsf my faces-config file /user/inputname.jsp welcome /user/welcome.jsp UserBean net.roseindia.UserNameBean req...
DanMatlin
0

votes
0

answer
4

Views

Default CSS of theme not applying in JSF application

I am new to JSF and Primefaces. I’m trying to use a theme in my project. When adding h:form tag, css style not working! But after removing jsf and primefaces tags(h:form, p:commandlink , ...), every thing is OK! And css is applied correctly to my menu. XHTML code: ... main_menu devices … Can any...
Omid
0

votes
0

answer
7

Views

Omnifaces CDN resource handler ignoring HTTPS

I am experiencing this weird behavior when trying to load a script stored on another server but the one where the system is running. Other server is secured, and certificates are valid. I can normally call the URL specified in my web descriptor. This is my web descriptor entry: org.omnifaces.CDN_RES...
Vanja Lee
1

votes
1

answer
609

Views

Primefaces autocomplete multiple with forceSelection false

I'm using Primefaces 6.0, in which doesn't work with multiple=true and forceSelection=false. You can find the component below:
Michel Foucault
1

votes
1

answer
70

Views

Instance null after injecting @SessionScoped CDI bean into a JSF @ManagedBean

I have : - Repository Class: @SessionScoped public class EmployeeRepository { @PersistenceContext EntityManager entityManager; public List getEmployees(){ TypedQuery qu = entityManager.createQuery('select * from Employee', Employee.class); List emp2 = qu.getResultList(); return emp2; } } and Managed...
mcfly soft
1

votes
1

answer
108

Views

JSF, Primefaces LazyDataModel - update row without invoking load method

I have a simple lazy data model with 2 columns. The second column has only checkboxes which are disabled by default (cannot click them). On row select I want only enable the checkbox (checkbox.disabled = false) without invoking load method - because my data is not changed so there is no need to requ...
minizibi
1

votes
1

answer
48

Views

PrimeFaces 7.0 getCallbackParams() not found

I just upgraded from PrimeFaces 6.2 to 7.0 and I'm unable to find getCallbackParams(). In PrimeFaces 6.2 it wasn't deprecated nor there was an hint of it being moved in further releases. Some of the RequestContext functions were moved to PrimeFaces.current().ajax() (like addCallbackParam()) but it w...
Paolo Forgia
1

votes
1

answer
2.6k

Views

Mixing JSF tags with JSTL tags gives strange results

I have this piece of code: As you see, i render that outputPanel only when columnRendered is true. Well, there are situations when this (used only for tests to approve what it should do): is true so it should enter in c:if and switch columnRendered to false. But it doesn't, so columnRendered is true...
Cristian Boariu
1

votes
0

answer
118

Views

c:if and c:choose fail to conditionally build ui:composition [duplicate]

This question already has an answer here: understand the purpose of jsf ui:composition 1 answer How to include another XHTML in XHTML using JSF 2.0 Facelets? 2 answers Been struggling with this for a bit now. I have an Apache Shiro login.xhtml page that loads at startup. Once authenticated, the us...
Letholdrus
1

votes
0

answer
55

Views

JSF error in Tomcat8 but working in Tomcat7

I have a JSF webapp perfectly working in Linux Tomcat7 and Windows (Tomcat7 and Tomcat8.0.24). But in Linux Tomcat8.0.32 it fails with errors : javax.faces.FacesException: /app/login/IndexLogin.jsp (line: 8, column: 0) Absolute Uri: http://java.sun.com/jsf/core can not resolve org.apache.myfaces.co...
Zirikatzaile
1

votes
0

answer
285

Views

How to use OmniFaces @Eager annotation with PrimeFaces?

PrimeFaces and OmniFaces can be used together in a JSF project. My project is using PrimeFaces 6.1 and works fine. However simply declaring the Maven dependency for OmniFaces org.omnifaces omnifaces 2.6.7 doesn't cause the @Eager annotation an application scoped bean injected with @Named to have any...
Karl Richter
1

votes
0

answer
66

Views

How to filter on primefaces?

I'm using a modal window to select a value. After i make a selection and open the modal window again. I want the modal list be filtered on the selectedValue. It goes back to the front page. and if open modal again and select 'ABC', it should look like this: this is look up and which list should be...
zachandcode
1

votes
0

answer
150

Views

ajax update row while using the rowStyleClass of p:datatable

i have a p:datatable of 30 sets of rows with each row can have different colors(rowStyleClass) based on the values chose in one of the column with ajax update table. however, this give me problem with unsaved values in other columns of input text where everytime i change the value ajax, the table ge...
user3160432
1

votes
0

answer
1.2k

Views

Error creating managed object for class: class org.jboss.weld.module.web.servlet.WeldListener

I'm using Omnifaces' @Eager annotation together with Payara 4.1.2.174 and 5.0-beta in a Java EE project with Primefaces and Omnifaces. Adding @Eager to the following managed bean triggers the issue on 5.x whereas 4.x works fine: @Named @ApplicationScoped @Eager public class MyManagedBean { @EJB priv...
Karl Richter
1

votes
1

answer
434

Views

PrimeFaces Drag & Drop not working if other portlets contain <form> tags

If I have a Liferay page which includes a Liferay Web Content Display with a form tag and then a PrimeFaces portlet with p:droppable and p:draggable, the Drag & Drop functionality does not work. My XHTML: My Bean: import java.io.Serializable; import java.util.ArrayList; import java.util.List; import...
Tahir Umar
1

votes
0

answer
118

Views

Programmatically add an AjaxBehavior to a CommandLink with primefaces

Based on the solution proposed in the following link How to programmatically add an AjaxBehavior to a UIComponent with primefaces I have implemented a CommanLink programmatically. The actionListener method openDialogListener is called, but the openDialog from the primefaces dialog framework doesn't...
Zardo
1

votes
0

answer
97

Views

Netbeans - Entity Classes from DB + JSF Pages not working properly

With Netbeans 8.2, after generating Entity classes (Model + Facade + Controller) from a database and JSF Pages from these Classes, I have a problem on viewing / editing / deleting the entries. Everything was successfully generated, but the action links (View, Edit, Destroy) in the List.xhtml view ar...
Pierre
1

votes
0

answer
486

Views

javax.enterprise.resource.webcontainer.jsf.context java.lang.NoClassDefFoundError

I am working on a JSF project using PrimeFaces 6.0 and WildFly 8.2. Occasionally I recieve the following error: 03:58:59,238 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-14) java.lang.NoClassDefFoundError: at/bibliothek/web/NewCustomerBean$1 at at.bibliothek.web.NewCusto...
Alex Mi
1

votes
0

answer
77

Views

Injecting JOOQ Context using CDI and JNDI

I try to use jooq on an PostgreSQL Database. The Web-App is built on the JSF Framework using CDI for dependency injection. The server is WildFly 11. I use the jooq codegen to generate pojos and daos. Following the instructions on http://awolski.com/integrating-jooq-easy/ I should be able to inject...
1

votes
0

answer
468

Views

primefaces p:inputSwitch not work in dialog while use update the dialog

I am doing a on-off with p:inputSwitch, it's in a dialog. When an ajax call inside a form happens in combination with an update on the inputSwitch, the inputSwitch behaves strange and always resets its state. Here is a simple reproducible example (without the need of a backing bean): Interesting obs...
西门吹雪
1

votes
0

answer
166

Views

Primefaces selectCheckboxMenu delay on rendering huge data set

I'm facing a problem which I couldn't solve with google. We want to display articles in a . Sometimes it can happen, that there are around 50'000 articles in the dropdown. In such a case the dropdown takes sometimes more than 30 seconds to collaps and display the items. Is there any chance to solve...
TheNewby
1

votes
1

answer
59

Views

Failing to populate Select element using RequestScoped bean? [duplicate]

This question already has an answer here: How to populate options of h:selectOneMenu from database? 5 answers What can , and be used for? 1 answer I've been struggling with a task that seemed to be very simple, but somehow I can't see a way to solve it without using some pretty hacky code - whic...
vinicius.ras
1

votes
1

answer
156

Views

Dynamic targets and id in composite component

I have one composite component: In addition - I have two components that using it - The problem is, that I tried to use the id inside the targets but it failed. How can I implement this under those circumstances?
Dvir
1

votes
0

answer
55

Views

JSF language not changing [duplicate]

This question already has an answer here: creating a simple link that invokes a jsf method 1 answer Localization in JSF, how to remember selected locale per session instead of per request/view 5 answers I was trying to include translations in my website, german and english. Sadly i seem to be to s...
Basti
1

votes
1

answer
40

Views

Passed Value after Filtering is 0 - Primefaces

I'm using currently Primefaces 6.1 and i got following Datatable: So the filtering just works fine, it shows me the right result. But if i use the commandButton after filtering, the passed value I get is always 0. To clarify i got my Bean already ViewScoped and Serialized and my Button sets an Value...
Thomas Stachl
1

votes
1

answer
723

Views

Primefaces 6: disable button Upload with fileUpload component with mode simple

I'm using Primefaces 6 and I create a fileUpload component as below: I must use mode=simple so ajax is false. I add then a button to manage the upload: This button is loaded with disable=true to startup. Can I set disable=false for this button when user click on Choose button in the fileUpload compo...
Diaboliko
1

votes
0

answer
166

Views

JSF fails to filter or sort a rich:column when the column is included as a custom tag

Using MyFaces 1.2.12 and Rich Faces 3.3.3 I have a repeating pattern of rich:columns like this: The column name and entity.attribute change for each column. The filtering and sorting work correctly. However, the repetition for each column is tedious so I've tried to replace it with a custom tag myt...
Sam
1

votes
0

answer
291

Views

java.io.NotSerializableException using Primefaces and Weblogic

I'm using Primefaces 6.1 running on a clustered WebLogic Server (Mojarra 2.2.8) Version: 12.2.1.3.0 and during the session replication i'm getting the following exception:
f1l0
1

votes
0

answer
33

Views

Wrong pojo returned to baking bean JSF

I'm making simple app using JSF. Here's my simple form for adding items in to database: Wrong localizedProduct passed to productBean.saveProduct, passed instance is not null, but empty. Here's how i'm getting Product instance inside template: LocalizedProduct has 4 fields: title, description, price...
George
1

votes
0

answer
117

Views

Adding Spring support to a JSF Webapp

I made a really simple JSF webapp and it runs fine. I then tried to add a Spring/Hibernate entities to manage the business logic and access the database. The project's build is working fine but the app's run is giving me errors for 3 days. Here is the setup my latest attempt : We I have tested with...
lvr123
1

votes
0

answer
118

Views

Primefaces datatable selection malfunctions after update

I am facing a problem with the update of the datatable component in the primefaces. My goal is to update the datable and the selected row of the table to remain highlighted. Instead of this I have the following: The 1st, 3rd, 5th,... selected highlighted row stays selected after the update whereas t...
evaliotiri
1

votes
1

answer
312

Views

Conditional ui:include vs conditionally rendered include

I am wondering which is more effective/readable etc for jsf, conditionally including or deciding inside the include whether to render the content. e.g. conditional include vs always include and then inside included.xml:
KameeCoding
1

votes
0

answer
277

Views

Primefaces SelectCheckboxMenu ajax not working when itemValue attribute is set as custom object instead of an Integer or String [duplicate]

This question already has an answer here: commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated 10 answers Validation Error: Value is not valid 3 answers How to populate options of h:selectOneMenu from database? 5 answers I am trying to perform ajax on s...
Shivani Bhansali
1

votes
0

answer
344

Views

primefaces pe:ckEditor not work use custom toolbar in dialog framework

I'm doing html editor with primefaces pe:ckEditor and use custom toolbar, it's in a dialog framework. When the pe:ckEditor been opened, it not working as my expected. Here are my code. @ViewScoped @ManagedBean @Named('myBean') public class MyBean{ @PostConstruct public void init() { //do something }...
西门吹雪
1

votes
0

answer
272

Views

Composite Component, attribute of type java.util.List is always null

The problem is that I am always getting null as the value of listofthings but I get 5 as the value of test which is correct. Also, I have tried initializing the list of things in the Bean constructor instead of the init() method. Still nothing changes. Below is the code for my Composite Components:...
Himanshu Arora
1

votes
0

answer
122

Views

Primefaces' textEditor with too big picture

spring 4.3.6, jsf 2.2.14, primefaces 6.1, jetty 9.4.4. When I send too big picture from Primefaces' textEditor to the Jetty server, there is [WARNING] in the log received from the Jetty: org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content. How can I inform client user about...
Martin
1

votes
0

answer
206

Views

Wildfly issue or bug with rerendering composite component - NoSuchMethodException io.undertow.servlet.spec.PartImp.<init>()

I have a problem with using a composite component. When the component needs to be rerendered (because i have panels which are shown / hidden based on a user action) I got following error. (He wants to restore a class by creating a new instance of it with the default constructor, but he can't find /...
scarvy

View additional questions