Questions tagged as 'java'

0
answers

Windows environment variable auto increment

Summarized question I need an environment variable in windows that is auto increment:    setx / a PORT = 1000 and every time you call the% PORT%:    setx / a PORT =% PORT% + 1 The result would be: echo %PORT% 1001 echo %PORT%...
asked by 04.11.2015 / 13:25
1
answer

Hide column at time of edit

I have a registration screen with some attributes, which at the time of editing I do not want to load the password, because I just want to change the name and the email, that is, I want to hide the password column only in editing. p> NOTE: All...
asked by 03.11.2015 / 14:01
0
answers

Remove pdf image using itext

I am adding image in pdf with itext, however in some moments I need to remove this same image .. how do I do this so as not to corrupt the reading of it? I have tried in some ways, as follows: The first attempt was to clean the streams of the...
asked by 05.07.2016 / 20:06
2
answers

AlertDialog button to confirm ERROR

My friends have a problem, I tried to understand the operation of AlertDialog, where the focus was to create two buttons to confirm the dialog. The code I'm using is this: import android.content.Context; import android.content.DialogInterface;...
asked by 06.07.2016 / 22:52
0
answers

Data entry - Foreign keys in Java

I'm having a bit of trouble implementing foreign keys in my project. DAOProduto.java public class DAOProdutoImpl implements DAOProduto { private GerenciadorDeConexao gc; public DAOProdutoImpl(){ gc = GerenciadorDeConexaoMysql.getInsta...
asked by 01.12.2015 / 16:31
1
answer

Retrieve Cookies in Authentication with Spring Security

How can I recover cookies when the user logs in through Spring Security and with the implementation of the AuthenticationProvider interface? If I retrieve an instance of HttpServletRequest from a class with a controller I have acce...
asked by 16.12.2015 / 13:02
3
answers

How to use f: setPropertyActionListener with Passthrough Elements in JSF 2?

I'm using Passthrough elements in my JSF project, and I need to do something similar to this: <h:commandLink action="#{meuBean.acao()}" value="clique aqui"> <f:setPropertyActionListener target="#{meuBean.objeto}" value="#{objetoLo...
asked by 14.12.2015 / 21:11
0
answers

Fill web form using Java application

There is a website that I need to use frequently. On this site I need to repeat a sequence of steps. I want to write a program that automates this process (I have more practice with Java, but it can be in any language). I tried Selenium, but...
asked by 08.12.2015 / 15:01
1
answer

Creating Parameters for IReport

I'm developing a Java Software where the user makes registrations. Each product registered can be printed. Each product can have multiple images and these images should be printed along with the data of the other products. There may be no pictur...
asked by 07.12.2015 / 19:42
2
answers

How to pass list of objects to Subreport?

I have the iReport plugin on netbeans. I already configured the classpath to recognize my classes, I do the following steps: 1st - Send the list of objects Boletim to the main report, each bulletin has information of a student. (This p...
asked by 26.10.2015 / 16:37