[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-621) Traditional Chinese Input Failed in Visual Page Editor

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Mar 24 10:34:56 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-621?page=comments#action_12404229 ] 
            
Snjezana Peco commented on JBIDE-621:
-------------------------------------

I am not sure if I have understood the issue correctly, but if the user wants to enter characters in the visual part of the VPE, the visual part has to be set to the design mode.
That can be performed in the following way (Snippet267):
public boolean setDesignMode(String value) {
		nsIWebBrowser webBrowser = (nsIWebBrowser)browser.getWebBrowser();
		if (webBrowser == null) {
			System.out.println("Could not get the nsIWebBrowser from the Browser widget");
			return false;
		}
		nsIDOMWindow window = webBrowser.getContentDOMWindow();
		nsIDOMDocument document = window.getDocument();
		nsIDOMNSHTMLDocument nsDocument = (nsIDOMNSHTMLDocument)document.queryInterface(nsIDOMNSHTMLDocument.NS_IDOMNSHTMLDOCUMENT_IID);
		nsDocument.setDesignMode(value);
		return true;
	}

Without this code, the user can't enter even English characters.
Attached is a screenshot showing entering Chinese characters in the visual part of the editor.
It is necessary to add listeners that will update the source part.



> Traditional Chinese Input Failed in Visual Page Editor
> ------------------------------------------------------
>
>                 Key: JBIDE-621
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-621
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor
>    Affects Versions: ExadelStudioPro4
>         Environment: Eclipse 3.2.2+Exadel Studio Pro 4.0.4+Tomcat 5.5+Windows XP Home(US English)
>            Reporter: KT Lo
>         Assigned To: Maxim Areshkau
>             Fix For: LATER
>
>         Attachments: screenshot-1.jpg, screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg
>
>
> Step 1: Called Up Traditional Chinese Phonetic Input Method (Check ScreenShot:"Step1)
> Step2: Intended Chinese Character typed but not showed and in the VIsual Page Editor ( (Check ScreenShot:"Step2)

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

        



More information about the jbosstools-issues mailing list