Bug 401265 - EGL mobile list item doesn't support customized ID
Summary: EGL mobile list item doesn't support customized ID
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 02:14 EST by Smyle H CLA
Modified: 2017-02-23 14:05 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Smyle H CLA 2013-02-20 02:14:58 EST
[Defect summary]:
EGL mobile list item doesn't support customized ID 
 
[Environment]:
EDT 0.8.2.v201212112101 32bits, WinXP 32bits

[Re-produced steps]:
1.Setup a new EGL mobile project
2.Run below codes in EDT

package client;

import dojo.mobile.widgets.DojoMobileLib;
import dojo.mobile.widgets.DojoMobileList;
import dojo.mobile.widgets.DojoMobileListItem;
import dojo.mobile.widgets.DojoMobileView;
import eglx.persistence.Id;
import eglx.ui.rui.Event;
import eglx.ui.rui.RUIHandler;

handler test type RUIhandler{initialUI = [ View, List ], 
		onConstructionFunction = start, 
		cssFile = "css/com.emoser.markt.rpt.egl.mob.css", 
		title = "TestEglMobile"}

	View DojoMobileView{
		selected = true, headerTitle = "My View",
		/*backText = "Back", backView = */
		children = [
		]
	};

	List DojoMobileList{
		style = DojoMobileLib.LIST_STYLE_ROUNDED_RECTANGLE,
		children = [
			new DojoMobileListItem{ text = "List Item 1", 
			imagePath = "dojo/mobile/images/i-icon-1.png", 
			onClick ::= null_onClick,
			id = "ITEM1ID" }
		]
	};

    function start()
    end
    
    function null_onClick(event Event in)
    	syslib.writeStdout("getID: " + event.widget.getID());
    end
end

[Results]: 
getID: dojox_mobile_ListItem_0

[Excepted Results]:
getID: ITEM1ID

[Error logs and dialogs]
Comment 1 Smyle H CLA 2013-02-20 02:21:58 EST
It is a defect reported in in EDT's forum. For more details pls refer to http://www.eclipse.org/forums/index.php/t/452694/