What is the resizing option for inputTextarea component in JSF

前端 未结 1 1797
走了就别回头了
走了就别回头了 2021-01-17 09:49

I am using JSF2.0 and I have an inputTextArea component and want to prevent the enduser from resizing it.How can I do it.I tried resize=\"false\" but it is not accepting.

1条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 10:34

    This is to be achieved using the CSS resize property which needs to be set to none.

    E.g.

    
    

    or, better,

    
    

    with this in a fullworthy CSS file

    .unresizable {
        resize: none;
    }
    

    The same story applies to the PrimeFaces equivalent . You wasn't exactly clear on which one you were using. Your question title and body implied standard JSF, but you tagged PrimeFaces.

    0 讨论(0)
提交回复
热议问题