Here is full code for form. See anything wrong ?
Bit of background. This is part of a project using jboss seam & facelets
Table display fine, sorting works & links to backend components to pick up filters etc are working but I cannot get javascript actions to work
Initially I was only using form, as this fits into a larger template based layout , but in order to debug I have a dedicted page with webuijsf head, body & am still seeing same issue
I apprecite your responsiveness
Padraig.
<webuijsf:form id="form1">
<webuijsf:table id="table1" clearSortButton="true"
sortPanelToggleButton="true" title="Generic table"
deselectMultipleButton="true" selectMultipleButton="true"
paginateButton="true" paginationControls="true"
filterText="#{msgGroup.filter.filterText}">
<f:facet name="filter">
<webuijsf:dropDown submitForm="true" id="filter"
action="#{msgGroup.filter.applyBasicFilter}"
items="#{msgGroup.filter.filterOptions}"
onChange="if (filterMenuChanged(this) == false) return false"
selected="#{msgGroup.filter.basicFilter}" />
</f:facet>
<webuijsf:tableRowGroup id="rowGroup1"
sourceData="#{msgGroup.provider}" sourceVar="name"
selected="#{msgGroup.select.selectedState}"
binding="#{msgGroup.tableRowGroup}" rows="5">
<webuijsf:tableColumn align="center" selectId="selectReferenceId">
<webuijsf:checkbox id="selectReferenceId"
selected="#{msgGroup.select.selected}"
selectedValue="#{msgGroup.select.selectedValue}"
onClick="setTimeout('initAllRows()',0);" />
</webuijsf:tableColumn>
<webuijsf:tableColumn id="col1" alignKey="threadId"
headerText="Thread Id" rowHeader="true" sort="threadId">
<webuijsf:staticText text="#{name.value.threadId}" />
</webuijsf:tableColumn>
<webuijsf:tableColumn id="col2" alignKey="recordId"
headerText="Record Id" sort="recordId">
<webuijsf:staticText text="#{name.value.recordId}" />
</webuijsf:tableColumn>
<webuijsf:tableColumn id="col3" alignKey="component"
headerText="component" sort="component">
<webuijsf:staticText text="#{name.value.component}" />
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>
</webuijsf:form>
----- Original Message ----
From: Dan Labrecque <Dan.Labrecque@Sun.COM>
To: dev@woodstock.dev.java.net
Sent: Monday, August 20, 2007 9:15:43 PM
Subject: Re: table v table2? no table widget ??
I suspected that select.js was from the examples, but I'm looking for a JavaScript error in how the code was assigned to the checkbox's onClick tag attribute. Although, it sounds like your page isn't set up properly.
Padraig Byrne wrote:
select.js is per examples
function initAllRows() {
// Disable table actions by default.
var table = document.getElementById("form1:table1");
table.initAllRows();
}
----- Original Message ----
From: Dan Labrecque <Dan.Labrecque@Sun.COM>
To: dev@woodstock.dev.java.net
Sent: Monday, August 20, 2007 5:37:35 PM
Subject: Re: table v table2? no table widget ??
Padraig Byrne wrote:
I enabled debug as part of trying to get to the bottom of this problem
Debug off & table widget loading but still an issue
Error is happening when I click checkbox to invoke "initAllRows" from javascript
Page load trace
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/__package__.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/props.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/cookie.js (33ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/browser.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/body.js (23ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/common.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/formElements.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/theme.js (45ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/__package__.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/xml/Parse.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Widget.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/lang/declare.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/ns.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Manager.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/a11y.js (45ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/uri/__package__.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/Parse.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/DomWidget.js (56ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/widget/HtmlWidget.js (44ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/html/util.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/META-INF/dojo/src/lfx/toggle.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/__package__.js (45ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/common.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/props.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/widgetBase.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/__package__.js (45ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/jsfx/common.js (33ms)dojo.js (line 769)
Error in parsing value for property 'font-weight'. Declaration dropped.
undefined
theme.css (line 118)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/imageHyperlink.js (12ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/hyperlink.js (12ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/anchor.js (2ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/image.js (47ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/label.js (100ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/dropDown.js (89ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/listbox.js (22ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/button.js (34ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/textField.js (2ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/fieldBase.js (12ms)dojo.js (line 769)
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/widget/staticText.js (57ms)dojo.js (line 769)
When checkbox clicked
GET
http://localhost:8080/seamgen2/theme/com/sun/webui/jsf/suntheme/javascript/table.js (45ms)dojo.js (line 769)
_23.getProps is not a function
var _45=_43.slice(0,i).join(".");
The table.js file should have been included in the page prior to
clicking on your checkbox. If it has not, the table most likely would
not have rendered properly. What does the onClick JavaScript look like
for the checkbox?
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@woodstock.dev.java.net
For additional commands, e-mail: dev-help@woodstock.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@woodstock.dev.java.net
For additional commands, e-mail: dev-help@woodstock.dev.java.net