myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Dirkse" <Maarten.Dir...@filterworks.com>
Subject [Trinidad] The mystery of the disappearing, reappearing nested tr:table variable
Date Tue, 26 Feb 2008 20:51:37 GMT
Hi,
I have a fascination, and annoying, problem. I'm trying to nest a
tr:table in the "detailStamp" facet of another tr:table, like so:

<tr:table id="rightsOwnerTable" binding="#{bean1.table}" var="owner"
value="#{bean1.owners}">
      <f:facet name="detailStamp">
        <tr:table id="rightsTable" binding="#{owner.table}" var="rb"
value="#{owner.rights}" emptyText="No rights assigned yet.">
        ......
      </f:facet>
      .....
</tr:table>

The bean1 class has an "owner" list of objects that each have a "table"
(CoreTable) property. My idea was to bind the table in the detail view
of the outer tr:table to the "table" property of the bean to which the
detailview belongs. It seems logical enough, but trying to just render
the page yields the following error:

javax.faces.FacesException: JspPropertyNotFoundException:
/main.jsp(114,130) '#{owner.table}' Target Unreachable, identifier
'owner' resolved to null

Which is fascinating, because when I take out the "binding" attribute on
the inner table, it renders just fine. That means that #{owner} resolves
when it is used in 'value="#{owner.rights}"', but not when used in
'binding="#{owner.table}"' (hence the subject about the disappearing,
reappearing variable).

Can anyone tell me what's going on? And does anybody know of a way to
find out which row was clicked in the detailView (ie nested) table?

Thanks in advance,
Maarten

------------------------------------------------------------------------
-----------
Filterworks BV
Information Compliance

Tel: +31 (0)88 88 222 45
Mob: +31 (0)6 24 65 75 85
Email: mdirkse@filterworks.com  
 

Mime
View raw message