Posts by Aragão • 79 points
9 posts
-
0
votes2
answers62
viewsA: How to use User-informed search conditions ( Not required )
Edson, a suggestion would be to do as follows in the cake: $params = $this->request->data; if(isset($params['pesquisa1'])){ $conditions['Model.campo1'] = $params['pesquisa1']; }…
-
0
votes2
answers576
viewsA: Add folder with images on the glassfish web server
Ivan, theoretically everything that is inside Webcontent will be available to access via URL, I do this with some simple images on my systems, this way: /home/<Aplicação>/WebContent/resources…
-
1
votes3
answers334
viewsA: Error using LIKE to search by name
In addition to AND after Pessoa.tipo try to add simple quotes in LIKE, SQL uses so: comando.setString(1, "'%" + c.getContratante() + "%'");
-
2
votes1
answer1964
viewsA: Image upload with Primefaces on Tomcat server, only the image path being saved in the database
Thiago, I have a similar application and I do so: public void upload(FileUploadEvent event) { UploadedFile uf = event.getFile(); Tools t = new Tools(); String nomeArq =…
-
1
votes1
answer370
viewsA: How to display an html page in a Jtextpane?
Maybe I need to set the content type of Jtextpane like this: JTextPane painel = new JTextPane(); painel.setContentType("text/html"); Reference of the complete answer : link…
-
0
votes3
answers658
viewsA: Business rules in JSF
Like Gilvan said, there are several ways to do it, here at the company we do it like this: JSF - xhtml Managed Bean DAO Model
-
-3
votes1
answer226
viewsA: Display warnings with PHP
Current Type... Jquery plugin Gritter, very practical: See here And here Calls the plugin so: <script type="text/javascript">google.load('jquery', '1.5');</script> <script…
-
2
votes1
answer134
viewsA: Error when selecting multiple data in php login
You have captured the keyword and keyword in $login and $password, try switching to these variables instead.
-
1
votes1
answer242
viewsA: DELETE Ajax request on a Floodlight SDN controller
May be missing the switch, thus: curl -X DELETE -d'{"name":"myflow1", "switch":"00:00:04:f0:21:11:3d:78"}' http://192.168.0.220:8080/wm/staticflowpusher/json…