SmartGWT version 3.0
Browser FF
Hiragana characters in the Japanese language are not written correctly in the text item when its validated on change using a custom validator.
----------------------------------------
To setup Japanese keyboard
1. Go to 'Region and Language'
2. Go to the 'Keyboards and Language' tab
3. Click Change keyboards...'
4. On the 'General' tab click 'Add'.
5. Navigate to Japan and select Japanese and Microsoft IME options
6. Click OK, you should have those options in your list now
7. Go to the Language bar tab in the same panel, and check 'Docked in the Taskbar' (that's where I have it)
8. The language bar lets you select Japanese language by clicking on the EN, then switch to Japanese
9. Change the keyboard input then by clicking on the capital A and changing it to Hiragana(あ)
10. You should be typing in Japan now.
11. If you load the 'Onscreen keyboard' you should be able to see where the keys are and what your keyboard is set to.
------------------------------------------------------
k + o means こ in Japanese. The character is written correctly (see 1.png) when the valid state remains true, that is, valid. However, when written causing the valid state to be false (4.png) or from false to true (2.png and 3.png), the letter don't appear correctly.
Sample code
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.form.validator.CustomValidator;
public class TextItemTest implements EntryPoint {
public void onModuleLoad() {
DynamicForm form = new DynamicForm();
TextItem item = new TextItem();
item.setTitle("JapaneseChar");
item.setValidateOnChange(true);
CustomValidator validator = new CustomValidator()
{
@Override
protected boolean condition(Object value)
{
if(value == null || ((String)value).length() == 0 || ((String)value).length() > 10)
return false;
else
return true;
}
};
item.setValidators(validator);
form.setFields(item);
form.draw();
}
}
Please let me know if you need any more info.
This appears to be a focus issue in smartgwt. Is there a fix or workaround for this?
Browser FF
Hiragana characters in the Japanese language are not written correctly in the text item when its validated on change using a custom validator.
----------------------------------------
To setup Japanese keyboard
1. Go to 'Region and Language'
2. Go to the 'Keyboards and Language' tab
3. Click Change keyboards...'
4. On the 'General' tab click 'Add'.
5. Navigate to Japan and select Japanese and Microsoft IME options
6. Click OK, you should have those options in your list now
7. Go to the Language bar tab in the same panel, and check 'Docked in the Taskbar' (that's where I have it)
8. The language bar lets you select Japanese language by clicking on the EN, then switch to Japanese
9. Change the keyboard input then by clicking on the capital A and changing it to Hiragana(あ)
10. You should be typing in Japan now.
11. If you load the 'Onscreen keyboard' you should be able to see where the keys are and what your keyboard is set to.
------------------------------------------------------
k + o means こ in Japanese. The character is written correctly (see 1.png) when the valid state remains true, that is, valid. However, when written causing the valid state to be false (4.png) or from false to true (2.png and 3.png), the letter don't appear correctly.
Sample code
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.form.validator.CustomValidator;
public class TextItemTest implements EntryPoint {
public void onModuleLoad() {
DynamicForm form = new DynamicForm();
TextItem item = new TextItem();
item.setTitle("JapaneseChar");
item.setValidateOnChange(true);
CustomValidator validator = new CustomValidator()
{
@Override
protected boolean condition(Object value)
{
if(value == null || ((String)value).length() == 0 || ((String)value).length() > 10)
return false;
else
return true;
}
};
item.setValidators(validator);
form.setFields(item);
form.draw();
}
}
Please let me know if you need any more info.
This appears to be a focus issue in smartgwt. Is there a fix or workaround for this?
Comment