myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy M. Braun" <TBr...@fellowshipvillage.org>
Subject [Trinidad] tr:table PPR failing
Date Wed, 12 Sep 2007 19:58:15 GMT
I have spent hours trying to resolve this issue, but have had no luck.

 

I am trying to generate a table which uses the detailStamp facet.  I see
the table rendered, with the "Show" link next to each table row.  When I
click the "Show" link, I get a javascript error when using IE.  It says
'console' is undefined on line 10172 in Common1_2_2.js.  When looking at
the file, I notice it is referring to a method which is used for
logging.  As a test, I switched to Firefox and had similar strange
results.  In the Error Console it states:

 

Error: no element found

Source File:
http://localhost:8080/vbm/faces/pages/secure/telephony/accountSearch.jsp
x

Line: 3, Column: 8345

Source Code:

<content action="/vbm/faces/pages/secure/telephony/accountSearch.jspx">
<fragment><![CDATA[<div
id="j_id_jsp_1566647018_3:j_id_jsp_1566647018_15"> <table>[content
removed for brevity]</table></td></tr></table><input type="hidden"
name="j_id_jsp_1566647018_3:j_id_jsp_1566647018_15:rangeStart"
value="0"></input></div>]]></fragment><fragment><![CDATA[<span
id="_j_id_jsp_1566647018_2_Postscript"><input type="hidden"
name="javax.faces.ViewState" value="!1a32e536"></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>

 

I had this working with Trinidad 1.2.0, but I ran into a separate issue
with UIXCollections so I just upgraded to 1.2.2.  

 

Here is the jsf code for the table:

 

<tr:panelHeader text="Account Search">

 
<tr:panelFormLayout>

 
<tr:inputText label="First Name: "

 
value="#{acctSearchHandler.first}" />

 
<tr:inputText label="Last Name: "

 
value="#{acctSearchHandler.last}" />

 
<tr:commandButton text="Search"

 
action="#{acctSearchHandler.doSearch}" />

 
<tr:commandButton text="Clear Results"
action="#{acctSearchHandler.clearSearch}"
rendered="#{acctSearchHandler.searchResults ne null}"/>

 
</tr:panelFormLayout>

 
<tr:panelHeader text="Search Results"

 
rendered="#{acctSearchHandler.searchResults ne null}">

 
<tr:table allDetailsEnabled="true" var="account"

 
rowBandingInterval="1" width="90%"

 
value="#{acctSearchHandler.searchResults}" rows="10">

 
<f:facet name="actions">

 
<tr:outputText value="(Actions)" />

 
</f:facet>

 
<tr:column headerText="Name">

 
<tr:outputText

 
value="#{account.person.first} #{account.person.middle}
#{account.person.last}" />

 
</tr:column>

 
<tr:column headerText="Active">

 
<tr:outputText value="#{account.active}" />

 
</tr:column>

 
<tr:column headerText="Actions">

 
<tr:outputText value="(Actions)" />

 
</tr:column>

 
<f:facet name="detailStamp">

 
<tr:panelHeader text="Account Details">

 
<tr:panelGroupLayout layout="vertical">

 
<tr:outputText value="Bill Cycle: #{account.billCycle.name}" />

 
<tr:group>

 
<tr:outputText value="Created: " />

 
<tr:outputText converter="javax.faces.DateTime"

 
value="#{account.created.time}" />

 
</tr:group>

 
<tr:group>

 
<tr:outputText value="Last Modified: " />

 
<tr:outputText converter="javax.faces.DateTime"

 
value="#{account.modified.time}" />

 
</tr:group>

 
</tr:panelGroupLayout>

 
<tr:panelHeader text="Plans">

 
<tr:table var="plan" value="#{account.plans}">

 
<tr:column headerText="Type">

 
<tr:outputText value="#{plan.type.name}" />

 
</tr:column>

 
</tr:table>

 
</tr:panelHeader>

 
</tr:panelHeader>

 
</f:facet>

 
</tr:table>

 
</tr:panelHeader>

 
</tr:panelHeader>

 

Any thoughts?

 

Thanks in advance,

Tim

 


Mime
View raw message