[JBoss-user] [JBoss Seam] - Re: An excruciatingly simple SEAM question

2006-05-11 Thread scottd72
Actually, no, CONVERSATION doesn't work.  I've finally gotten a combination to 
work, but:
(1) I need to use #{debug}, not #{register.debug}.  (Fair enough.)
(2) I need to use a SESSION scope.  If I use CONVERSATION instead,
then #{debug} gets expanded to the empty string instead of the value assigned 
in register().

Another unfortunate behavior that confused the heck out of me while I was 
trying to debug this issue: if I make debug a required output, then if any of 
the validators fail (because, say, I was only typing in a single-character 
password), then instead of getting the user-friendly password must have more 
characters warning, the server returns an gnarly error message generated 
because the debug output wasn't set...the ultimate source of the problem (not 
enough chars in password) is completely obscured.  What's the right way to 
prevent that from happening, other than just never generating required outputs 
in any routine that has validated inputs (which sounds like it'd be pretty 
crippling)?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3943090#3943090

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3943090


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: An excruciatingly simple SEAM question

2006-05-10 Thread baz
As far as i know your attempt works right.

@Out outjects to the context from which the value was injected, or in case of 
no injection to the surrounding context.

When you click the register button, you are in a temporary conversation.
When you outject a value it will go to this temporary conversation.

After executing the register action, the temporary conversation gets deleted 
(and with it your value for debug)
when rendering the registered page, a new temporary conversation is created 
(with no debug value).


What changes could you make?
1. indroduce long running conversations (Set RegisterAction to CONVERSATION 
Scope and mark register with @Begin)

2. Create a sessionscoped bean which holds your debug value. Inject and outject 
debug value

Ciao,
Carsten

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3942389#3942389

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942389


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: An excruciatingly simple SEAM question

2006-05-10 Thread [EMAIL PROTECTED]
(1) The registration example uses a .
(2) The default scope for @Out is EVENT
(3) Of course any event-scoped state does not carry across a redirect
(4) Conversation-scope state does _always_ carry across a redirect (even for 
temp conversations)

So just use @Out(scope=ScopeType.CONVERSATION) instead

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3942548#3942548

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942548


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user