I am again trying to make Woodstock 4.2 M1 components work with Ajax.
I drop a table on an empty page, then delete 2 columns so that only 1
remains, then edit the table layout so that the column only contains a
button.
I bind the button text to a page's property, here's the resulting JSP:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : Page1
Created on : 5-feb-2008, 15.54.33
Author : mauro
-->
<jsp:root version="2.1" xmlns:f="
http://java.sun.com/jsf/core"
xmlns:h="
http://java.sun.com/jsf/html"
xmlns:jsp="
http://java.sun.com/JSP/Page"
xmlns:webuijsf="
http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8"/>
<f:view>
<webuijsf:page binding="#{Page1.page1}" id="page1">
<webuijsf:html binding="#{Page1.html1}" id="html1">
<webuijsf:head binding="#{Page1.head1}" id="head1">
<webuijsf:link binding="#{Page1.link1}" id="link1"
url="/resources/stylesheet.css"/>
</webuijsf:head>
<webuijsf:body binding="#{Page1.body1}" id="body1"
style="-rave-layout: grid">
<webuijsf:form binding="#{Page1.form1}" id="form1">
<webuijsf:table augmentTitle="false"
binding="#{Page1.myTable}" id="myTable" style="position: absolute; left:
120px; top: 192px"
title="Table" width="0">
<webuijsf:tableRowGroup
binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10"
sourceData="#{Page1.defaultTableDataProvider}" sourceVar="currentRow">
<webuijsf:tableColumn
binding="#{Page1.tableColumn2}" headerText="tableColumn1" id="tableColumn2">
<webuijsf:button
binding="#{Page1.button1}" id="button1" text="#{Page1.txt}"/>
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>
</webuijsf:form>
</webuijsf:body>
</webuijsf:html>
</webuijsf:page>
</f:view>
</jsp:root>
Rendering is ok and I see a table with 5 rows, each of which contains a
button.
But when I call a javascript refresh() on the first button
$("form1:myTable:tableRowGroup1:0:tableColumn2:button1").refresh()
4 out of 5 buttons are refreshed at the same time!
No errors, neither javascript nor on the server, but many buttons are
refreshed and not only 1
any hints?
--
View this message in context: http://www.nabble.com/weird-refresh%28%29-behaviour-in-table-tp15293712p15293712.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.