Re: Binding Exception

2006-07-26 Thread Rui Pacheco
I found what was going on and I'm replying to this in case someone else stumbles upon this error in the future: Although the ASO was being created, I wasn't passing it to the template. As soon as I called getUser() from my component, everything worked like a charm. -- View this message in contex

Re: Binding Exception

2006-07-26 Thread Rui Pacheco
On my Tomcat logs I have something else: Jul 26, 2006 6:51:17 PM org.apache.tapestry.web.ServletWebResponse reset SEVERE: Unable to reset response buffer: java.lang.IllegalStateException java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java :307

Re: Binding Exception

2006-07-26 Thread Rui Pacheco
My bad: There is another error beneath this one, I just hadn't noticed it: "Cannot create a session after the response has been committed" And the stack trace includes this: Stack Trace: org.apache.catalina.connector.Request.doGetSession(Request.java:2214) org.apache.catalina.connector.Request.g

Re: Binding Exception

2006-07-26 Thread Jesse Kuhnert
I believe the java beans syntax for accessing a method that looked like: User- public boolean isActive(); Would be "ognl:user.active". You can always force ognl to call your method via explicit functions calls as well: "ognl:user.isActive()" On 7/26/06, adasal <[EMAIL PROTECTED]> wrote: [EM

Re: Binding Exception

2006-07-26 Thread Jason Dyer
If it is a boolean, try: !user.isActive() or if that doesn't work user.isActive() == false On Wednesday 26 July 2006 12:36, adasal wrote: > [EMAIL PROTECTED]: pt.te.universal.model.User.isActive". > Isn't that a string being returned? Can you do ! with a string here? > isActive should be boolea

Re: Binding Exception

2006-07-26 Thread adasal
[EMAIL PROTECTED]: pt.te.universal.model.User.isActive". Isn't that a string being returned? Can you do ! with a string here? isActive should be boolean. Adam On 26/07/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: No luck. Has anyone done this before? On 7/26/06, Shing Hing Man <[EMAIL PROTECTE

Re: Binding Exception

2006-07-26 Thread Rui Pacheco
No luck. Has anyone done this before? On 7/26/06, Shing Hing Man <[EMAIL PROTECTED]> wrote: Please try : ognl:!user.active Shing --- Rui Pacheco <[EMAIL PROTECTED]> wrote: > Hi all > > I am trying to make my ASO available to an @If > component on my templates, > but I can't get past the fo

Re: Binding Exception

2006-07-26 Thread Shing Hing Man
Please try : ognl:!user.active Shing --- Rui Pacheco <[EMAIL PROTECTED]> wrote: > Hi all > > I am trying to make my ASO available to an @If > component on my templates, > but I can't get past the following error: > "Unable to read OGNL expression ' expression>' of > [EMAIL PROTECTED]: > pt.te.