[jboss-user] [JBoss Seam] - Some seam/drools questions

2007-10-19 Thread shakenbrain
Disclosure: I have about four hours of experience with drools. This contrived rule works: rule ReadJobTicket | no-loop | activation-group "permissions" | when | check: PermissionCheck(name == "jt", action == "read", granted == false) | JobTicket(titleName : title) | Role(n

[jboss-user] [JBoss Seam] - Re: Entity Authorization

2007-10-18 Thread shakenbrain
Thanks for the response. I think it might be possible. I've got some drools reading to do... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096799#4096799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096799 ___

[jboss-user] [JBoss Seam] - Entity Authorization

2007-10-16 Thread shakenbrain
Can someone tell me if the following is possible? Application users (SiteUser) have a collection of authorizedOrganizations (Organization). Other (but not all) entities in the model belong to one particular organization. When those particular entities (perhaps identified by a custom annotatio

[jboss-user] [JBoss Seam] - Re: Difference between @Factory and @Create for outjected co

2007-10-08 Thread shakenbrain
Stupid editing error on my part when entering this question. The xhtml really is: | #{messages.Title} | | So the problem still exists... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092791#4092791 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Difference between @Factory and @Create for outjected compon

2007-10-08 Thread shakenbrain
I have a page that has the following requirements: * accessible from a GET request * begins a conversation * initializes a component To do this, I created a method in a SFSB with conversational scope as follows: @Create | @Begin(flushMode=FlushModeType.MANUAL) | public void createTicket() {

[jboss-user] [JBoss Seam] - Re: checkboxes inside a clickable data table

2007-09-26 Thread shakenbrain
I'm not sure if there's an example or not. I forgot to mention though that drop-downs do work inside data tables. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089128#4089128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[jboss-user] [JBoss Seam] - Re: checkboxes inside a clickable data table

2007-09-26 Thread shakenbrain
I didn't use check boxes, but I don't see why that wouldn't work. I used a clickable image instead: | | | | | | | | | | |

[jboss-user] [JBoss Seam] - Re: Conversation ID in web service response

2007-08-01 Thread shakenbrain
You were absolutely right, it was a packaging issue- and a stupid error on my part. Thank you... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069732#4069732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069732

[jboss-user] [JBoss Seam] - Re: Conversation ID in web service response

2007-07-31 Thread shakenbrain
I used SoapUI to issue the following request: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:com="http://com.twocoast.tcsc.web.service";> | | | | QUATTRO | | | and got the following response (no conversation Id): http://schemas.xmlsoap.org/so

[jboss-user] [JBoss Seam] - Conversation ID in web service response

2007-07-31 Thread shakenbrain
I'm getting started with conversations in a JBoss Seam web service. I've got a basic web service with a method called 'start' that doesn't do anything (yet): @Stateless | @Name("supportCenterService") | @WebService(name = "SupportCenter", targetNamespace = "http://blah.service";, serviceNam

[jboss-user] [JBoss Seam] - Re: s:convertEntity - EntityManager is closed.

2007-07-30 Thread shakenbrain
I had this problem with Seam 2.0.0.BETA1 too. It went away after rebuilding the seam libraries CVS (about a week or so ago). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068964#4068964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - Re: What is the reason why can only work S

2007-07-20 Thread shakenbrain
I'm not certain about this, but I think your issue is addressed here: http://jira.jboss.com/jira/browse/JBSEAM-1581 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066358#4066358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBoss Seam] - Re: How to invoke a Seam component with h:selectBooleanCheck

2007-07-13 Thread shakenbrain
Using ajax4jsf: | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063810#4063810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063810 ___ jboss-user ma

[jboss-user] [JBoss Seam] - Re: Handling database exceptions

2007-06-27 Thread shakenbrain
ValidatorException being thrown shouldn't cause the transaction to roll back, right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058315#4058315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058315 _

[jboss-user] [JBoss Seam] - Re: Handling database exceptions

2007-06-27 Thread shakenbrain
Understood. Gavin, thanks for your response. Getting back to validating then, it appears that using a @Validator class causes the session to go invalid when it throws a ValidatorException, but only on the whole form submit (it works if you do a partial form submit using ajax4jsf on just that o

[jboss-user] [JBoss Seam] - Handling database exceptions

2007-06-26 Thread shakenbrain
When persisting an entity at the end of a conversation, how can one handle a database exception, like a constraint violation, without invalidating the session? Here's the the basic scenario: 1. Start a conversation (flushMode=MANUAL); display edit page 2. Call a method to persist the edited o

[jboss-user] [JBoss Seam] - No active transaction after validation exception

2007-06-26 Thread shakenbrain
I have a validator class in Seam 1.2.1; I'm using JBoss AS 4.0.2. @Validator | @Name("prefixValidator") | public class PrefixValidator extends BaseValidator { | | @In | EntityManager entityManager; | | @Transactional | public void validate(FacesContext context, UIComponen

[jboss-user] [JBoss Seam] - Re: How do folks layout pages: panelgrids (embedded tables)

2007-06-19 Thread shakenbrain
I forgot one of the styles: .entry div.inputblock { | float: left; | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055831#4055831 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055831 ___

[jboss-user] [JBoss Seam] - Re: How do folks layout pages: panelgrids (embedded tables)

2007-06-19 Thread shakenbrain
This article illustrates how to create a flexible three column layout: http://www.alistapart.com/articles/holygrail/ Of course, there are lots of other layouts and approaches. Google for "css layout" and you'll find lots of good references and examples. For laying out simple forms, I use the f

[jboss-user] [JBoss Seam] - Re: How do folks layout pages: panelgrids (embedded tables)

2007-06-19 Thread shakenbrain
It is possible to use CSS DIVS in JSF; that's what I do... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055776#4055776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055776

[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?

2007-06-14 Thread shakenbrain
+1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054535#4054535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054535 ___ jboss-user mailing list jboss-user@lists.jboss.org h

[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?

2007-06-14 Thread shakenbrain
>From ContentServlet.java String formatName = ""; |if ("image/png".equals(contentType)) | formatName = "png"; |else if ("image/jpeg".equals(contentType)) | formatName = "jpeg"; | |Ima

[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?

2007-06-14 Thread shakenbrain
I guess I'm not following you. Where is this uploaded image supposed to be shown? How are you storing it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054492#4054492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?

2007-06-14 Thread shakenbrain
You can upload any kind of file with the file upload component. The seamspace example, however, accepts only certain types of image files. I believe it looks at the content-type of the uploaded file and rejects it when not one of the accepted types. View the original post : http://www.jboss.

[jboss-user] [JBoss Seam] - Re: Problem with SQL generation

2007-06-01 Thread shakenbrain
This looks like a hibernate dialect issue and you're probably better off asking in the hibernate forum... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050587#4050587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050

[jboss-user] [JBoss Seam] - s:selectDate in datatable

2007-05-26 Thread shakenbrain
Is it possible to use the s:selectDate component in a datatable? If so, how does one populate the "for" attribute? | | | | | | | | | | | | | | | | | | View the original pos

[jboss-user] [JBoss Seam] - Second level cache (ehcache) working?

2007-05-16 Thread shakenbrain
Has anyone been able to get ehcache working in a Seam application? I've enabled ehcache in my persistence unit: | and enabled caching for one of my entities: @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) | public class Organization extends PersistentObje

[jboss-user] [JBoss Seam] - Re: EntityManager in custom validator

2007-04-25 Thread shakenbrain
Turns out that's exactly the way you do it. I had to make my validator class implement Serializable. For reference, here's the code: @Name("prefixValidator") | @Validator | public class PrefixValidator implements javax.faces.validator.Validator, Serializable { | | @In | EntityMa

[jboss-user] [JBoss Seam] - Re: EntityManager in custom validator

2007-04-25 Thread shakenbrain
Thanks for the quick response. That's fantastic. I think I'm almost there, but I'm not sure how to reference the validator from the page; it's not going to be with the tag, right? @Name("prefixValidator") | @Validator | public class PrefixValidator implements javax.faces.validator.Validat

[jboss-user] [JBoss Seam] - EntityManager in custom validator

2007-04-25 Thread shakenbrain
Can you inject an EntityManager into a custom JSF validator class, assuming you've made the validator a seam component? I've tried, but the entityManager is always null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040730#4040730 Reply to the post : http