[jboss-jira] [JBoss JIRA] (AS7-2770) Provide debug id's on the main container elements
Pavel Slegr (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Nov 30 08:37:40 EST 2011
[ https://issues.jboss.org/browse/AS7-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646640#comment-12646640 ]
Pavel Slegr commented on AS7-2770:
----------------------------------
In the past there were the same issue with GWT opened check here: http://code.google.com/p/google-web-toolkit/issues/detail?id=1898 and since GWT 1.5 there has been added a method ensureDebugId()for UIObject
We need to change current implementation somewhat in following way...
1. Create new button
ToolButton button = new ToolButton("Remove", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Feedback.confirm("Remove Module", "Really remove module?",
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if(isConfirmed)
{
Module module = ((SingleSelectionModel<Module>) modules.getSelectionModel()).getSelectedObject();
presenter.onRemoveModule(form.getEditedEntity(), module);
}
}
});
}
});
2.Set Debug Id
button.ensureDebugId("RemoveButtonEEView");
3. Add to Panel
moduleTools.addToolButtonRight(button);
> Provide debug id's on the main container elements
> -------------------------------------------------
>
> Key: AS7-2770
> URL: https://issues.jboss.org/browse/AS7-2770
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Console
> Reporter: Heiko Braun
> Assignee: Pavel Slegr
> Fix For: 7.1.0.CR1
>
>
> to simplify the selenium tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list