tag:blogger.com,1999:blog-65647552433353546612024-02-20T02:57:29.846+02:00Another Middleware BlogAnonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-6564755243335354661.post-88209843405403719512015-09-11T20:13:00.000+03:002015-09-11T20:13:38.437+03:002>&1<span style="font-family: Arial, Helvetica, sans-serif;">Have you asked yourself what </span><span style="font-family: Courier New, Courier, monospace;">2>&1</span><span style="font-family: Arial, Helvetica, sans-serif;"> means in a shell script? It means that 2 (stderr) is redirected to 1 (stdout). If you combine it with a redirect to /dev/null that line does not display any output or error messages. Example: </span><span style="font-family: Courier New, Courier, monospace;">apt-get update > /dev/null 2>&1</span>Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-1966799725390764782015-08-10T13:26:00.000+03:002015-08-10T15:45:13.134+03:00Embedding Oracle Documents Cloud Service UI In Custom Web Pages<h3 style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">Introduction</span></h3>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">With Oracle Documents Cloud Service we have the possibility to embed the user interface of Documents Cloud Service in other web pages by simply using an HTML iframe tag. This is the simplest way to integrate with Oracle Documents Cloud Service and to do this you have to follow few simple steps. Note that this integration removes the default branding from interface and dimension parameters of the interface are dictated by the attributes of the iframe.</span></div>
<h3 style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></h3>
<h3 style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">Enable the embedded content</span></h3>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">In the Administration interface of Oracle Documents Cloud Service go to Embedded Content section. A switch allows you to enable or disable content from Oracle Documents within other domains. Also you have to specify the domain and port and if you enable CAPTCHA and Safe Mode. We will come back to these features a little later. </span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbxqRs5A37fKRA8fil2jXd2lDaKmeV4d8MIc69taWhq_J1GmxHkC55xFXce7O0ul_OtT3SmQCJe0avfoCmPXRUwd_rrqoSFBrgNpHZxZzi0ZgJ2lBGWwLDlN4e5jPYR7cqk07HbS4gkdZl/s1600/Screen+Shot+2015-08-10+at+12.23.50.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Oracle Documents Cloud Service Administration Interface" border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbxqRs5A37fKRA8fil2jXd2lDaKmeV4d8MIc69taWhq_J1GmxHkC55xFXce7O0ul_OtT3SmQCJe0avfoCmPXRUwd_rrqoSFBrgNpHZxZzi0ZgJ2lBGWwLDlN4e5jPYR7cqk07HbS4gkdZl/s400/Screen+Shot+2015-08-10+at+12.23.50.png" title="" width="400" /></a></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">For this simple tutorial I used wildcards for the domain name and port and this is not safe. Please use your actual domain name and actual port for your web application.</span></div>
<h3 style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></h3>
<h3 style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">Define the IFRAME URL</span></h3>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">Next step is to identify the URL for the iframe src attribute. If your URL for the service is: </span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">http://<tennant-info>.oraclecloud.com/documents/home/nameasc </span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">the URL for embedded UI will be: </span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="font-size: x-small;">http://<tennant-info>.oraclecloud.com/embed/documents/home/nameasc.</span> </span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">Replace the <tenant-information> with corresponding section form the URLyou’re your Oracle Documents Cloud subscription. Notice that we added “embed” before “documents” in the URL. You can also start with a specific folder but for this you will have to specify the GUID of the folder. In this case the URL will look like:</span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">http://<tennant-information>.oraclecloud.com/embed/folder/<GUID></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<h3>
<span style="font-family: Arial, Helvetica, sans-serif;">Integrate IFRAME in WebPage</span></h3>
</div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">I wrote a very simple HTML page (test1.html) that displays the Oracle Documents web interface:</span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><!DOCTYPE html></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><html></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <head></head></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <body></span></div>
<div style="text-align: left;">
<span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"> <iframe src="http://<tenantinfo>.oraclecloud.com/embed/documents/home/nameasc" </span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> width="800" height="600"/></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </body></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></html></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;">The page was deployed to a web server and f</span><span style="font-family: Arial, Helvetica, sans-serif;">inal step, testing. Be sure that you disabled pop-up blocker for your page first because a pop-up will be used for authentication.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHTAGQnvzSuHAjsdvt86rM270UFJibl4fbjLrVhY1dX4rlqXwsYbQcptNVmNxhdcF7eeSY9J1yJA1uP0oNiesao-sE0hnb_ezjsNZoK6KNQkvdgiaqdm3BxATkWLSBMzNFbV1bXcZPVOFd/s1600/Screen+Shot+2015-08-10+at+12.46.29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHTAGQnvzSuHAjsdvt86rM270UFJibl4fbjLrVhY1dX4rlqXwsYbQcptNVmNxhdcF7eeSY9J1yJA1uP0oNiesao-sE0hnb_ezjsNZoK6KNQkvdgiaqdm3BxATkWLSBMzNFbV1bXcZPVOFd/s400/Screen+Shot+2015-08-10+at+12.46.29.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;">and here are your files:</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoF3BaDDbMmYzjeydswNR5U00arX4LHPUB89wtqPuG8IHLdWQ7IgoW7cAE86t_UeDxeq47qOEoGRNEgOvvHpP7Qucsxp42TTkN6nZSyD0xz71AVxgHHn0N3PgodRdk2ClPwlEgQjUO5obe/s1600/Screen+Shot+2015-08-10+at+12.47.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="313" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoF3BaDDbMmYzjeydswNR5U00arX4LHPUB89wtqPuG8IHLdWQ7IgoW7cAE86t_UeDxeq47qOEoGRNEgOvvHpP7Qucsxp42TTkN6nZSyD0xz71AVxgHHn0N3PgodRdk2ClPwlEgQjUO5obe/s400/Screen+Shot+2015-08-10+at+12.47.37.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span style="font-family: Arial, Helvetica, sans-serif;">Now you can start dragging and dropping files in your folders.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Finally, notice the difference between the embedded interface and standard interface. In the right corner of the embedded interface we have the "Open in Oracle Documents" </span><span style="font-family: Arial, Helvetica, sans-serif;">button </span><span style="font-family: Arial, Helvetica, sans-serif;">(see above image) </span><span style="font-family: Arial, Helvetica, sans-serif;">. This button allows you to switch between the embedded interface and standard web interface of the service. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<h3>
<span style="font-family: Arial, Helvetica, sans-serif;">A final word about enabling CAPTHCA and Safe Mode. </span></h3>
<span style="font-family: Arial, Helvetica, sans-serif;">You can enable CAPTCHA to allow only users and restrict access of scripts to your Oracle Documents Cloud Service content. You do this An embedded page with CAPTCHA enabled looks like:</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Arial, Helvetica, sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTR947GHLPjm_py1_DG7PTpNFvpNNm5qhfLl62r9lvllBNVdSlgIKblAC5wqfVYUSi7GDC9jBLpVdDQqlYzOR_19xCvuwE8-1FI6Caj984fG90Jnxw_WFASBNWSqmoD0SyXgndV7BpGd5i/s1600/Screen+Shot+2015-08-10+at+12.57.59.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTR947GHLPjm_py1_DG7PTpNFvpNNm5qhfLl62r9lvllBNVdSlgIKblAC5wqfVYUSi7GDC9jBLpVdDQqlYzOR_19xCvuwE8-1FI6Caj984fG90Jnxw_WFASBNWSqmoD0SyXgndV7BpGd5i/s400/Screen+Shot+2015-08-10+at+12.57.59.png" width="400" /></a></span></div>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Safe Mode prevents users for performing dangerous actions like copying or moving content in public folders, changing the status of public links (share/unshared content) and deleting permanently files of folders. A user can move a folder or file in trash folder.</span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-13625632698247719902015-03-17T12:07:00.002+02:002015-03-17T12:07:56.644+02:00Multicast over TCP/IP and Java Multicast Sockets<br />
<ul>
<li><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://www.tldp.org/HOWTO/Multicast-HOWTO-2.html" target="_blank">Multicast Over TCP/IP</a></span></li>
<li><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://docs.oracle.com/javase/7/docs/api/java/net/MulticastSocket.html" target="_blank">Javadoc for MulticastSocket in Java 7</a></span></li>
</ul>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-83854067045727744662015-01-14T15:45:00.001+02:002015-01-14T15:45:51.246+02:00Alternative to SitesExplorer on Mac OS X<div style="text-align: left;">
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Use HSQL Database Manager. For example: Oracle Webcenter Sites Jump Start Kit is installed in user’s home Library directory (~/Library/Oracle/JSK/11.1.1.8.0.app). The HSQL Database manager is available from </span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">hsqldb.jar available in:</span></div>
<div style="text-align: left;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> ~/Library/Oracle/JSK/11.1.1.8.0.app/App_Server/apache-tomcat-7.0.42/Sites/lib.</span></div>
<div style="text-align: left;">
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">From Sites directory launch
Database Manager using the command:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;">$java –cp ./hsqldb.jar
org.hsqldb.util.DatabaseManagerSwing</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="color: black;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG_djqaVt_isIW-dCnuzhlzbLLNCBzpcBJj1bdRqhrUgmiTTFT5Xni-AeNZ7zLGrkXdB2FSwFouSl3RhQAa-Po732suAPOwfp_wZfwjFja8Y2_83O57wwsiCsLOBZMe97_G5X_3TeSKca3/s1600/Screen+Shot+2015-01-14+at+15.21.52.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG_djqaVt_isIW-dCnuzhlzbLLNCBzpcBJj1bdRqhrUgmiTTFT5Xni-AeNZ7zLGrkXdB2FSwFouSl3RhQAa-Po732suAPOwfp_wZfwjFja8Y2_83O57wwsiCsLOBZMe97_G5X_3TeSKca3/s1600/Screen+Shot+2015-01-14+at+15.21.52.png" height="276" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal">
<span style="color: black; font-family: "Helvetica Neue"; font-size: 11.0pt; mso-bidi-font-family: "Menlo Regular";">In the Database Manager use
the following connection parameters:</span></div>
<div class="MsoNormal">
</div>
<ul>
<li><span style="font-family: 'Helvetica Neue'; font-size: 11pt; text-indent: 36pt;">Type:
HSQL Database Engine </span><span style="font-family: 'Helvetica Neue'; font-size: 11pt; text-indent: 36pt;">In-Memory</span></li>
<li><span style="font-family: 'Helvetica Neue';">Driver: org.hsqldb.jdbcDriver</span></li>
<li><span style="font-family: 'Helvetica Neue';">URL:
jdbc:hsqldb:file:./default/data/hypersonic/csDB</span></li>
<li><span style="font-family: 'Helvetica Neue';">User: SA</span></li>
</ul>
<div>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>13</o:Words>
<o:Characters>77</o:Characters>
<o:Company>Home</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>89</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--></div>
<br />
<div class="MsoNormal">
<span style="font-family: "Helvetica Neue";">SQL instructions
can be used in order to view and manipulate data from JSK HSQL database.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhej_rJ9GWzQcrKAXSLmWbp4UkLEx6_r3iyNyXP0BQ7y9QsgG2AAZB4w8raPXAYESrqE3uxVHMWKSBy_F0qNhcDm47ut4zDlvCIUN3zhTkJuE6yUCi7GGodkXTrZrR6XymsI0brSsDkN6k0/s1600/Screen+Shot+2015-01-14+at+15.27.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhej_rJ9GWzQcrKAXSLmWbp4UkLEx6_r3iyNyXP0BQ7y9QsgG2AAZB4w8raPXAYESrqE3uxVHMWKSBy_F0qNhcDm47ut4zDlvCIUN3zhTkJuE6yUCi7GGodkXTrZrR6XymsI0brSsDkN6k0/s1600/Screen+Shot+2015-01-14+at+15.27.06.png" height="250" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "Helvetica Neue";"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-51370358830537702702014-11-20T10:18:00.000+02:002014-11-20T10:18:26.189+02:00Spring-Boot - Jump-Start Spring Application DevelopmentThe Spring-Boot project (more information available <a href="http://projects.spring.io/spring-boot/" target="_blank">here</a>) provides a quick and elegant way to start with Spring application development.Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-16435839100573666202014-11-04T15:34:00.003+02:002014-11-04T15:37:45.828+02:00Oracle MAF – WebCenter Sites Integration<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Inspired by Yannik article from <a href="http://www.ateam-oracle.com/building-a-hybrid-application-with-mobile-application-framework-and-webcenter-portal/" target="_blank">here</a> I tried to achieve the
same kind of integration but between WebCenter Sites and Oracle MAF using
custom MAF components. <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Using a simple set of flex assets and three templates (main
layout template, template for article and image template) the content is
generated and displayed in the MAF application using a custom JavaScript
component.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Layout template is calling the article (Demo_C asset) Detail
template which is also calling the detail template for image (Demo_M asset):<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="asset" uri="futuretense_cs/asset.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="assetset" uri="futuretense_cs/assetset.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="commercecontext" uri="futuretense_cs/commercecontext.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="listobject" uri="futuretense_cs/listobject.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="render" uri="futuretense_cs/render.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="siteplan" uri="futuretense_cs/siteplan.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ taglib prefix="searchstate" uri="futuretense_cs/searchstate.tld"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><%@ page import="COM.FutureTense.Interfaces.*,</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> COM.FutureTense.Util.ftMessage,</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> com.fatwire.assetapi.data.*,</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> com.fatwire.assetapi.*,</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> COM.FutureTense.Util.ftErrors"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">%><cs:ftcs></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><%-- Record dependencies for the Template --%></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><ics:if condition='<%=ics.GetVar("tid")!=null%>'><ics:then><render:logdep cid='<%=ics.GetVar("tid")%>' c="Template"/></ics:then></ics:if></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><!DOCTYPE html></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><html lang="en"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <head></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <meta charset="utf-8"/></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <meta http-equiv="X-UA-Compatible" content="IE=edge"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <meta name="viewport" content="width=device-width, initial-scale=1.0"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <meta name="description" content=""></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <meta name="author" content=""></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <link rel="shortcut icon" href="ico/favicon.png"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <title>WebCenter Sites Demo</title></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- Bootstrap core css --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <link href="/cs/demo/css/bootstrap.min.css" rel="stylesheet"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- Custom styles --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <link href="/cs/demo/css/custom.css" rel="stylesheet"></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </head></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <body></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- Start Fixed Navbar --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <%-- <render:callelement elementname="/Common/Navigation/TopNav"/>--%></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- End Fixed Navbar --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- Detail Section --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <render:calltemplate tname="Detail" c='<%=ics.GetVar("c") %>'</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> cid='<%=ics.GetVar("cid") %>'</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> tid='<%=ics.GetVar("tid") %>'></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </render:calltemplate></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- End Detail Section --></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- Start Footer --> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <%--<render:callelement elementname="/Common/Navigation/Footer"/> --%></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <!-- End Footer --></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <script src="/cs/demo/js/bootstrap.min.js"></script></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> <script></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> $(function(){</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> $('.collapse').collapse();</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> });</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </script></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> </body></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></html></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></cs:ftcs></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The custom component is named wcsEmbed and is stored in the
file demo1.js:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">(function(){<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>try {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var wcsEmbed =
adf.mf.api.amx.TypeHandler.register("http://xmlns.example.com/wcs",
"wcsEmbed");<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>wcsEmbed.prototype.render =
function(amxNode, id) {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var rootElement =
document.createElement("div");<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var c =
amxNode.getAttribute("c");<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var cid =
amxNode.getAttribute("cid");<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var pagename = amxNode.getAttribute("pagename");<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>var pageUrl =
"http://localhost:9080/cs/Satellite?c=" + c +
"&pagename=" + pagename + "&cid=" + cid;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>rootElement.innerHTML =
"<iframe id='f1' scrolling='auto' width='100%' height='100%' src='"
+ pageUrl +"'/>";<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>//rootElement.innerHTML
="<h1>Hello world!</h1>";<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>return rootElement;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>}<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>}<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>catch (problem) {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>alert("Error displaying the URL:" + pageUrl);<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>}<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">})();</span><span style="font-size: x-small;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In the AMX view we are calling the custom components with
the parameters that are identifiying the asset: c, cid and pagename:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><?xml
version="1.0" encoding="UTF-8" ?><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><amx:view
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" </span><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"</span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;">
</span>xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt"<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;">
</span>xmlns:wcs="http://xmlns.example.com/wcs"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><amx:panelPage id="pp1"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><amx:facet name="header"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><amx:outputText value="Sites
Demo" id="ot1"/><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></amx:facet><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><amx:facet name="primary"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><amx:commandButton id="cb1"
text="Back" action="__back"/><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></amx:facet><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><wcs:wcsEmbed id="em1"
c="#{bindings.c.inputValue}" <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;">
</span>cid="#{bindings.cid.inputValue}" <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;">
</span>pagename="#{bindings.pagename.inputValue}" /><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></amx:panelPage><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></amx:view></span><span style="font-size: x-small;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
A couple of things to mention:<o:p></o:p></div>
<div class="MsoNormal">
<o:p> - </o:p><span style="text-indent: -18pt;">The js and css files for custom components must
be associated with the feature.</span></div>
<div class="MsoNormal">
<span style="text-indent: -18pt;"> </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALheAh79A_tVLPoJdpMqSgz82wsfqBsLK24rjjzBotCxFxMVUA5q8oywkeEW7EMieKNRKI3CZM5MFWnPHRhftZtCLLFpmgcB0p4ojAWgWSdIQA2UuvqQqXDAuaKfAN5Esrabfg6sn8BT_/s1600/Screen+Shot+2014-11-04+at+15.18.58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALheAh79A_tVLPoJdpMqSgz82wsfqBsLK24rjjzBotCxFxMVUA5q8oywkeEW7EMieKNRKI3CZM5MFWnPHRhftZtCLLFpmgcB0p4ojAWgWSdIQA2UuvqQqXDAuaKfAN5Esrabfg6sn8BT_/s1600/Screen+Shot+2014-11-04+at+15.18.58.png" height="199" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="MsoNormal">
<span style="text-indent: -18pt;"> - Because we are calling a remote URL, in the
<span style="font-family: Courier New, Courier, monospace;">maf-application.xml</span>, in the security section, the URLs must be whitelisted. For
convenience and for this demo only, I whitelisted everything that is coming over
http.</span></div>
<div class="MsoNormal">
<span style="text-indent: -18pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd_qOCDkCrdMWlV4dhpTLUtqWGUxk7HJUZLxgaItMkYHbTIL6CL5Ps57uHOKUWK_nTs79LlYKQwjT7vWuAMOrcA-WoS8kymM3fJrczEzU6lohl-knvDjwTRkdlJhgrFs67jrzlX5tWOQhb/s1600/Screen+Shot+2014-11-04+at+15.21.22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd_qOCDkCrdMWlV4dhpTLUtqWGUxk7HJUZLxgaItMkYHbTIL6CL5Ps57uHOKUWK_nTs79LlYKQwjT7vWuAMOrcA-WoS8kymM3fJrczEzU6lohl-knvDjwTRkdlJhgrFs67jrzlX5tWOQhb/s1600/Screen+Shot+2014-11-04+at+15.21.22.png" height="96" width="400" /></a></div>
<div class="MsoNormal">
<span style="text-indent: -18pt;"><br /></span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>738</o:Words>
<o:Characters>4211</o:Characters>
<o:Company>Home</o:Company>
<o:Lines>35</o:Lines>
<o:Paragraphs>9</o:Paragraphs>
<o:CharactersWithSpaces>4940</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal">
The end-result of this application in iOS simulator:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHvm5iRzTqUf_h6R4QKrWofRmJj787wAZ71l3EMHbjVGhh9EibVZDCyjetNHzdc4SrQ3YKBb0NSeiD9rfOUiWs6t_r8s9j3L9elrwuiT2LQtfVQ8gEHJtXXZWWlq1kpWfhO1ucqnOWTTaQ/s1600/Screen+Shot+2014-11-04+at+15.31.46.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHvm5iRzTqUf_h6R4QKrWofRmJj787wAZ71l3EMHbjVGhh9EibVZDCyjetNHzdc4SrQ3YKBb0NSeiD9rfOUiWs6t_r8s9j3L9elrwuiT2LQtfVQ8gEHJtXXZWWlq1kpWfhO1ucqnOWTTaQ/s1600/Screen+Shot+2014-11-04+at+15.31.46.png" height="320" width="202" /> </a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKJQ3OJyDMXg0S1Nd8z3iBCInMi9CBT4KvjhUARwr6pFqrtaFrrIpx-jQU_i-GojhZKL2742jJjMT35od7lLtJOZahns1cIChyphenhyphenkg-_Stfx9hlUY-r0ocFoMvySqtBsBr_-O2kGz9WaQ6UA/s1600/Screen+Shot+2014-11-04+at+15.32.00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKJQ3OJyDMXg0S1Nd8z3iBCInMi9CBT4KvjhUARwr6pFqrtaFrrIpx-jQU_i-GojhZKL2742jJjMT35od7lLtJOZahns1cIChyphenhyphenkg-_Stfx9hlUY-r0ocFoMvySqtBsBr_-O2kGz9WaQ6UA/s1600/Screen+Shot+2014-11-04+at+15.32.00.png" height="320" width="202" /></a></div>
<div class="MsoNormal">
<br /></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-77164605679663818962014-07-09T17:27:00.000+03:002014-07-09T17:27:11.919+03:00Using Flex Assets in Templates and CSElements<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Let’s assume that we want to use a FlexAsset in a template
and we don’t have access to the id of the asset but only to the value of an
attribute of the asset. </span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">We will use the Demo_M (DemoImage) asset type with the
definition “DemoImageDefinition”<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq9B__hu4gIlgZkn-6Yz6ocXG0BWKEHdusXM9t8YiW5BpNLKHR3Jc-9euWrOftMG9Bc1jGqvCNB92m51PJPZGKz_T3jgz25Uw_DLfy_g0F6_RPbAvz61WZ5yUzMxXte5a0aNpqZJyLTiJy/s1600/Screen+Shot+2014-07-09+at+16.57.04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq9B__hu4gIlgZkn-6Yz6ocXG0BWKEHdusXM9t8YiW5BpNLKHR3Jc-9euWrOftMG9Bc1jGqvCNB92m51PJPZGKz_T3jgz25Uw_DLfy_g0F6_RPbAvz61WZ5yUzMxXte5a0aNpqZJyLTiJy/s1600/Screen+Shot+2014-07-09+at+16.57.04.png" height="200" width="175" /></a></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">The attributes used in this definition are <i style="mso-bidi-font-style: normal;">file</i> and <i style="mso-bidi-font-style: normal;">thumbnail</i> of type BLOB and title, <i style="mso-bidi-font-style: normal;">altText</i> and <i style="mso-bidi-font-style: normal;">description</i>
of type string, string and text.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">We have a number of assets of this type and that are using
the same definition:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiyYEGHcOfp7JL9DJ8iYtFUzn1qBet84IhPzFziFD3hQSTWyHdi0RypIalllj_GCd3rMTsjrFIiNMNOtdqErNBqrkO3aoILp6sXlbiIap6lokiCAVuLeiw0GcPRISaXAFI4JR1Eyh5WjmI/s1600/Screen+Shot+2014-07-09+at+13.23.30.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiyYEGHcOfp7JL9DJ8iYtFUzn1qBet84IhPzFziFD3hQSTWyHdi0RypIalllj_GCd3rMTsjrFIiNMNOtdqErNBqrkO3aoILp6sXlbiIap6lokiCAVuLeiw0GcPRISaXAFI4JR1Eyh5WjmI/s1600/Screen+Shot+2014-07-09+at+13.23.30.png" height="122" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">The goal of this tutorial is to access the DemoImage assets
using as the identifier for the asset the value of an attribute, let’s say <i style="mso-bidi-font-style: normal;">title.<o:p></o:p></i></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">First we need to create a <i>searchstate</i> object:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><%-- Create a <u>searchstate</u> --%><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><searchstate:create name=<i>"img_title"</i> /></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">To narrow the result set we have to provide a constraint for
<i>searchstate</i>. We do this by adding a constraint:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><searchstate:addsimplestandardconstraint name=<i>"img_title"</i>
attribute=<i>"title"</i> value=<i>"Earth"</i> typename=<i>"Demo_A"</i>/></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Next step is to create and assetset using searchstate:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><assetset:setsearchedassets name=<i>"imgByTitle"</i>
assettypes=<i>"Demo_M"</i> constraint=<i>"img_title"</i> fixedlist=<i>"true"</i>/></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<o:p><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></o:p></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Retrive the wanted attribute (<i>altText</i> for this example):</span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><assetset:getattributevalues name=<i>"imgByTitle"</i>
listvarname=<i>"altTextList"</i> attribute=<i>"altText"</i>
typename=<i>"Demo_A"</i>/></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">Display the attribute value:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><p><u>Alt</u> text for Earth image is: <ics:listget
fieldname=<i>"value"</i> listname=<i>"altTextList"</i>/></p></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<o:p><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></o:p></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">If the attribute has multiple values (like the <i style="mso-bidi-font-style: normal;">description</i> attribute):<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><assetset:getattributevalues name=<i>"imgByTitle"</i>
listvarname=<i>"descList"</i> attribute=<i>"description"</i>
typename=<i>"Demo_A"</i>/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><p><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>Description:<br/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 1;"> </span><ics:listloop
listname=<i>"descList"</i>><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 2;"> </span><ics:listget
fieldname=<i>"value"</i> listname=<i>"descList"</i>/><br/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></ics:listloop><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></p></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; tab-stops: 64.8pt; text-autospace: none;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="mso-tab-count: 1;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; tab-stops: 64.8pt; text-autospace: none;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">To get the values from asset type primary table (like <i>id</i>,
<i>name</i>, etc…) we can use asset:search tag:<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; tab-stops: 64.8pt; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><ics:setvar name=<i>"prefix:name_op"</i>
value=<i>"="</i>/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><ics:setvar name=<i>"prefix:name"</i>
value=<i>"earth"</i>/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><asset:search prefix=<i>"prefix"</i> list=<i>"earthAttributes"</i>
type=<i>"Demo_M"</i>/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><ics:listloop listname=<i>"earthAttributes"</i>><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 1;"> </span><ics:listget
listname=<i>"earthAttributes"</i> fieldname=<i>"id"</i>/>----<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span style="mso-tab-count: 1;"> </span><ics:listget
listname=<i>"earthAttributes"</i> fieldname=<i>"name"</i>/><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; mso-pagination: none; text-autospace: none;">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></ics:listloop><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"></cs:ftcs></span><span style="font-family: Arial, Helvetica, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;">The result of the execution of the template:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2CV8Oztqd64niUVgW9u-AhdXvOG6Bzty0gxy4sdQnrMNHOjbnCYKjn05UWaN13zTGWpA4Hy2bI_WhtySJaQvMyBHQ_vbUO_XzeiXVGv5DtyxMyNNM95pSjkn5OmaoLSI8G1hK19rnuYJ/s1600/Screen+Shot+2014-07-09+at+17.19.10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2CV8Oztqd64niUVgW9u-AhdXvOG6Bzty0gxy4sdQnrMNHOjbnCYKjn05UWaN13zTGWpA4Hy2bI_WhtySJaQvMyBHQ_vbUO_XzeiXVGv5DtyxMyNNM95pSjkn5OmaoLSI8G1hK19rnuYJ/s1600/Screen+Shot+2014-07-09+at+17.19.10.png" /></a></div>
<div class="MsoNormal">
</div>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>343</o:Words>
<o:Characters>1959</o:Characters>
<o:Company>Home</o:Company>
<o:Lines>16</o:Lines>
<o:Paragraphs>4</o:Paragraphs>
<o:CharactersWithSpaces>2298</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves>false</w:TrackMoves>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-55425659010036639282014-06-27T12:22:00.002+03:002014-06-27T12:22:40.845+03:00Digging Tunnels<span style="font-family: Arial, Helvetica, sans-serif;">So, let’s say that we want to access the machine Y going through an intermediate server, machine X. Also we need to execute application with a graphic user interface and access a couple of servers on different ports (let’s say 7001 and 7003) on the target machine (server Y). </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">In the first step we will create a connection to the management server (machineX) and will setup a tunnel with local port 10001 for the remote port 22. The command that is creating the connection and tunnel is:</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">ssh –f userx@machineX –L 10001:machineY:22</span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">We use</span><span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> –f </span><span style="font-family: Arial, Helvetica, sans-serif;">option to put the SSH connection in the background and </span><span style="font-family: Courier New, Courier, monospace; font-size: x-small;">–L 10001:machineY:22</span><span style="font-family: Arial, Helvetica, sans-serif;"> to create the tunnel. We use 10001 for the local port number and not 22 because only root can forward ports under 1024.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">Once we have this connection we can create the other tunnels (for 7001 and 7003) and forward X11 display.</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">ssh –X –p 10001 usery@localhost –L7001:machineY:7001 –L7003:machineY:7003 </span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">The command above creates multiple tunnels in one go and also forwards X11 display and you can access the target machine services using </span><span style="font-family: Courier New, Courier, monospace;">localhost:7001</span><span style="font-family: Arial, Helvetica, sans-serif;"> and </span><span style="font-family: Courier New, Courier, monospace;">localhost:7003.</span>Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-67790977263003297702014-03-05T11:04:00.002+02:002014-03-05T11:05:14.070+02:00Java Mission Control and Flight Recorder Tutorial from OracleA very interesting tutorial created by Michael Williams on Java Mission Control and Flight Recorder is available <a href="http://apex.oracle.com/pls/apex/f?p=44785:24:4230245464009::NO::P24_CONTENT_ID%2CP24_PREV_PAGE:8738%2C1" target="_blank">here</a>. It covers monitoring and analysis tools now available as part of the standard JDK starting with Java 7 u40.Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com1tag:blogger.com,1999:blog-6564755243335354661.post-87734003545969827422014-02-25T17:38:00.002+02:002014-02-25T17:38:36.180+02:00Creating a WebCenter Sites Custom Attribute Editor<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri;">Sometimes we want to simplify the process of
uploading of images associated with assets in WebCenter Sites and the best way
to do that is to use specialized editors. We can add brand new editors or we
can customize existing out-of-the box editors. Let’s assume that we have an
asset that represents a newspaper article in our asset we have a media
attribute (an associated image). We want to provide a simpler way for an author
to select and add a image for our article.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">For that we will create a custom asset editor
based on provided IMAGEPICKER. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">An attribute editor asset is made up of an
XML field that describe the widget it represents. We have a choice for the XML:
we can upload an XML file or paste the content of attribute editor XML
description into a text field. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In our XML we are specifying values for
attributes of PRESENTATIONOBJECT<span style="mso-spacerun: yes;"> </span>and
IMAGEPICKER element. For the PRESENTATIONOBJECT NAME attribute we are using the
name of our editor ”DemoCustomImagePicker” and for <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">IMAGEPICKER we have:</span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">ASSETTYPENAME with value "Demo_M "
is the name of asset type representing the image.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">ATTRIBUTETYPENAME with value
"Demo_A" is the name of the attribute type used in asset<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri;">ATTRIBUTENAME with the value "file"
is the name of the attribute type instance representing the binary content.</span></div>
<div class="MsoNormal">
<span style="font-family: Calibri;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF3SCUHlXALYpppDf12J_glYJt4HKvqFlJ6vOww1lJn-f5idKjYUD8wb7P_Gz6iHS8D9hV-EyeMqnwkojyY_DaFCMG4qa6HL6vgrEVgzFBeMZ7SAQQsUXlBQQCx3CvsevJ3DJCr5tghnpC/s1600/Screen+Shot+2014-02-25+at+17.13.17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF3SCUHlXALYpppDf12J_glYJt4HKvqFlJ6vOww1lJn-f5idKjYUD8wb7P_Gz6iHS8D9hV-EyeMqnwkojyY_DaFCMG4qa6HL6vgrEVgzFBeMZ7SAQQsUXlBQQCx3CvsevJ3DJCr5tghnpC/s1600/Screen+Shot+2014-02-25+at+17.13.17.png" height="228" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: Calibri;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Second, we have to provide the attribute type
for which this editor is provided. We want to allow user to choose an asset (an
image asset) so "asset" is selected in the Attribute Type list. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju70VNYe_KPeTgGfe0GQ4kSytgwxpYktSO_Y5WSHgem1JZTABk9v1AVDBJ8UWi4EOB_T4dwZEWOOPXw7kI8R2H1FPdvReWN-CAfjjE16RuAVRsZz5pbI4jx6X3QD7rGnatZZc3fyOj1efk/s1600/Screen+Shot+2014-02-25+at+17.37.29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju70VNYe_KPeTgGfe0GQ4kSytgwxpYktSO_Y5WSHgem1JZTABk9v1AVDBJ8UWi4EOB_T4dwZEWOOPXw7kI8R2H1FPdvReWN-CAfjjE16RuAVRsZz5pbI4jx6X3QD7rGnatZZc3fyOj1efk/s1600/Screen+Shot+2014-02-25+at+17.37.29.png" /></a></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">We are using out-of-the-box IMAGEPICKER, so
we don’t have to modify presentationobject.dtd file. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Next we associate the editor with an
attribute, in our case with “associatedImage” attribute. We select from the
drop-down list “Attribute Editor” our “DemoCustomImagePicker” and save the
updated object. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT8peLMUms_2SlWtRnszQzw50yADWnb2gcCmTxHOE5Fds5R_ueQhQh4OiXI0nvRQw3sCpJ7CUXmirz84f4Cj91Qupyrg_PFpgbSd1zenFN7g5K2SgO0xbBJmuIXKjobzP-55aDeWxEEapj/s1600/Screen+Shot+2014-02-25+at+17.21.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT8peLMUms_2SlWtRnszQzw50yADWnb2gcCmTxHOE5Fds5R_ueQhQh4OiXI0nvRQw3sCpJ7CUXmirz84f4Cj91Qupyrg_PFpgbSd1zenFN7g5K2SgO0xbBJmuIXKjobzP-55aDeWxEEapj/s1600/Screen+Shot+2014-02-25+at+17.21.39.png" height="253" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">We can test now the editor by editing an
asset of type DemoArticle. If we click on the “Browse” button a list of images
is displayed and we can drag and drop an image in our Associated Image field. A
thumbnail version of the image in media asset “file” attribute is also
displayed.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8PyIghBskvkKR04O4KOFLbVj3UrlIAbadCTyNbauDsRUS8P4ufQoJYYxBTMyL_m63Xf3PBz4A9koNXBN5Sdu93yKmF3n9OzRqcDwkFoYCdARoWwoEIS5GicjuOrToj-RXmthddwNVmCkH/s1600/Screen+Shot+2014-02-25+at+17.31.05.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8PyIghBskvkKR04O4KOFLbVj3UrlIAbadCTyNbauDsRUS8P4ufQoJYYxBTMyL_m63Xf3PBz4A9koNXBN5Sdu93yKmF3n9OzRqcDwkFoYCdARoWwoEIS5GicjuOrToj-RXmthddwNVmCkH/s1600/Screen+Shot+2014-02-25+at+17.31.05.png" height="215" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>322</o:Words>
<o:Characters>1840</o:Characters>
<o:Company>Home</o:Company>
<o:Lines>15</o:Lines>
<o:Paragraphs>4</o:Paragraphs>
<o:CharactersWithSpaces>2158</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal">
<br /></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-6012478880952604912014-02-05T12:35:00.002+02:002014-02-05T12:36:53.183+02:00Playing Around with WebLogic Maven Plug-In<span style="font-family: Calibri;">Packaged with WebLogic 12c wls-maven-plugin let’s you install,
start and stop servers, create domain, execute WLST scripts, compile and deploy
applications. The plug-in works with Maven 2.x and 3.x.</span><br />
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri;">WebLogic 12c can be downloaded from </span><a href="http://www.oracle.com/technetwork/index.html" style="font-family: Calibri;">http://www.oracle.com/technetwork/index.html</a><span style="font-family: Calibri;">.
Developers version has around</span><span style="font-family: Calibri;"> </span><span style="font-family: Calibri;">180MB (zip
archive).</span><span style="font-family: Calibri;"> </span><span style="font-family: Calibri;">To install the plugin we need
first to extract wls-maven-plugin.jar.pack and pom.xml</span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$unzip ~/Downloads/wls1212_dev.zip
wls12120/wlserver/server/lib/wls-maven-plugin.jar.pack<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$unzip ~/Downloads/wls1212_dev.zip wls12120/wlserver/server/lib/pom.xml<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Now, let’s unpack the jar file:<br /><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><br /></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$unpack200 -r
wls12120/wlserver/server/lib/wls-maven-plugin.jar.pack
wls12120/wlserver/server/lib/wls-maven-plugin.jar</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Install the plug-in in the local repository<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: "Menlo Regular"; font-size: 8.0pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$cd wls12120/wlserver/server/lib/<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn install</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; font-size: 8.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;"><o:p> </o:p></span><span style="font-family: 'Courier New', Courier, monospace; font-size: 8pt;"> </span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn install:install-file –Dfile=wls-maven-plugin.jar
–DpomFile=pom.xml</span></span><span style="font-size: 8.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Modify global or user settings.xml to add the
plug-in group id to the default groups. You can find the location of
settings.xml by running:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal">
</div>
<div style="text-align: left;">
<span style="font-family: 'Courier New', Courier, monospace; font-size: 8pt;">$mvn
–X | grep settings</span></div>
<div style="text-align: left;">
<span style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"><br /></span></div>
<span style="font-family: Menlo Regular; font-size: 8pt;"><o:p></o:p></span><br />
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Usually, user settings are located in
~/.m2/settings.xml. For the global configuration file look in the Maven
installation directory. For example: ~/apache-maven-3.1.1/conf/
directory/settings.xml. <o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Add the following lines:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><pluginGroups><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"> <pluginGroup>com.oracle.weblogic</pluginGroup><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"></pluginGroups></span></span><span style="font-size: 8.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Launch installation of WebLogic Server: <o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:install -DartifactLocation=/Users/<your_user_name>/Downloads/wls1212_dev.zip</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Set JVM Settings for the WebLogic domain that will
be created. This is necessary especially for 64bit JVMs. These settings are
modifying the size of initial heap size, max heap size and, very important,
perm gen space. You can do that by setting USER_MEM_ARGS environment variable
before starting the server:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$export USER_MEM_ARGS="-Xms256m -Xmx=512m
-XX:CompileThreshold=800 -XX:PermSize=128m -XX:MaxPermSize=256m"</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Create domain:<br /><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:create-domain -DdomainHome=./Domains/domain1
-DmiddlewareHome=./Software/wls12120 -Duser=weblogic -Dpassword=welcome1</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Start server:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:start-server -DdomainHome=./Domains/domain1
-DmiddlewareHome=./Software/wls12120 <o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">You can stop the server by running:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:stop-server -DdomainHome=./Domains/domain1
-DmiddlewareHome=./Software/wls12120 -Duser=weblogic -Dpassword=welcome1</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Let’s create now a JaveEE application and deploy it to the newly
created domain. For the application we will use Maven arhchetypes. First the root
POM (Project Object Model):<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn archetype:generate -Dversion=1.0-SNAPSHOT
-DgroupId=com.flaviussana.demo -DartifactId=DemoApp
-DarchetypeArtifactId=pom-root -DarchetypeGroupId=org.codehaus.mojo.archetypes</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">In the DemoApp directory created run to generate the EAR project:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn archetype:generate -Dversion=1.0-SNAPSHOT
-DgroupId=com.flaviussana.demo -DartifactId=DemoApp-EAR
-DarchetypeArtifactId=ear-javaee6
-DarchetypeGroupId=org.codehaus.mojo.archetypes </span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Create an EJB mode and a WebApp module:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn archetype:generate -Dversion=1.0-SNAPSHOT -DgroupId=com.flaviussana.demo
-DartifactId=DemoApp-EJB -DarchetypeArtifactId=ejb-javaee6
-DarchetypeGroupId=org.codehaus.mojo.archetypes<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn archetype:generate -Dversion=1.0-SNAPSHOT
-DgroupId=com.flaviussana.demo -DartifactId=DemoApp-WAR
-DarchetypeArtifactId=webapp-javaee6
-DarchetypeGroupId=org.codehaus.mojo.archetypes</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Set the dependencies in EAR pom.xml:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: "Menlo Regular"; font-size: 8.0pt;"><o:p> </o:p></span><span style="color: teal; font-family: 'Courier New', Courier, monospace; font-size: 8pt; text-indent: 36pt;"><</span><span style="color: #3f7f7f; font-family: 'Courier New', Courier, monospace; font-size: 8pt; text-indent: 36pt;">dependencies></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: teal; font-family: 'Courier New', Courier, monospace; font-size: 8pt; text-indent: 48px;"> <</span><span style="color: #3f7f7f; font-family: 'Courier New', Courier, monospace; font-size: 8pt; text-indent: 48px;">dependency</span><span style="color: teal; font-family: 'Courier New', Courier, monospace; font-size: 8pt; text-indent: 48px;">></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">groupId</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.groupId}</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">groupId</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">artifactId</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.parent.artifactId}-EJB</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">artifactId</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">version</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.version}</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">version</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">type</span><span style="color: teal; font-size: 8pt;">></span><u><span style="color: black; font-size: 8pt;">ejb</span></u><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">type</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 2;"> </span></span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">dependency</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 2;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">dependency</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">groupId</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.groupId}</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">groupId</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">artifactId</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.parent.artifactId}-WAR</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">artifactId</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">version</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">${project.version}</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">version</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 3;"> </span></span><span style="color: teal; font-size: 8pt;"><</span><span style="color: #3f7f7f; font-size: 8pt;">type</span><span style="color: teal; font-size: 8pt;">></span><span style="color: black; font-size: 8pt;">war</span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">type</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: black; font-size: 8pt;"><span style="mso-spacerun: yes;">
</span><span style="mso-tab-count: 2;"> </span></span><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">dependency</span><span style="color: teal; font-size: 8pt;">></span><span style="font-size: 8pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><span style="color: teal; font-size: 8pt;"></</span><span style="color: #3f7f7f; font-size: 8pt;">dependencies</span><span style="color: teal; font-size: 8pt;">></span></span><span style="color: black; font-family: "Menlo Regular"; font-size: 8.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Create a simple EJB Bean:HelloWorldEJB<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">package com.flaviussana.demo;<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">import javax.ejb.LocalBean;<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">import javax.ejb.Stateless;<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">/**<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>* Session Bean
implementation class HelloWorldEJB<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>*/<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">@Stateless<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">@LocalBean<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">public class HelloWorldEJB {<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>/**<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>* Default constructor. <o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>*/<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>public HelloWorldEJB() {<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>// TODO
Auto-generated constructor stub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>}<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>public String
sayHello(String name) {<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 1;"> </span>return "Hello " + name + "!";<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><span style="mso-spacerun: yes;"> </span>}<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">}</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Build the application by running “mvn install” in parent project directory
then deploy the application by running in DemoApp-EAR:</span><span style="font-family: Calibri; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:deploy -Dname=DemoApp-EAR -DmiddlewareHome=/Users/<your_user_name>/tmp/Oracle/Software/wls12120
-DdomainHome=/Users/<your_user_name>/tmp/Oracle/Domains/domain1</span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiO86gItp2OZPNwxLHBhN6IzkrqACVWTAKLuPa9m0oAp70SL2CQoJk5ZdGKla9fqSUzYD48-vbY-yNocZtzSdW0mkxytuwuanDT2fSNuVJqkj8S2hsw_fMFX7RZyC0dqicsRo3qLDdLVcu/s1600/Screen+Shot+2014-02-05+at+12.32.58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiO86gItp2OZPNwxLHBhN6IzkrqACVWTAKLuPa9m0oAp70SL2CQoJk5ZdGKla9fqSUzYD48-vbY-yNocZtzSdW0mkxytuwuanDT2fSNuVJqkj8S2hsw_fMFX7RZyC0dqicsRo3qLDdLVcu/s1600/Screen+Shot+2014-02-05+at+12.32.58.png" height="155" width="640" /></a></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Test the application by going to: <o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;"><a href="http://localhost:7001/DemoApp-WAR/index.jsp">http://localhost:7001/DemoApp-WAR/index.jsp</a></span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs0t0BObDeb08GCe_Du0NfHvymdu1KpgiAGSdph74bPyPCX-FzCAxrj0G-ffxub8xpPDivaFBtUgCjf4_snXef6ZZqgrGqrFVdxcslXZe0h91By6pnBpPl0JU4pO4dn8nyRRlOike2GpBk/s1600/Screen+Shot+2014-02-05+at+12.34.34.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs0t0BObDeb08GCe_Du0NfHvymdu1KpgiAGSdph74bPyPCX-FzCAxrj0G-ffxub8xpPDivaFBtUgCjf4_snXef6ZZqgrGqrFVdxcslXZe0h91By6pnBpPl0JU4pO4dn8nyRRlOike2GpBk/s1600/Screen+Shot+2014-02-05+at+12.34.34.png" height="171" width="320" /></a></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-family: Calibri; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Menlo Regular"; mso-hansi-theme-font: major-latin;">Another interesting feature of the WebLogic Maven plugin is the “wlst”
goal that can be used to execute WLST (WebLogic Scripting Tool) scripts. For
example you can run to create resources like DataSources or queues:<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>871</o:Words>
<o:Characters>4965</o:Characters>
<o:Company>Home</o:Company>
<o:Lines>41</o:Lines>
<o:Paragraphs>11</o:Paragraphs>
<o:CharactersWithSpaces>5825</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div class="MsoNormal" style="text-align: left;">
<span style="color: black; font-size: 8pt;"><span style="font-family: Courier New, Courier, monospace;">$mvn wls:wlst –Duser=weblogic –Dpassword=welcome1
–Dfilename=create-resource.py </span><span style="font-family: Menlo Regular;"><o:p></o:p></span></span></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-54582684390030145802013-11-28T11:31:00.000+02:002013-11-28T11:35:51.627+02:00Rendering a BLOB Attribute in a TemplateThere are at least two ways for rendering a BLOB attribute. First, and used quite a lot, implies using WebCenter Sites Asset API and scriptlets added in the JSP page. Second method uses a couple of JSP tags and provides a more elegant solution to the problem of rendering BLOB attributes.<br />
<br />
In the following example I am using an asset of type DMedia_C with a blob attribute named "file".<br />
<br />
<br />
Example:<br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<br />
<div class="p1">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><%--Load the current image (media) asset --%><span class="s1"><span class="Apple-tab-span"> </span></span></span></div>
<div class="p2">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span><span class="s3">assetset:setasset</span> <span class="s4">name</span>=<span class="s5">"currentImage"</span> <span class="s4">type</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetVar(<span class="s5">"c"</span>) <span class="s6">%></span><span class="s5">'</span> <span class="s4">id</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetVar(<span class="s5">"cid"</span>) <span class="s6">%></span><span class="s5">'</span><span class="s2">/></span></span></div>
<div class="p3">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div class="p1">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><%--Get the file attribute - the blob that we want to display --%></span></div>
<div class="p4">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span><span class="s3">assetset:getattributevalues</span><span class="s1"> </span><span class="s4">name</span><span class="s1">=</span>"currentImage"<span class="s1"> </span><span class="s4">listvarname</span><span class="s1">=</span>"fileList"<span class="s1"> </span><span class="s4">attribute</span><span class="s1">=</span>"file"<span class="s1"> </span><span class="s4">typename</span><span class="s1">=</span>"DContent_A"<span class="s2">/></span></span></div>
<div class="p4">
<br /></div>
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span>blobservice:gettablename<span class="s1"> </span><span class="s4">varname</span><span class="s1">=</span><span class="s5">"blobTable"</span><span class="s2">/></span></span></div>
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span>blobservice:getidcolumn<span class="s1"> </span><span class="s4">varname</span><span class="s1">=</span><span class="s5">"idColumn"</span><span class="s2">/></span></span></div>
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span>blobservice:geturlcolumn<span class="s1"> </span><span class="s4">varname</span><span class="s1">=</span><span class="s5">"dataColumn"</span><span class="s2">/></span></span></div>
<div class="p3">
<span style="font-size: x-small;"><br /></span></div>
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span>render:getbloburl<span class="s1"> </span><span class="s4">outstr</span><span class="s1">=</span><span class="s5">"imageUrl"</span></span></div>
<div class="p2">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s4">blobtable</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetVar(<span class="s5">"blobTable"</span>) <span class="s6">%></span><span class="s5">'</span></span></div>
<div class="p2">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s4">blobcol</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetVar(<span class="s5">"dataColumn"</span>) <span class="s6">%></span><span class="s5">'</span></span></div>
<div class="p2">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s4">blobkey</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetVar(<span class="s5">"idColumn"</span>) <span class="s6">%></span><span class="s5">'</span></span></div>
<div class="p2">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s4">blobwhere</span>=<span class="s5">'</span><span class="s6"><%=</span>ics.GetList(<span class="s5">"fileList"</span>).getValue(<span class="s5">"value"</span>) <span class="s6">%></span><span class="s5">'</span><span class="s2">/></span></span></div>
<div class="p3">
<span style="font-size: x-small;"><br /></span></div>
<br />
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s2"><</span>img<span class="s1"> </span><span class="s4">src</span><span class="s1">=</span><span class="s5">'</span><span class="s2"><</span>render:stream<span class="s1"> </span><span class="s4">variable</span><span class="s1">=</span><span class="s5">"imageUrl"</span><span class="s2">/></span><span class="s5">'</span><span class="s2">/></span></span></div>
<div class="p5">
<span style="font-family: Courier New, Courier, monospace; font-size: xx-small;"><span class="s2"><br /></span></span></div>
<div class="p5">
<br /></div>
<div class="p5">
Don't forget to add the used tags definition to the page:</div>
<div class="p5">
<br /></div>
<div class="p5">
</div>
<div class="p1">
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="s1"><%@</span><span class="s2"> </span><span class="s3">taglib</span><span class="s2"> </span><span class="s4">prefix</span><span class="s2">=</span>"blobservice"<span class="s2"> </span><span class="s4">uri</span><span class="s2">=</span>"futuretense_cs/blobservice.tld" %></span></div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com0tag:blogger.com,1999:blog-6564755243335354661.post-60862775789883797592013-11-15T15:51:00.001+02:002013-11-15T15:53:26.370+02:00Starting Oracle WebCenter Sites JSK 11.1.1.8.0 on Mac OS X Maverick<div dir="ltr" style="text-align: left;" trbidi="on">
I wanted to install the latest version of Oracle WebCenter Sites JSK (11.1.1.8) on my MacBook Pro with OS X Maverick but I ran into a couple of problems. First during the installation process the installer complained twice that the <span style="font-family: Courier New, Courier, monospace;">DISPLAY</span> variable is not set but if you ignore the message and click continue, the installation is completed successfully. Second, the JSK was not starting. This is the solution that I found for making Oracle WebCenter Sites JSK work on Mac OS X<br />
<br />
The default location for the installation is:<br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> /Users/<myusername>/Library/Oracle/JSK/11.1.1.8.0.app</span><br />
<br />
A double-click on the application will not start it but with slight modifications of <span style="font-family: Courier New, Courier, monospace;">run.sh</span> script the Jump Start Kit can be started.<br />
<br />
First set the DISPLAY variable. In my case I set it to:<br />
<br />
<div class="p1">
<span style="font-family: Courier New, Courier, monospace;">DISPLAY=":0"</span></div>
<div class="p1">
<br /></div>
<div class="p1">
Second, set JAVA_HOME. JAVA_HOME is set to:<br />
<br /></div>
<div class="p1">
</div>
<div class="p1">
<span style="font-family: Courier New, Courier, monospace;">JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"</span></div>
<div class="p1">
<br /></div>
<div class="p1">
And third, tools.jar. Even with the CurrentJDK set I still get a warning that I am using a JRE instead of a JDK and the jumpstart kit is not starting.<br />
<br /></div>
<div class="p1">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4qbxe_BlfqzG-GR2s1Wo0HFIiIixwmPFeTgTpcRL2MZZXpEgQ_cEfivHyYEom-ugcQR6LbND6Fm9x7aakuL0e-x3HFuN-e0VlJgQvY9mVXu85_AUkDi-5dQ6iR3oIST6ly0SWebRDXcdy/s1600/Screen+Shot+2013-11-15+at+15.19.04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="101" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4qbxe_BlfqzG-GR2s1Wo0HFIiIixwmPFeTgTpcRL2MZZXpEgQ_cEfivHyYEom-ugcQR6LbND6Fm9x7aakuL0e-x3HFuN-e0VlJgQvY9mVXu85_AUkDi-5dQ6iR3oIST6ly0SWebRDXcdy/s320/Screen+Shot+2013-11-15+at+15.19.04.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
<div class="p1">
This problem can be solved by examining the log file. In the logfile.out from the jumpstart directory I see that the problem is caused by missing <span style="font-family: Courier New, Courier, monospace;">tools.jar</span> from classpath. I know that I have tools.jar in $JAVA_HOME/lib so the simplest solution is adding a classpath entry for tools.jar in the startup script. There are two lines in the run.sh that are starting the JSK. One that is starting it with arguments and the other one without any parameters. So, I added in the classpath:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">$JAVA_HOME/lib/tools.jar </span><br />
<br />
and the <span style="font-family: Courier New, Courier, monospace;">run.sh </span>starts JSK now.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHGb3MCkuQ2kVeuILMfLGDxWZFX36JMtDE5a97Kg9ENIOnqwLedRntaTKsNVgWDrJYL5w6gYuwfpCGyP_w_E6V2jggSGFOUCrw4ULbjW7Wfr6uRtW5Y5K_Z4mfecu1TuKL3QLAN1aOGiBN/s1600/Screen+Shot+2013-11-15+at+15.41.48.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHGb3MCkuQ2kVeuILMfLGDxWZFX36JMtDE5a97Kg9ENIOnqwLedRntaTKsNVgWDrJYL5w6gYuwfpCGyP_w_E6V2jggSGFOUCrw4ULbjW7Wfr6uRtW5Y5K_Z4mfecu1TuKL3QLAN1aOGiBN/s320/Screen+Shot+2013-11-15+at+15.41.48.png" width="302" /></a></div>
<br />
Now, this is my solution and I know that is not the best one. If you find other solutions for this problem please let me know!<br />
<br />
<br />
</div>
</div>
Anonymoushttp://www.blogger.com/profile/05542920511143861675noreply@blogger.com2