You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Glauber Adriano Reis <gl...@gmail.com> on 2005/09/02 03:00:06 UTC

netui-samples typos

Hi,
In netui-samples, 2 jps's petId property were petID. That spawned errors when accesing "Page Input" and
"Repeating Select with Select Option Body Content and Integer Keys" samples.

Here goes a fix


Index: ui/select/repeatingSelectWithOptionBody.jsp
===================================================================
--- ui/select/repeatingSelectWithOptionBody.jsp (revision 265810)
+++ ui/select/repeatingSelectWithOptionBody.jsp (working copy)
@@ -32,7 +32,7 @@
            <br/>
            <br/>
            <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
-              <netui:selectOption value="${container.item.petID}" repeatingType="option">
+              <netui:selectOption value="${container.item.petId}" repeatingType="option">
                    <netui:content value="${container.item.name}"/>
                </netui:selectOption>
            </netui:select>
@@ -42,4 +42,4 @@
        </netui:form>
        <br/>
    </netui-template:section>
-</netui-template:template>
\ No newline at end of file
+</netui-template:template>
Index: ui/pageinput/index.jsp
===================================================================
--- ui/pageinput/index.jsp      (revision 265810)
+++ ui/pageinput/index.jsp      (working copy)
@@ -29,7 +29,7 @@
        <br/>
        <table>
            <tr><td colspan="2"><b>Pet Details</b></td></tr>
-          <tr><td>Identifier:</td><td>${pageInput.pet.petID}</td></tr>
+          <tr><td>Identifier:</td><td>${pageInput.pet.petId}</td></tr>
            <tr><td>Name:</td><td>${pageInput.pet.name}</td></tr>
            <tr><td>Price:</td><td>${pageInput.pet.price}</td></tr>
        <tr><td>Description:</td><td>${pageInput.pet.description}</td></tr>
@@ -43,4 +43,4 @@
        that <i>does</i> provide the required page input.
        <br/>
    </netui-template:section>
-</netui-template:template>
\ No newline at end of file
+</netui-template:template>

Re: netui-samples typos

Posted by Eddie O'Neil <ek...@gmail.com>.
Glauber--

  Nice catch!  Thanks for pointing it out -- fix coming shortly.

Eddie



On 9/1/05, Glauber Adriano Reis <gl...@gmail.com> wrote:
> Hi,
> In netui-samples, 2 jps's petId property were petID. That spawned errors when accesing "Page Input" and
> "Repeating Select with Select Option Body Content and Integer Keys" samples.
> 
> Here goes a fix
> 
> 
> Index: ui/select/repeatingSelectWithOptionBody.jsp
> ===================================================================
> --- ui/select/repeatingSelectWithOptionBody.jsp (revision 265810)
> +++ ui/select/repeatingSelectWithOptionBody.jsp (working copy)
> @@ -32,7 +32,7 @@
>             <br/>
>             <br/>
>             <netui:select dataSource="actionForm.name" optionsDataSource="${pageInput.petList}" repeater="true">
> -              <netui:selectOption value="${container.item.petID}" repeatingType="option">
> +              <netui:selectOption value="${container.item.petId}" repeatingType="option">
>                     <netui:content value="${container.item.name}"/>
>                 </netui:selectOption>
>             </netui:select>
> @@ -42,4 +42,4 @@
>         </netui:form>
>         <br/>
>     </netui-template:section>
> -</netui-template:template>
> \ No newline at end of file
> +</netui-template:template>
> Index: ui/pageinput/index.jsp
> ===================================================================
> --- ui/pageinput/index.jsp      (revision 265810)
> +++ ui/pageinput/index.jsp      (working copy)
> @@ -29,7 +29,7 @@
>         <br/>
>         <table>
>             <tr><td colspan="2"><b>Pet Details</b></td></tr>
> -          <tr><td>Identifier:</td><td>${pageInput.pet.petID}</td></tr>
> +          <tr><td>Identifier:</td><td>${pageInput.pet.petId}</td></tr>
>             <tr><td>Name:</td><td>${pageInput.pet.name}</td></tr>
>             <tr><td>Price:</td><td>${pageInput.pet.price}</td></tr>
>         <tr><td>Description:</td><td>${pageInput.pet.description}</td></tr>
> @@ -43,4 +43,4 @@
>         that <i>does</i> provide the required page input.
>         <br/>
>     </netui-template:section>
> -</netui-template:template>
> \ No newline at end of file
> +</netui-template:template>
>