[Webtest] re: Help with richfaces 3.3.3

Brad Douglas Brad Douglas" <bdouglas@synyati.com.au
Fri, 16 Sep 2011 09:19:52 +1000


This is a multipart message in MIME format.

------=_NextPart_000_09C5_01CC7451.CB7F6AC0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_09C6_01CC7451.CB7F6AC0"


------=_NextPart_001_09C6_01CC7451.CB7F6AC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Marc,

=20

We=92re definitely using html unit 2.9.  Originally I was using Canoo =
3.0 and
upgraded html unit to 2.9.  Then I downloaded Canoo R_1811 which has =
html
unit 2.9 as defult.

=20

Thanks,

Brad

=20

>Hi,

>=20

>are you using the latest WebTest build with HtmlUnit-2.9?

>=20

>Cheers,

>Marc.

>--=20

>HtmlUnit support & consulting from the source

>Blog: http://mguillem.wordpress.com

>=20

>Le 12/09/2011 06:21, Brad Douglas a =E9crit :

>> Hi all,

>>=20

>> =20

>>=20

>> I=92m hitting problems that seem pretty fatal trying to get canoo =
running

>> against our app that uses richfaces 3.3.3

>>=20

>> =20

>>=20

>> I=92m getting an error: TypeError: Cannot set property "isLeftClick" =
of

>> undefined to "function ()  {=85=85.

>>=20

>> =20

>>=20

>> The javascript in questions is

>>
http://localhost:8080/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeS=
cri
pt#12

>> and the code there is as follows:

>>=20

>> =20

>>=20

>> *return*{

>>=20

>>             isLeftClick : *function*(event) {

>>=20

>>                   *return*isButton(event, 0)

>>=20

>>             },

>>=20

>>             isMiddleClick : *function*(event) {

>>=20

>>                   *return*isButton(event, 1)

>>=20

>>             },

>>=20

>>             =85=85

>>=20

>> =20

>>=20

>> It looks like it=92s choking because ajax4jsf=92s  javascript library =
is

>> trying to set the isLeftClick property on the anonymous result to a

>> function.

>>=20

>> =20

>>=20

>> Is there a way to get webtest working with ajax4jf?

>>=20

>> =20

>>=20

>> Thanks,

>>=20

>> Brad

>>=20

>=20

=20

=20

  _____ =20


Description: cid:image001.gif@01CB654F.F4F04580

=20

 =20

 =20

50 Ross Street,  Woolloongabba,
Brisbane QLD 4102
T. +61 7 3606 3510
F. +61 7 3009 0466
 <http://www.synyati.com.au/> www.synyati.com.au

This email message and information contained in or attached to this =
message
may be privileged, confidential, and protected from disclosure and is
intended only for the person or entity to which it is addressed. Any =
review,
retransmission, dissemination, printing or other use of, or taking of =
any
action in reliance upon, this information by persons or entities other =
than
the intended recipient is prohibited. If you received this message in =
error,
please immediately inform the sender by reply e-mail and delete the =
message
and any attachments.

=20


------=_NextPart_001_09C6_01CC7451.CB7F6AC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"><meta name=3DGenerator content=3D"Microsoft Word =
14 (filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";
	mso-fareast-language:EN-US;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-AU link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hi =
Marc,<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>We&#8217;re definitely using html unit 2.9.=A0 =
Originally I was using Canoo 3.0 and upgraded html unit to 2.9.=A0 Then =
I downloaded Canoo R_1811 which has html unit 2.9 as =
defult.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Thanks,<o:p></o:p></p><p =
class=3DMsoNormal>Brad<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>&gt;Hi,<o:p></o:p></p><p =
class=3DMsoNormal>&gt;<o:p>&nbsp;</o:p></p><p class=3DMsoNormal>&gt;are =
you using the latest WebTest build with HtmlUnit-2.9?<o:p></o:p></p><p =
class=3DMsoNormal>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>&gt;Cheers,<o:p></o:p></p><p =
class=3DMsoNormal>&gt;Marc.<o:p></o:p></p><p class=3DMsoNormal>&gt;-- =
<o:p></o:p></p><p class=3DMsoNormal>&gt;HtmlUnit support &amp; =
consulting from the source<o:p></o:p></p><p class=3DMsoNormal>&gt;Blog: =
http://mguillem.wordpress.com<o:p></o:p></p><p =
class=3DMsoNormal>&gt;<o:p>&nbsp;</o:p></p><p class=3DMsoNormal>&gt;Le =
12/09/2011 06:21, Brad Douglas a =E9crit :<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; Hi all,<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
I&#8217;m hitting problems that seem pretty fatal trying to get canoo =
running<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; against our app that =
uses richfaces 3.3.3<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
I&#8217;m getting an error: TypeError: Cannot set property =
&quot;isLeftClick&quot; of<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
undefined to &quot;function ()=A0 {&#8230;&#8230;.<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
The javascript in questions is<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; =
http://localhost:8080/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeS=
cript#12<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; and the code there =
is as follows:<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
*return*{<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
isLeftClick : *function*(event) {<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 *return*isButton(event, 0)<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
},<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
isMiddleClick : *function*(event) {<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 *return*isButton(event, 1)<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
},<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
&#8230;&#8230;<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
It looks like it&#8217;s choking because ajax4jsf&#8217;s=A0 javascript =
library is<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; trying to set the =
isLeftClick property on the anonymous result to a<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; function.<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
Is there a way to get webtest working with ajax4jf?<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt;=A0 <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; =
Thanks,<o:p></o:p></p><p class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; Brad<o:p></o:p></p><p =
class=3DMsoNormal>&gt;&gt; <o:p></o:p></p><p =
class=3DMsoNormal>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-la=
nguage:EN-AU'><o:p>&nbsp;</o:p></span></p><div><div =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-family:"Arial","sans-serif";color:navy;mso-fareast-language=
:EN-AU'><hr size=3D1 width=3D264 style=3D'width:198.0pt' noshade =
style=3D'color:#009999' align=3Dleft></span></div></div><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D5 =
cellpadding=3D0><tr><td style=3D'padding:0cm 0cm 0cm 0cm'><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-family:"Arial","sans-serif";color:navy;mso-fareast-language=
:EN-AU'><img width=3D76 height=3D44 id=3D"Picture_x0020_2" =
src=3D"cid:image001.gif@01CC7451.93E7B270" alt=3D"Description: =
cid:image001.gif@01CB654F.F4F04580"></span><span =
style=3D'mso-fareast-language:EN-AU'><o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'><o:p>&nbsp;</o:p></span></p></td><td =
style=3D'padding:0cm 0cm 0cm 0cm'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-family:"Arial","sans-serif";color:navy;mso-fareast-language=
:EN-AU'>&nbsp; </span><span =
style=3D'font-size:12.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'><o:p></o:p></span></p></td><td =
style=3D'padding:0cm 0cm 0cm 0cm'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-family:"Arial","sans-serif";color:navy;mso-fareast-language=
:EN-AU'>&nbsp; </span><span =
style=3D'font-size:12.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'><o:p></o:p></span></p></td><td =
style=3D'padding:0cm 0cm 0cm 0cm'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'>50 Ross Street,&nbsp; =
Woolloongabba,<br>Brisbane QLD 4102<br>T. +61&nbsp;7 3606 3510<br>F. =
+61&nbsp;7 3009 0466<br></span><span =
style=3D'color:#1F497D;mso-fareast-language:EN-AU'><a =
href=3D"http://www.synyati.com.au/" =
title=3D"blocked::http://www.synyati.com.au/&#10;http://www.synyati.com.a=
u/"><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>ww=
w.synyati.com.au</span></a></span><span =
style=3D'font-size:12.0pt;color:navy;mso-fareast-language:EN-AU'><o:p></o=
:p></span></p></td></tr></table><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span =
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'>This email message and information contained in =
or attached to this message may be privileged, confidential, and =
protected from disclosure and is intended only for the person or entity =
to which it is addressed. Any review, retransmission, dissemination, =
printing or other use of, or taking of any action in reliance upon, this =
information by persons or entities other than the intended recipient is =
prohibited. If you received this message in error, please immediately =
inform the sender by reply e-mail and delete the message and any =
attachments.</span></i><i><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:navy;mso=
-fareast-language:EN-AU'><o:p></o:p></span></i></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
------=_NextPart_001_09C6_01CC7451.CB7F6AC0--

------=_NextPart_000_09C5_01CC7451.CB7F6AC0
Content-Type: image/gif;
	name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <image001.gif@01CC7451.93E7B270>

R0lGODlhTAAsAHcAACH/C01TT0ZGSUNFOS4wDQAAAAFzUkdCAK7OHOkAIf8LTVNPRkZJQ0U5LjAX
AAAAC21zT1BNU09GRklDRTkuMEI8pPUALAAAAABMACwAh////wAAAAAAMwAAZgAAmQAAzAAA/wAz
AAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADM
MwDMZgDMmQDMzADM/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMz
ZjMzmTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPM
mTPMzDPM/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZ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