Posts by paulohddias • 545 points
12 posts
-
2
votes3
answers7481
viewsA: Compare Two dates and time
I think you better use the Legend class Calendar dataAtual = new GregorianCalendar(); Calendar dataMAxima = new GregorianCalendar(); dataAtual.setTime(new Date());…
-
13
votes1
answer487
viewsQ: Change the scroll of spring-security by bean
I’m using the spring-security to authenticate my user, until then beauty, now I want to be able to exchange the user’s role for managed bean, someone has an idea? Type I have several modules and…
-
14
votes6
answers41250
viewsA: How to prevent Submit from an empty form?
You can do it via Javascript $("#form").submit(function() { if($("#campo").val()== null || $("#campo").val() ==""){ alert('campo vazio'); return false; } }); or you can use HTML5 <input…
javascriptanswered paulohddias 545 -
1
votes4
answers61202
viewsA: Placing value in a text box (input)
change to: function open_popup(date_today){ $("#txtstart").val(date_today); } and in input: <input type=text required name='txtstart' id='txtstart' style='width:150px' value=''>…
javascriptanswered paulohddias 545 -
3
votes3
answers388
viewsA: Refactoring of a java class
The MVC structure indicates you use Model where you will create class referring to your entities within it we have the class attributes and the get’s and set’s plus the toString() only this, if you…
-
1
votes1
answer840
viewsQ: Erro em relacionamento Manytomany no Hibernate
I have a problem with @manyToMany. You’re making the mistake: org.hibernate.Multiplebagfetchexception: cannot simultaneously fetch Multiple bags Follows my model: @Entity @Table(name = "sar_evento",…
-
1
votes3
answers2134
viewsA: Compare Mysql Select Values
Try using the command between. Example: SELECT column_name(s) FROM table_name WHERE column_name BETWEEN value1 AND value2;
mysqlanswered paulohddias 545 -
0
votes2
answers2691
viewsQ: Display an image that is outside the JSF project
Hello I have a screen that uploads a file and saves in a folder in a directory of the computer until and saved in the database the complete path of the image, now I want to display this image in a…
-
0
votes3
answers660
viewsA: Position of a text relative to the top line
Hello to Text box Voce can use tag paragraphically ex: <div> <p>olá 1 beijo</p> <p>beijo olá 1</p> <p>1 beijo olá</p> </div> If not, please post a…
-
2
votes1
answer856
viewsQ: Error message in Glassfish
I’m using the Glassfish 3.1.2.2 along with the Netbeans 7.4 and I don’t know where you keep giving this information every time I start the server: INFO: The [admin] user of the 127.0.0.1 host does…
-
3
votes2
answers595
viewsQ: @Named does not work JSF
I am doing a project with jsf 2 and glassfish server when I put @Named in my bean the attributes get null only works with @Managedbean someone has already gone through this problem
-
2
votes1
answer195
viewsQ: Limit set size<> with JPA
I’m having a hard time searching Google and I can’t find a solution. I have a note in JPA with a set<> I want to limit the size of objects inside the set, that is, the code below:…