[6381] in im locker bugs
The XMLHttpRequest object makes a call to FacesServlet, which updates SessionBean.
daemon@ATHENA.MIT.EDU (Kenneth Holloway)
Wed Jun 6 16:01:31 2007
From: "Kenneth Holloway" <fqqb@halw.com>
To: <bug-im@mit.edu>
Date: Wed, 6 Jun 2007 15:01:24 -0500
------=_NextPart_000_0016_01C7A84B.8D0EF610
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0017_01C7A84B.8D13B100"
------=_NextPart_001_0017_01C7A84B.8D13B100
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
The next section describes the example used in this tutorial. This is =
the package that encapsulates the XMLHttpRequest mechanism.
Because Ajax is new, it has very inconsistent support among browsers. =
jsp pages of the Editable Label application include several dLabel tags. =
This example uses a custom label component that, when you click on it in =
the page, renders an input component and a button.
If you reside outside the US, please select a country to inquire about =
products delivered in your country.
In particular, various browsers differ in how they handle JavaScript =
technology code. Requires developers to contend with UI issues.
The phase listener performs these functions before the restore view =
phase of the life cycle.
We'll cover that more later in the document.
For other than simple applications, developers must consider these UI =
issues and include code that handles them appropriately. If you've =
surfed the web at all lately, most likely you've seen Ajax in action =
without realizing it. This is the package that encapsulates the =
XMLHttpRequest mechanism.
Creating Necessary JavaScript Functions If you are new to JavaScript, =
you can find a lot of support on the web, including here at java.
This function updates the HTML DOM based on the contents of the XML =
document that was returned, and the response is sent back to the client.
The encodeEnd method of DLabelRenderer will be called once for each =
component tag in the page.
Handles browser incompatibilities in processing Ajax. io packages help =
with implementing the Ajax functionality in the application. The page =
obtains the JavaScript from the phase listener. Although most modern =
browsers handle Ajax code, not all browsers handle that code in the same =
way. In addition, incorporating prebuilt widgets such as those in the =
Dojo toolkit is typically much simpler than coding the JavaScript =
technology functionality that those widgets provide.
Note that the data for each component is bound to the backing bean =
called SessionBean. This way, the data on the client matches the data on =
the server. Libraries such as the dojo. DLabelPhaseListener, which =
processes the Ajax request, exchanges the data with the server-side =
object, and returns the XML data to the client.
------=_NextPart_001_0017_01C7A84B.8D13B100
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><IMG alt=3D"respirator" hspace=3D0=20
src=3D"http://kxtoll.com/ranching.gif" align=3Dbaseline=20
border=3D0></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The next section describes the example =
used in this=20
tutorial. This is the package that encapsulates the XMLHttpRequest=20
mechanism.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Because Ajax is new, it has very =
inconsistent=20
support among browsers. jsp pages of the Editable Label application =
include several=20
dLabel tags. This example uses a custom label component that, when you =
click on it=20
in the page, renders an input component and a button.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you reside outside the US, please =
select a=20
country to inquire about products delivered in your =
country.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In particular, various browsers differ =
in how they=20
handle JavaScript technology code. Requires developers to contend with =
UI=20
issues.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The phase listener performs these =
functions before=20
the restore view phase of the life cycle.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>We'll cover that more later in the=20
document.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For other than simple applications, =
developers must=20
consider these UI issues and include code that handles them =
appropriately. If you've=20
surfed the web at all lately, most likely you've seen Ajax in action =
without=20
realizing it. This is the package that encapsulates the =
XMLHttpRequest=20
mechanism.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Creating Necessary JavaScript Functions =
If you are=20
new to JavaScript, you can find a lot of support on the web, including =
here at=20
java.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This function updates the HTML DOM =
based on the=20
contents of the XML document that was returned, and the response is sent =
back to the=20
client.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The encodeEnd method of DLabelRenderer =
will be=20
called once for each component tag in the page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Handles browser incompatibilities in =
processing=20
Ajax. io packages help with implementing the Ajax functionality in the =
application.=20
The page obtains the JavaScript from the phase listener. Although most =
modern=20
browsers handle Ajax code, not all browsers handle that code in the same =
way. In=20
addition, incorporating prebuilt widgets such as those in the Dojo =
toolkit is=20
typically much simpler than coding the JavaScript technology =
functionality that=20
those widgets provide.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Note that the data for each component =
is bound to=20
the backing bean called SessionBean. This way, the data on the client =
matches the=20
data on the server. Libraries such as the dojo. DLabelPhaseListener, =
which processes=20
the Ajax request, exchanges the data with the server-side object, and =
returns the=20
XML data to the client.</FONT></DIV></BODY></HTML>
------=_NextPart_001_0017_01C7A84B.8D13B100--
------=_NextPart_000_0016_01C7A84B.8D0EF610--