[JBoss Seam] - Re: Excel support in Seam: any interest?
by spambob
"mjek2" wrote : ... I can only partially agree with it: sure, excel is proprietary, but it's a de-facto standard, whether we like it or not (and yes, I use OpenOffice too ;). And AFAIK OpenDocument file format is rather complex (and JExcel is rather simple and hence can be integrated faster). But in future one could certainly think about ODF as well. ...
Sorry, I misunderstood you! I'm fine with "good old excel", I just thought you mean the new MS xml format - which spec is about 4000 pages so ODF (~700 pages) seems rather small.
I just had a look at the ODF spec and the tables part doesn't seem this much complex - so if you could keep it in mind it should be quite painless to integrate it as soon as some nice java library is available. ;)
Anyway: thanks for the effort & good luck
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024424#4024424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024424
17Â years, 10Â months
[JBoss Seam] - Re: How to use @Id @GeneratedValue(strategy=GenerationType.A
by trickyvail
In Enterprise JavaBeans 3.0 (O'Reilly 2006) it states "The AUTO strategy tells the persistence provider that you are allowing it to generate the key for you" (page 94).
I don't specifically know the Hibernate implements this feature, but might I suggest that you utilize the features of your database to create primary keys instead.
With Postgresql you could use a mapping like this:
@Id
| @Column(name = "id", unique = true, nullable = false)
| @SequenceGenerator(name="identifier", sequenceName="ppl_id_seq", allocationSize=1)
| @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="identifier")
| @NotNull
| public int getId()
| {
| return this.id;
| }
In this manner Hibernate would assign primary keys from the Postgresql sequence rather than internally. This would allow Hibernate to "play nicely" with other database users.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024423#4024423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024423
17Â years, 10Â months
[JBoss Seam] - Re: Redirect to HTTPS
by spambob
Hi Shane,
while I'm certainly happy that http<->https switching functionality is available (that's what I've been asking for) I was wondering if you implemented any security precautions because by switching from https back to http you open a security hole if you rely only on the jsessionid cookie / request parameter.
I.e: I login via https and get redirected - after correctly login in - to a http page. Now my sessionid was transmitted unencrypted and everyone who can listen to my network traffic can hijack my session simply by using the same sessionid (the only problem might be that the ips are different so the attacker has to be behind the same proxy).
Any clarification please ;) ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024422#4024422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024422
17Â years, 10Â months