myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] tr:table PPR failing
Date Thu, 13 Sep 2007 16:18:23 GMT
On 9/13/07, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
> Timothy,
>
> I stripped the page and the AJAX down to the ID attributes only
> (FYI I used this set of commands with VIM to do this:
> %s/></>\r</g | %s/^.\+\(id="[^"]\+"\).*/\1/ | %s/^[^i].\+\n// | sort
> )

Can I get you on permanent retainer for VIM-editing? :)

> Here are the results:
>
> Page:
> id="acctPage:acctTable"
> id="acctPage:acctTable:j_id_jsp_1566647018_17"
> id="acctPage:acctTable:j_id_jsp_1566647018_19"
> id="acctPage:acctTable:j_id_jsp_1566647018_21"
> id="acctPage:acctTable__xc_ha"
> id="acctPage:acctTable__xc_sa"
> id="acctPage:acctTabledd0"
> id="j_id0"
>
> AJAX response:
> id="_acctForm_Postscript"
> id="acctPage:acctTable"
> id="acctPage:acctTable:0:j_id_jsp_1566647018_33"
> id="acctPage:acctTable:j_id_jsp_1566647018_17"
> id="acctPage:acctTable:j_id_jsp_1566647018_19"
> id="acctPage:acctTable:j_id_jsp_1566647018_21"
> id="acctPage:acctTable__xc_ha"
> id="acctPage:acctTabledd0"
> id="j_id0"
>
> As you can see, the following items in the AJAX were not in the page:
> id="_acctForm_Postscript"
> id="acctPage:acctTable:0:j_id_jsp_1566647018_33"
>
> Looking at your page source, there is no form element. The form is
> required AFAIK. This may be just because you didn't provide the full
> source though.

I suspect so... the submission wouldn't have gotten far at all
without a form element.  The "postscript" in the PPR reply
is in fact part of the form.

It looks as though the issue is exactly related to trying to get that
expanded row to show up, since the one missing ID is ":0:"
(that is, the first row of the table).  Lemme try this locally.

-- Adam


>
> Have you tried to set a break point in the error log method and use
> the call stack to get back up to the generator of the error and then
> determine what is causing it?
>
> On 9/12/07, Timothy M. Braun <TBraun@fellowshipvillage.org> wrote:
> >
> >
> >
> >
> > Andrew,
> >
> >                 I compared the AJAX response to the html source and I can't
> > seem to find anything out of place.  I have included the two below, maybe I
> > missed something.  I added id's to most of the jsf components so that it is
> > a little easier to parse.
> >
> >
> >
> >                 On a side note, I found that it was interesting that input
> > elements are rendered differently in the AJAX response then the initial HTML
> > output.  In the html output, the input elements are not terminated, but they
> > are in the AJAX response.
> >
> >
> >
> >                 Thanks again,
> >
> >                 Tim
> >
> >
> >
> >
> >
> > HTML Source (I added line breaks to make reading it easier):
> >
> >
> >
> > <div id="acctPage:acctTable">
> >
> > <table cellpadding="0" cellspacing="0" border="0" width="90%" summary="">
> >
> > <tr>
> >
> > <td>
> >
> > <table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""
> > class="x6m">
> >
> > <tr>
> >
> > <td>(Actions)</td>
> >
> > <td width="100%"></td>
> >
> > </tr>
> >
> > </table>
> >
> > </td>
> >
> > </tr>
> >
> > <tr>
> >
> > <td>
> >
> > <table cellpadding="0" cellspacing="0" border="0" width="100%" summary=""
> > class="x6q">
> >
> > <tr>
> >
> > <td nowrap valign="middle">
> >
> > <script type="text/javascript">function _submitHideShow(a,v,b,c,l,d) {var
o
> > = {event:b,source:c};if (d!=(void 0))
> > o.value=d;_setRequestedFocusNode(document,l,false,window);_submitPartialChange(a,v,o);return
> > false;}</script>
> >
> > <a onclick="return
> > _submitHideShow('acctForm',1,'show','acctPage:acctTable','acctPage:acctTable__xc_sa','all')"
> > href="#" id="acctPage:acctTable__xc_sa" class="xi">Show All Details</a>
> >
> > &nbsp;|&nbsp;
> >
> > <a onclick="return
> > _submitHideShow('acctForm',1,'hide','acctPage:acctTable','acctPage:acctTable__xc_ha','all')"
> > href="#" id="acctPage:acctTable__xc_ha" class="xi">Hide All Details</a>
> >
> > </td>
> >
> > </tr>
> >
> > </table>
> >
> > </td>
> >
> > </tr>
> >
> > <tr>
> >
> > <td>
> >
> > <table class="x6k" cellpadding="1" cellspacing="0" border="0" width="100%">
> >
> > <tr>
> >
> > <th id="j_id0" width="1%" nowrap class="x75">Details</th>
> >
> > <th id="acctPage:acctTable:j_id_jsp_1566647018_17"
> > class="x75 xaf">Name</th>
> >
> > <th id="acctPage:acctTable:j_id_jsp_1566647018_19"
> > class="x75 xaf">Active</th>
> >
> > <th id="acctPage:acctTable:j_id_jsp_1566647018_21"
> > class="x75 xaf">Actions</th>
> >
> > </tr>
> >
> > <tr>
> >
> > <td headers="j_id0" class="x6v xat" nowrap>
> >
> > <div>
> >
> > <a onclick="return
> > _submitHideShow('acctForm',1,'show','acctPage:acctTable','acctPage:acctTabledd0','0')"
> > href="#" id="acctPage:acctTabledd0">
> >
> > <span title="Select to show information" class="x9q">&#9658;</span>
> >
> > </a>
> >
> > <a onclick="return
> > _submitHideShow('acctForm',1,'show','acctPage:acctTable','acctPage:acctTabledd0','0')"
> > href="#" class="xi">Show</a>
> >
> > </div>
> >
> > </td>
> >
> > <td headers="acctPage:acctTable:j_id_jsp_1566647018_17"
> > class="x6v xat">[Name Removed for privacy]</td>
> >
> > <td headers="acctPage:acctTable:j_id_jsp_1566647018_19"
> > class="x6v xat">true</td>
> >
> > <td headers="acctPage:acctTable:j_id_jsp_1566647018_21"
> > class="x6v xat">(Actions)</td>
> >
> > </tr>
> >
> > </table>
> >
> > </td>
> >
> > </tr>
> >
> > </table>
> >
> > <script type="text/javascript">_uixt_acctPage_acctTable=new
> > CollectionComponent('acctForm','acctPage:acctTable');</script>
> >
> > <input type="hidden" name="acctPage:acctTable:rangeStart"
> > value="0">
> >
> > </div>
> >
> >
> >
> > AJAX Response:
> >
> >
> >
> > <content
> > action="/vbm/faces/pages/secure/telephony/accountSearch.jspx">
> > <fragment><![CDATA[<div id="acctPage:acctTable"><table cellpadding="0"
> > cellspacing="0" border="0" width="90%" summary=""><tr><td><table
> > cellpadding="0" cellspacing="0" border="0" width="100%" summary=""
> > class="x6m"><tr><td>(Actions)</td><td
> > width="100%"></td></tr></table></td></tr><tr><td><table
> > cellpadding="0" cellspacing="0" border="0" width="100%" summary=""
> > class="x6q"><tr><td nowrap="nowrap" valign="middle"><a onclick="return
> > _submitHideShow('acctForm',1,'show','acctPage:acctTable','acctPage:acctTable__xc_sa','all')"
> > href="#" id="acctPage:acctTable__xc_sa" class="xi">Show All
> > Details</a>&#xa0;|&#xa0;<a onclick="return
> > _submitHideShow('acctForm',1,'hide','acctPage:acctTable','acctPage:acctTable__xc_ha','all')"
> > href="#" id="acctPage:acctTable__xc_ha" class="xi">Hide All
> > Details</a></td></tr></table></td></tr><tr><td><table
> > class="x6k" cellpadding="1" cellspacing="0" border="0" width="100%"><tr><th
> > id="j_id0" width="1%" nowrap="nowrap" class="x75">Details</th><th
> > id="acctPage:acctTable:j_id_jsp_1566647018_17" class="x75
> > xaf">Name</th><th
> > id="acctPage:acctTable:j_id_jsp_1566647018_19" class="x75
> > xaf">Active</th><th
> > id="acctPage:acctTable:j_id_jsp_1566647018_21" class="x75
> > xaf">Actions</th></tr><tr><td headers="j_id0" class="x6v
xat"
> > nowrap="nowrap"><div><a onclick="return
> > _submitHideShow('acctForm',1,'hide','acctPage:acctTable','acctPage:acctTabledd0','0')"
> > href="#" id="acctPage:acctTabledd0"><span title="Select to
> > hide information" class="x9q">&#x25bc;</span></a><a
> > onclick="return
> > _submitHideShow('acctForm',1,'hide','acctPage:acctTable','acctPage:acctTabledd0','0')"
> > href="#" class="xi">Hide</a></div></td><td
> > headers="acctPage:acctTable:j_id_jsp_1566647018_17"
> > class="x6v xat">Charles E Oberst</td><td
> > headers="acctPage:acctTable:j_id_jsp_1566647018_19"
> > class="x6v xat">true</td><td
> > headers="acctPage:acctTable:j_id_jsp_1566647018_21"
> > class="x6v xat">(Actions)</td></tr><tr><td headers="j_id0"
colspan="4"
> > class="x79 xat"><div class="x9m"><h3 class="x65">Account
> > Details</h3><div>Bill Cycle: Independant<div></div>Created:
> > 12/15/2006<div></div>Last Modified: 12/15/2006</div><div class="x9m"><h4
> > class="x65">Plans</h4><div
> > id="acctPage:acctTable:0:j_id_jsp_1566647018_33"><table
> > cellpadding="0" cellspacing="0" border="0" summary=""><tr><td><table
> > class="x6k" cellpadding="1" cellspacing="0" border="0" width="100%"><tr><th
> > scope="col" class="x75">Type</th></tr><tr><td class="x6v
> > xat">Basic 250</td></tr></table></td></tr></table><input
> > type="hidden"
> > name="acctPage:acctTable:0:j_id_jsp_1566647018_33:rangeStart"
> > value="0"></input></div></div></div></td></tr></table></td></tr></table><input
> > type="hidden" name="acctPage:acctTable:rangeStart"
> > value="0"></input></div>]]></fragment><fragment><![CDATA[<span
> > id="_acctForm_Postscript"><input type="hidden"
> > name="javax.faces.ViewState"
> > value="!-7f19be57"></input><input type="hidden"
> > name="event"></input><input type="hidden" name="source"></input><input
> > type="hidden" name="partial"></input><input type="hidden"
> > name="value"></input><input type="hidden"
> > name="state"></input></span>]]></fragment>
>

Mime
View raw message