Bugs item #1464710, was opened at 2006-04-05 06:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1464710&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: gcdha (gcdha)
Assigned to: Nobody/Anonymous (nobody)
Summary: Entry of disabled gets lost with server round trip

Initial Comment:
Hello,

I'am using a disabled TextField and a DropDownChoice.
If the selection changed I make an server round trip 
to be able to react. I think it's a bug that the entry 
of the disabled TextField gets lost.

Here ist the sourcecode:

import java.util.ArrayList;

import wicket.markup.html.WebPage;
import wicket.markup.html.form.DropDownChoice;
import wicket.markup.html.form.Form;
import wicket.markup.html.form.TextField;
import wicket.model.Model;

public class BugTestPage extends WebPage {

        public BugTestPage() {

                Form form = new Form("form");

                TextField textField=new TextField
("textfield",new Model("myText"));
                textField.setEnabled(false);
                form.add(textField);
                
                ArrayList<String> list = new 
ArrayList<String>();
                list.add("test1");
                list.add("test2");
                list.add("test3");
                
                DropDownChoice choice=new 
DropDownChoice("dropdownchoice", new Model("test1"), 
new Model(
                                list)) {
                        @Override
                        protected boolean 
wantOnSelectionChangedNotifications() {
                                return true;
                        }
                };
                form.add(choice);

                add(form);
        }

}

and the markup-file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" 
href="css/style.css">
</head>
<body>
        <h1>BugTest</h1>
        
        <p>
        If you select another entry in the 
DropDownChoice a server round trip will be done.
        The text in the disabled TextField gets lost.
        </p>

        <form wicket:id="form">
        <table>
                <tr>
                        <td>TextField:</td>
                        <td><input type="text" 
wicket:id="textfield" /></td>
                </tr>
                <tr>
                        <td>DropDownChoice:</td>
                        <td><select 
wicket:id="dropdownchoice"></select></td>
                </tr>
        </table>
        </form>
</body>
</html>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1464710&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to