Posts by Fernando • 227 points
32 posts
-
0
votes1
answer27
viewsA: Django 2 Template missing
I took the name of the app where the template is and worked. {% extends "base.html" %}
-
0
votes1
answer27
viewsQ: Django 2 Template missing
In my project I have a project with 2 apps. The first app is learning_logs which has a template, base.html The second app is users, I’m trying to use the learning_logs template on users as follows:…
-
0
votes1
answer119
viewsQ: Problem with Pytest
I am trying to apply pytest in a project that uses Bhaskara’s Formula, because it is giving error and I am not able to solve. The following will be the codes with the error. Thank you. import math…
python-3.xasked Fernando 227 -
0
votes2
answers111
viewsQ: Separate input value and expected value in pytest.mark.parametrize
How do I separate the parametrize, the input from the expected @pytest.mark.parametrize('entrada, esperado', [(1,0,0,), (1,0,) ]) def testa_raizes(entrada, esperado): assert…
-
1
votes1
answer95
viewsQ: Doubt with Expression Language JSTL JSP
How to verify the value that is arriving in EL, in the listPedidos variable of items ? <c:forEach var="pedido" items="${listPedidos}" varStatus="id"> <c:if test="${pedido.tipoPedido ==…
-
2
votes1
answer71
viewsQ: Doubt with Java EL code snippet
I’m studying a code and I don’t understand this part of EL: <c:choose> <c:when test="${not empty pedidoMesa}"> Pedido: ${pedidoMesa.id} ${pedidoMesa.nomeCliente} </c:when>…
-
0
votes0
answers57
viewsQ: Import Mysql tables into Azure
Someone has some tip like importing tables from Mysql to Windows Azure, I’m finding this difficulty, I know Azure works with the bacpac extension and Workbench works with sql. I read the Microsoft…
windows-azureasked Fernando 227 -
0
votes1
answer75
viewsQ: Field Unique Update with Hibernate
How I treat a Unique field when it’s time to update with Hibernate. It features duplicate field msg. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate…
-
0
votes3
answers35
viewsQ: Doubt Spring MVC Controller
I’m studying Spring MVC, and I’m developing a system that will contain questions and answers. Like the Controller, I create one for Questionscontroller and one for Answerscontroller, or just 1 for…
spring-mvcasked Fernando 227 -
1
votes2
answers44
viewsQ: Show textarea corresponding to href
I have this piece of Javascript/jQuery where I have a textarea hidden and a href. The intention is to click on href to textarea appear so the person can type in his or her answer. I’m having trouble…
-
1
votes1
answer40
viewsQ: Spring XML localization in a Maven project
Within a Maven project, where I put the Spring file, spring-context.xml?
-
3
votes1
answer45
viewsQ: Relationship Database
I’m having doubts about the relationship in the following case: I have the Question table and the Answer table. 1 Question may have N Answers. 1 Answer may be for N Questions. Can it be said that…
-
0
votes1
answer73
viewsQ: href does not execute jQuery and Function
When you click on the Reply link the code does not execute, it does not show the jQuery Alert or Function Alert, tbm does not show an error in the console, does not even execute.…
-
0
votes0
answers66
viewsQ: Mount HTML out of jQuery
I’m having a hard time putting HTML together outside jQuery. $(document).ready(function() { $.ajax({ url : "listAllForum", dataType : 'json', success : function(data) { $.each(data, function(index,…
-
1
votes1
answer136
viewsQ: Good practice when loading a div with database data, using jQuery
What is the best way to build a div with jQuery Example: $(document).ready(function(){ $.ajax({ type:'post', dataType: 'json', url: 'listAllForum', success: function(dados){ for(var i = 0;…
-
0
votes0
answers400
viewsQ: Pass 2 values to a Function for the onClick event
Good afternoon guys, wanted to know how I step 2 values for a Function, I expect to send an id and the message. I did reading some forums on the net, but it’s not working. <a href="#"…
javascriptasked Fernando 227 -
1
votes1
answer225
viewsQ: Doubt with relation of tables Database
Good afternoon, I am developing a system for my learning and I came across a situation where I was in doubt. I have the table in the bank where the questions are recorded. Table question :…
-
2
votes0
answers92
viewsQ: Pass value of href jquery to Spring MVC
Good afternoon guys, I am having trouble passing an id that is in the jquery href for Spring MVC controller update method. Someone could help me. Thank you. $.ajax({ url : "listAllForum", dataType :…
-
0
votes1
answer18
viewsQ: How to configure the mvc resoures tag without xml
Good night. I’m trying to configure the annotation of xml without, according to the code below, to add my js/css pages inside, but I’m not getting it. public class Appwebconfiguration { @Bean public…
-
-1
votes1
answer49
viewsQ: Doubt about saving a data and updating a div right away
Good morning, everyone. Only with jQuery and Ajax I can insert a data into the database and then update a div on the page ? Thank you.
-
0
votes0
answers46
viewsQ: JSP does not recognize Twitter Bootstrap
I’ve been trying to figure out the pq my JSP page does not recognize the CSS of Twitter Bootstrap. The ones I found on the Internet, I’ve tried and nothing. The reference went like this for CSS:…
-
0
votes1
answer36
viewsQ: Twitter Bootstrap does not load in jsp files
Good afternoon, you guys. I have a problem, my jsp pages do not load the bootstrap CSS. I wonder if there is any configuration in some xml or elsewhere that needs to be done, or just put the…
twitter-bootstrapasked Fernando 227 -
0
votes1
answer269
viewsQ: Spring MVC + Maven + Bootstrap Problem
Good morning. I’m trying to put bootstrap on the index of my application but I’m not getting it, index does not read CSS. I searched on the Internet and from what I understood, css should be within…
-
-1
votes2
answers634
viewsQ: Error with @Autowired annotation
Good morning. I’m studying JPA + Hibernate + Spring MVC and I’m a few days with this problem and I can’t solve it. I looked on the Internet and the solutions I saw did not solve. Thank you. Stack…
-
1
votes1
answer29
viewsQ: Spring + Hibernate
Good morning! I’m studying Spring MVC, Maven and Hibernate. In the structure of the project created with Maven, where I put the file applicationContext.xml ? Thank you.
-
0
votes1
answer42
viewsQ: Null in Baseurl - Selenium IDE - Junit
Good afternoon. I am trying to use Selenium IDE Webdriver and noticed that Baseurl is coming null. I saw some examples on the internet, but I can’t understand why this is happening. You don’t even…
selenium-webdriverasked Fernando 227 -
1
votes1
answer5993
viewsQ: How to read an Excel 2013 spreadsheet and write to a Postgresql database?
I’m having trouble recording information in the database. This information I extract from an Excel file. For example, I have 3 fields and do not know how to take the first cell and record in the…
-
1
votes1
answer77
viewsQ: Fail to delete using eclipselink
Good afternoon, everyone. I am maintaining a system that another developer started, before he was using Hibernate and then migrated to eclipselink. When using Hibernate was working normal, and when…
-
0
votes0
answers697
viewsQ: Table with self relationship
Good morning. I have a table that uses auto-relationship, it turns out that not all names entered have parent, but I can not create a name with null parent, there is not be the first that was…
-
1
votes1
answer1667
viewsQ: String Cast for int Hibernate
Does anyone know how to cast a String for int within the query in this query, the variable "searchString"? @Query("SELECT s FROM StoreOrder s INNER JOIN s.user u WHERE lower(u.fullname) LIKE…
-
4
votes2
answers878
viewsQ: Select with null Postgresql field
I have the following select SELECT u FROM User u WHERE lower(u.fullname) || lower(u.username) || lower(u.email)) LIKE %:pesquisa% It turns out I want to do the search for any of the 3 existing…
postgresqlasked Fernando 227 -
3
votes1
answer188
viewsQ: Failed to use Spring MVC and Jparepository search field
Good afternoon. I’m working on Repository and Spring MVC. I have an interface, Storedao that looks like this. public interface StoreOrderDAO extends JpaRepository<StoreOrder, String>{…