Posts by Mamga • 413 points
28 posts
-
2
votes1
answer713
viewsQ: Git - Change commit message
How do I change the message I made in a particular commit? Example: Primeira Mensagem 1212121 Segunda Mensagem 8989898 I’ve tried with: git rebase -i HEAD~2 git commit --force but it didn’t work...…
-
1
votes0
answers225
viewsQ: PHP Post - Run Function before Submit
Here’s what I can’t do: Let’s say my system url is www.meusistema.com.br and I need to send my system information to another one... In my system I have the following form…
-
2
votes2
answers451
views -
0
votes2
answers9216
viewsQ: Bootstrap - Change font
I have a bootstrap system and need to change the FONT of all pages. Can you change this only in bootstrap.min.css and not have to file by file? How to do? The font-family I need is not the one that…
-
1
votes1
answer4379
viewsQ: Bootstrap Modal Responsive - Height
I need a responsive modal that adapts the height of the browser. If the whole modal does not reach the height the scroll will not be shown, but if it exceeds the size/height, the scroll will be…
-
0
votes1
answer220
viewsQ: Bootstrap - Update only one div (Menu)
I am starting a project with bootstrap and would like to update only the div class=content when selecting some menu option. How do I do? Follows: ├── html files │ └── index.html Src/ ├── pages/ │…
-
0
votes0
answers216
views -
0
votes1
answer462
viewsQ: Retrofit: Could not locate Responsebody converter for
I’m working on a system and I need Retrofit2 (with Spring Boot) but I’m not getting. Follow the source and error. @JsonIgnoreProperties({"codibge", "codestado"}) public class CEP { private String…
-
1
votes2
answers2495
viewsQ: Firebase Cloud Messaging (FCM) - Push Notification (Java)
I am working on a backend that I would like to use to send / Push notifications to android app using the Firebase Cloud Messaging (FCM). I’ve read the documentation a few times (WCF) but I still…
-
2
votes1
answer39
viewsQ: Value of one of the array fields
I need to check the value of one of the fields of a array but I’m not getting it. var_dump($array_exemplo); array(1) { [0]=> array(3) { ["primeiro"]=> string(1) "1" ["segundo"]=> string(1)…
-
1
votes1
answer706
viewsQ: Laravel / Eloquent - Consultation in more than one table
I have the following Tabelas/Models and I’m not getting a consultation: Model 1 id | Name ---+--------------- 1 | Model1.1 2 | Model1.2 3 | Model1.3 Model 2 id | Name | model1_id…
-
0
votes1
answer277
viewsQ: Create / Edit a file on the server (Apache)
With the following code I would like to create a file on the server. <?php date_default_timezone_set('America/Sao_Paulo'); $nomeArquivoLogDia = date('Ymd') . '-teste.log'; if…
-
3
votes2
answers547
viewsQ: Format java.time.Duration for String
The code below is producing the following output: Resultado: PT2H30M I wish it were: Resultado: 2:30 Does anyone know how I can do? import java.time.Duration; import java.time.LocalDateTime; public…
-
1
votes1
answer1539
viewsQ: ERROR: column "type" of relation "tb_person" does not exist
Hello. I am trying to persist a record, but when I run, it is returning the error below: // ... @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "tipo", discriminatorType…
-
3
votes1
answer750
viewsQ: Postgress Crosstab - Return and sql tuple descriptions are incompatible
I’m trying to use Crosstab in postgres but... CREATE TABLE tb_testect ( datahora timestamp without time zone, teste integer ); * Correction INSERT INTO tb_testect VALUES (TIMESTAMP '2016-01-01…
-
1
votes1
answer160
viewsQ: Htmlunit / Webclient / Wildfly10 error
I’m trying to use the htmlunit but it’s happening: *** Environment/Server: WildFly10 When executing the following command: WebClient webClient = new WebClient(BrowserVersion.FIREFOX_45); The mistake…
-
0
votes0
answers553
viewsQ: Primefaces - Requestcontext Update
Hello, When loading the page the method iniciarTeste() will be called as follows: <f:metadata> <f:viewAction action="#{testeController.iniciarTeste()}" /> </f:metadata> On the same…
-
1
votes0
answers538
viewsQ: Update Datatable - Ajax cellEdit (Primefaces )
Hello, I’m trying to update Datatable but I’m not getting it. Follow the code: <h:form id="testeForm" > <p:panel toggleable="true" id="panelTeste"> <h:panelGrid columns="1"…
-
0
votes1
answer620
viewsQ: Primefaces - p:fileDownload PDF
Hello, I’m trying to download a PDF in my application but I’m not getting it. When I click on the Download instead of downloading is checking in the form if the required fields have been filled in.…
-
1
votes0
answers99
viewsQ: Restful resteasy - Client (Ava.lang.Nosuchmethoderror)
I’m trying to access a Webservice Code: public void testeWSRestful() { Client client = ClientBuilder.newBuilder().build(); WebTarget target = client.target("http://localhost:8080/teste"); Response…
-
1
votes0
answers257
viewsQ: Jboss7 - JBAS015801: Invalid option
Hello, does anyone know how I can solve this problem? I already installed Avast and solved the "virus" problem on my machine, but now I can’t start Jboss. 14:31:07,232 INFORMAÇÕES…
-
1
votes1
answer554
viewsQ: How to inform download PDF file name using Itext/Lowagie and Primefaces?
I am able to download the generated file, but I can’t set the name nor the . pdf, just download as index.xhtml. Does anyone know how to fix it? I call the method to generate PDF like this:…
-
0
votes1
answer69
viewsA: Not from Submit with only 1 click in form if the focus is on a p:ajax field
I couldn’t solve it the way I wanted, I removed the tag p:ajax and now I’m checking on Controller at the time of commit.
-
1
votes1
answer499
viewsQ: dynamic "message" of p:confirm - Primefaces
Can anyone tell me how to change the message of <p:confirm>? When you click the button I want the value of message is returned by the method messageCount(). ... <p:outputLabel…
-
0
votes1
answer69
viewsQ: Not from Submit with only 1 click in form if the focus is on a p:ajax field
I’m not getting the Submit in the form with just one click. When I click "Ok" the field loses the Focus and processes the ajax. Then I have to click again to send. ... <p:outputLabel…
-
3
votes1
answer3905
viewsQ: Hibernate - Uplicate key value violates Unique Constraint
I have the following problem: Person: @Entity @Table(name="tb_pessoa", schema="public") @Inheritance(strategy = InheritanceType.JOINED) public class Pessoa implements Serializable { private static…
-
0
votes3
answers137
viewsQ: Postgresql Query - How to do this?
How to make an SQL query in this table: ID Col2 Col1 -- ---- ---- 11 1 A 12 2 D 13 3 G 14 1 B 15 2 E 16 3 H 17 1 C 18 2 F 19 3 I To return this result: 1 A B C 2 D E F 3 G H I Is that even possible?…
-
0
votes0
answers97
viewsQ: svn - ... is not under version control
I’m trying to do CleanUp or Commit of my eclipse project and is returning the following message: svn: Error modifying entry for 'test' svn: 'test' is not under version control Can anyone tell me…