In a JSF component what is the best way to "refactor" common constants, e.g. names/paths in a tag to a single local, temporary property?
<!-- ... lots of repetitions -->
すべきである
<-- assign /a/b/c/ to path --> <!-- ... lots of repetitions -->
Use on application scope. This basically stores the variable in the application map.
var = "path" が既存のマネージドBean名や暗黙のEL変数などと衝突しないことを確認してください。必要に応じて、接頭辞として _ を付けることができます。
var = "path"
_
複合コンポーネントを使用しない理由その後、変更するときにimg1.png、img2.png、...などの場所を変更する必要はありません。パスはパラメータとして指定できます。
日本人コミュニティのjavascript