Netui: template embedded in another template

How to embed one netui template within another template:
          templte2
          template1
          jsp: will use template2, which in turn uses template1.

Hi
I recommend you to use a scheduled powershells cript which will do the job for you
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

Similar Messages

  • Can a netui:template include another template?

    I have a case where I want to have 2 different templates (myTemplate.jsp and myTemplate2.jsp). Both use almost all of the exact same code, with a minor exception. I didn't want to have to just copy one and modify the one section that is different, b/c if I have to update the common code in the template, then I will have to do it in both places.
              Basically, my JSPs will reference the template named "myTemplate" or "myTemplate2", and each of these references the template named "baseTemplate". Can this be done?
              I have tried, but I get an error saying "No Sections defined, 'xxx' not included in template.", but I have no idea why this is happening, because I thought I was defining a section.
              This is the code I have:
              baseTemplate.jsp
              <pre>
              <netui-template:includeSection name="baseBodySection" />
              </pre>
              myTemplate.jsp
              <pre>
              <netui-template:template templatePage="baseTemplate.jsp">
              <netui-template:section name="baseBodySection">
              <netui-template:includeSection name="bodySection" />
              <%-- template specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myTemplate2.jsp
              <pre>
              <netui-template:template templatePage="baseTemplate.jsp">
              <netui-template:section name="baseBodySection">
              <netui-template:includeSection name="bodySection" />
              <%-- template specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myPage.jsp
              <pre>
              <netui-template:template templatePage="myTemplate.jsp">
              <netui-template:section name="bodySection">
              <%-- page specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              myPage2.jsp
              <pre>
              <netui-template:template templatePage="myTemplate2.jsp">
              <netui-template:section name="bodySection">
              <%-- page specific code --%>
              </netui-template:section>
              </netui-template:template>
              </pre>
              When I either myPage.jsp or myPage2.jsp is rendered, I don't see any of the content from myPage.jsp or myPage2.jsp. In its place I see the error in the netui error table with the following message: "No Sections defined, 'bodySection' not included in template", and below it I see the template specific code I added in myTemplate or myTemplate2 rendered without errors.
              Is there something else I have to do in baseTemplate to tell it that the baseBodySection will have template code in it?
              Any help on this issue will be greatly appreciated.

    I can sympathize with you as far as the readability goes.
    I know that Tomcat 4 provides a GUI that's intended to make editing server and container level XML files a lot easier, but I'm not certain if it handles application level XMLs too. I think it's safe to say that version 5 will probably either support modifying web.xml files through the GUI or someone will make that feature available through an add-on module.
    In the meantime, the length of the XML doesn't affect Tomcat. I would just put up with it until the tool comes along.

  • netui-template integration with frames

    Greetings,
    Is there any integration between <netui-template and HTML frames ? For example, I need to define several frames in all the JSPs of a webapp. I'm using a template which declares something like:
    <framest colums="25%,75%>
    <frame src="leftTemplate.jsp" name="left"/>
    <frame src="rightTemplate.jsp" name="right"/>
    </frameset>
    where leftTemplate.jsp and rightTemplate.jsp are templates. This raises an exception saying that there is no template context due to the fact that templates are used directly, which is right.
    I tried to use <netui-template:section instead of frames but the target option of <netui-html don't seem to be integrated with sections. For example, I need to click an anchor in a section and produce a visual feed-back in another one. If I use the target option of the <netui:anchor to specify the second section name, it doesn't work. If the name specified by the target option of the <netui:anchor is a frame name, then it works. So I need either to be able to use templates in conjunction with frames or to have target-aware sections.
    Any suggestion would be higly apreciated.
    Many thanks in advance.
    Nicolas

    Hello
    Which URL are you using in your Communication Channels? Make sure you use the appropriate URL as listed in note 1953125.
    Also, make sure proper credentials are stored in the IMG.
    Hope this helps.
    Sridhar

  • I18N and netui-template:setAttribute ..

    Hi,
    In my jsp I am using setAttribute tag as follows
    <b><netui-template:setAttribute name="title" value="My Page title"></netui-template:setAttribute>
    </b>
    I want to read the "value" attribute from a Application Resource.
    So I did the following:
    <i> <netui-template:setAttribute name="title" value="<bean:message key="my.value.title"/>"></netui-template:setAttribute></i>
    But it does not compile, wondering if you can help.
    Thanks in advance
    Jaan

    You can also decalre the bundle in your JSP, when you don't use a pageflow:
    JSP:
    <netui-data:declareBundle name="labels" bundlePath="bundle.test" />
    Submit Button:     <netui:button value="{bundle.labels.submit}"/>
    Cancel Button:     <netui:button value="{bundle.labels.cancel}"/>
    Bundle file:
    submit=Submit
    cancel=Reset
    Thomas Cook wrote:
    If you're using page flows you can do the following...
    In your page flow in the class comment:
    @jpf:message-resources resources="messages"
    In your JSP:
    <netui:label value="{bundle.default.nameLabel}"/>
    In your /WEB-INF/classes/messages.properties file:
    nameLabel=Name
    Alternately, if you're using the "key" attribute on your
    message-resources annotation you'd do the following...
    In your page flow in the class comment:
    @jpf:message-resources key="foo" resources="messages"
    In your JSP:
    <netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/>
    In your /WEB-INF/classes/messages.properties file:
    nameLabel=Name:
    Where your .jpf file is /jpfDirectory/Controller.jpf.
    I hope this helps.
    Thomas
    Claus Ljunggren wrote:
    Hi,
    I want to i18n my netui:button. Does it have to be this uggly?
    <i18n:getMessage messageName="labelCreateContact"
    id="createContact"/>
    <netui:button type="submit" value="<%=createContact%>"/>
    btw, workshop claims that it doesn't know the createContact inside <%=%>,
    but it works when run.
    TIA,
    Claus Ljunggren

  • How a collection embedded inside another collection can be read???

    Is there anybody can provide me with a small exemple of how I can access the element inside a collection (set) embedded inside another collection itself embedded inside another collection. Each collection is declare in their own class.
    i.e. Class 1
    private Set col2 = new HashSet;
    Class 2
    private Set col3 = new HashSet;
    Class 3
    private Set col4 = new HashSet;
    How can I read the element belong to col4 since the col4 is accessible through col3 and col3 through col2????
    Hope I am clear enough. Could someone help???
    Thanks

    hi,
    If set contains set0, set1, set2 at 0 ,1 ,2 index
    and u want to get the element at index 3 of set1 then u should proceed as :-
    Set set = new HashSet ();
    Set set0 = new HashSet ();
    Set set1 = new HashSet ();
    Set set2 = new HashSet ();
    set0.add("hello");
    set.add(set0);
    set1.add("how");
    set1.add("are");
    set1.add("you");
    set.add(set1);
    set2.add("i")
    set.add(set2);
    Iterator iter = set.iterator() ;
    iter.next();
    Set outSet = (HashSet)iter.next()
    And now iterate through this set to get the required element
    Gaurav

  • Indexing - one document embedded within another

    Greetings,
    I am testing KM indexing in terms of examining how Trex handles the indexing of a scenario where you have one document embedded within another document.
    In this case I have chosen to embed a PowerPoint (.ppt document) within a Word document (.doc document).
    I index the Word document, expecting to therefore also have the PowerPoint document within indexed. When I search for the text within the embedded .ppt document I do not get results and therefore assume that Trex cannot index documents which are embedded in other documents. Please advise if I am correct. 
    Regards,
    Keith

    >
    Keith Kibuuka wrote:
    > Greetings,
    >
    > I am testing KM indexing in terms of examining how Trex handles the indexing of a scenario where you have one document embedded within another document.
    >
    > In this case I have chosen to embed a PowerPoint (.ppt document) within a Word document (.doc document).
    >
    > I index the Word document, expecting to therefore also have the PowerPoint document within indexed. When I search for the text within the embedded .ppt document I do not get results and therefore assume that Trex cannot index documents which are embedded in other documents. Please advise if I am correct. 
    >
    > Regards,
    > Keith
    Hi Keith,
    yes that's exactly correct from my knowledge's point of view.
    I had a similar issue with an HTML-document that contained another HTML-document as iframe and this is also not possible (I asked SAP about this, so for this I am sure).
    TREX does anyway a transformation for all sort of documents to HTML documents (so also DOCs or PDFs are firstly converted to HTML before they are indexed). And in here TREX never follows any embedded content.

  • Can a PDF be "embedded" into another PDF, and still be its own layer?

    HI. I work with a software company that manipulate PDFs files, placing PDFs into other PDFs resulting in a combined file.
    what my question is, is the finished combined PDF file simply 1 big PDFs full of individual elements, or are the elements still relating to their own virtual pdf within the combined PDFs?
    MY feeling is the combined PDFs is simply a big fish tank full of fish, and if another fish tank was to be emptied into it, it all merges into one. At least that is the way I see it. all fish a simply a part of the overall fish tank!
    i Ask this as "a colleague" is telling clients otherwise and I would like to correct him.
    oh, we use itext as the tool to manipulate pdfs.
    cheers

    Thanks for the reply. I understand my wording was misleading.
    What we are doing is taking a single page base PDF file, containing 10 elements for example, and using our own software (with help from iText) adding other page elements on the same page. Most of the time these elements are just text, or the odd image, but sometimes, we may be placing a PDF Logo on the same page. The resulting PDF seems to be a single page, containing 10+  elements of equal hierarchy, with no reference to the source PDF file that was used for the logo. Also looking at the Layers panel, There is no information here.
    Are you saying then that there may be references to some of the elements based on the source PDF file?
    Cheers

  • JPanel not repainting if embedded in another panel

    I have a reusable class called as DuplicatorPanel. This class has two add/ remove buttons like in Mac if you are familiar.
    The problem is that the screen gets updated with an extra row in case i have a main method in Duplicator itself. However if i have that in another panel as in HyperlinkBuilder then it does not repaint itself.
    Please can someone help ?
    package sam.dnd;
    import java.awt.event.ActionEvent;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public abstract class DuplicatorPanel extends Box {
        private static final long serialVersionUID = 1L;
        private static int oneup = 0;
        private Map<String, JComponent> panelMap = new LinkedHashMap<String, JComponent>();
        private Action addAction;
        private Action removeAction;
        public DuplicatorPanel() {
            super(BoxLayout.Y_AXIS);
            this.initComponents();
            this.placeComponents();
        private void initComponents() {
            addAction = new AddAction();
            removeAction = new RemoveAction();
            addDuplicatorPanel();
        private void placeComponents() {
            Iterator<JComponent> itr = this.panelMap.values().iterator();
            while(itr.hasNext()) {
                JComponent comp = (JComponent) itr.next();
                this.add(comp);
            this.add(Box.createVerticalGlue());
        private void addDuplicatorPanel() {
            int index = oneup++;
            JComponent component = this.createDuplicate();
            JButton btnAdd = new JButton("Add");
            btnAdd.setActionCommand("" + index);
            btnAdd.addActionListener(this.addAction);
            JButton btnRemove = new JButton("Remove");
            btnRemove.setActionCommand("" + index);
            btnRemove.addActionListener(this.removeAction);
            Box box = Box.createHorizontalBox();
            box.add(component);
            box.add(Box.createHorizontalGlue());
            box.add(btnAdd);
            box.add(btnRemove);
            this.panelMap.put("" + index, box);
            fireValueChanged();
        private void fireValueChanged() {
            this.removeAll();
            this.placeComponents();
            this.repaint();
        protected void doAdd() {
            addDuplicatorPanel();
            fireValueChanged();
        protected void doRemove(String key) {
            if(this.panelMap.size() == 1) {
                return;
            JComponent comp = this.panelMap.remove(key);
            if(comp != null) {
                this.fireValueChanged();
        protected abstract JComponent createDuplicate();
        class AddAction extends AbstractAction {
            private static final long serialVersionUID = 1L;
            public void actionPerformed(ActionEvent evt) {
                doAdd();
        class RemoveAction extends AbstractAction {
            private static final long serialVersionUID = 1L;
            public void actionPerformed(ActionEvent evt) {
                JButton source = (JButton) evt.getSource();
                doRemove(source.getActionCommand());
         * @param args
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.add(new MyDuplicatorPanel());
            f.setSize(200, 200);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setVisible(true);
        static class MyDuplicatorPanel extends DuplicatorPanel {
            private static final long serialVersionUID = 1L;
            public JComponent createDuplicate() {
                return new JLabel("Test");
    }This is another class that calls the above
    package sam.dnd;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.util.HashMap;
    import javax.swing.JComboBox;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class HyperLinkBuilder extends JPanel {
        private static final long serialVersionUID = 1L;
         * @param args
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.add(new HyperLinkBuilder());
            f.setSize(200, 200);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setVisible(true);
        private static HashMap<String, String> linkNameValueMap = new HashMap<String, String>();
        private static HashMap<String, String> paramNameValueMap = new HashMap<String, String>();
        private static HashMap<String, String> valueNameValueMap = new HashMap<String, String>();
        static {
            linkNameValueMap.put("Name1", "Value1");
            linkNameValueMap.put("Name2", "Value2");
            linkNameValueMap.put("Name3", "Value3");
            paramNameValueMap.put("Name1", "Value1");
            paramNameValueMap.put("Name2", "Value2");
            paramNameValueMap.put("Name3", "Value3");
            valueNameValueMap.put("Name1", "Value1");
            valueNameValueMap.put("Name2", "Value2");
            valueNameValueMap.put("Name3", "Value3");
        private String link;
        private JComboBox linkCombo;
        private DuplicatorPanel panel;
        public HyperLinkBuilder() {
            this.initComponents();
            this.placeComponents();
            this.addListeners();
        private void initComponents() {
            linkCombo = new JComboBox(linkNameValueMap.keySet().toArray());
            panel = new MyDuplicatorPanel();
        private void placeComponents() {
            this.setLayout(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.gridx = 0;
            gbc.gridy = 0;
            this.add(linkCombo, gbc);
            gbc.gridy++;
            gbc.fill = GridBagConstraints.BOTH;
            this.add(panel, gbc);
        private void addListeners() {
            this.linkCombo.addItemListener(new LinkSelector());
        private JPanel createNameValuePanel() {
            JComboBox nameCombo = new JComboBox(paramNameValueMap.keySet().toArray());
            JComboBox valueCombo = new JComboBox(valueNameValueMap.keySet().toArray());
            JPanel panel = new JPanel();
            panel.add(nameCombo);
            panel.add(valueCombo);
            return panel;
        private void doLinkSelected() {
            String name = (String) linkCombo.getSelectedItem();
            link = linkNameValueMap.get(name);
        public String build() {
            //TODO:
            return this.link;
        class LinkSelector implements ItemListener {
            public void itemStateChanged(ItemEvent e) {
                doLinkSelected();
        class MyDuplicatorPanel extends DuplicatorPanel {
            private static final long serialVersionUID = 1L;
            @Override
            protected JComponent createDuplicate() {
                return HyperLinkBuilder.this.createNameValuePanel();
    }

    Hey Xeon,
    Replace that repaint() with revalidate. That is the trick in there.
    -Sam

  • Calling an Interactive Form which is embedded in another WebDynpro by link

    Hello guys,
    I have got the following problem.
    We have got a WebDynpro-Application in whihch an Adobe Interactive Form is generated.
    Now, we just want to call this Interactive Form from another WebDynpro-Application by a link.
    How can I do this?
    Thank you for your help.
    Best regards, Patrick.

    Hi Patrick,
    Since the interactive form is an ui element, it is not possible to refer directly to it from within another application. Nonetheless, two options come to my mind about how your problem could be solved:
    (1) Link to the other application containing the interactive from ui element and provide needed data to generate the PDF by url parameters.
    (2) Generate the pdf before with the other application and put the pdf somewhere (e.g. server cache, file system, etc). Then generate a link in the first application to that resource.
    The second solution has a seurity hole since the data could possibly be accessed by other users as well. Personally, I would go for the first one.
    Best regards,
    Thomas

  • Using a javscript function in a jsp embedded in another jsp

    Hi All,
    I have 2 jsp's say, a.jsp and b.jsp. I am using the b.jsp in a.jsp using the
    <jsp:include page="b.jsp" /> in a.jsp
    Now i am having a javascript function test() in a.jsp. Can i use this javascript function in b.jsp also. I just want the output of this function to be used in b.jsp also. So is there a way i can use it or should i write the function again in b.jsp?
    Thanks in advance!!!!!!

    Javascript only intercepts on the generated HTML output at the client side, not on the server side JSP code. If the function is there in the HTML output, you can just use it.

  • How to bind a click event to a button that is embedded in another symbol

    All-
    I'm sure this is easy but ya know...
    So I have a menu on the main stage that has 18 buttons.  These buttons are nested inside of a symbol called MC_MENU_CONTAINER.  I'm animating this symbol with show/hide buttons on the main stage, which works great.  What Id like is to bind a click event to these nested buttons from the main stage.  I was able to   access the nested buttons with this code sym.getComposition().getStage().getSymbol("MC_MENU_CONTAINER").$("BTN_INTRO").hide();  This hides the first button but when i try to attatch a click event to "BTN_INTRO" it doesn't work.  I have the code stored on the stage using compositionReady.
    Any ideas?
    thx

    For simple alerts, console.log, and strings, single or double quotes doesn't matter.
    It does matter when you start dealing with quotes in strings. If you wanted to alert: Say "Hello", you could do it either way:
    alert('Say "Hello"');
    alert("Say 'Hello'");
    Since Edge is built on javascript, it's really important to have a good handle on javascript and jQuery, in order to utilize the tool to it's full potential.
    javascript:
    https://developer.mozilla.org/en-US/docs/JavaScript/Getting_Started
    http://elegantcode.com/2010/10/22/basic-javascript-part-1-functions/
    jQuery:
    http://webdesignerwall.com/tutorials/jquery-tutorials-for-designers
    http://docs.jquery.com/Tutorials

  • Swf that's embeded in another swf only works on first run

    If you go here
    and click on the animation link the skin at the bottom of the video is visible then fades away.  If you navigate away from animation then come back the skin isn't there. I don't know why.
    Here's the code for the animation swf with the parts I think are relivern in bold:
    import mx.video.*;
    var totalRecord:Number = 0;
    var intStartImage:Number = 5;
    var p:Number = 0;
    var currPos:Number = scrollFace._y;
    var scrollHeight:Number = scrollTrack._height;
    var scrollFaceHeight:Number = scrollFace._height;
    var maskHeight:Number = mask_mc._height;
    var initPosition:Number = scrollFace._y=scrollTrack._y;
    var initContentPos:Number = thumbnail_mc._y;
    var finalContentPos:Number;
    var left:Number = scrollTrack._x;
    var top:Number = scrollTrack._y;
    var right:Number = scrollTrack._x;
    var bottom:Number = scrollTrack._y + scrollTrack._height - scrollFaceHeight;
    var dy:Number = 0;
    var speed:Number = 10;
    var moveVal:Number = 0;
    var moveAmt:Number = 0;
    var contentHeight:Number;
    var scroller:Boolean;
    //thumbnail_mc._y = thumbnail_mc._y-6; // top of image align with top of mask
    function loadXML(loaded) {
        if (loaded) {
            xmlNode = this.firstChild;
            image = [];
            description = [];
            thumbnails = [];
            Heading  = [];
            total = xmlNode.childNodes.length;
            totalRecord = total;
            for (i=0; i<total; i++) {
                image[i]         = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                description[i]     = xmlNode.childNodes[i].childNodes[1].attributes.Medium + "\n" + xmlNode.childNodes[i].childNodes[1].attributes.Size ;
                thumbnails[i]     = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                Heading[i]        = xmlNode.childNodes[i].childNodes[3].attributes.Title;
                thumbnails_fn(i);
            scrollbarOnOff();
            firstImage();
        } else {
            content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("galleryxml/animation.xml");
    listen = new Object();
    listen.onKeyDown = function() {
        if (Key.getCode() == Key.LEFT) {
            prevImage();
        } else if (Key.getCode() == Key.RIGHT) {
            nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {previousButton();};
    function previousButton():Void {
            if(intStartImage >5) {   
             intStartImage--;           
             thumbnail_mc._y += 65;
        prevImage();
    next_btn.onRelease = function() {nextButton();};
    function nextButton():Void {
                if(totalRecord >5)
            if(intStartImage < 5){intStartImage = 5;}
            if(totalRecord > intStartImage)
            intStartImage++;
            thumbnail_mc._y -= 65;
            p++;
            contentHeight = thumbnail_mc._height + 8;
            moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
             currPos = scrollFace._y;
        nextImage();
    scrollTrack.onPress = function():Void {
         if (scrollFace._y > _ymouse) {
            previousButton();
         }else{
            nextButton();
    this.onEnterFrame = function() {
        filesize = picture.getBytesTotal();
        loaded = picture.getBytesLoaded();
        preloader._visible = true;
        if (loaded != filesize) {
            preloader.preload_bar._xscale = 100*loaded/filesize;
        } else {
            preloader._visible = false;
            if (picture._alpha<100) {
                picture._alpha += 10;
    function nextImage() {
        if(scroller == true){
        finalContentPos = maskHeight-contentHeight+initContentPos;
        moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
        moveAmt = (contentHeight / totalRecord) / moveVal;
        currPos = (moveAmt * p + 1) + top;
        if(currPos > bottom - 5){currPos = bottom - 1;}
        if(thumbnail_mc._y < finalContentPos){thumbnail_mc._y = finalContentPos;}
        contentHeight = thumbnail_mc._height + 8;
        if(p<total){
            if (loaded == filesize) {loadAnimation();}
            scrollFace._y = currPos;
        else{
        currPos = bottom;
        p = total - 1;
        }else{loadAnimation();}
    function prevImage() {
        if(currPos < top + (moveAmt*2)){currPos = top +3;}
        if (p>0) {
            p--;
            loadAnimation();
         if(thumbnail_mc._y > initContentPos){thumbnail_mc._y = initContentPos;}
         currPos -= moveAmt;
        scrollFace._y = currPos;
        if(scrollFace._y <= scrollTrack._y +4){scrollFace._y = scrollTrack._y;}
    function firstImage() {
        moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
        if (loaded == filesize) {loadAnimation();}
    function picture_num() {
        current_pos = p+1;
         pos_txt.text = current_pos+" / "+total;
    scrollFace.onPress = function() {
        contentHeight = thumbnail_mc._height;
        moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
        startDrag(this, false, left, top, right, bottom);
            this.onMouseMove = function() {
            dy = Math.abs(initPosition-this._y);
            thumbnail_mc._y = Math.round((dy*(-1*moveVal))+initContentPos);
    scrollFace.onMouseUp = function() {
        stopDrag();
        delete this.onMouseMove;
    function scrollbarOnOff():Void {
        if (totalRecord < 6){
        scroller = false;
        scrollFace._visible = false;
        next_btn._visible = false;
        previous_btn._visible = false;
        scrollTrack._visible = false;
        } else {
        scroller = true;
        scrollFace._visible = true;
        previous_btn.enabled = true;
        next_btn._visible =true;
        scrollTrack._visible = true;
    function loadAnimation():Void {
            playVideo();
            desc_txt.text = description[p];
            Heading_name.text = Heading[p];
            picture_num();
    function thumbnails_fn(k) {
        thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_mc.getNextHighestDepth());
        tlistener = new Object();
        tlistener.onLoadInit = function(target_mc) {
            contentHeight = thumbnail_mc._height + 8;
            target_mc._y =(mask_mc._y+(target_mc._height+8)*k) - 8;
            target_mc.pictureValue = k; //pictureValue is a dynamic var that's created here
            target_mc.onRelease = function() {
                p = this.pictureValue;
                this._alpha = 100;
                if (p == 1){
                    scrollFace_y = top;
                }else{
                scrollFace_y = currPos;
    if (loaded == filesize) {
            playVideo();
            desc_txt.text = description[p];
            Heading_name.text = Heading[p];
            picture_num();
            is_scroller_needed();
            nextImage();
            target_mc.onRollOver = function() {
                /* new code goes here */
                this._alpha = 60;
            target_mc.onRollOut = function() {
                this._alpha = 100;
        image_mcl = new MovieClipLoader();
        image_mcl.addListener(tlistener);
        image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
    function playVideo():Void {
        myVideo.skin_mc._alpha = 100;
        myVideo.skin_mc._visible = true;
        _level3.logo_mc._alpha = 0;
        myVideo.skinAutoHide = false;
        myVideo.contentPath = image[p];
        setTimeout(hideSkin, 2500);
    var tl:MovieClip = this;
    function hideSkin() {
        tl.onEnterFrame = function() {
            myVideo.skin_mc._alpha -= 1;
            if(myVideo.skin_mc._alpha <=0){
                _level3.logo_mc._alpha = 100;
                delete this.onEnterFrame;
                myVideo.skinAutoHide = true;
                myVideo.skin_mc._alpha = 100;
                myVideo.onRollOver = function() {_level3.logo_mc._alpha = 0;}
                myVideo.onRollOut = function() {_level3.logo_mc._alpha = 100;}

    i don't see a problem (with ff).

  • Workshop 8.1 and Templates Problem

    I'm trying to nest templates into templates, but apparently I cant do the following:
    <netui-template:template templatePage="masterTemplate.jsp">
    <netui-template:section name="header">
        <netui-template:template templatePage="headerTemplate.jsp">
            <netui-template:section name="tableHeader">
                <jsp:include page="header.jsp" />
            </netui-template:section>
        </netui-template:template>
    </netui-template:section>
    </netui-template:template>is there any work around? I tried using <jsp:include> but the problem is I have to create another page and then my pageflow doesnt work properly cause the buttons are in one of the nested pages....
    Any help or recommendations would be great
    Thanks
    Kane

    Apparently not supported in 8.1, but in 9 it maybe...
    http://issues.apache.org/jira/browse/BEEHIVE-260
    >
    The following enhancements have been suggested for the Template tags:
    1) The Section tag should have an attribute that would include a .JSP page instead of requiring the second to have body content. The current work around here is to put an JSP include in the body of the Sectioni tag.
    2) When using templates it is handy to create a basic template (one used for the entire site as a background, header, etc) and then possibly have another template that would be based off of that but would also add some additional information/color/shape that would be necessary for a subset of the pages but not all. [137261]
    The specialization template could provide content to the general template and also define additional content that could be filled in by specific content pages.
    For each jsp page that is going to include both templates one would have to have both in that jsp:
    <netui-template:template templatePage="./jtemplate.jsp">
    <netui-template:section name="BodySection">
    <netui-template:template templatePage="jtest.jsp">
    <netui-template:section name="leaguepage">
    //FILL in league page here...
    </netui-template:section>
    </netui-template:template>
    </netui-template:section>
    </netui-template:template>

  • OLE embedded Adobe Illustrator Artwork files not rendering properly

      I'm using BroadVision's Quicksilver.  I've attempted to embed AI Artwork
    files as OLE objects (linked and not linked), but they don't render within
    Quicksilver.  After working with their support team, they came to the
    conclusion that it was an Adobe Illustrator issue because they were
    able to reproduce the issue in Wordpad (not MS Word).
      The problem can be reproduced by the following steps (tested in Vista,
    XP, & Server 2008):
    :- Open Wordpad
    :- Click Insert -> Object -> Create From File -> Browse -> Find and select a file -> Open
      Other variations on this theme encounter the same problem, including
    pasting it from the clipboard.
      If you open a Wordpad document in MS Word and embed the OLE
    object, it saves a preview of the image which is visible from Wordpad
    if you open it later on (as long as you don't link to the original; if you do,
    and attempt to update the link, the preview image will go away).  However,
    subsequent alterations of the OLE object don't show up in Wordpad -- rather,
    the image that was rendered in Word continues to be displayed (unless, of
    course, you open it in MS Word again and re-save after the link is updated).
      It appears the support team at another company encountered a user
    experiencing the same or similar issues with their product, but on
    Illustrator CS2 as opposed to CS4:
    http://www.graphpad.com/faq/viewfaq.cfm?faq=1309
      Unfortunately, the "export to another format" workaround won't suffice.
    We're working with thousands of Illustrator artwork files that need to be
    version controlled, and other technical documents will link to the same
    Illustrator file.  When an AI file is updated, all technical documents
    need to use the altered version; linking to an exported version of the
    file just creates one more link in the chain that can create problems
    or confusion.
      Even if the version control stuff wasn't an issue, exporting to other
    formats seems rather limited.  If we export to other formats (eg, pdf)
    the images render poorly compared to what they look like in AI.
      We've tried a number of things to work around this:
    * Make sure AI [is/is not] already running
    * Rasterize paths
    * Alter the size of the image in AI
    * Alter the size of the object in the target application
    * 'Save as' with a different version of AI selected (for all versions)
    * Saving as an EPS or PDF -- the former has the same rendering issue
      as AI files; the latter renders but the drawing is blocky, probably because
      the graphics are being rendered at a very low resolution and scaled up
      after the fact.
    * Looking for or changing preferences in Illustrator that might affect it
    * Altering color scheme and various other similar settings
    * CS5 trial version -- same problem as CS4
    * Save the [wordpad] document -> close -> re-open
    * Switching between 'display as icon' and displaying the image
    * Copy & paste from various sources (from AI -> Wordpad,
      MS Word -> Wordpad, etc)
      The only way I can get it to render in Wordpad (or quicksilver for that matter)
    is if I embed the AI file in a Word/RTF document, then embed that in
    the target application (which is awfully convoluted).  Furthermore, if the
    embedded Word/RTF file links to the original file, when you open the
    document containing the embedded Word/RTF it doesn't attempt to
    update from the linked AI file, just the linked Word/RTF file.
      I'm sure there's other things we've tried to resolve this, but that's what comes
    to mind right now.
      If anyone can help with this, or clue me in that it's a bug in AI, I'd sincerely
    appreciate it.
    -Brian

    Well, no offense
    -=-=-=-=-=-=-=-=-=-=-=-=-
    None taken.  I'm helping someone else solve a technical problem, I'm just not questioning their approach; I'm not a tech writer, so I'll pass your suggestions on.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    (...) you are trying  to solve one hell of a crooked workflow on the wrong end and the one  fatal flaw being that you insist on using an office tool to create  layouts and expecting it to render print-ready documents.  That just  cannot work. Even the most stubborn tech writers I occasionally work  with, recognize the need for eventually firing this at InDesign/ InCopy/  Framemaker and associated server versions and fuse the imported RTF/  Word documents and illustrations based on template layouts, scripting  and rule-based formatting, which can all happen automnatically on a  server with the respective software.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    I was mistaken when I described how things are version controlled.  They would prefer to embed the AI images in each document and have each document be version controlled (that is, if the image changes it should /not/ affect other documents).
    However, I wasn't mistaken when I said there are thousands of already developed AI images.  The team working with these images has already procured a volume license for Framemaker and is hesitant to purchase other software unless there's no alternative, or the time savings would justify it.  I wish I could comment on the efficacy of your suggestion, but I'm not a tech writer; I'm unfamiliar with InDesign, InCopy, and FrameMaker.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    So for what it's worth, you are  probably wasting your time and resources on something that by its nature  starts out with a limited process. I'm not even sure if AI fully  supports OLE. I seem to remember having read about it not supporting  several features and commands....
    -=-=-=-=-=-=-=-=-=-=-=-=-
    -=-=-=-=-=-=-=-=-=-=-=-=-
    If we export to other formats (eg, pdf) the images render poorly compared to what they look like in AI.
    What  do you mean? If they look "bad" in Acrobat or something, then you are  simply using the wrong export settings. which is perfectly fixable.
    -=-=-=-=-=-=-=-=-=-=-=-=-
     In Acrobat the SV graphics look beautiful at any scale, but if the PDF is OLE embedded in another application it looks terrible.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    If  they look "bad" within your word documents, then we pretty much return  to what I said in the first paragraph - there's a good chance it's  simply Word rendering the artwork poorly due to its limited abilities of  dealing with graphics of any kind. I would even think that manually  changing the graphics properties would improve appearance then....
    -=-=-=-=-=-=-=-=-=-=-=-=-
    I'm not an expert on OLE; I made the [potentially bad] assumption that Acrobat would be responsible for rendering the graphic when a PDF is OLE embedded, so the application making use of the object would have limited control over the quality of the image it receives (if my assumption were correct anyway).
    I know the host process can specify whether the image is rendered as an EMF or WMF image, otherwise I know very little about the OLE API and what limitations the host process can impose.
    I'll keep tinkering to see if the PDF solution can be made to work.
    In the meantime, would anyone like to make a determination as to whether this is a real bug in AI or not?
    -Brian

  • Prob in accessing DataSourece value from netui-data:repeater after submit

    HI all,
              I am new to this WLWS. PLease guide me in the following scenario:
              I am retrieving an array of records (activityDetails[]) from a Db control and setting this to the datasource property of a netui-data:repeater. Basically I am populating a list of records in my jsp page which works fine.
              But When a submit the page, I am not able to access that array of records from the action method difined in my controller.jpf file, even though I have declared the array in the Form bean.
              And I am not sure if have set the proper datasource for the checkBox defined within the records. The purpose of this checkbox is to select the records form the list to be saved in the database. Is there any better way of achieving the same.
              It's throwing Null pointer exception in the method called
              doProcess.
              Here is the related code:
              activities.jsp
              <netui:button type="submit" tagId="btnSave" value="Save" styleClass="btn" action="doProcess"/>
              <netui:button tagId="btnPrint" value="Print" styleClass="btn" onClick="doPrint()"/>
                                       </td>
                                  </tr>
              <netui-data:repeater dataSource="{actionForm.activityDetails}" >
              <netui-data:getData resultId="pkg" value="{container.item.pkg_header_id}" />
              <tr bordercolor="#A8A8A8" >
              <%
              if (pageContext.getAttribute("pkg") == null)
              %>
              <td><netui:content value=" "/></td>
              <%
              else
              %>
              <td><netui:checkBox dataSource="{container.item.activity_id}"/>
              <%
              %>
              <td><netui:content value="{container.item.prt_no}"/> </td>
              <td><netui:content value="{container.item.activity_num}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.status_code}"/> </td>
              <td><netui:content value="{container.item.location_code}"/> </td>
              <td><netui:content value="{container.item.task_code}"/> </td>
              <td><netui:content value=" "/> </td>
              <td><netui:content value="{container.item.wpid}"/> </td>
              <td><netui:content value="{container.item.original_qty}"/> </td>
              <td><netui:content value="{container.item.act_obj_hrs}"/> </td>
              <td><netui:content value="{container.item.act_actual_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmng_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmrk}"/> </td>
              </tr>
              </netui-data:repeater>
              </table>
              </netui:form>
              </netui-template:section>
              </netui-template:template>
              Here is the .jpf file
              public class VSchedController extends PageFlowController
              * @common:control
              private custom.ConstSched constSched;
              private ActivityDetails[] activityDetails;
              * @jpf:action
              * @jpf:forward name="index" path="index.jsp"
              * @jpf:forward name = "success" path = "packageActivities.jsp"
              protected Forward begin(PackageSchedForm form) throws SQLException
              HttpSession s = getRequest().getSession(false);
              int jobID = (s.getAttribute("JOB_ID") != null) ? Integer.parseInt(s.getAttribute("JOB_ID").toString()) : 0;
              if (jobID == 0) jobID = 6;
              setActivityDetails(constSched.getAllActivities(jobID));
              form.setActivityDetails(activityDetails);
              return new Forward("success");
              * @jpf:action
              * @jpf:forward name="success" path="packageActivities.jsp"
              protected Forward doProcess(PackageSchedForm form) throws SQLException
              System.out.println("----------------------------------------");
              System.out.println("ActivityDetails is null ? " + (form.activityDetails == null));
              for(int i=0; i < 6; i++)
              try
              System.out.println("Checked -> " + form.activityDetails.activity_id);
              catch(Exception e)
              System.out.println(i);
              System.out.println("----------------------------------------");
              return new Forward("success");
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;
              * FormData get and set methods may be overwritten by the Form Bean editor.
              public static class PackageSchedForm extends FormData
              private ActivityDetails[] activityDetails;
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;

    Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
              Kunal

Maybe you are looking for