Most voted "jsf" questions
Javaserver Faces (JSF) is a Model-View-Controller framework commonly used to create web applications. Always inform: What is the JSF version you are using; What technology you are using, JSP or Facelets; Error messages displayed; Minimum copy of code that can be executed.
Learn more…1,003 questions
Sort by count of
-
0
votes1
answer1254
viewsSpacing between JSF buttons
I’m entering the JSF world and I’m trying to create a calculator but I’m not getting to leave the buttons out of space, they need to be together, someone knows how I fix this? <h:form>…
-
0
votes1
answer338
viewsProblems with selectOneMenu in Jsf 1.2
I need to use JSF 1.2 for client restriction. I’m using selectOneMenu to select the type of person (Physical/Legal) and change the mask dynamically with <a4j:support> and it’s working. But the…
-
0
votes0
answers151
viewsReturn to the region where you were when you submitted the form (JSF 1.2)?
I have a page jsf with 2 master/detail moulds. How do I make sure that after the form submission the bean details the region of the page where the detail is? I’m using jsf 1.2 and Richfaces 3.3.3.…
-
0
votes1
answer87
viewsHow can I not update a page when closing a Richfaces modalPanel?
I need that when closing a Richfaces modalPanel the page on which the modal was called is not rendered. The action to close the modalPanel is like this: <h:commandLink…
-
0
votes1
answer35
viewsProblems with form
Good morning. I have a form where I need to edit, change and register records to be shown/selected in a datatable. I use two objects of type User. user and user. However, I’m having trouble editing…
-
0
votes1
answer731
viewsCapture the change event in a p:selectOneenum type
I cannot capture the change event of the p:selectOneMenu component, whose upload source is an Enum. I registered in my view the Ajax change event, however the Listener method is not called. My view…
-
0
votes1
answer78
viewsNullpointexception to set value from Converter
I have an application where I need to calculate data from a certain relationship. When usuarioController.view == 3, is defined as a Login for Usuario and a Plano (already persisted) to Login so that…
-
0
votes0
answers33
viewsRestricting the selection of lines
Guys, I’m having a problem selecting lines in one datatable that I created here. It allows me to select the first two lines, however, the others it does not let. It does not even the effect of the…
-
0
votes1
answer867
viewsHow to integrate Java code with Javascript?
//retorna o usuário logado no sistema public class ContextObject { public static Usuario getUsuario() { ContextObject contextObject = ContextFactory.getContextObject(); return contextObject.usuario;…
-
0
votes1
answer185
viewsOrder By Hibernate in JSF
Hello, good afternoon, I am a beginner in this web world and I need to order establishments by punctuation (the best punctuated at the beginning, LOGICAL) The mistake is An Error Occurred:…
-
0
votes1
answer448
viewspdf download that is outside the java jsf application
need to download some pdf that are outside of my application, are in the folder c: tmp\ how could I use primefaces to make these files available for download? I thought of saving in folder C:…
-
0
votes0
answers151
viewsHow to add new columns in h:datatable in jsf without refreshing what update does in the table,
Guys, I have a problem, I created a paginated query that always brings 5 records, implemented with jquery one $(window). scroll so that whenever the scroll arrives at the bottom of the page it…
-
0
votes2
answers1445
viewsCalling JQUERY function with Primefaces
I want to run a Jquery call after the click of a button: <p:commandButton id="btnSelecionaLote" icon="ui-icon-pencil" action="#{loteController.selecionarLote()}">…
-
0
votes1
answer51
viewsTable rows aligned to the right
I want the rows of my table to be aligned to the right and the title of the centered column, can anyone help? The code is like this: <p:column sortBy="totalApontado"> <f:facet…
-
0
votes0
answers43
viewsHow to implement Fileupload in a Hibernate project with JSF?
I’m with a JSF project with the DAO model using Hibernate, and I’m having a hard time understanding how to save the image in the database. I would just need to know what the method would look like…
-
0
votes0
answers73
viewsSuggestions for updating JSE application to J2EE
Already for more than three years I do not work with Java for real, I have worked with PHP, learned and liked a lot. In my opinion, all two languages have many legal advantages to be incorporated…
-
0
votes1
answer123
viewsBookmark does not redirect to login page
I followed the post about authentication and authorization in Demoiselle but I can’t redirect to the login page, follow files: frameworkdemoiselle.security.enabled=true…
-
0
votes1
answer1233
viewsProblem with JPA using Wildfly 9 and JTA
It’s the first time I’ve tried to use JTA using the Wildfly container and so far I haven’t been able to execute my code properly. When I publish the application(start Wildfly) it starta perfectly,…
-
0
votes1
answer119
viewsGenerate Url through form
I have the following url: www.teste.com/username=xxxx I have to type the name of Usario in xxxx, I am creating a form in html with the username field, I want that when the user type his name in this…
-
0
votes1
answer230
viewsPrimepush Eventbus does not work and will give errors
I am started to learn in practice with Primefaces to give PUSH. Follow the link http://www.primefaces.org/showcase/push/chat.xhtml I implemented the codes following this link that I posted above,…
-
0
votes1
answer830
viewsHow to load an FTP server image from the URL?
I have a JSF application in which the images the user uploads are stored in an FTP directory. The simplest way I found to render these images is by placing the FTP URL, with user and password in the…
-
0
votes1
answer84
viewsPass user authentication between different contexts
I have three java web(.War) projects with different contexts within the same EAR. I need the user to authenticate in an application and then I traffic this information from it among the other…
-
0
votes1
answer160
viewsHow can I select this Datatable?
I created a datatable of variable columns whose collection takes place from a list of objects with several different attributes. In detail, I have an Avaliaprojeto class, which has a Projeto…
-
0
votes2
answers4580
viewsPrimefaces JSF - <p:commandButton that serves the update and oncomplete
I am trying to make an orderList and I am having trouble configuring the attributes in the tag commandButton update and oncomplete. I also don’t know what their function is, but I know it doesn’t…
-
0
votes1
answer219
viewsHow to simulate p:commandLink click effect?
On the buttons on the primefaces there is an effect, the user sees it being clicked (sink), the same does not occur when I click on commandLink: <p:commandLink id="logs" immediate="true"…
-
0
votes1
answer3999
viewsCalling xhtml page by commandButton
I am implementing the Toolbar component of the first faces and within this component there are several commandButtons that I need when clicking it to call another xhtml page of my project. How do…
-
0
votes1
answer70
viewsError trying to save register in bank
After filling the form and clicking Save, the error below occurs: mai 20, 2016 7:14:52 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer62
viewsWhat does "@" mean in JSF?
What does this @ on JSF pages mean? ex: process="@this" update="@form"
-
0
votes1
answer545
viewsLinks does not work in the menu
I’m having a problem on my accordion menu I did it with HTML and CSS pure however I will have to link some PDF'f to can open in a new guide co target="_blank" however I create the links normally and…
-
0
votes1
answer68
viewsTree Selection Primefaces
I want to make a resource in the application that lists the folders and files of a directory, so I thought about Tree Selection of Primefaces, but I want to expand Tree Selection at the level of the…
-
0
votes1
answer122
viewsUse html tag to replace JSF components when possible
I am starting studies with JSF (Javaserver Faces) and writing a xhtml file, I came up with the following dilemma: Why not use HTML tag replacing some JSF compote, when possible? Example: use:…
-
0
votes1
answer39
viewsAddition to an autocomplete
I have an autocomplete with the code below. <p:outputLabel styleClass="rotulos" value="Fornecedor:" /> <p:autoComplete id="inputfornecedor" update="msgcontapagar"…
-
0
votes1
answer227
viewsp:selectOneMenu does not update value within ui:repeat
The context is the following, I have a list of objects AvaliaProjeto, containing: Project Discretion Stopover Valor The project is selected from the outside, the criteria are listed so that their…
-
0
votes1
answer166
viewsjavax.persistence.Entitymanager.createQuery(Ljava/lang/String;Ljava/lang/Class;)Ljavax/persistence/Typedquery;
I have the following problem in developing my application’s user authentication and password: jun 30, 2016 8:49:27 AM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA:…
-
0
votes2
answers74
viewsLogin with Spring security com md5 + salt
Login with Spring security The following problem I have to get the login data from a database already ready with the following md5 + salt encryption…
-
0
votes0
answers58
viewsFill two objects in a jsf form
Good morning, It is possible to fill two different objects in the same form? Ex: <p:inputText id="ordem" value="#{testeBean.objA.atributoA}" /> <p:inputText id="ordem2"…
jsfasked 8 years, 4 months ago samuel silva 87 -
0
votes1
answer631
viewsJSF + Primefaces update component when switching pagination
<p:dataList paginator="true" value="{bean.lista}" var="lista"> </:dataList> <h:outputText value="qualquerCoisa" id="teste"/> How do I update outputText 'test' every time the…
-
0
votes2
answers1255
viewsUpdate datatable after deleting record
after deleting a record in my datatable, I want it to be reloaded, I’m not getting it. Someone gives a help? <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
0
votes1
answer41
viewsPopular datatable jsf
Personal am beginner in JSF, would like a tip, as I can popular a datatable through a selection of a combobox that brings a list of items from the bank.
-
0
votes1
answer213
viewsI’m trying to return the name but can only return the ID
I’ve been researching for days and I couldn’t find a solution. The scenario and the following: I have an employee registration screen and an employee editing screen with two classes a pessoa where I…
-
0
votes2
answers1232
viewsHow to change persistence.xml file settings through an external file?
I wanted to know how to change the configuration of the persistence.xml file through an external file. I am using JSF + JPA. I want to do this so as not to leave this setting stuck in the source…
-
0
votes0
answers361
viewsPage updating automatically, JSF
I have a method called by a Poll, it is called every 20 seconds but it takes about 1 minute to finish running. So far so good, but I need my jsf screen updated every 10-15 seconds, without having to…
-
0
votes0
answers1178
views -
0
votes1
answer112
viewsHow to update an <h:form> every 30 seconds JAVA WEB
I’m trying to create a panel showing the sales results on a screen in my company. I need to time the panel every 30 seconds so that the results are always up to date. I have no idea how to do, all…
-
0
votes1
answer117
viewsp:dialog being called by several Buttons in the system
Personal I have a dialog (do primefaces) confirming the ZIP Code number and after the user has entered the residence number in this dialog the fields address, neighborhood, zip code, city and Uf…
-
0
votes1
answer1182
viewsException <p:ajax> Unable to attach behavior to non-ClientBehaviorHolder Parent
I am using JSF, Primefaces in my Java EE project. When I use the Primefaces component orderlist, returns me an exception on the screen and I don’t know what exactly it is, it happens the moment I…
-
0
votes1
answer572
viewsCalling javascript function on Managed bean
I am using the JSF framework with primefaces 6.0 and as I am new, I am having difficulty calling a javascript when finishing a bean method with scope @Requestscoped. How can I do that? Is there any…
-
0
votes2
answers2083
viewsPick selected line from datatable
I have a dataTable with the data in front of each given one button, when I click one button dialog is opened so that I can edit this data, but I cannot take the object that was selected to pass as…
-
0
votes1
answer329
viewsJasperreports report with multiple parameters
I have a report on JasperReports, is working properly. However, from the way it is, step only one meter each tipofrom the jsf page to the report, the screen is as per the image: What I need now is…
-
0
votes2
answers205
viewsTable does not update correctly after editing
I have a dataTable and in the last column I have an edit button that opens a dialog with a field to be filled. When I click edit the table is updated with the edited data, but if I give an F5 the…