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
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
___
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
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
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() {
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
I didn't use check boxes, but I don't see why that wouldn't work. I used a
clickable image instead:
|
|
|
|
|
|
|
|
|
|
|
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
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
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
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
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
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
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
_
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
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
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
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
___
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
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
+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
>From ContentServlet.java
String formatName = "";
|if ("image/png".equals(contentType))
| formatName = "png";
|else if ("image/jpeg".equals(contentType))
| formatName = "jpeg";
|
|Ima
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
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.
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
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
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
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
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
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
30 matches
Mail list logo