[ http://issues.apache.org/jira/browse/BEEHIVE-456?page=all ]
     
Krista Baker reopened BEEHIVE-456:
----------------------------------

     Assign To: Eddie O'Neil  (was: Krista Baker)

Two items were seen while going through the petstoreweb sample at svn rev: 
170707.

In the sample documentation web page:
default location of war is not C:\beehive_projects\petstoreWeb.war instead it 
is located in: C:\beehive_projects\petstoreWeb\petstoreWeb.war  

Fix 1) changed the sample doc to update the directory location

login.jsp throws a javascript exception from the lines:             
            <%-- set focus on the username box--%>
            <script language="javascript">
            <!--
            document.forms[1].j_username.focus();
            -->

The javaScript is placed prior to the declaration of the second form so it has 
no properties and cannot be found at runtime, causing a javaScript error

Fix 2) moved the javaScript down in the login.jsp file to be after the 
<netui:form> declaration.  The focus is now set as expected and no javaScript 
errors are seen.

Attaching patch petstoreWeb456.txt for the two above issues


> Errors in petstore create account page
> --------------------------------------
>
>          Key: BEEHIVE-456
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-456
>      Project: Beehive
>         Type: Bug
>   Components: Samples
>     Versions: V1Beta
>     Reporter: Scott Semyan
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: petstoreWeb456.txt
>
> I am using the petstore sample from the beta dist. When I go to the 
> globalViewCreateAccount.do page, I get several tag errors like the following:
> Tag Error 
> Tag TextBox Errors 1 
> Expression Error Attribute dataSource Expression {actionForm.firstName} 
> Message Caught exception when evaluating expression "{actionForm.firstName}" 
> with available binding contexts [actionForm, pageFlow, globalApp, request, 
> session, application, pageContext, bundle, container, url, pageInput]. Root 
> cause: java.lang.RuntimeException: Can not evaluate the identifier 
> "firstName" on a null value object. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to