Actually, I would go for something like:

<h5 if="${viewer && owner.id == viewer.id}">Message Viewer is Owner</
h5>
<h5 if="${viewer && owner.id != viewer.id}">Message Viewer has App</
h5>
<h5 if="${viewer == null}">Message Viewer does not have App</h5>

On 31 mar, 23:42, eduardorochabr <[email protected]> wrote:
> In the last statement, if the viewer is null, viewer.id will fail, so
> you should test only if the viewer is null:
>
> <h5 if="${viewer==null}">Message Viewer does not have App</h5>
>
> On 31 mar, 16:43, Badaro <[email protected]> wrote:
>
> > Hello,
>
> > I still have a few questions I posted in the past couple of weeks that
> > haven't been answered. Can someone from Orkut help me here? I believe
> > these are the only things I need to finish converting my applications
> > to Templates:
>
> > 1) In a specific part of my application, I need to show different
> > messages depending on the context the application is running:
>
> >  - Owner == Viewer
> >  - Owner != Viewer && Viewer has app installed
> >  - Owner != Viewer && Viewer does not have app installed
>
> > I was trying with the following tests:
>
> > <h5 if="${owner.id == viewer.id}">Message Viewer is Owner</h5>
> > <h5 if="${owner.id == viewer.id && viewer!=null}">Message Viewer has
> > App</h5>
> > <h5 if="${owner.id == viewer.id && viewer==null}">Message Viewer does
> > not have App</h5>
>
> > The first two work, the last one doesn't. Is this a bug? Is there
> > another way I can get the same behavior?
>
> > 2) What is the status on os:NavigateToView?
> > 3) Will you be implementing os:Html?
> > 4) Will you be implementing something analog to adjustHeight?
>
> > Thanks in advance.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to