Posts by Mayllon Baumer • 586 points
29 posts
-
1
votes1
answer39
viewsQ: Problem with controlling connections with the Bank
I am having some problems connecting to the database. Follow my code and the exception. Code @Repository public class MinhaClasseDAOImpl implements MinhaClasseDAO{ protected EntityManagerFactory…
-
0
votes2
answers309
viewsA: SQL update query syntax error
I believe that putting an Alias for the subquery solves. UPDATE Artigos SET Artigos.totale = tmp.sent FROM Artigos INNER JOIN (SELECT cod_artigo, Sum([quantidade_ent]) AS sent FROM entradas GROUP BY…
-
1
votes0
answers97
viewsQ: Error passing request attribute to angular directive
I have to pass an array of objects to an angular directive, but I have the error below. How do I resolve ? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{…
-
0
votes2
answers332
viewsQ: JSP to import all acquisitions from a directory
It is possible import all files in a directory with only one call working with JSP ? Today I have the following: <script src="../resources/js/angular/directive/layout/mensagem.js"…
-
4
votes1
answer893
viewsQ: I cannot ignore fields when trying to return them as Json causing "Infinite recursion"
I’m working with Hibernate, Spring and Jackson (to ignore fields) and when trying to return the class User in a json request java returns error due to mapping @Onetomany and @Manytoone with class…
-
0
votes0
answers285
viewsQ: Hibernate, JPA and SQL Server ERROR
I can’t get my application up. Below the stack, persistence and pom. Stack 22:25:32.131 [main] ERROR o.h.tool.hbm2ddl.SchemaExport - HHH000231: Schema export unsuccessful…
-
2
votes2
answers486
viewsQ: Reference microsoft.office.Interop.word not listed in Visual Studio
The microsoft.office.Interop.word reference is not listed for me to add to my project. What do I do to make it appear ? I’ve already enabled Microsoft Office 15.0 Object Library option.…
-
3
votes1
answer2361
viewsQ: How to put mask on table with angular?
How to put monetary mask in a table ? For inputs I used the directive ui-money-Mask, but I need to put in a table cell. <td>{{item.valor}}</td>…
-
0
votes2
answers445
viewsA: I cannot generate a pdf file
I think I need to work with the context, adapt the example below. Example: public void createPDF() { log.debug("entered createPDF"); FacesContext context = FacesContext.getCurrentInstance();…
-
1
votes1
answer660
viewsA: Problems with CSS on an XHTML page
Try it this way. The fact that it doesn’t appear is that the menu text was the same as the background, when I switched to red it appeared. I don’t know how you get with the rest of your style, but…
-
4
votes4
answers318
viewsA: Div inside another broken div
.row { display: table; width: auto; border-spacing: 5px; /*cellspacing:poor IE support for this*/ margin: 20px auto 0…
-
3
votes2
answers3185
viewsA: Binary search in chained list
Whereas you can get the amount of elements, you can figure out which is half of the list. With this you would have to go from the head of the list to the middle and compare the desired value with…
-
0
votes1
answer199
viewsA: Error using outputPanel with autoupdate=true in primefaces
I solved the problem using two points before id inside the update no attribute composite I wanted to update, it was like this: Call from the Committee: <p:outputPanel id="fProdcutsTel">…
-
-1
votes1
answer199
viewsQ: Error using outputPanel with autoupdate=true in primefaces
I have a custom component where I use the Carousel. When I click on an item from Carousel I update my managebean and need the screen to be updated. I use the outputpanel with autoupdate=true, but…
-
0
votes3
answers1170
viewsA: Count Mysql records
I guess that solves it, I didn’t test it. SELECT v.vendedor, v.data_venda , v.hora_venda, tmp.quantidade FROM vendas v, inner join (select vendedor, count(1) as quantidade from vendas group by…
mysqlanswered Mayllon Baumer 586 -
4
votes2
answers335
viewsQ: How to iterate an attribute with Java Reflection?
In the method below, I use Reflection to set attributes from one class to another, based on mapping via Annotation. How do I map an attribute of a class that is an attribute of another? For example,…
-
0
votes1
answer242
viewsQ: How to delete a table from SQL Server "memory"
I had a table called tb_state in an SQL Server database and deletes it, when trying to create a table with the same name the system returns error stating that it already exists, how do I delete the…
sql-serverasked Mayllon Baumer 586 -
0
votes3
answers994
viewsA: $Scope Form Angularjs Directive
You can try the following, use the object that contains the information you want to send to the modal as two way data Binding, would be more or less like this: angular.module('app.directives')…
-
0
votes3
answers959
viewsA: How to make a simple JSF download?
I believe the method below meets your need. public static File gravaArquivoDeURL(String stringUrl, String pathLocal) { try { //Encapsula a URL num objeto java.net.URL URL url = new URL(stringUrl);…
-
2
votes2
answers907
viewsQ: Mount Stored Procedure Dynamic Query in SQL Server
need to mount a conditional query with stored Procedure, to make clear my problem I will expose here to sp with what I want to work, note the end where I use Ifs, this there the problem. USE…
-
5
votes1
answer684
viewsQ: Is it possible to use composite key for Entity Framework with Model First?
I have the modeling down and will need to map composite keys like the Embedded id of Hibernate, but in the Entity framework using the model first, it is possible ?…
-
0
votes1
answer680
viewsA: Access an attribute from another module
There is no need to directly change the $Scope from another module, but using the two way Binding. So it was only necessary to pass the data as attributes in the directive: <cabecalho-interno…
-
0
votes1
answer680
viewsQ: Access an attribute from another module
I need to update the values within the message directive through the keep-vendor-form directive, both are within the keep-vendor directive. Is it possible ? If so, how do I do it ?…
-
0
votes3
answers1233
viewsA: Pass directive inside template
I was given the code below to circumvent the problem, but I believe it’s not the best way, someone has another suggestion ? angular.module("layout") .directive('modal', function ($compile, $timeout)…
-
4
votes3
answers1233
viewsQ: Pass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
2
votes1
answer512
viewsA: Pass values between directives
To solve the problem it was necessary to change the @’s by = and change the name of the attributes in the message directive, because the names with Camel case were giving problem. "use strict";…
-
2
votes1
answer512
viewsQ: Pass values between directives
I’m starting with angular and have a question. I have the following scenario: I created a directive with responsibility to show message on the screen. Below her code. message js. "use strict";…
-
1
votes2
answers1257
viewsA: Error when configuring application in IIS Local (Integrated pool)
I was able to solve the problem by adding the following code to the web.config: <configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/>…
-
3
votes2
answers1257
viewsQ: Error when configuring application in IIS Local (Integrated pool)
Personal hail, I am new with . net and am in error when creating an application in iis local. Below print of the exception and my pool. My iis resources and project are the same as a friend’s and on…