[JBoss Seam] - Seam Pros - Need your opinion...Date vs Long
by indyJones
I have a POJO that needs to store date information.
But, I don't want to store the Java type "Date" in my database, I prefer to store my date in the database as Java type "Long".
This is all fine and good, but when i display this POJO, i dont want the Long number displayed for my date, I want a readable date format...
Right now, I have 2 properties on my POJO...
|
| public Long getDate() { return date; }
| public void setDate(Long date) { this.date = date; }
|
| public Date getDateDisplay() { return datedisply; }
| public void setDateDisplay(Date datedisplay) { this.datedisplay = datedisplay; }
|
|
I use one method to save to the database and the other in my JSF EL calls to display on a page.
Is there a better way of doing this?
Is there a JSF tag to convert a Long into a Date?
Is there a way to have a property on my POJO without saving it to the database? (Right now i have 2 columns with the same data)
Or, am I just doing this wrong?
Thanks
Indy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084026#4084026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084026
18 years, 9 months
[JBoss jBPM] - Re: No class loaders found
by mailinator
Hi Ed,
thanks again for helping,
i searched that way and i found multiple deployment of the jbpm-jpdl.jar.
While removing that redundant deployement i got another exception (i'm trying to read some instance variable of type com.it.model.User) :
javax.servlet.ServletException: org.jbpm.JbpmException: couldn't deserialize object
caused by :
org.jbpm.JbpmException: couldn't deserialize object
org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:66)
org.jbpm.context.exe.VariableInstance.getValue(VariableInstance.java:147)
caused by :
java.lang.ClassNotFoundException: No ClassLoaders found for: com.it.model.User
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:242)
Regards,
O.M.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084019#4084019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084019
18 years, 9 months
[Installation, Configuration & DEPLOYMENT] - Re: setup jboss as server on LAN
by PeterJ
As long as you can ping the remote host, you can use that name in the url. (Note that JBoss AS 4.2.1 binds to localhost, not to 0.0.0.0 as 4.0.5 does. If you move to 4.2.1, read the readme.html, Configuration Issues.)
You will need to open the ports in the firewall. I opened ports 8080, 1099, 1098, 4444 and 4445 (that was on Linux, on XP I told either ZoneAlarm or Symantec to allow the java app to run as a server, I never use the Windows firewall).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084012#4084012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084012
18 years, 9 months