[JBoss-user] [JBoss Seam] - Does seam offer any solution to the concurrent calls problem

2006-03-24 Thread truto
A stateful bean cannot be accessed concurrently, but this is common to happen if the use clicks on some button referencing a SFB. Is there any seam-annotation that prevents subsequents access to some method? thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&

[JBoss-user] [JBoss Seam] - Re: java faces and seam

2006-03-24 Thread truto
The tomahawk faces library has examples on how to make tables with dynamic columns. For the selectOneMenu, you just need to bind it to a List getxxxList() method. | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932380#3932380 Reply to the po

[JBoss-user] [EJB 3.0] - Re: Programatically obtain the name of the table used in @TA

2006-02-03 Thread truto
Thanks! I've use a.getClass().getSimpleName() and then derived the table name from that, since all classes have the same nomenclature regarding the table. But I will check the annotation retrieval method later :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[JBoss-user] [EJB 3.0] - Re: Is there any easy way to a create primary key for combin

2006-02-03 Thread truto
I use both idcall and embeddedid on entity classes but had no much luck -- a "select table Table from Table table" having Table an idclass annotation or using the embeddedid pattern, returned a list with the correct number of entries, but all of them NULL ... then I abandoned that idea and use r

[JBoss-user] [EJB 3.0] - Programatically obtain the name of the table used in @TABLE

2006-02-02 Thread truto
Hi, is there a way to programatically obtain the name of the table that an @Entity refers to? thx in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921201#3921201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[JBoss-user] [JBoss Seam] - Re: Access to response.getOutputStream() via SEAM

2006-01-31 Thread truto
Gavin, thanks for you answer, I've only seen it now :-( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920742#3920742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920742

[JBoss-user] [JBoss Seam] - Re: Access to response.getOutputStream() via SEAM

2006-01-31 Thread truto
Correction: HttpServletResponse res = (HttpServletResponse)context.getExternalContext().getResponse(); | res.setHeader("Content-type", "application/..."); | ServletOutputStream os = res.getOutputStream(); | // write content on os | | context.responseComplete(); View the original pos

[JBoss-user] [JBoss Seam] - Re: Access to response.getOutputStream() via SEAM

2006-01-31 Thread truto
I have found a way that seems to work. Not SEAM related I guess, but JSF dependent. On a bean's method: FacesContext context = FacesContext.getCurrentInstance(); | HttpServletResponse res = (HttpServletResponse)context.getExternalContext().getResponse(); | ServletOutputStream os = res.getOu

[JBoss-user] [JBoss Seam] - Access to response.getOutputStream() via SEAM

2006-01-31 Thread truto
Hi there. As I understand, the basic seam+jsf operation consists on the beans to return some tag, that is routed by the faces-config.xml to a proper page. Is there a way to access directly to the response object from the bean? The idea is to output a binary content on a "download file" button,

[JBoss-user] [JBoss Seam] - Re: Debug level

2006-01-19 Thread truto
Thanks. I have already tried to set everything to DEBUG but the seam debug messages don't appear. I'm getting this warning: "[SeamVariableResolver] Seam component hides managed bean with same name" which is produced on src/main/org/jboss/seam/jsf/SeamVariableResolver.java and I wanted to see wh

[JBoss-user] [EJB 3.0] - composite ids not working?

2006-01-19 Thread truto
Hi, Lets say I have an @Entity Foobar, that as either an EmbeddedId or @IdClass to FoobarPk. When I do an entitymanager.createQuery("from Foobar") I get a list with the correct number of entries, but all of them set no NULL. As anyone encountered a similar situation like that, and how have fix

[JBoss-user] [JBoss Seam] - Debug level

2006-01-19 Thread truto
HI, is there a way to increase/decrease debug level on seam-only? Something on seam.properties? thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918400#3918400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918400

[JBoss-user] [JBoss Seam] - Re: Composite primary keys don't work?

2006-01-18 Thread truto
Hi Max, Well, there isn't a workable output, but the composite ids are generated. I was thinking on reusing the @Entity and @Embeddable generated files and roll my own actions. The problem is that I can't retrieve an @Entity that contains @Embedded ids :-( View the original post : http://www.j

[JBoss-user] [JBoss Seam] - Composite primary keys don't work?

2006-01-18 Thread truto
Hi all, I've been struggling to start a jboss+seam application. Everything seems to be ok except a major stopper problem. Composite PKs appear to not work at all, including the CRUD application that is automatically generated by hibernate tools. An example; I have this table PARAMETIZATION that