Dynamic tab content

Hi All,
I have a tabNavigator with only one tab and i am creating a new tab whenever user clicks “Add New Tab” button.
I want to create a DataGrid inside the newly created tabs. I have created a grid.mxml file which contains my DataGrid .
Now the problem is how to include grid.mxml as a tab content?
can anyone please help me with this?
Thnaks in advance
Javed

Hi Otto,
The view usage name is the name of the view suffixed with '_usage_1'.
eg: if your static view name is 'V_STATIC' then the view usage name would be 'V_STATIC_USAGE_1'.
if you want to navigate to the view automatically then use the method do_dynamic_navigation, however this shouldn't be used within the method wddomodifyview( ).
if you are using prepare_dynamic_navigation( ) then the outbound plug needs to be fired explicitely.
Hence you can save your view reference as a global attribute the first time the application is loaded and later on use it in any method to create dynamic ui elements and finally call the method do_dynamic_navigation, in this way we wouldn't be doing navigation from within wddomodifyview.
Regards,
Shweta

Similar Messages

  • How to verify transaction state under a tab in Dynamic Tabs UI Shell?

    Hi,
    I'm using Dynamic Tabs UI Shell to load taskflows under dynamic tabs. If a particular taskflow under a tab becomes dirty, upon close I should warn the user. What is the best way I could check if this particular taskflow has become dirty?
    Thanks,
    Pramod Gujjeti
    Edited by: pramod gujjeti on Jun 16, 2010 1:28 AM
    Edited by: pramod gujjeti on Jun 16, 2010 1:29 AM

    Hi Pino,
    Thanks for the reply.
    The given URL only handles scenarios assuming a region from a flow has no flow embedded within it. And it seems to be not a generic approach to handle dynamic tab close.
    I'd worked on a similar but more generic approach which could of use to this thread watchers, hence posting the code:
    In the method that is invoked on tab close:
    boolean isTransDirty = false; // holds the transaction state of the dynamic tab content for which close event is fired
    try{
    DCBindingContainer dcBindingContainer = (DCBindingContainer) AdfUtils.resolveExpression("#{bindings}");
    dcBindingContainer = (DCBindingContainer)dcBindingContainer.getExecutableBindings().get(this.getSelectedTabIndex());
    if(dcBindingContainer != null){
    for( Object exeBinding : dcBindingContainer.getExecutableBindings() ) {
    isTransDirty = isTransDirty(exeBinding);
    if(isTransDirty){
    break;
    System.out.println(" is Trans Dirty : " + isTransDirty);
    }catch(Exception e){
    e.printStackTrace();
    // method isTransDirty(Object ..)
    private boolean isTransDirty(Object exeBinding){
    boolean isDirty = false;
    try{
    if(exeBinding instanceof JUIteratorBinding ){
    JUIteratorBinding juIteratorBinding = (JUIteratorBinding) exeBinding;
    System.out.println(" Iterator : " juIteratorBinding.getName() "\t" + "D.C : " + juIteratorBinding.getDataControl().getName());
    isDirty = juIteratorBinding.getDataControl().isTransactionDirty();
    if(isDirty){
    System.out.println(" Dirty because of " + juIteratorBinding.getName());
    return isDirty;
    }else if(exeBinding instanceof DCTaskFlowBinding){
    DCTaskFlowBinding dcTaskFlowBinding = (DCTaskFlowBinding) exeBinding;
    for( Object taskflowExeBinding : dcTaskFlowBinding.getExecutableBindings() ) {
    isDirty = isTransDirty(taskflowExeBinding);
    if(isDirty){
    return isDirty;
    }else if(exeBinding instanceof JUFormBinding){
    JUFormBinding jUFormBinding = (JUFormBinding) exeBinding;
    for( Object juFormIterBind : jUFormBinding.getIterBindingList() ) {
    isDirty = isTransDirty(juFormIterBind);
    if(isDirty){
    return isDirty;
    for( Object juFormExeBinding : jUFormBinding.getExecutableBindings() ) {
    isDirty = isTransDirty(juFormExeBinding);
    if(isDirty){
    return isDirty;
    }catch(Exception e){
    e.printStackTrace();
    return false;
    }

  • Spry Dynamic Tabs - reCAPTCHA is missing when loading external php file

    Hello,
    I have solved all my problems lately on this forum.
    But now im converting my site to use Dynamic tabs, and something goes wrong.
    The dynamic tabs load content from external files. It loads html but i think something goes wrong with php and my buttons.
    You need to know ALL is working perfect on the old site.
    2 problems;
    I dont know how to convert my buttons to this new style.
    I dont know why the reCAP suddently is missing.
    Why is reCAPTCHA missing?
    SOURCE HTML (index.html);
    <?php include("PHP/form.php"); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
         <title>Wientjes Voegwerk &amp; Renovatie - Home</title>
        <meta http-equiv="Content-Language" content="NL" />
         <meta http-equiv="imagetoolbar" content="no" />
         <meta name="MSSmartTagsPreventParsing" content="true" />
        <meta name="description" content="Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie. Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie. Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!"/>
        <meta name="keywords" content="Voegwerk, Renovatie, Reinigen, Impregneren, Muur, Voegen, Steen, Woning, Garage, Schoorsteen, Bedrijf, Gevel, Wientjes, Uitslijten, Kappen, Fundering, Vorstschade, Metselen, Metselwerk, Vocht" />
        <meta name="author" content="Rob Nijlaan" />
        <link href="CSS/Style2.css" rel="stylesheet" type="text/css" />
        <script src="JAVASCRIPT/SpryTabbedPanels.js" type="text/javascript"></script>
        <script src="JAVASCRIPT/SpryEffects.js" type="text/javascript"></script>
         <script src="JAVASCRIPT/SpryData.js" type="text/javascript"></script>
        <script src="JAVASCRIPT/xpath.js" type="text/javascript"></script>
         <script type="text/javascript">
         <!--
         function FadeAndUpdateContent(ele, url){
              try {
                   Spry.Effect.DoFade(ele,{
                        duration: 500, from: 100, to: 0, finish: function() {
                             Spry.Utils.updateContent(ele, url, function() {
                                  Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
              catch(e){ alert(e); }
         -->
         </script>
    </head>
    <body>
    <div id="WContainer">
      <div id="WHeader" align="center"> <img src="Art/VoegenRenLos.png" width="540" height="58" alt="Voeg en Renovatiebedrijf" /><br />
        <img src="Art/WientLogo.png" width="600" height="136" alt="Wientjes Voegwerk &amp; Renovatie" /> </div>
      <script type="text/javascript">
         var dsTabs = new Spry.Data.XMLDataSet("data/data.xml", "tabs/tab");
         function loadContent(panel,url){
              Spry.Utils.updateContent(panel,url);
         Spry.Data.Region.addObserver("example1Region",dateLoadedCallback);
         function dateLoadedCallback(notificationType, notifier, data){
              if (notificationType =="onPostUpdate"){    
                   row= dsTabs.getRowByRowNumber(0)
                   if(row){
                        loadContent('0',row.url)
         </script>
      <div id="example1Region" spry:region="dsTabs">
        <div id="dynamicTabs" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup" >
            <li spry:repeat="dsTabs" class="TabbedPanelsTab" onclick="loadContent('{ds_RowID}','{url}');" tabindex="0">{title}</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div spry:repeat="dsTabs" id="{ds_RowID}" class="TabbedPanelsContent"></div>
          </div>
        </div>
        <script type="text/javascript">
                var t1 = new Spry.Widget.TabbedPanels("dynamicTabs");
                 </script>
      </div>
      <div id="WFooter" align="center">
        <p class="footer">Wientjes Voegwerk &amp; Renovatie     ,    03- '02       »      Site by ;    <b>Rob Nijlaan</b></p>
      </div>
    </div>
    </body>
    </html>
    Dont mind the extra javascripts they are not used for now (like SpryEffects.js) its for future use.
    SOURCE XML (data.xml);
    <?xml version="1.0" encoding="UTF-8"?>
    <tabs>
        <tab>
            <title>
              tab 1
              </title>
            <url>../data/HOME.html</url>
        </tab>
        <tab>
            <title>Tab2</title>
            <url>examples/tab2.html</url>
        </tab>
         <tab>
            <title>Tab3</title>
            <url>examples/tab2.html</url>
        </tab>
         <tab>
            <title>Tab4</title>
            <url>../PHP/form.php</url>
        </tab>
    </tabs>
    The html file loads like it should be, but the php form has problems.
    See it yourself: http://www.wientjesvoegwerk.nl/index2.html
    The tab 1 displays a html file like it should.
    The tab 4 displays the contact form but you will see the reCAPTHCA is missing.
    I have really no clue why it happens, exept maybe its a PHP issue.
    Maybe the script isnt compatible with non-html documents...
    Can someone please tell me whats the problem and if there is a solution????
    How do i change this button?
    I used this in my previous site:
    <table class="Button"  >
         <tr>
         <td style="padding-right:0px" title ="Home">
         <a href="#" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/>
         </a></td>
         </tr>
    </table>
    But the dynamic script uses {title} to get the <title> out of the xml.
    I tryd to put this straight into the title tags in the xml but obviously it wont work.
    And i really dont have a clue how to change this.
    My button has a mouseover img. Basicly its 2 buttons in 1 img stacked on top of each other.
    Like this: http://www.wientjesvoegwerk.nl/Buttons/contact.png
    Because of the CSS script it hovers to the right position.
    Part of SOURCE CSS (Style.css)
    .Button a{display:block;}
    .Button a:hover{background-position:left bottom;}
    a.Button {display:none}
    How can i change the xml and the script so "title" can be replaced with the button.
    Or how can i change the button so the mouseover works and the script still takes the button-img from the xml???
    Any help would be nice, because im finnaly in a postition to finish this site, and this is the only blockade left to conquer...

    Maybe it is not liking that the index page is an HTML page and not a PHP page. Try this way:
    In your form.php, remove the following code:
    <?php
    require_once('recaptchalib.php');
    $publickey = "6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm"; // you got this from the signup page
    echo recaptcha_get_html($publickey);
    ?>
    Replace it with:
    <script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm"></script>
        <noscript>
              <iframe src="http://api.recaptcha.net/noscript?k=6LfKNwwAAAAAAEdS6PjiDSHRQBDOYrGcM8R1eQQm" height="300" width="500" frameborder="0"></iframe><br/>
              <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
              <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
        </noscript>
    The replacement code is the same code that is outputted from the recaptchalib.php file.

  • Dynamic TABS in a Tabstrip

    Hi all.
    First all sorry by my poor english i will try to explain my problem.
    I'm developing a Web Site with BSP and it const of 2 frames obviusly with 2 web pages Menu.htm and Content.htm
    what i need is: if I press a link in menu.htm, in content.htm appears a Tabstrip, (that's easy) now if I press again the link in menu.htm, in content.htm must appears other Tabstripitem at rigth side of the first Tab created..
    it's understand??
    how can I do that?? OO? i saw somes examples in PORTAL so this is possible to do. help?
    Thanks all is my first post here

    Hi Guillermo,
    Welcome to SDN.
    You can have dynamic tabs by placing the <htmlb:tabStripItem> in a loop in the layout:
    <% loop at tabstrip_tab. %>
      <htmlb:tabStripItem index="<%=tabstrip_tab-index%>" etc. />
    <% endloop. %>
    Where tabstrip_tab contains the details of the tabstrip items.
    Regards,
    Patrick.

  • Dynamic tabs like the one on Developer Center

    I'm looking to learn how to build the dynamic tabs like on
    the link below:
    http://www.adobe.com/devnet/
    When you hit each tab the content comes up on the same html
    document....layers maybe?
    thanks for helping,
    Sasha

    Try this:
    http://www.fourlevel.com/product/ipanel/index.htm
    I have it. Just deployed it on a new site. I love it and 4
    Level's support
    is top notch.
    Walt
    "Sasha is in d house" <[email protected]>
    wrote in message
    news:er9rjt$9ql$[email protected]..
    > I'm looking to learn how to build the dynamic tabs like
    on the link below:
    >
    http://www.adobe.com/devnet/
    >
    > When you hit each tab the content comes up on the same
    html
    > document....layers maybe?
    >
    > thanks for helping,
    >
    > Sasha
    >

  • Dynamic Tabs Layout

    Hello,
    I'm using the latest version of JHeadstart (11.1.1.3.35). I have selected Dynamic Tabs layout and everything works fine except that the home page still shows all the groups as a tab in home page. If I click on any of them it will go to the tree menu and dynamic tabs. I have also changed "Content Frirst-Level Menu Tab" to all possible values but it doesn't change anything. Any help would be appreciated.
    Sayyed

    Sayyed,
    The home page is just provided as a sample. It is a stand-alone page not a page fragment , so it cannot be used in a region. Since dynamic tabs only display regions, the dynamic tabs cannot be shown on the sample home page.
    If you want to have dynamic tabs on your home page, then create a Home group in your application definitiion editor, and check the group-level checkbox "Show as Initial Tab".
    Steven Davelaar,
    JHeadstart Team.

  • Dynamic Tabs in iWeb

    I need help with a personal site that would be my Safari start page. I would like to have layers of HTML snippets that when clicked, would change the layer of the page to make that HTML snippet the top layer, so like dynamic tabs that would not change the page URL, but could change content. Any way to do this?
    Thanks in advance!
    -Mike

    Hi Mike!
    Another option (only need to copy/paste some HTML code) would be to create a series of text links to the HTML pages you desire (or they could be small iFrames if you want buttons w/rollovers).
    Create an HTML snippet window (i.e. an iFrame) with the appropriate window size, scrolling, name, etc. attributes/values. Let's say you name your iFrame "content".
    The overall idea is that your links load other html content into the "content" iFrame. You only need one iFrame for this scenario and it is simple to set-up and maintain.
    Publish your web site as per usual (to a folder or Mobile Me).
    Next, in a text editor, open up the HTML page with the links and iFrame. Look for the links you created in iWeb (using the Find command will make it easier); "Latest News" is used in this example for the link.
    The format will look something like:
    <a href="firstpagelink.html" title="firstPageLink">Latest News</a>
    Next add the following code to this anchor tag: target="content" (this is the name you used for your iFrame).
    So now the code on your page should look like:
    <a href="firstpagelink.html" title="firstPageLink" target="content"> Latest News</a>
    You would do this with each link, just copy the first target="content" and then paste it in to the other anchor tags.
    Once you have set-up your page in iWeb, this post-publish pasting operation goes very quickly.
    =============
    Drawback: everytime you re-publish the page you need to go through this drill. However it is probably the content in the iFrame that will change the most often. Thoughtful planning/design of the main/link page will hopefully minimize the frequency of changes needed there.
    Or use iFrames for your links where the code will not get overwritten - but now we're getting a little trickier because you will have to communicate through the parent document to enable all the "link" iFrames to talk to the "content" iFrame.

  • Dynamic Tab & View Generation

    Hi,
    I need to create new Tab on click of button and delete the tab on click of another button.Also, in this newly generated tab I have to embed existing view.
    This view is so complex that creating all its elements dynamically at run time will be very tedious. Is there any way of adding view dynamically in IWDViewContainer and then adding that container to Tab Content at the run time?
    Thanks in advance,
    Apurva

    Check this
    Embed a View into a ViewContainerUIElement at runtime.
    Anilkumar

  • Dynamic TabbedPanels  Content

    Hello,
    Can uuuuuuuuuuuuuuuuuuuuu helpppppp mmmmmmmmmeeeeee
    pleeeeeeeaassssssssssseeeeee ?
    I want to make my TabbedPanels dynamically.
    For example after every 3 seconds the tab and the
    TabbedPanelsContent changes automatically. It's the same principle
    of the Gallery.
    Is there a solution ?
    Thank u very much.

    Alderaan,
    Have you looked at Content Areas? They would be good for self service management of content.
    Have you looked at some of the content providers for Oracle9iAS Portal? They have dynamic data content portlets available. http://www.oracle.com/portals/partners.
    Rich

  • How to work with iViews as dynamic tabs?

    Hi all,
    I recently created 4 iViews which I put in a role so that they are displayed in the navigation bar at the top. This way I can click on the iView which I want to see and it will be loaded. However, sometimes it would be useful to use multiple iViews at once. The idea is to open the iViews into dynamic tabs which can be opened, closed and switched by the user. This feature is already used in the Content-Administration of the NetWeaver Portal where the user can open multiple objects into tabs.
    Does anybody know how to enable this feature for normal iViews?
    Best regards,
    Jan Marquardt

    Hi! Jas,
      you need to create a WebDynpro Project and appl.using NWDS.
    Then write following code to get connected to Oracle:--
    MessageManager msgMgr = (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();
         String  serverName = "172.43.87.65";
         String portNumber = "1526";
         String sid = "vision";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
         String userName = "scott";
         String password = "tiger";
         Connection connection = null;
         try {
          // Load the JDBC driver
         String driverName = "oracle.jdbc.driver.OracleDriver";
         Class.forName(driverName);
         connection = DriverManager.getConnection(url, userName, password);
         Statement stmt =connection.createStatement();
         ResultSet resultSet = stmt.executeQuery("select * from employee");
            if(resultSet.next()) {
              msgMgr.reportWarning(resultSet.getString(1));
              msgMgr.reportWarning(resultSet.getString(2));
         } catch(Exception exc) {
          exc.printStackTrace();
    You need to put classes12.jar in classpath as well.
    regards,
    Mithileshwar

  • Dynamic Tab UI

    Hi Gurus,
    I am using JDev 11.1.2.3. I am facing two issue while using Dynamic tab ui.
    1. Tab is open but the contents of jsff are not displaying.
    2. Once i open a tab and close it and agin try to open it, it is unable to open it again. I am using Launcher class given in Dynamic Tab UI Example on oracle website.
    Please advice me how can i resolve these logical errors.
    Thanks,

    I am using this function from Launcher class
    private void _launchActivity(String title, String taskflowId, boolean newTab)
    try
    if (newTab)
    TabContext.getCurrentInstance().addTab(
    title,
    taskflowId);
    else
    TabContext.getCurrentInstance().addOrSelectTab(
    title,
    taskflowId);
    catch (TabContext.TabOverflowException toe)
    // causes a dialog to be displayed to the user saying that there are
    // too many tabs open - the new tab will not be opened...
    toe.handleDefault();
    and calling this function on node click of tree
    selectionListener="#{backingBeanScope.Launcher.launchTaskFlow}"
    and here is launchTaskFlow
    public void launchTaskFlow(SelectionEvent selectionEvent) {
    RichTree tree = (RichTree)selectionEvent.getSource();
    TreeModel model = (TreeModel)tree.getValue();
    //get selected nodes
    RowKeySet rowKeySet = selectionEvent.getAddedSet();
    Iterator rksIterator = rowKeySet.iterator();
    //for single select configurations,this only is called once
    while (rksIterator.hasNext()) {
    List key = (List)rksIterator.next();
    JUCtrlHierBinding treeBinding = null;
    CollectionModel collectionModel = (CollectionModel)tree.getValue();
    treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = null;
    nodeBinding = treeBinding.findNodeByKeyPath(key);
    Row rw = nodeBinding.getRow();
    //print first row attribute. Note that in a tree you have to
    //determine the node type if you want to select node attributes
    //by name and not index
    String rowType = rw.getStructureDef().getDefName();
    String action ="/WEB-INF/flows/bridge.xml#bridge";
    String Title = rw.getAttribute("Text").toString();
    System.out.println("Node Selected " + action + "----"+Title);
    _launchActivity(Title, action, true);
    }

  • Dynamic Tab UI Shell: Navigation inside Tab

    Hi,
    By using Dynamic Tab UI shell, I have created a page, inside this page, task flows are opened as Tabs.
    I have opened two tabs TabA and TabB.
    I clicked on TabA, press keyboard tab, it goes to TabB instead of navigating inside TabA.
    I could navigate to last opened tab's contents only.
    Could anybody suggest how can I navigate inside a Tab, instead of navigating to all the opened tabs.
    Thanks,
    Vinod

    Sorry for so much delay. Finally, got some time to play with the template and downloading the dynamicTabTemplate source code and overriding the closeIcon worked like a charm.
    Let me summarize what I did to help someone who is looking for this :)
    1) Downloaded the source code for dynamicTabTemplate
    2) Added and additional attribute closeTab to the template
    +<attribute>+
    +<attribute-name>closeTab</attribute-name>+
    +<attribute-class>java.lang.String</attribute-class>+
    +<required>+
    true
    +</required>+
    +</attribute>+
    2) edited the dynamicTabShell.jspx, closeIcon commanlink actionListener to be bound to "#{viewScope.tabContext.closeIcon}"
    3) Implemented the closeIcon method in TabContext
    +@Override+
    +public void closeIcon(ActionEvent actionEvent) {+
    CloseIconInterface bean = getBean();
    bean.closeIcon(actionEvent);
    +}+
    4) Generated the jar.
    5) Removed the oracle provided default dynamicTabTemplate jar and instead added my custom generated jar to the application
    6) Applied the new template
    7) Set all the attributes along with the new closeTab attribute. This would take the BackingBean name...example: <f:attribute name="closeTab" value="#{xxxScope.xxxBean}"/>
    8) Made xxxBean to implement CloseTabInterface
    9) Implemented the closeIcon method with custom code to confirm page close before removing the Tab.
    However like you said, i'll keep tab on future updates to the default tab template updates to not miss any bug fixes or enhancements.
    Thanks everyone who looked into this for me and Hope this helps someone else :)...Good luck !

  • Dynamic Tab Shell Template - Ctrl+P (Browser Print)

    We have are using dynamic tab shell template and rendering all our pages. The problem now is, that when the user tries to print the page using the regular browser print button or Ctrl + P, only the background (blue color content area see: http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html ) screen gets printed in the entire page and none of the other rendered content prints. Print button does not solve our purpose either. So, it would be great if anyone could provide some pointers on what could be the reason that the rendered content is not printing (even in print preview it displays only the blue content)?
    Note: We have already created our default template based on the dynamic tab shell template to get handle to the closeIcon.
    Edited by: 119413 on Feb 21, 2013 5:02 PM
    Edited by: 119413 on Feb 21, 2013 5:16 PM

    Hi,
    never had a problem to perform a print screen using the UI Shell (would have noticed if this didn't work). So there must be some condition under which this happens. Can you download and run the sample for this article and try it with this.? Its using JDeveloper 11g R2
    http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22adf-1518265.html
    Frank

  • Different Tab Icons in Dynamic Tab Shell

    I am working on a custom implementation of the Dynamic Tab Shell.  I am opening tabs dynamically and want the icons on those tabs to also be dynamic based on the type of object contained in the tab.  The problem is as soon as I change the tab icon, it changes all the tab icons, not just the current tab's icon.  Is there anyway to preserve the icons on the already open tabs and only set the icon on the new tab?
    JDeveloper 11g R2 (11.1.2.4.0)
    Here is my code:
    dynamicCustomTabShell.jspx (my own customized version):
            <attribute>
              <attribute-name>tabIcon</attribute-name>
              <attribute-class>java.lang.String</attribute-class>
              <default-value>/images/default_icon.png</default-value>
            </attribute>
            <f:facet name="nodeStamp">
               <af:commandNavigationItem id="tabIndex" rendered="#{tab.active}"
                                                          actionListener="#{viewScope.tabContext.tabActivatedEvent}"
                                                          remove="inherit"
                                                          icon="#{attrs.tabIcon}"                                           
                                                          itemListener="#{backingBean.closeCurrentActivity}"
                                                          partialSubmit="true" text="#{tab.title}" immediate="true">
                   <f:attribute name="tabIndex" value="#{tab.index}" />
                </af:commandNavigationItem>
             </f:facet>
    myPage.jspx (my primary page):
    <af:pageTemplate viewId="/pageTemplates/dynamicCustomTabShell.jspx" value="#{bindings.ptb1}" id="pt1">
       <f:attribute name="tabIcon" value="backingBean.tabIcon"/>
    BackingBean.java (my backing bean):
    public String getTabIcon() {
         // functionality which determines the appropriate icon path based on the item type

    Hi,
    the bean that sets the icons should be in view scope at minimum because if this is in request it will reset it value with each request. But your code has another flaw as well:
    <af:pageTemplate viewId="/pageTemplates/dynamicCustomTabShell.jspx" value="#{bindings.ptb1}" id="pt1">
       <f:attribute name="tabIcon" value="backingBean.tabIcon"/>
    This doesn't set the tab icon per tab but per page call when the template is applied. So if the icon should be content dependent then the icon needs to be set by individual tab rendering which means that you need to have a managed bean that is of view scope and that holds a map of icons. E.g
    HashMap<String, String> icons = new HashMap<Srting, String>();
    icons.set("tab1","myLovelyIcon1.jpg");
    icons.set("tab2","myLovelyIcon2.jpg");
    If you keep the tab index synchron with the task flow binding you assign to it you extend the default API for opening a tab allowing developers to pass a custom tab icon. If this is provided as not null, you look at the task flow binding index and update the icon map. If the value is null you need to set the default icon
    Frank

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

Maybe you are looking for

  • My 2011 Macbook has become exceedingly slow after upgrading to Mountain Lion.

    I have a 2011 Macbook which has become really slow after I upgraded to Mountain Lion in March. At first it wasn't that bad, but it's getting worse and my computer has begun to overheat even if I'm only using Google Chrome. I used to be able to keep m

  • Invisible text in PDF form

    I've seen this twice now over the last couple of months under Acrobat Pro 9.3.2. I've created forms for folks attending an event to complete. They download these forms from a web site, complete them, and click a button I've built into the form to e-m

  • R U PEOPLE REALLY SATISFIED WITH VIDEO QUALITY OF ...

    the resolution could have been better in n8, it same as 5800. a video clip with dark region it appears grey with pixels in n8 where as if the same clip played in n8, it appears like hd...............................SO SICK N8

  • How do you delete a saved pdf file in adobe 10

    How do delete a saved pdf file in acrobat reader 10

  • A start error

    when i start weblogic server from workshop, it is fault: <2002-6-11 上午10时17分15秒> <Error> <HTTP> <101083> <Connection failure java.net.SocketException: ReadFile failed: 指定的网络名不再可用。 (error 64, fd 1900) at weblogic.socket.NTSocketMuxer.initiateIO(Native