4 Nov 2010 4:11 AM #1
LabelField and TextField switching
What I want to achieve is to have a field, that depending on whether it's set editable or not, is displayed using TextField or FieldLabel respectively.
My approach is pretty straightforward: class that extends LayoutContainer, contains both label and text fields, and exchanges them appropriately. After each switch LC.layout() is called obviously.
It behaves differently as I would have expected. If set to editable (i.e. using TextField), input field is displayed, field's label is not displayed, DOM contains just input field. If set to FieldLabel, nothing is displayed, DOM contains just the LC and nothing inside it.
Any ideas how come it's behaving that way?
4 Nov 2010 4:21 AM #2
Can you please post your code as a small, standalone testcase?
4 Nov 2010 4:24 AM #3
Do you mean just code snippets or whole eclipse project?
4 Nov 2010 4:30 AM #4
I mean a single class that implements EntryPoint and shows what you are doing.
By zhyt in forum Ext GWT: Help & Discussion (1.x)Replies: 2Last Post: 15 Jan 2009, 11:25 AM
By zhyt in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 14 Jan 2009, 7:34 AM
By mannobug in forum Ext GWT: Help & Discussion (1.x)Replies: 5Last Post: 19 Dec 2008, 9:25 AM
By sjzaluk in forum Ext GWT: Help & Discussion (1.x)Replies: 6Last Post: 24 Oct 2008, 8:08 PM
By hchen in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 12 Jun 2008, 7:54 AM