1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
    meliniak is on a distinguished road

      0  

    Post LabelField and TextField switching

    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?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Can you please post your code as a small, standalone testcase?

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
    meliniak is on a distinguished road

      0  

    Default


    Do you mean just code snippets or whole eclipse project?

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I mean a single class that implements EntryPoint and shows what you are doing.

Similar Threads

  1. LabelField + ClickListener
    By zhyt in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 15 Jan 2009, 11:25 AM
  2. LabelField + ClickListener
    By zhyt in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2009, 7:34 AM
  3. TextField, LabelField questions
    By mannobug in forum Ext GWT: Help & Discussion (1.x)
    Replies: 5
    Last Post: 19 Dec 2008, 9:25 AM
  4. LabelField and setLabelStyle
    By sjzaluk in forum Ext GWT: Help & Discussion (1.x)
    Replies: 6
    Last Post: 24 Oct 2008, 8:08 PM
  5. labelfield can not be seen in browser
    By hchen in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Jun 2008, 7:54 AM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi