[
https://issues.jboss.org/browse/JBIDE-8062?page=com.atlassian.jira.plugin...
]
Denis Maliarevich commented on JBIDE-8062:
------------------------------------------
These both cases are the default way how xulrunner (visual nodes) react to the
modifications:
1) After the second click the selected node is text node with a word selected, but you
cannot edit the text value. You can only delete the whole <f:selectItem>.
2) After the third click -- you cannot move the cursor and change the selection, you can
only edit the "itemLabel" value from the begginnig of the text.
Under the hood:
In the generated for <f:selectItem> html code
{code:html}
<DIV>
<INPUT TYPE="checkbox"/>
<LABEL>Start to edit</LABEL>
</DIV>
{code}
after the third click the node <label> gets selected but not the text inside of it.
It means xulrunner listener considers that user has selected the tag itself. Thus
selection listeners puts the selection to the begining of the text, but nothing is
selected. After that Xulrunner browser denies any other text editing except changing the
text from the beginning.
Cannot properly edit value of <f:selectItem> tag via Visual
Editor
------------------------------------------------------------------
Key: JBIDE-8062
URL:
https://issues.jboss.org/browse/JBIDE-8062
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor Templates
Affects Versions: 3.2.0.CR1
Environment: Linux 32bit, JBDS 4.0.0.v201012161657N-H584-CR1
Reporter: Vlado Pakan
Assignee: Denis Maliarevich
Fix For: 4.0.0.Alpha2
Attachments: 8062a.patch
When user wants to edit value of <f:selectItem> via Visual Editor he has to click
on <f:selectItem> text tree times to select only item text not to select item text
together with item button symbol. Whole item text gets selected. When user starts to type
item text is deselected and first two characters of item text are replaced with typed
characters. The rest of item text stays unchanged.
It works like this only for <f:selectItem> tag placed in <h:selectOneRadio>
tag. It's not possible to edit <f:selectItem> value at all when it's placed
in <h:selectManyCheckbox> tag.
When <f:selectItem> text is selected in Visual Editor cursor is put to this text
and arrow keys are moving him but it's not possible to edit item text.
Test page is attached to this Jira:
https://issues.jboss.org/browse/JBIDE-3860
---
So the promlems are the following:
1) Three clicks to select the text in <f:selectItem>
2) Only 2 first characters are selected in the "itemLabel" attribute
3) Unable to select text in <f:selectItem> in <h:selectManyCheckbox>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira