[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2007-01-01 Thread [EMAIL PROTECTED]
Finally found why I was getting exceptions after a period of inactivity saying that SEAM was having probelms removing beans. Don't forget to add public void destroy(); to your stateful action interfaces... You ARE reminded to do this for Entities... :/ Is there a FAQ for all things like

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-14 Thread [EMAIL PROTECTED]
Another Gotcha if you have a | @Length(min = 12, max = 30, message = sim must between 12 and 30 characters long) | on a Database Object that is NOT mandatory (like a post code) that is mapped to a view component of type string. If you leave the string empty in the view you get a

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-14 Thread [EMAIL PROTECTED]
2 solved... Closing a window in Firefox and IE. | input type=button value=Logout onclick=javascript:window.open('javascript:window.close();','_self','');/ | from. | http://www.interwebby.com/blog/2006/02/04/3/ | | # zenith Says: | September 28th, 2006 at 10:54 am | |

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
1. I cannot now reproduce this... (I feel silly) 2. Ok, On Firefox nothing happens with the close, IE7 comes up with a question asking if I want to close the window, which I agree to and then it doesn't close it. (Go Figure...). I guess my javascript must be wrong. Both come up with the before

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
From the .xhtml file... | !-- | div class=right | h:commandButton type=submit value=Back action=#{zoneSubscriptionManager.scancel}/ | /div | -- | this gives | An Error Occurred: | Bean: $Proxy89, property:

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread petemuir
(1) AFAIK This is a bug with the Facelets user manual - it says comments are skipped by default, when in fact they aren't. You need to explicitly set it to false. http://wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_prevent_HTML_comments_f (3) I would propose the alternative of using

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
I hear what you say about Facelets and comments. Thanks. This worked for the button: h:commandButton action=mainMenu value=Cancel immediate=true type=submit/ It does however ONLY get me back to main menu ( so no chance to @End the conversation or do any other cleanup :( ) View the original

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
got it | h:commandButton action=#{controller.cancel} value=Cancel immediate=true type=submit/ | Now I can... | | controller | | @End | public String cancel() { | log.info(Cancelled request); | // Other cleanup; release resource etc.

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
anonymous wrote : | and make sure to NOT flush the persistence context from the method (either use a FlushModeType.MANUAL conversation OR set TransactionAttributeType.NOT_SUPPORTED on the cancel method). | Not sure I know what this means, as am a newbie to Seam. I am sure it will

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
anonymous wrote : Outside of the \h:form\ If I have a command button then it wont let me have it outide the form; Just put it in a different form. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3985535#3985535 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-13 Thread [EMAIL PROTECTED]
Thanks; wanted to keep my layout together. | h:commandButton action=#{controller.cancel} value=Cancel immediate=true type=submit/ | This worked. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3985605#3985605 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Gotchas (so far)

2006-11-12 Thread [EMAIL PROTECTED]
1. I think this is normal in facelets. 2. Why on earth not? I'm sure you are mistaken. 3. Not correct, just put the button outside the f:form/ element that has the validation. (This is standard JSF, nothing to do with Seam.) 4. Yes, this is normal, and is the default in recent (1.1.0.BETA)