users@woodstock.java.net

Re: IE6 SP2 Issue with round tripping to server.

From: John Yeary <johnyeary_at_gmail.com>
Date: Wed, 20 Jun 2007 15:19:53 -0400

Hello Dan,

I am using the build from NB 6.0 M8.M9 broke a number of components and
functionality. The Manifest indicates that it is version 4.0

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: Sun Microsystems Inc.
Implementation-Title: Woodstock 4.0-200703020942-dev
Implementation-Version: 4.0-200703020942-dev
Implementation-Vendor: Sun Microsystems Inc.
Implementation-Vendor-Id: com.sun
Specification-Title: Woodstock
Specification-Version: 4.0-dev
Specification-Vendor: Sun Microsystems Inc.

The XML based VWP JSP does not like brackets (< >) so as a result, it is
substituted with &gt; once the page is compiled it results in the correct
output as noted below.

<script id="script1" type=
"text/javascript">
                        function initAllRows() {
                        // Disable table actions by default.
                        var table =
document.getElementById("form1:layoutPanel1:table1");

                        table.initAllRows();
                        }

                        function disableActions() {
                        // Disable table actions by default.

                        var table =
document.getElementById("form1:layoutPanel1:table1");
                        var selections = table.getAllSelectedRowsCount();
                        var disabled = selections > 0 ? false : true;

                        // Set disabled state for top actions.

document.getElementById("form1:layoutPanel1:table1:groupPanel1:submit").setDisabled(disabled);

document.getElementById("form1:layoutPanel1:table1:groupPanel1:delete").setDisabled(disabled);
                        }
</script>

I commented the initAllRows() method, but the behavior is now not working to
highlight selected rows. You seem to be correct in your assumption that the
initAllRows() is causing the round-tripping. If I select the select all
rows/deselect all rows buttons which are part of the default woodstock table
component I see the same bad behavior.

John

On 6/20/07, Dan Labrecque - Sun Microsystems <Dan.Labrecque_at_sun.com> wrote:
>
> What version of Woodstock are you using?
>
> I don't see my examples refreshing, but it could be an error in your
> JavaScript -- &gt; looks suspicious. You'll need to narrow this down a
> bit. For example, what happens when you do not call your initAllRows()
> script (e.g., will clicking on a checkbox still refresh)?
>
> Dan
>
> John Yeary wrote:
> > Hello All,
> >
> > I have a wonderful application that runs perfectly in Firefox, but has
> > some issues with IE 6. Here is one of my issues:
> >
> > I have a table component which has a checkbox column. Every time I
> > click on a checkbox, the page apparently round-trips to the server. I
> > can see it re-downloading images etc. On Firefox, Firebug shows NO
> > activity. This is what I expect. On IE 6, I am wondering why it round
> > trips to the server. The code for the selection is based on the work
> > done by Winston Prakash on his blog. It is simple Javascript.
> >
> > function initAllRows() {
> > // Disable table actions by default.
> > var table =
> > document.getElementById("form1:layoutPanel1:table1");
> > table.initAllRows();
> > }
> >
> > function disableActions() {
> > // Disable table actions by default.
> > var table =
> > document.getElementById("form1:layoutPanel1:table1");
> > var selections = table.getAllSelectedRowsCount
> ();
> > var disabled = selections &gt; 0 ? false : true;
>
> > // Set disabled state for top actions.
> >
> > document.getElementById
> ("form1:layoutPanel1:table1:groupPanel1:submit").setDisabled(disabled);
> >
> > document.getElementById("form1:layoutPanel1:table1:groupPanel1:delete").setDisabled(disabled);
> > }
> >
> > Does anyone have any thoughts on how to prevent IE from doing this? I
> > have users which are on a VPN tunnel using wireless cellular cards,
> > and this results in very poor performance. Again, it works exactly as
> > expected on Firefox, but I don't have a choice on browsers.
> >
> > Thanks,
> >
> > --
> > John Yeary
> > --
> > "If I have seen further, it is because I have stood on the shoulders
> > of giants..." Sir Isaac Newton
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>


-- 
John Yeary
--
"If I have seen further, it is because I have stood on the shoulders of
giants..."  Sir Isaac Newton