How to use if, else condition in jsf to display image

后端 未结 3 694
花落未央
花落未央 2021-01-31 08:43

I have a condition where I have an enrollment form in which if userid is 0 it should show the dummy image and when I edit user from any update, I check for if userid which is no

3条回答
  •  渐次进展
    2021-01-31 09:16

    For those like I who just followed the code by skuntsel and received a cryptic stack trace, allow me to save you some time.

    It seems c:if cannot by itself be followed by c:otherwise.

    The correct solution is as follows:

    
        
            

    some.test is true

    some.test is not true

    You can add additional c:when tests in as necessary.

提交回复
热议问题