Posts by user2509556 • 403 points
37 posts
-
0
votes1
answer92
viewsQ: Process does not run high
I made a program to run the windows activation process high but I get the message of insufficient privilege despite being with Verb = Runes var senhaSegura = new System.Security.SecureString(); var…
-
-1
votes1
answer233
viewsQ: How to send the admin password to windows cmd
I have the code below in . Net written in Visual Studio 2019, which activates windows. The problem is that when running windows propmpt command running with an AD admin account it asks for the…
-
0
votes1
answer30
viewsQ: How to render name or social reason according to type
I am trying to render the contents of a column of a table with name or Social reason depending on the type <f:facet name="header"> #{contato.tipoCadastro.codigo eq '1' ? 'Nome' : 'Razão…
-
0
votes2
answers477
viewsA: how to change the color in each selectitem of a jsf selectOneRadio
I got it this way: .tipoGuia tr td:nth-of-type(1){ color : black; } .tipoGuia tr td:nth-of-type(2){ color : blue; } .tipoGuia tr td:nth-of-type(3){ color : green; }…
-
0
votes2
answers95
viewsA: How to make Item only appear when category code = 1
managed to enable the item by itemDisabled="#{requestImpressaoBean.entrega.Peg.categor ia.codigo eq 1 and guia.codigo eq 3}" com css <style> .tipoGuia input:disabled , .tipoGuia input:disabled…
-
0
votes1
answer49
viewsQ: report error - unknown property in class
I am using Jaspersoft to create a report and get the following error message: Unknown Property 'Relpadraoacesso' on class 'sda.perfilacesso.model.report.Relpadraoaccess' Error retrieving field value…
-
0
votes2
answers95
viewsQ: How to make Item only appear when category code = 1
I have the following code <h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia"> <f:selectItems value="#{solicitacaoImpressaoBean.tipoGuia}" var="guia"…
-
0
votes2
answers477
viewsQ: how to change the color in each selectitem of a jsf selectOneRadio
I have a selectOneRadio that has 3 options : Finishing, embargo and Shipping <h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia" > <f:selectItem…
-
0
votes1
answer63
viewsQ: render button according to status
I am using the following code to render my button to only appear with the status Waiting for approval but does not occur. <a4j:commandButton value="Enviar Solicitação"…
-
1
votes1
answer68
viewsQ: Transforming Collections into Stream
There would be ways to transform the following code to java 8 Stream? setores = new SetorBusiness().buscarEtiquetaFuncionario(null, codDiretoriaSelecionada, codCoordSelecionada, uf, cidade,…
-
0
votes1
answer68
viewsQ: type Enum field can be used for comparison?
I own an enum field: public enum StatusImpressaoEnum { PREVISAO(0 ,"Previsão"), EMELABORACAO(1, "Em Elaboração"), AGUARDANDOREPASSE(2, "Aguardando Repasse"), REPASSERECEBIDO(3, "Repasse Recebido"),…
-
0
votes1
answer86
viewsQ: How to display html content in a datatable
I have the message field in an Editor that after inclusion is shown in a datatable. <rich:editor value="#{solicitacaoImpressaoBean.solicitacao.mensagem}" toolbar="full" style="margin-bottom:…
-
3
votes3
answers54
viewsQ: Date does not receive value more 30 days
I have a code that I want to check if the date is over 30 days with Jodatime, but putting in the console output the value is not assigned. I saw the following:…
-
1
votes1
answer128
viewsQ: Help with bootstrap layout
How can I put below the bootstrap navbar a bar that has a vertical line and two components filter on the right. Follow below the image of how I want: and how is: Follow the html code: <!DOCTYPE…
twitter-bootstrapasked user2509556 403 -
0
votes2
answers1587
viewsA: Class is Managed, but is not Listed in the persistence.xml file
By clicking on the JPA faces to hit the problem, the eclipse created another blank persistence.xml file then just paste the correct one over the top
-
0
votes2
answers1587
viewsQ: Class is Managed, but is not Listed in the persistence.xml file
I’m having a problem that I wasn’t before I migrated to JPA 2.0. Receiving message that all my classees / entities are not listed in persistence.xml and even after adding them I keep getting the…
-
4
votes1
answer167
viewsQ: Add elements to a List<? extends Number>
Why it is not possible to add elements to a list of type List<? extends Number>? for example : public class GenClass{ public static void main(String args[]){ List<? extends Number>…
-
0
votes1
answer374
viewsQ: How to change the blue/red color of an edited field
I have the following screen : https://snag.gy/wmPBpM.jpg How can I change the field of the list, previsao1 so that it turns red or blue as I edit it and save by changing its value. Follow the xhtml.…
-
1
votes1
answer514
viewsQ: Calculate the total Sales Revenue
I have a consultation page that shows the total of the revenue for each product and I want to calculate the total of the sum of the recipes but is going wrong. The correct summing in the hand gave…
-
0
votes1
answer153
viewsQ: help with nativeQuery
I tried to query uasndo Expression constructors and jpql , but jpql does not subqueryes and I am , so I try to do with nativeQuery . It is possible? I am getting error message. Would anyone know…
-
1
votes1
answer125
viewsQ: query model.vo a solution with jpql and subqueryes
I have the following query in Mysql wanting to move to JPQL and I am doubtful in syntax: SELECT a2.produto , a2.descricao, a2.quantidade_recente, Soma from (SELECT p.codigoProduto,…
-
1
votes0
answers46
viewsQ: how to use query with more than one field (Moldel .vo) in a datamodel
I have the following query and I am willing to put this list with products and the sum in a datamodel list. public List<Filtro> listarProdutosDoGerenteRegional() { try { return…
-
1
votes1
answer151
viewsQ: Help with JPQL query
I am trying to return a group query together with the product entity by returning all the data from the product table and the sum of the quantity. I get a mistake which is this: Exception in thread…
-
0
votes0
answers66
viewsQ: Help with search screen
The query that mounts the screen is as follows : public List<Produto> listarProdutosDoGerenteRegional() { try { return manager.createQuery(" select p from Produto p where…
-
-1
votes2
answers2088
viewsQ: Where to change the name of the project?
I have a project with the following link http://localhost:8080/Reliability/Home.xhtml . It turns out that the real name should be http://localhost:8080/Previoussales/Home.xhtml where I could change…
-
0
votes1
answer55
viewsQ: Data does not persist when saving with dialog box
I have a list where I want to select the item change a product table field and save to the bank through a dialog. Knowing that a product has several historical , ie the relationship is Onetomany .…
-
1
votes1
answer426
viewsQ: Value '0000-00-00' can not be represented as java.sql.Date
I need to take a table called history the last three months and a year before to register in the product table. The code is as follows: for (int i = prod.getHistoricos().size(); i >= 0; i--) { if…
-
1
votes1
answer761
viewsQ: Error saving related entities - Unsave Transient instance
A subsidiary owns a product - relationship @OneToOne - and one product has several historical. Method of registering implemented: public class CadastroProdutoService implements Serializable {…
-
0
votes1
answer111
viewsQ: Nullpointerexception error while saving object
I select the object through the bean and the link in the data table change in a dialog and when giving the dialog’s Ubmit I get the nullPoiterException error. Someone would know why? Bean code…
-
0
votes1
answer183
viewsQ: How to delete multiple lines in datatable
I am trying to delete several lines in my data table at once and get nullPointerException. I am sending the code Bean @Named @ViewScoped public class PesquisaFamiliasBean implements Serializable {…
-
0
votes1
answer78
viewsQ: cellEditor of the first faces giving error
I am trying to edit a cell in my data table and get error. follow my bean : @Named @ViewScoped public class PesquisaPrevisaoBean implements Serializable { private static final long serialVersionUID…
primefacesasked user2509556 403 -
1
votes2
answers47
viewsQ: Error to popular array with Double
I need to put in a array of double the quantity field data coming from the database. By doing this with the following code: static List<Historico> listaComCincoUltimosMeses = new…
-
4
votes1
answer455
viewsQ: Calculation of the weighted moving average with exponential adjustment
How could I calculate the a in the following java formula: I did the following : Df = Df + a(1 -a) xx i I generalized the formula I just don’t know how to calculate the a, like making a formula…
-
2
votes1
answer193
viewsQ: Fileupload does not load the Listener into JSF 2.2
I am migrating a project to JEE7 from Primefaces 3.5 to 5.0 and I have a problem with Fileupload. Does not load the file into the JSF 2.2 Event Manager. Follow the xhtml code: <p:fileUpload…
-
0
votes0
answers34
viewsQ: Data does not persist in the database
I have a Primefaces3.5, JSF 2.1 and JPA 2.0 application I am uploading a file in which it does not persistence in the bank but outputs in the console are ok. I still don’t understand why you’re not…
-
1
votes1
answer782
viewsQ: How to read xml for object with Xstream
I have a relationship of 1 to n from product to historical , that is, a product has several months/histories. How to read the following xml for Object? <produto> <descricao>PAVESINO…
javaasked user2509556 403 -
3
votes1
answer238
viewsQ: How to play query with Mysql queries in Hibernate?
I am using JPA 2.0 and trying to play this query in Hibernate , but I am not able to visualize how to do. I did it in Mysql language SELECT totalassociado, totalcriticado, items.item_codigo_item,…