[Geoserver-devel] [jira] Created: (GEOS-2795) CRSPanel won't update the model if the user manually types in the SRS

CRSPanel won't update the model if the user manually types in the SRS
---------------------------------------------------------------------

                 Key: GEOS-2795
                 URL: http://jira.codehaus.org/browse/GEOS-2795
             Project: GeoServer
          Issue Type: Bug
          Components: Wicket UI
            Reporter: Andrea Aime
            Assignee: Justin Deoliveira
             Fix For: 2.0.x

Try with this unit test:

public void testStandaloneChanged2() throws Exception {
        CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84;
        tester.startPage( new CRSPanelTestPage( crs ) );

        // write down the text, submit the form
        FormTester ft = tester.newFormTester( "form");
        ft.setValue("form:crs:srs", "EPSG:3005");
        ft.submit();
        
        CRSPanel crsPanel = (CRSPanel) tester.getComponentFromLastRenderedPage( "form:crs");
        assertEquals( CRS.decode("EPSG:3005"), crsPanel.getCRS() );
    }

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