You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alvaro Sanchez-Mariscal (JIRA)" <ji...@apache.org> on 2007/08/22 11:48:34 UTC

[jira] Created: (WW-2126) Autocompleter keyName do not get posted in a form

Autocompleter keyName do not get posted in a form
-------------------------------------------------

                 Key: WW-2126
                 URL: https://issues.apache.org/struts/browse/WW-2126
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.8
         Environment: Tomcat 5.5, Firefox 2
            Reporter: Alvaro Sanchez-Mariscal


Having:

<s:autocompleter name="stay.teacher.countryName" theme="simple"
       list="{'España','Portugal','Francia','Alemania','Holanda','Estados
Unidos'}"
       dropdownHeight="200" value="%{stay.teacher.countryName}" />

The HTML generated is:

<select dojoType="struts:ComboBox"
id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
initialValue="Francia">
   <option value="España">España</option>
   <option value="Portugal">Portugal</option>
   <option value="Francia" selected="selected">Francia</option>
   <option value="Alemania">Alemania</option>
   <option value="Holanda">Holanda</option>
   <option value="Estados Unidos">Estados Unidos</option>
</select>

If I submit the form containing the autocompleter, the fields posted values are:

stay.teacher.countryName:       Francia
stay.teacher.countryNameKey: (empty)

However, if I select in the autocompleter the same item ('Francia' in my case):

a) A Javascript error is fired:

Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
[Break on this error] throw _13||Error(_12);

(translation: permission denied to access HTMLDivElement.parentNode property)

b) The following is posted:

stay.teacher.countryName:          Francia
stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reopened WW-2126:
---------------------------------


> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Pablo Lillia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42238 ] 

Pablo Lillia commented on WW-2126:
----------------------------------

I have workaround a very similar problem adding autoComplete="false" attribute to the <s:autocompleter .../>

My problem was only on Firefox, same error message.

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>             Fix For: 2.0.12
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2126:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>             Fix For: 2.0.12
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42303 ] 

Musachy Barroso commented on WW-2126:
-------------------------------------

Until you select a value nothing will be loaded on the "key" field. To set an initial value to the key, use the keyValue attribute (available on 2.1)

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2126.
---------------------------------

    Resolution: Implemented

See WW-2220

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2126.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.12)
                   2.1.0

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>            Assignee: Musachy Barroso
>             Fix For: 2.1.0
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2126:
-----------------------------

    Component/s: Views

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>             Fix For: 2.0.11
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2126:
-----------------------------

    Fix Version/s: 2.0.11

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>             Fix For: 2.0.11
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-2126) Autocompleter keyName do not get posted in a form

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reassigned WW-2126:
-----------------------------------

    Assignee: Musachy Barroso

> Autocompleter keyName do not get posted in a form
> -------------------------------------------------
>
>                 Key: WW-2126
>                 URL: https://issues.apache.org/struts/browse/WW-2126
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2
>            Reporter: Alvaro Sanchez-Mariscal
>            Assignee: Musachy Barroso
>             Fix For: 2.0.12
>
>
> Having:
> <s:autocompleter name="stay.teacher.countryName" theme="simple"
>        list="{'España','Portugal','Francia','Alemania','Holanda','Estados
> Unidos'}"
>        dropdownHeight="200" value="%{stay.teacher.countryName}" />
> The HTML generated is:
> <select dojoType="struts:ComboBox"
> id="teacherUpdateForm_stay_teacher_countryName" dropdownHeight="200"
> name="stay.teacher.countryName" keyName="stay.teacher.countryNameKey"
> initialValue="Francia">
>    <option value="España">España</option>
>    <option value="Portugal">Portugal</option>
>    <option value="Francia" selected="selected">Francia</option>
>    <option value="Alemania">Alemania</option>
>    <option value="Holanda">Holanda</option>
>    <option value="Estados Unidos">Estados Unidos</option>
> </select>
> If I submit the form containing the autocompleter, the fields posted values are:
> stay.teacher.countryName:       Francia
> stay.teacher.countryNameKey: (empty)
> However, if I select in the autocompleter the same item ('Francia' in my case):
> a) A Javascript error is fired:
> Permiso para obtener la propiedad HTMLDivElement.parentNode denegado
> [Break on this error] throw _13||Error(_12);
> (translation: permission denied to access HTMLDivElement.parentNode property)
> b) The following is posted:
> stay.teacher.countryName:          Francia
> stay.teacher.countryNameKey:    Francia

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.