Diego Creador

Greenhorn
+ Follow
since Jan 10, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Diego Creador

Hello!

I need some orientation, Im pretty new to webservices.

What I want is to read an XML from the webservices header. I need to get some fields from the xml like:




Can you give me some example or something? Anythins is wellcome.

Thanks in advance
8 years ago
Hello Guys!

Im quite lost about how to configure a connection pool for Hibernate with anotations. I been reading a lfew tutorials but I get lost.

I want to use C3PO and I understand how to set it. But I dont understand hoy to make the hava class that create te session factory, because its not recommended to use HibernateUtil class any more.

So my questions is, after configuring hibernate, c3po, what java classes should I implement??

Thanks a lot for any advice.
Hello friends!

Im using a datatable with a checkbok selection column, and I need to fire an action when a row is checked, so I used the <p:ajax> to do that. But the action is never fired. Can you help me with this? By the way, Im using primefaces

The code in the xhtml is this:



And the method that should be call



Thanks in advance. Regards
Diego
12 years ago
JSF
Hello Friends!

I dont know if this is the right topic to make this question. I need some advice, I have a web application and I need to get the user that is login.

This web application is built in java using JSF, and I need to get the user in the bean class. I know that I can get the user from the request parameter, the thing is that I have no idea how to get it? Can you give me some advice?

Thanks in advance.
Regards
Diego
12 years ago
JSF
Hello Friends!

I dont know if this is the right topic to make this question. I need some advice, I have a web application and I need to get the user that is login.

This web application is built in java using JSF, and I need to get the user in the bean class. I know that I can get the user from the request parameter, the thing is that I have no idea how to get it? Can you give me some advice?

Thanks in advance.
Regards
Diego
12 years ago
Hello Komal!

That was the problem

Thanks a lot for the help

Regards
Diego
Hello Friends!

Im using hibernate in my project, and I have a problem while trying to update a property of the object.

My object class is like this

private Integer perfilid;
private String nombre;
privateSet <Area> areas;


Whit the setters and getters. And the hbm is like this




The problem is that I cannot update the propertie "areas" . Im doing something wrong?

In the bean the update method I set this way the properties

perfilSelect.setNombre(nombre)
perfilSelect.setAreas(areas);
new PerfilHome().saveOrUpdate(perfilSelect);

Thanks in advance for the help!

Diego
Hello friends!


Im having a problem with HIbernate while I tried to inicialize the application, Im pretty new to HIbernate, so I dont have to much idea what could it be.


Here I copy the error trace, and below, the method which have the problem


14:22:25,561 ERROR [jsp:154] java.lang.NullPointerException
at com.aiti.util.OpenSessionOnRestoreViewListener.initConnection(OpenSessionOnRestoreViewListener.java:42)
at com.aiti.util.OpenSessionOnRestoreViewListener.beforePhase(OpenSessionOnRestoreViewListener.java:26)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
....


And the function is




I appreciate any help! Thanks in advance

Regards
Diego
Hello Guys!


Im having a problem with the selectOneMenu tag. What I have to do is when I pick one of the item of the list call a method that fill me anothers fields

But the thing is that I tried several ways but the method is never call

My code look like this



Do you guys see any problem? Im using primefaces 3.x

Thanks in advance
Regards
Diego
12 years ago
JSF
Hello friends!

Im having a problem with an autocomplete function in JSF, im using primefaces and despite I follow the steps in the example of the primefaces pages, I dont get the result list show. So the problem is when I enter the search parameter, and get the result, nothing is show on the field (the list dont appear)

My code is





From the methodGetList I get a result, so I guess the problem is in the tag autocomplete. Do you have any idea?

Thanks in advance
Diego
12 years ago
JSF
Hello friends!

Im having a problem during the start of the server. Im using tomcat 6.0 and also add to the proyect the library jboss-el-2.0, with the jars "jboss-el-2.00.GA.jar" and "el-api-1.0.jar"

And the log gives this trace



I guess the problem is with the jar el-api , so I do this 2 thing:

- Remove from the user libraries of jboss
- Remove from the tomcat and add the one of jboss

But none of this work, Do you have any ideas?

Thanks in advance for the help

Regards
Diego
12 years ago
Hello! Thanks for the help.

I made the changes and I add the log file. And I see the problem, the command that I need to execute is not a paramet of the bat file.

This code should work this way, the bat file set the enviroment and then after the bat excutions end, run the command. Is there a way to do this???

Regards
Diego
13 years ago
Hello guys!

Im having a problem I need to call cmd, excute a bat file external of the proyect and then run a command.

What I do is



And I getting a exit value of 1. I think that the problem could be in this: /c c:\\bat\\my.bat

I also tried to call run.exe with cmd [] with the arry. And get the same problem. Can you help me with this?
13 years ago
Sai, I found out that the problem could be the jgp flie.

I dragged and dropped on IE and firefox the jpg file , on IE the file couldnt be display on firefox is displayed fine. Perhaps is because this jpg file is a subimage of a larger .tiff file and the IE cant support this?

13 years ago
I canĀ“t because the source code option is gray, like it is not avaible. Both in IE and Firefox
13 years ago