Ah and here the server side part of the widget, if somebody wants to test my 
code...




package pt.hostdat.hcc.common.util.component.xtextarea.server;

import com.ulcjava.base.application.ULCTextArea;

/**
 * Server-side code of extended TextArea component
 * 
 * @author Alberto Smulders
 */
public class ULCXTextArea extends ULCTextArea {
        private int fMaxCharacters = 0;

        public ULCXTextArea() {
                super();
        }

        public ULCXTextArea(String text) {
                super(text);
        }

        public ULCXTextArea(int rows, int columns) {
                super(rows, columns);
        }

        public ULCXTextArea(String text, int rows, int columns) {
                super(text, rows, columns);
        }

        protected void uploadStateUI() {
                super.uploadStateUI();
                setStateUI("maxCharacters", 0, fMaxCharacters);
        }

        public int getMaxCharacters() {
                return fMaxCharacters;
        }
        
        public void setMaxCharacters(int maxCharacters) {
                fMaxCharacters = setStateUI("maxCharacters", fMaxCharacters, 
maxCharacters);
        }
        
        protected String typeString() {
                return 
"pt.hostdat.hcc.common.util.component.xtextarea.client.UIXTextArea";
        }
}
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to