passing parameters using

后端 未结 1 1613
野性不改
野性不改 2021-01-24 06:34

I was using forEach for passing parameters to a function,the code is as follows

 
<         


        
相关标签:
1条回答
  • 2021-01-24 07:36

    Your question is meaningless. There is no "passing parameters by <ui:repeat>" and there is no "passing parameters using <c:forEach>". Your words might make sense in some specific context - but the context is missing.

    The two tags you describe do entirely different things: one builds a component (<ui:repeat>), the other one pre-processes a document that will serve to build view. The difference is profound (beginning with the shape of UI that is created, the time when the binding is evaluated, interactions with saved GUI state...) and - judging from the way you ask the question - you need to understand a lot more before you tackle this specific problem. That's all right, just take your time.

    But I have an honest advice: if <c:foreach> works for you (if only by chance), then just use it! Don't try to replace it with something altogether different (and something that you don't get).

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