Questions tagged as 'java'

1
answer

Annotation @Get does not work on the controller

I'm trying to customize my url with @Get in Vraptor 4, but it's not recognized, Follow the controller: @Controller public class OlaController { @Inject Result result; @Get("/ola") public void digaOla(){...
asked by 07.10.2016 / 16:46
1
answer

doubts to block page transition via URL

I'm wondering how do I block any kind of page transitions via URL regardless of whether the user is logged in or not, for example if I'm on the home.xhtml page, I can only go to another page if I click on the referrer button to it, because curre...
asked by 07.10.2016 / 19:17
1
answer

Write object on a list not the reference

The problem is the following I try to save the object in a List and what happens is that it saves the reference not the object can someone help me solve this problem? ArrayList<ModeloParcela> modeloParcelas = new ArrayList<ModeloParce...
asked by 04.10.2016 / 21:47
0
answers

Class modularisation doubts

I am developing an application for didactic purposes, college end of semester work, in this will do CRUD of the disciplines in a table in the already created bank, "DISCIPLINES" , I thought about creating a list of processes, if you want to red...
asked by 04.10.2016 / 19:22
1
answer

White Space selectOneMenu

I would like to know if it is possible to remove a blank field in selectOneMenu, I have the following case, I have a selectOneMenu that displays several names, some names that I do not want to appear I used .replace ("name", " , but now the sele...
asked by 05.10.2016 / 16:32
1
answer

NullPointerException when doing query in SQLite

I am having a problem that is greatly undermining the development of my application. It aims to sort out an issue (not implemented yet, I am using a fixed value for the question id) through a query in SQLite, and pass it on to the TextViews. Her...
asked by 05.10.2016 / 19:18
0
answers

invalid stream header: 00000000

Good evening. I'm trying to read all files from a directory on a machine (client) and send it to another machine (server) using Java Socket. However, at the end of the transfer I get the following error in the "server" application: java.io.Strea...
asked by 06.11.2016 / 22:35
1
answer

SDK Issues in Fedora Workstation 24

A few days I installed Fededora 24, with everything completed I installed Ionic and Cordova, and soon after the JDK. When you give the following command ionic build android I checked that the SDK was missing, I installed it normally, but...
asked by 07.11.2016 / 22:26
0
answers

Set variable value in InputText JSF

People, I'm having a doubt maybe even a little beast but I can not solve it, I'm starting in web development using java and jsf, primefaces and I'm having a problem when changing a registry. I have a listing page that contains the detail button...
asked by 22.09.2016 / 20:20
1
answer

How do I add values in a vector?

Well ... I know how to add values into a vector. Actually, that's not quite it. I'm learning Java a short time ago and started working with netbeans. The teacher requested an activity to create a registration form for students. So far the cod...
asked by 21.09.2016 / 23:21