Questions tagged as 'spring'

1
answer

Display HSQLDB database created by Spring MVC

How you can view the database created in memory by Spring MVC when using the code: @Bean public DataSource dataSource() { return new EmbeddedDatabaseBuilder() .setType(EmbeddedDatabaseType.HSQL) .generateUniqueName(...
asked by 10.06.2017 / 17:50
1
answer

Error @PreAuthorize (), null pointer exception in @Service UserService

I am developing a web application that registers visitors to a facility. I try to restrict the entry to a section of the application so that only logged-in users with administrator roles can access it. This is my controller: @Controller @PreAu...
asked by 05.06.2017 / 16:37
1
answer

Does not compile Local Repository - Maven

I am using Maven with Eclipse and I have configured a source repository in the pom.xml. In my .m2 are all the dependencies included jars of other projects that I must use (before they were as lib). My problem is that it fails to compile in th...
asked by 31.05.2017 / 17:41
2
answers

I do not get the values from AJAX

I am trying to send some values from AJAX to my controller but they do not reach me. I have looked at some web pages but I have not found the solution to this problem. In the jQuery tag: function add_tipoDoc() { var idTi = document.ge...
asked by 24.05.2017 / 15:19
1
answer

Neither BindingResult nor plain target object for bean name 'dependendenciascheckbox' available as request attribute

Hello I have a problem I get this error but I have reviewed and I do not know what it is? <form:form method="get" commandName="dependenciascheckbox" class="form-horizontal"> <a class="text-left" action="eliminar_dependencia.h...
asked by 03.05.2017 / 18:15
1
answer

How to download different files from Spring mvc driver

Hello everyone how are you? I would like to know if there is any way for my controller method to return dynamically created files, and send them to the view and download them one by one. I have seen examples but only of pdf, and in my case one m...
asked by 12.05.2017 / 15:23
1
answer

Help primeface selectonelistbox

Foreros greetings The value returned by a oneSelectListBox in the event change value using xvalor = listBox1.getSubmittedValue() returns me one:    object = {id = 10, code = 25, description = Cheese Company}. I need...
asked by 12.05.2017 / 14:55
1
answer

Why does? with-faces-redirect = true change the value?

Good, the issue is that when entering the name in the login.xhtml the attribute "user" takes the value that I enter in the inputText, but when opening the "welcome.xhtml" it changes to null. For me to pass the value correctly I had to remove "?...
asked by 06.04.2017 / 09:23
1
answer

Failed to lazily initialize a collection of role: com.companyname.cine.domain.Peli.actors, could not initialize proxy - no Session

I'm starting with Spring and I've come across this common mistake. After reading a lot and trying many of the suggested solutions (for loops for initializing, using transactional etc) in StackOverflow and other sites I have been unable to fix it...
asked by 24.04.2017 / 14:50
0
answers

PostInsertEventListener does not work when I insert a new element using Main class

I have a problem with the EventListeners of Hibernate. First I will tell you what my application is, I will leave the class code and then I will explain the problem. I am developing in Spring in its version 4, and I use Hibernate in it...
asked by 29.03.2017 / 17:07