This content has been marked as final.
Show 5 replies
-
1. Re: Simple question from an not-noob developer
delphi'sghost Jun 8, 2007 3:05 PM (in response to beligum)As a really big stab in the dark, how about :
<page view-id="/showSpace.xhtml"> <restrict>#{not selectedSpaceInstance = null}</restrict> </page>
I'm not even sure if this is the correct syntax, but I'm sure you get the idea. If this doesn't work, you could always have a bean method called hasSelectedSpaceInstance which checks if the seam var is null -
2. Re: Simple question from an not-noob developer
beligum Jun 9, 2007 7:46 AM (in response to beligum)Yeah, I thought that too, but it doesn't work at all, same exception.
I moved everything (including security) to a page-action, but it's a shame, because, if you ask me, it doesn't belong there. -
3. Re: Simple question from an not-noob developer
gavin.king Jun 9, 2007 11:47 AM (in response to beligum)Try "not empty selectedSpaceInstance"
-
4. Re: Simple question from an not-noob developer
beligum Jun 9, 2007 3:07 PM (in response to beligum)This worked, thanks Gavin.
But is there no possibility to do the redirect from the page if the variable is empty? -
5. Re: Simple question from an not-noob developer
gavin.king Jun 9, 2007 8:48 PM (in response to beligum)I dont understand the question.