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 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 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 following error: > > > > "Unable to read OGNL expression '<parsed OGNL > > > > expression>' of > > > > [EMAIL PROTECTED]: > > > > pt.te.universal.model.User.isActive". > > > > > > > > The ASO is being properly instanciated and I can > > > > access it from my > > > > component. > > > > > > > > I'm doing the evaluation on the template this way: > > > > <span jwcid="@If" condition="ognl:! user.isActive"> > > > > <span jwcid="@RedMenu">Red Menu</span> > > > > </span> > > > > > > > > User is my ASO and isActive is a public NON abstract > > > > method. > > > > > > > > How do I negatively test that condition? > > > > > > > > -- > > > > Cumprimentos, > > > > Rui Pacheco > > > > > > Home page : > > > http://uk.geocities.com/matmsh/index.html > > > > > > > > > > > > > > > > > > ___________________________________________________________ > > > All new Yahoo! Mail "The new Interface is stunning in its simplicity > > > and ease of use." - PC Magazine > > > http://uk.docs.yahoo.com/nowyoucan.html > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > > Cumprimentos, > > Rui Pacheco -- Like an expensive sports car, fine-tuned and well-built, Portia was sleek, shapely, and gorgeous, her red jumpsuit moulding her body, which was as warm as seatcovers in July, her hair as dark as new tires, her eyes flashing like bright hubcaps, and her lips as dewy as the beads of fresh rain on the hood; she was a woman driven -- fueled by a single accelerant -- and she needed a man, a man who wouldn't shift from his views, a man to steer her along the right road: a man like Alf Romeo. -- Rachel Sheeley, winner The hair ball blocking the drain of the shower reminded Laura she would never see her little dog Pritzi again. -- Claudia Fields, runner-up It could have been an organically based disturbance of the brain -- perhaps a tumor or a metabolic deficiency -- but after a thorough neurological exam it was determined that Byron was simply a jerk. -- Jeff Jahnke, runner-up Winners in the 7th Annual Bulwer-Lytton Bad Writing Contest. The contest is named after the author of the immortal lines: "It was a dark and stormy night." The object of the contest is to write the opening sentence of the worst possible novel. -------------- Jason Dyer BlueTarp Financial, inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]