Questions tagged as 'java'

1
answer

atOffset using map

private OffsetDateTime getDataDistribuicao() { return Optional.ofNullable(this.getPaginaInfoGerais()) .map(page -> page.<HtmlTableCell>getFirstByXPath(XPATH_CEL_DATA_DISTRIBUICAO)) .map(HtmlTableCell::getT...
asked by 08.11.2017 / 15:13
1
answer

How to do date validation? [closed]

How do I validate the date as the date of birth? Not being able to put the date in the future. data.addTextChangedListener(DateUtils.insert("##/##/####", data)); mData = data.getText().toString();     
asked by 17.07.2017 / 23:08
4
answers

Problems using string for resources

I'm creating a quiz app, the link is link . I'm trying to use getString(R.string.nome) to migrate the strings of the java class and then I can use 2 languages. In other places I was able to pull the strings and it works by showing...
asked by 16.07.2017 / 19:19
0
answers

the type of "OBJECT" is erroneous

I'm studying competition, and I was trying to make a code using semaphore , and this error occurred    "the type of ProcessorThread (int, Semaphore) is erroneous" When I tried to run. I'm using NetBeansIDE, and I wonder what this erro...
asked by 18.07.2017 / 02:24
0
answers

Is there any famSF PHP-style JSF?

I'm a Java programmer and I use JSF on the projects of the company where I work. I'm developing a personal project and I've chosen the PHP language to learn a bit more. The problem is that I saw a huge difference compared to programming with...
asked by 06.07.2017 / 01:13
0
answers

Inject EJB in spring bean

I'm working on a Java EE + Primefaces + JPA project with EJB. In the authentication part I decided to use Spring Security, but I'm having trouble getting the EJB inside the Spring controller. I found some tutorials, but I did not succeed. If som...
asked by 11.07.2017 / 19:25
0
answers

How do I search the information for this autocomplete

<?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://www.w3.org/1999/xhtml" xmlns:h="http://java...
asked by 05.06.2017 / 05:21
1
answer

How to encrypt in the Java Web project

Can anyone pass me some material with the safest way to do system security? I want to put this in the user registry in my JSF project with Primefaces 5.1 for when it is registered to save the password already encrypted in the database.     
asked by 07.07.2017 / 15:17
1
answer

WebView opens browser

I made an application via WebView on AndroidStudio, everything is quiet without errors but when I put the information to log in my webview opens the default browser, I would like it to open in WebView itself: package com.sirseni.simpleandroidw...
asked by 05.06.2017 / 14:13
1
answer

How to load graphicImage image primefaces into different component

My idea at the beginning is as follows: I have a p:dialog header="Foto Funcionário" widgetVar="dlg" resizable="false" component, where I capture my image and cut, as soon as this image is cropped, I would like it to be loaded automatic...
asked by 23.06.2017 / 18:45