The sample application needs a couple of correction.

"Kanji NIWA" <[email protected]>
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
Hello,

I found three bugs of the sample applications in Enhydra5.1beta8.

===== Welcome application =====

A Java Script error occurs on the "Welcome.po".
It's because of a misspell at a SCRIPT tag.

NOT CORRECT )
<SCRIPT language="JavaScript" type="test/javascript">

CORRECT )
<SCRIPT language="JavaScript" type="text/javascript">

I corrected and confirmed execution.

======== GolfShop ===========

On the "NewAccount.po" screen,
If I push the "CREATE" button, a browser freezes.

The link of the "CREATE" button is as follows.
<A href="javascript:document.forms[0].submit();" id="AccountProcessorRef"
onmouseout="LogIn.src='../media/Create_n.gif'"
onmouseover="LogIn.src='../media/Create_b.gif'">

And the FORM tag is as follows.
<FORM action="javascript:document.forms[0].submit();" id="AccountForm"
method="POST" name="createForm">

If the "CREATE" button will be pushed,
the SUBMIT processing will be performed repeatedly...

If the source code of Golfshop doesn't change from version Enhydra3.1, 
probably , I think that should correct this as follows.
 
file://enhydra-demos-src3.1/GolfShop/golfShop/presentation/html/login
at the line 43 in file "NewAccount.html"

NOT CORRECT )
<form id="AccountForm" name="createForm" method="POST" action="../main/Main.html">

CORRECT )
<form id="AccountForm" name="createForm" method="POST" action="AccountProcessor.po">

I corrected and confirmed execution.

====== EnhydraFlash =======

Flash is not displayed.
It is because wrong encoding is set in ShowName.java.

ShowName.java : 62 lines

NOT CORRECT )
comms.response.setEncoding("ISO8859_1");

CORRECT )
comms.response.setEncoding("ISO8859-1");

I corrected and confirmed execution.

===============================================

P.S.
Enhydra5.1beta8-source does not contain
the source of Welcome application and GolfShop application.
Is this correction in time for Final Release?

|
|Thanks,
Best regards,
K.NIWA.
NEC Soft, Ltd.---------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.