Create ADF elements programmatically using Java
MartinKMay 5 2010 — edited May 5 2010Hello,
I use JDeveloper 11.1.1.2.0 and Java 6 (of course)
<f:view>
<af:document title="Some Text" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelGroupLayout layout="vertical" id="pgl1" halign="center">
<af:outputText value="Song" id="ot1"/>
<af:media source="/midi/song.midi"
standbyText="Song sample" player="quicktime" id="m2"
contentType="audio/x-midi"/>
</af:panelGroupLayout>
</af:form>
</af:document>
</f:view>
I would like to create this construct programmatically. The reason is that I would like to create not only one <af:media> tag but more. But for some reasons it's not a fixed portion of songs I could anticipate. Therefore I want to take the construct above as a template and add more <af:media> tags I need at the moment I realize how many songs I want to play.
I would like to call this construct from a command button or link on another side to open a new window in which the user could choose among different songs to play.
Do I have to use DOM or XPath to setup this or is ADF able to offer some support ?
Best regards
Martin
Edited by: user463656 on 05.05.2010 01:41