myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <renzo.tomase...@tecnotp.it>
Subject Re: [Trinidad] how to PPR a table row upon selecting its detail contents
Date Tue, 12 Feb 2008 09:49:12 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This way it doesn't work. I tried to place partialTriggers on a single
column cell (tr:outputText), but the entire page is rendered -
according to my debugger.<br>
The dev. guide says that PPR on a different row requires using
addPartialTarget(), but it is unclear whether detail row is considered
a different row and how to get the cell component (all row components,
actually).<br>
<br>
-- Renzo<br>
<br>
Andrew Robinson wrote:
<blockquote
 cite="mid:bc36a6210802111147q124c2c4fo56dff09dce4e5863@mail.gmail.com"
 type="cite">You can add a partialTriggers for all the components in
your columns so that they update for the current row. More work, but it
should work.<br>
  <br>
  <div class="gmail_quote">On Feb 11, 2008 11:38 AM, Renzo Tomaselli
&lt;<a moz-do-not-send="true" href="mailto:renzo.tomaselli@tecnotp.it">renzo.tomaselli@tecnotp.it</a>&gt;
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
    <div bgcolor="#ffffff" text="#000000">
Oh well, I guess that in such case the tag documentation is wrong in
reporting the partialTriggers attribute on tr:column.<br>
Indeed I want to PPR a row - not a column. So either I spread
partialTriggers on all cells - not sure whether all will PPR though -
or I might try using addPartialTarget(). In the latter case however I
miss the way to identify the row component (or single cell components).<br>
    <font color="#888888"><br>
-- Renzo</font>
    <div>
    <div class="Wj3C7c"><br>
    <br>
    <br>
Andrew Robinson wrote:
    <blockquote type="cite">You can't PPR a column. <br>
      <br>
      <div class="gmail_quote">On Feb 11, 2008 11:22 AM, Renzo
Tomaselli
&lt;<a moz-do-not-send="true" href="mailto:renzo.tomaselli@tecnotp.it"
 target="_blank">renzo.tomaselli@tecnotp.it</a>&gt;
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">Hi,
I have a tr:table where rows can show details through a tr:tree<br>
representing several versions of row contents.<br>
I would PPR row fields upon selecting detail nodes, hosting
tr:commandLinks.<br>
Columns are dynamic, such as:<br>
        <br>
&lt;tr:table id="result" ...<br>
&nbsp; &nbsp;&lt;c:forEach var="column" items="#{bean.columnHeaders}"<br>
varStatus="iteration"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;tr:column id="col#{iteration.index}"<br>
partialTriggers="versionTree:thisv"&gt;<br>
        <br>
Then I have as table detail:<br>
        <br>
&lt;f:facet name="detailStamp"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;tr:tree id="versionTree"<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;f:facet name="nodeStamp"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;tr:commandLink id="thisv" &nbsp;...
partialSubmit="true"&gt;<br>
...<br>
        <br>
But - although bean action is actually reached upon clicking nodes -<br>
there is no PPR, no refresh.<br>
Instead I got several times (once per column):<br>
        <br>
WARNING: No PPR-capable 'id' found for elements of<br>
CoreColumn[UIXFacesBeanImpl, id=col1]. This component has not<br>
written-out an 'id' attribute.<br>
        <br>
I guess the PPR target should defined in some other way - but after all<br>
I don't want to refresh the entire table, just the current row.<br>
And of course - I use Facelets.<br>
Any suggestion is welcome.<br>
        <font color="#888888"><br>
-- Renzo<br>
        <br>
        </font></blockquote>
      </div>
      <br>
    </blockquote>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
</body>
</html>

Mime
View raw message