Posts by Marcelo Gomes • 551 points
45 posts
-
1
votes0
answers46
viewsQ: How to display the full Android keyboard (text + numeric)?
I implemented a mask component for a text field in my App (https://github.com/VicMikhailau/MaskedEditText/issues). It works very well, but I came across a problem that in Edittext normal does not…
androidasked Marcelo Gomes 551 -
0
votes1
answer150
viewsQ: Set Jobservice Android Runtime
Hello, I need to implement a Jobservice on Android. I created the base class for a Job, but I’m not able to define an execution parameter, minutes, days and hours etc. I find no example, someone…
androidasked Marcelo Gomes 551 -
0
votes0
answers21
viewsQ: How to get server path without starting Facescontext - JOB execution?
I have a JOB in which I need to download files in order to use them. My project is Java + JSF + CDI. It happens that at the time of the execution of JOB I have no user logged in and the return of…
-
0
votes1
answer67
viewsQ: How does the field update via Ajax occur?
I have the following question/problem: I have an ajax script that searches the zip code and fills some fields on the screen. One of them is the neighborhood. In the sequence I need to use the result…
jqueryasked Marcelo Gomes 551 -
-1
votes1
answer270
viewsA: Upload JSF File with ajax
Take a look at this article. I think it will help you. According to this article, there is a bug in Mojarra that makes it necessary to submit the full page render='@all'..…
-
4
votes1
answer927
viewsA: Search Orange/Eloquent dates interval?
A teammate passed me an example in another language and using a whereRaw of eloquent achieved the expected result and I’m sharing: $d1 = data2Mysql($dataI); // format Y-m-d $current =…
-
2
votes1
answer927
viewsQ: Search Orange/Eloquent dates interval?
How to search the date range? I searched and many places indicate how to search for date ranges as example below, but without result. $d1 = data2Mysql($dataI); // format Y-m-d $d2 =…
-
1
votes3
answers6930
viewsA: Asset Help (Laravel Blade)
The arqivo is safe with the extension .blade.php? Why do you ask? The printed result should be something like: <script type="text/javascript"…
-
0
votes2
answers383
viewsA: Why can’t I erase an object with Hibernate?
Using CDI you should annotate the method in DAO or Service, depending on your strategy: @Transacional public void excluir(Processo processo) { try { daoProcesso.remover(processo);…
-
2
votes1
answer6731
viewsQ: How to keep the input date bootstrap on the page?
I implemented the "date" class of Bootstrap 3. When accessed the page, the field is rendered normally, but at the end of the page load the input text and the calendar icon simply vanishes.…
-
0
votes4
answers4991
viewsA: Datatable does not order correctly
To translate, use: $('#table-clientes').DataTable({ "language": { "url": "https://cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese-Brasil.json" } });…
-
0
votes0
answers70
viewsQ: How to set timeout to dump in database.php?
I need to increase the timeout of MySQL for the execution of a dump bank. 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'),…
-
1
votes1
answer1235
viewsQ: How to create an array dynamically in PHP?
I need to create an array in the format: //$arr = ['id' => 1, 'razao_social' => 'Teste'] // saida esperada // iteração foreach($prestadores as $prestador){ // logica separando apenas alguns…
-
2
votes1
answer644
viewsQ: How to get the result of the query executed in Eloquent?
How do I get the result of query which will be executed in the database? Example: foreach ($prestadores as $prestador){ $achou = \DB::table('modulo_pr_espelho') ->where('prestador_id','=',…
-
2
votes1
answer81
viewsA: How do I send email via E-mail?
The problem has been solved by including in the method Mail::send the from. Correct shipment: Mail::send('emails.listaprestadores',['prestadores' => $prestadores],function($message) use…
-
1
votes1
answer81
viewsQ: How do I send email via E-mail?
I have the following routine implemented in Laravel $prestadores = \App\Prestador::all(); Mail::send('emails.listaprestadores',['prestadores' => $prestadores], function($message) use…
-
1
votes1
answer1707
viewsQ: How to solve css loading problem and js Ready to work?
When I run my local application, the styles and js are loaded normally. The css and js are in public/css and public/js. In production they are not loaded, below the production . htaccess:…
-
1
votes4
answers119
viewsA: Data deletion via Hibernate
Try this: public int truncate(String nomeTabela){ Query query = session.createSQLQuery('truncate table ' + nomeTabela); return query.executeUpdate(); } `…
-
0
votes1
answer1315
viewsQ: Line break in <p:confirm> Primefaces message
I am unable to implement the break line in the following code: <p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do…
-
1
votes3
answers959
viewsQ: How to make a simple JSF download?
How to make a simple JSF download? I have a list of attachments on <p:dataTable> and would like to implement a simple download. I implemented with <a href>, the link about the file name…
-
2
votes0
answers414
viewsQ: How do I clear a <p:messages> from the form by Bean?
I have the following situation: 1. I have a xhtml with <p:tabView> with id="tab"; 2. In this tabview I have 3 tabs and each one with its photons and <p:messages> with their respective…
-
0
votes1
answer859
viewsQ: How to render a jsf component through the bean?
I need to render a jsf component (Primefaces) through the Bean. I have a selectOneMenu that changes the type of person (physical/legal) and I need to render the field "CPF", because I use the same…
-
1
votes2
answers578
viewsQ: How do I block access to an application from the user’s IP?
How do I block access to a web java application by the user’s IP. The application will be hosted outside the company environment, but need that by certain profile can be accessed from outside. I…
-
2
votes1
answer314
viewsQ: What to do to read a column in excel with very large numbers?
How to do for when reading an excel column whose number is too large and prevent it from being interpreted overflowing? In Excel the column is with the number 26468314801. How is a number he carries…
-
0
votes1
answer191
viewsQ: How to run a <p:confirm> through the bean?
My question is: How can I execute one <p:confirm> through the Bean? I will explain the problem better. During the insertion of a record I need to check if it already exists in the list in…
-
0
votes1
answer149
viewsQ: Why is my selectOnMenu of the primefaces rendered differently?
Why are my components selectOneMenu primefaces is not fully rendered? Normal component of the primefaces: My rendered component : Screenshot of the problem. How to change prime css?…
-
0
votes1
answer111
viewsA: To interrupt and return to xhtml error to display in <p:messages>
I got a reply from a friend outside the OS. I implemented and it worked. Follows: import org.primefaces.context.RequestContext; (...) RequestContext context = RequestContext.getCurrentInstance();…
-
0
votes1
answer111
viewsQ: To interrupt and return to xhtml error to display in <p:messages>
I have a processing of a <p:dialog> within this dialog I have a <p:messages>. <p:messages id="msg-dialog" showDetail="true" autoUpdate="true" closable="true" /> The messages of…
-
0
votes2
answers493
viewsQ: Why is my Bean not getting the form Ubmit?
Why my Bean is not recognizing the attribute of a simple selectOneMenu: I created in my Bean the attribute private Long areaprevencaoId. This attribute is associated with a <p:selectOneMenu>…
-
1
votes1
answer232
viewsQ: Because JSF is not respecting the paths entered faces-config.xml
My application is no longer respecting the routes inserted in faces-config.xml, because? Follow the Exception: Caused by: java.lang.NullPointerException at…
-
2
votes1
answer498
viewsQ: java.lang.Classcastexception: Converter JSF error
I am implementing the Converter below: @FacesConverter(forClass = Cargo.class) public class CargoConverter implements Converter { @Inject private CargosRepository cargoRepository; public…
-
0
votes1
answer332
viewsQ: How to include a field in the First Faces dataset that does not exist in the datatable?
How to include a field in the dataPath (Primefaces) that is not in the datatable? I am generating an Excel file from a datatable with dataExporter, but I need to include a column that does not exist…
-
0
votes1
answer630
viewsQ: How to start a certain tabindex tab (primefaces)?
How do I display one on a particular tab? I tried to use the tabIndex="#{meuBean.tabIndex}"setando for 0,1,2 and etc, but when opening it always positions in the first tab.
-
0
votes1
answer510
viewsQ: Why does JSF not recognize the component id in the View?
JSF is not recognizing the "dialogo-analyze" id that is in the view and is giving the error : FATAL: Cannot find component for expression "dialogo-analise" referenced from…
-
1
votes1
answer1317
viewsQ: How to solve the date validation problem - Calendar - Primefaces?
Loading the date in a Calendar (Primefaces) normally loads: Code: <p:outputLabel value="Data de Nascimento" for="data-nascimento" /> <p:calendar id="data-nascimento" locale="pt"…
-
0
votes1
answer94
viewsQ: What’s wrong with running Hibernate Query?
I am running this query in Hibernate: manager.createQuery("from Usuario where senha = '" + senha + "' and login = '" + login + "'", Usuario.class).getResultList(); But is giving an Exception that…
-
1
votes4
answers93
viewsA: Help with programming logic
Inside of your go put the Insert in the table $tam = sizeof($peca); $grupopeca = ""; for ($c=0;$c<$tam;$c++){ $insert = "INSERT INTO tabela (item, qtde, valor) values…
phpanswered Marcelo Gomes 551 -
1
votes2
answers237
viewsQ: Why isn’t jsf recognizing Istener in the Bean?
Why jsf is not recognizing the Bean Reader? My bean: /** * Listener que escuta a mudança do tipo de Solicitante * * @param event */ public void mudarSolicitante(ValueChangeEvent event){…
-
4
votes3
answers513
viewsA: How to put the last row number of a Mysql table into a variable
Implement this way and do not forget to recover the error, there may be some exception and you are not recovering. Try this: $leitura = "SELECT * FROM php_teste"; <== seu select $resultado…
-
-1
votes1
answer33
viewsA: How to send emails in php version 4.3.11?
Usually the "hostings" allows you to change the "engine" of php through the Control Panel. Contact them. There must be some wiki of them that can help you.
-
2
votes2
answers60
viewsA: Navigation problem using Button in Bootstrap
Use jsf components like this: <h:commandButton action="/Terezinha.bandeira" value="Inicio" styleClass="btn btn-primary btn-lg" />
-
0
votes1
answer87
viewsQ: How can I not update a page when closing a Richfaces modalPanel?
I need that when closing a Richfaces modalPanel the page on which the modal was called is not rendered. The action to close the modalPanel is like this: <h:commandLink…
-
2
votes1
answer165
viewsQ: How to get the final JPA SQL using Namedqueries
How to get the SQL that is running by JPA when we use a createNamedQuery. I would like to have SQL run to understand where the query problem is below: Call from the Namequery EntityManager em =…
-
0
votes0
answers151
viewsQ: Return to the region where you were when you submitted the form (JSF 1.2)?
I have a page jsf with 2 master/detail moulds. How do I make sure that after the form submission the bean details the region of the page where the detail is? I’m using jsf 1.2 and Richfaces 3.3.3.…
-
0
votes1
answer338
viewsQ: Problems with selectOneMenu in Jsf 1.2
I need to use JSF 1.2 for client restriction. I’m using selectOneMenu to select the type of person (Physical/Legal) and change the mask dynamically with <a4j:support> and it’s working. But the…