You have to write a servlet to do this. I think the seamspace app provides a
good example.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063313#4063313
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063313
__
Instructions are on the wiki:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062976#4062976
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062976
The following works in a servlet:
SiteUser currentUser = (SiteUser)Component.getInstance("currentUser",
ScopeType.SESSION, false);
but this doesn't:
Log log = (Log)Component.getInstance("log", false);
and neither does this:
Log log = (Log)Component.getInstance("log", true);
Is this possible?
Turns out it was my issue- it's important that the namespace matches what's in
the WSDL:
public class Client {
| public static void main(String[] args) throws Exception {
|
| try {
| OMFactory fac = OMAbstractFactory.getOMFactory();
| OMNamespace omNs =
fac.createOMN
Has anyone had success writing a client for a Seam web service? I've got a
skeleton modeled after the seambay example:
@Remote
| public interface AgentRemote {
|
| public void processOrder();
|
| }
@Stateless
| @WebService(name="AgentService", serviceName="AgentService")
|
I'm no expert, but this makes sense to me. I'm planning on doing something
similar in my application when selecting sets objects with a deep object graph
for display (and selection). Purists will no doubt howl, but I plan, in some
cases, to create views to generate search results. A 'flat pro
Via a query...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046259#4046259
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046259
___
jboss-user mailing list
jboss-user@lists
When selecting an entity from a list (like in the hotel booking example), does
the source of the list have to be a DataModel? The following isn't working for
me:
|
|
|
|
| Last Name
|
|
|
| First Nam
Beautiful. Thanks, Peter. Time for another read through the documentation...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039383#4039383
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039383
What is the correct way to update an entity in my authenticate method (called
from Identity)? I want to update the user entity with a 'last connected' date.
As far as I can tell, I have to handle the transaction manually, like this:
@Name("authenticator")
| public class Authenticator {
|
I was experimenting with a seam timer service and have since removed the
classes from my application. Now, whenever I start the app I get following
errors:
22:36:10,389 ERROR [TimerImpl] Error invoking ejbTimeout:
java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to
invok
Bingo. Thanks, Gavin. pages.xml in seamspace (CVS) uses the
tag in the handlers. Should those be taken out?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015638#4015638
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&
Gavin, thanks for pointing that out. I'm obviously missing something in my
configuration because it's not working. I have the following (deployed to
4.0.5.GA)
components.xml
|
|
|
| /META-INF/security-rules.drl
|
This would be extremely useful to us as well. Right now I am embedding our
logon form in our main template and display it (and the page content)
conditionally. The net result is that the user gets the requested page upon
successful login, but can't reload the page without getting "Are you sur
I just wanted to add my sincere thanks to the Seam development team.
I've been putting off re-engineering/re-writing our web application for the
last year or so because the thought of doing it again in Struts was just too...
horrible. Seam looked great when I started reading the docs and sample
Ok. I understand why PAGE scope is appropriate, and recognize why it's the
right scope for my finder bean. A conversation isn't required until an item in
the list is selected for editing. A SFSB can't have PAGE scope (right?), so I
assume the DataModel should. So my finder bean now looks lik
Thanks for the responses. Unfortunately, putting the DataModel into PAGE scope
doesn't change anything- selectedOrganization is still NULL in
selectOrganization().
I'm stuck in phase two (disillusion) of Gavin's
"http://blog.hibernate.org/cgi-bin/blosxom.cgi/Gavin%20King/stages-of-adoption.htm
I have the following SLSB:
@Stateless
| @Name("organizationFinder")
| @Scope(STATELESS)
| public class OrganizationFinderBean implements OrganizationFinder,
Serializable {
|
| @PersistenceContext
| private EntityManager em;
|
| @In (required=false)
| @Out (required=fal
What's the *right* way to refresh a DataModel living inside a SFSB on every
page load? Is it to add an entry to pages.xml like this?
Or is there another prefered method?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005545#4005545
Reply to the post :
h
19 matches
Mail list logo