[jboss-user] [JBoss Seam] - Re: Usage for downloading uploaded file

2007-07-11 Thread twocoasttb
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 __

[jboss-user] [JBoss Seam] - Re: How can I get the source code? (stupid question?)

2007-07-11 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Access Log from servlet

2007-07-06 Thread twocoasttb
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?

[jboss-user] [JBoss Seam] - Re: Accessing Seam Web Service

2007-07-05 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Accessing Seam Web Service

2007-07-05 Thread twocoasttb
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") |

[jboss-user] [JBoss Seam] - Re: Complex Search Results - return object identifiers inste

2007-06-21 Thread twocoasttb
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

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

2007-05-16 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Using enhanced EL

2007-04-20 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Re: Update entity in authenticate method

2007-04-20 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Update entity in authenticate method

2007-04-20 Thread twocoasttb
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 { |

[jboss-user] [JBoss Seam] - Removing timer

2007-03-08 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-12 Thread twocoasttb
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&

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-12 Thread twocoasttb
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 |

[jboss-user] [JBoss Seam] - Re: how to redirecto back to intented page after login

2007-02-12 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Re: Seam 1.1.6.GA

2007-02-08 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Re: Does DataModelSelection work in a Stateless Session Bean

2007-01-31 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Re: Does DataModelSelection work in a Stateless Session Bean

2007-01-31 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Does DataModelSelection work in a Stateless Session Bean?

2007-01-30 Thread twocoasttb
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

[jboss-user] [JBoss Seam] - Right way to refresh a DataModel

2007-01-23 Thread twocoasttb
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