Anchor netui repeater

Hi,
Im new to netui and im using a repeater which has an anchored label. The process is to hide the sub component of the div part using netui anchor tag.
It seems that i cannot pass the value of the div within the my javascript to do the hiding and showing of the sub components
Below is my javascript code and netui code
<br>
function showHideAddProdServAndSel(cartItemCode){
var bolExpand = false;
alert(cartItemCode);
for(i=0;i<planArr.length;i++){
if(planArr==document.getElementById(cartItemCode).innerHTML){
alert("testing");
if(document.getElementById(planArr[i]).style.display="none"){
document.getElementById(planArr[i]).style.display="block";
}else{
document.getElementById(planArr[i]).style.display="none"
return false;
<!-- Html Netui code -->
<netui-data:repeater dataSource="{session.ShoppingCart.itemList}">
<netui-data:repeaterItem>
----------------------- <br>
<netui:anchor href="#" style="text-decoration: underline; color: blue;" onClick="javascript:return showHideAddProdServAndSel(getNetuiTagName('item01'));">
<netui:label styleClass="portlet-section-body-label"value="Product Type :"/><netui:label value="{container.item.productType}"></netui:label>
</netui:anchor>
<br>
<div id="<netui:content value="{container.item.cartItemCode}"/>" style="display:none">
<netui:label styleClass="portlet-section-body-label"value="Plan Name :"/>
<netui:label style="color:#996600;font-size:11px;" value="{container.item.cartItemCode}" tagId="item01">
</netui:label>
<br>
<netui-data:repeater dataSource="{container.item.packageList}">
<netui-data:repeaterItem>
<netui:label styleClass="portlet-section-body-label"value="Plan Name :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.description}"></netui:label><br>
<netui:label styleClass="portlet-section-body-label"value="Monthly :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.rate}"></netui:label><br>
<netui:label styleClass="portlet-section-body-label"value="Upfront :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.upFrontNonRecurringCharge}"></netui:label><br>
</netui-data:repeaterItem>
</netui-data:repeater>
</div>
</netui-data:repeaterItem>
</netui-data:repeater>
Message was edited by:
skylock

Hi,
You should be able to achieve this using the netui-data:getData tag.
This tag is capable of binding the value of an xScript reference to an attribute in the pageContext. Having put the value in context, you should be able to set it anywhere.
sample :
<netui-data:getData resultId="idx" value="{container.index}"/>
should place the value in pagecontext, access this by
<%
pageContext.getAttribute("idx");
%>
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/taglib/www.bea.com/workshop/netui-tags-databinding-1.0/getData.html
- Anders M.

Similar Messages

  • Netui-repeater tag

    Hi,
    I am trying to create links by using netui-data:repeater tag. But, I am getting all the links in the same line like:
    1 Link#1 2 Link#2 3 Link#3
    Can anyone let me know how can I get each value in a new line. I am adding my code here:
    netui-data:repeaterItem>
    <netui:label value="{container.item.articleID}" defaultValue=" " ></netui:label>
    <netui:anchor href="{container.item.link}" >
    <b><netui:label value="{container.item.title}" defaultValue="@nbsp;" ></b></netui:label></netui:anchor>
    </netui-data:repeaterItem>
    Thanks,
    Latha

    When you drag complex data onto jsp, Repeater wizard pops up, if you select "Next" instead of "Create", you will be prompted with different display options that you can select from like option "list" or "table" from the Data Format options.

  • Netui:repeater tags with ranges (aka prev/next)

    Is there some way to implement ranges using the <netui:data-repeater> tags? By
    ranges, I mean where you have 123 items in a list and you only display numbers
    1-50. Clicking NEXT would give you items 51-100. When you're there, clicking PREV
    would take you back to 1-50.
    Sample code would be nice. I think it could be done with the <netui:data-choiceMethod>
    tags, but what I am envisioning would be pretty ugly

    I am still stuck. I have the pager working fine. But, I have a checkbox that needs
    to be bound with the recordid. When the form is submitted after selecting records
    on multilple pages, I want to retrieve the recordids of records that were checked.
    How do I do that? A chckbox datasource can only be a one-value String property
    of a form. But, I need to save an array of ids that were checked. I am so lost.
    Please help.
    "bindu" <[email protected]> wrote:
    >
    So sorry Eddie,
    My bad I dint scroll down all the way. Thanks so much.
    Bindu
    Eddie O'Neil <[email protected]> wrote:
    John--
    Here's an example of implementing a paged repeater.
    Briefly, here's how it works:
    The entire data set (a Product[]) is stored in the JPF. When paging
    through this data set, a
    sliding window (also stored as a Product[]) is used to contain the "current"
    set of products to
    render in the page. The sliding window Product[] is of size PAGE_SIZE.
    When transitioning between
    pages, this window is recalculated for each page.
    Also calculated are the "currentPage", "lastPage", "prevPage", and
    "nextPage", which are used to
    render a pager like this:
    Page <currentPage> of <lastPage> <anchor to prevPage> <anchor to
    nextPage>
    The JPF and JSP are pretty well documented. To run the Page Flow,
    drop the JPF and JSP into a
    directory called "repeaterPaging" in an 8.1 SP2 webapp.
    There are lots of other ways this could be done (and certainly some
    that are more efficient :),
    but hopefully this helps get you started.
    Eddie
    Eddie O'Neil wrote:
    John--
    Yep, I did promise that, and nope, it hasn't been done yet. :)
    But, thanks for calling me on it.
    Will try to do that and distribute it to the list in the next fewdays.
    Eddie
    John H wrote:
    Eddie,
    You mentioned putting together an example of paging a repeater in
    this
    thread.
    Did you ever get a chance to put one together? Would really loveto
    see it if
    you did.
    Thanks,
    John
    Eddie O'Neil <[email protected]> wrote:
    Jan--
    We're talking about adding a pager to the repeater in a future
    release of Workshop, but I don't believe that it will appear inan
    8.1
    service pack.
    Additionally in 8.1, we are not exposing a NetUI tag SDK.
    That being said, it isn't that difficult ot build a pager from
    scratch with the <netu:anchor> / <netui:parameter> tags and a little
    code in a JPF.
    You'd want to have "prev" and "next" actions in the JPF to which
    anchors in the JSP are bound. Then, you can keep track of the "current"
    page in the URL and build the previous and next page indices fromthe
    value that is availble in the request. Finally, create an intermediate
    data structure that contains the data to display in the "current"page
    and bind the repeater to this data structure. You'd build the contents
    depending on whether the prev or next links were clicked. For example,
    if your data set has 100 items in it and you only want to displayitems
    20-29, you'd be on page 2 (depending on whether you start countingat
    0 :) and the intermediate list would contain exactly these items.
    Might sound complicated, but I think this would work out prettywell.
    Hope that helps...
    Eddie
    Jan Noppen wrote:
    Are there any plans to include the pager tag with the repeater
    in
    the
    next service packs or releases of WebLogic?
    If not, is there a way to build on the netui:taglibs to extend
    their
    functionality?
    I know the grid has paging functionality but it ties you to rowsetsfor input, whereas the repeater is much more flexible.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui-data:declarePageInput name="displayProducts" type="repeaterPaging.Controller.Product[]"/>
    <netui:html>
    <head>
    <title>Paging with the Repeater</title>
    </head>
    <body>
    <p>
    <b>Paging with the Repeater</b>
    >>
    >> <!-- Pager Text -->
    <netui:label value="Page {request.currentPage} of {request.lastPage}"/>
    <!-- Previous page anchor -->
    <%if(request.getAttribute("prevPage") != null) { %>
    <netui:anchor action="page">
    Previous
    <netui:parameter name="_page" value="{request.prevPage}"/>
    </netui:anchor>
    <% } else {%>
    <!-- don't render the anchor when there is no previous
    page -->
    <netui:label value="Previous"/>
    <% } %>
    <!-- Next page anchor -->
    <% if(request.getAttribute("nextPage") != null) { %>
    <netui:anchor action="page">
    Next
    <netui:parameter name="_page" value="{request.nextPage}"/>
    </netui:anchor>
    <% } else {%>
    <!-- don't render the anchor when there is no next page
    -->
    <netui:label value="Next"/>
    <% } %>
    >> <!-- display the current window into the data set -->
    <netui-data:repeater dataSource="{pageInput.displayProducts}"
    ignoreNulls="true">
    <netui-data:repeaterHeader>
    <table class="tablebody" border="1" width="60%">
    <tr class="tablehead" valign="top">
    <th width="30%">Product ID</th>
    <th>Name</th>
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr valign="top">
    <td align="center"><netui:label value="{container.item.id}"
    defaultValue=" "></netui:label></td>
    <td><netui:label value="{container.item.name}"
    defaultValue=" "></netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>
    </p>
    </body>
    </netui:html>
    package repeaterPaging;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    * @jpf:controller
    * @jpf:forward name="success" path="index.jsp"
    * @jpf:forward name="page" path="page.do"
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not
    recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/repeaterPaging/Controller.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="80" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:page.do">
    * <property value="120" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:index.jsp@#@action:page.do@">
    * <property value="204,180,180,156" name="elbowsX"/>
    * <property value="81,81,92,92" name="elbowsY"/>
    * <property value="West_0" name="fromPort"/>
    * <property value="East_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property value="240" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#index.jsp"/>
    * <pageflow-object id="forward:path#page#page.do"/>
    * </view-properties>
    public class Controller extends PageFlowController
    // number of items to show on a single page
    private static final int PAGE_SIZE = 5;
    // URL parameter key for the value that will store the current page
    private static final String PAGE_PARAM_KEY = "_page";
    // Array to hold the entire data set
    private Product[] products = null;
    * Forward to the "page" action to set-up the first page of
    * data to display in index.jsp.
    * @jpf:action
    protected Forward begin()
    return new Forward("page");
    * Change the page of data that is displayed in index.jsp. This
    action
    * is used if paging to either the previous or to the next page.
    * @jpf:action
    protected Forward page()
    Forward f = new Forward("success");
    page(f);
    return f;
    * Implement data set paging. This method uses a simple _page paramater
    on the URL
    * to indicate the correct "page" to display when "Prev" or "Next"
    are clicked
    * in the JSP. The key principle at work here is a sliding window
    of size PAGE_SIZE
    * that is moved forward and backward through the complete dataset.
    This window
    * contains the set of items to render for a single "page" in the
    repeater. As
    * the current page changes, this window (an array of size PAGE_SIZE)
    is
    * reconstructed.
    * The pager consists of three parts:
    * - a simple "Page # of #" label
    * - a previous anchor that is enabled when there is a previouspage
    * - a next anchor that is enabled when there is a next page
    * To render a "page" of data, the _page parameter is convertedfrom
    a String
    * to an int. Using the page integer, the start and end of a window
    into the
    * complete data set is calculated. This windows slides back and
    forth along the
    * data set in PAGE_SIZE increments depending on the value of the
    current page.
    * In this case, with a PAGE_SIZE of 5 and data set size of 17,the
    possible windows
    * are:
    * products[0] -> products[4]
    * products[5] -> products[9]
    * products[10] -> products[14]
    * products[15] -> products[16]
    * Thus, the lastPage value is 4, which is calculated with the Math.ceil(...)
    * call below.
    * Given the start and end of this window, a temporary array ofsize
    PAGE_SIZE
    * is created to hold references to the items that should render
    from the complete
    * data set. This array is passed to the page as a JPF page input
    and is rendered
    * with the <netui-data:repeater/>.
    * Finally, four additional values are made available to the page
    in the request
    * and are used to render "Page # of #" and to provide parameters
    to anchors that
    * will display the previous and next pages:
    * - Page # of # -- the first # is "currentPage" and the second#
    is "lastPage"
    * - prevPage -- the int value of the previous page. If there is
    no previous page,
    * this value is null in the request
    * - nextPage -- the int value of the next page. If there is no
    next page, this value
    * is null in the request.
    * Notes:
    * - In order to have multiple repeaters on a page operating independently,
    * the "_page" parameter would need to change to include a namespace
    that
    * would be used when finding the current page for a data set.
    * - This JPF is implemented with a single "page" action that performs
    both
    * next and previous paging. This could also be implemented with
    "prevPage" and
    * "nextPage" actions that implement additional logic that runs
    on the previous
    * and next transitions.
    * - No real error checking is done to ensure that the PAGE_SIZE
    is greater than 0.
    * Handling errors:
    * - If parsing _page from the request fails to convert to an int,
    a NumberFormatException
    * is shown in the console and the first page will is used.
    * - If the current page value is greater than the number of pages,
    the last page will
    * be displayed.
    private void page(Forward f)
    assert PAGE_SIZE > 0;
    // calculate the last page
    int lastPage = (int)Math.ceil((float)products.length / (float)PAGE_SIZE);
    int currentPage = 1; // default page is page 1
    Product[] displayProducts = new Product[PAGE_SIZE];
    String currentPageStr = getRequest().getParameter(PAGE_PARAM_KEY);
    if(currentPageStr != null)
    try
    currentPage = Integer.parseInt(currentPageStr);
    catch(NumberFormatException nfe)
    nfe.printStackTrace();
    // continue with a current page of 1
    // ensure the current page is not greater than the number
    of pages
    if(currentPage > lastPage)
    currentPage = lastPage;
    // index into the entire data set at which the window starts
    // page indices are 1 based, adjust to be 0 based for accessing
    // the Product[]
    int start = (currentPage-1) * PAGE_SIZE;
    // index into the entire data set at which the window ends or
    the index
    // of the last item when rendering the last page
    int end = (currentPage != lastPage ? start + PAGE_SIZE : products.length);
    // fill-up the set of Product objects to render up to PAGE_SIZE
    // but don't run off the end of the products array
    for(int i = 0; i < PAGE_SIZE && (start+i < products.length);
    i++)
    displayProducts[i] = products[start + i];
    // set the previous page
    int prevPage = currentPage-1;
    if(prevPage > 0)
    getRequest().setAttribute("prevPage", new Integer(prevPage));
    // set the next page
    int nextPage = currentPage+1;
    if(nextPage <= lastPage)
    getRequest().setAttribute("nextPage", new Integer(nextPage));
    // set the current and last pages in the request in order to
    show "Page # of #"
    getRequest().setAttribute("currentPage", new Integer(currentPage));
    getRequest().setAttribute("lastPage", new Integer(lastPage));
    // set the current window in to the data set as a page input
    f.addPageInput("displayProducts", displayProducts);
    return;
    * Initialize a simple, sample data set that contains
    * 17 products with IDs running from 1-17 and text "Widget 1" to
    * "Widget 17".
    public void onCreate()
    int size = 17;
    products = new Product[size];
    for(int i = 1; i <= size; i++)
    products[i-1] = new Product("Widget " + i, i);
    * Simple JavaBean that contains production information.
    public static class Product
    implements java.io.Serializable
    private String name;
    private int id;
    public Product(String name, int id)
    this.name = name;
    this.id = id;
    public String getName() {return name;}
    public int getId() {return id;}

  • Netui:repeater + map

    Hi,
    I have a problem with the repeater netui tag. I have a Map (containing
    String objects) that should be presented as a table like this:
    key1     string1
    key2     string2
    key3     string3
    I tried to find a solution in the workshop docs, and dev2dev, but
    couldn't find any useful things.
    If I use a Map as the dataSource is it possible to get the key of the
    actual item somehow?
    Thanks,
    don

    You could also create a wrapper around the HashMap to get to the
    functionality you require.
    don wrote:
    Eddie,
    Thanks for the quick response. Right now we usually use <c:forEach ...>
    for this, but had problems with netui inputs, but this trick can help.
    Thanks again,
    don
    Eddie O'Neil wrote:
    Don--
    Unfortunately, there isn't a great way to do this in 8.1. When the
    repeater renders a Map, it is rendering the values from the map and
    you don't really have access to the keys.
    If you can't change the data structure from a Map, you can always
    render the map by using Java scriptlet, putting the key and value in
    the page context, and using expressions like:
    {pageContext.key} and {pageContext.value.aProperty}
    to access data that originally came from the map.
    Apologies that there isn't a more elegant solution here...
    Eddie
    don wrote:
    Hi,
    I have a problem with the repeater netui tag. I have a Map
    (containing String objects) that should be presented as a table like
    this:
    key1 string1
    key2 string2
    key3 string3
    I tried to find a solution in the workshop docs, and dev2dev, but
    couldn't find any useful things.
    If I use a Map as the dataSource is it possible to get the key of the
    actual item somehow?
    Thanks,
    don

  • How to anchor two repeating frames

    I have a tabular report with two queries, one as a parent frame and the other as a child frame.
    The master query is like a query displaying employees tables with some restricions.
    The child query is like displaying all employees that their manager_id is the employee_id in the master query, the report will be like this as a simpliciy :
    employee_id manager_id
    1 50 master record
    15 1 child record
    19 1 child record
    2 22 master record
    no records found no child records found
    5 14 master record
    44 5 child record
    I Merged the child frame into the parent frame to group the data as above , and it is working fine, i want to delete the boilerplate (no records found) , when i do this i get a space between the master frames (in case that no child records found) which i want to remove.
    I'm trying to make a collapsing anchor between the two frames but i can't.
    How can i solve this problem please ?

    Possible solutions that may or may not work:
    Try the "Vertical space between frames" property instead of creating a space in the layout editor. Set it to a value. If the frame is not printed, you don't have the vertical space.
    Instead of a frame space, create a field with a formatting trigger. If there are no records than return FALSE in the trigger.

  • Netui Repeater tag not displaying any data

    I have a very strange problem. I have a pageflow application that deals with collections and displays them using repeaters on jsp pages.
    My problem is that there is one specific page that does not want to display the collection im populating in the pageflow.
    I pass the data source as {pageFlow.collection} and it is acting as if the collection were empty, even though I have checked it not to be up to the line before the repeater declaration.
    Has anyone faced a problem like this?
    I need help.
    J

    Hi,
    check the binding of your application. The form should show data right away and not only after the navigation buttons are pressed
    Frank

  • Error in form submit through netui:anchor tag onClick event

    Hello,
    I am working on a portal application. Below is my jsp code of a simple search screen. The search parameter is customername.
    <netui:form action="searchCustomer" style="form" tagId="myForm">
    <netui:textBox dataSource="{actionForm.customerName}"></netui:textBox>
    <netui:anchor onClick="sayHello(); return false;" styleClass="button" action="searchCustomer" formSubmit="true"> Search</netui:anchor>
    </netui:form>
    I have an onClick event as I want to implement some customer logic on click of the anchor tag.
    function sayHello(){
    // customer implementation here
    document.forms[getNetuiTagName("myForm",this)].method="POST";
    document.forms[getNetuiTagName("myForm",this)].action="/searchCustomer.do";
    document.forms[getNetuiTagName("myForm",this)].submit();
    In the searchCustomer method of the controller, the form has zero parameters. The customerName has null value.
    Can anyone tell me what am I doing wrong here.
    Any help is appreciated.
    Thanks
    Manju

    I also want to add a confirm() dialog before submitting. However, setting the onClick handler overrides the one generated when formSubmit="true". I worked around this by calling the generated function directly:
    <... onClick="if (confirm('[msg]')) { anchor_submit_form(getNetuiTagName('[formName]'), this.href) } return false;">
    Where [msg] is the message to display and [formName] is the name of the form containing the anchor.
    Hope this helps someone.

  • Netui anchor tag in netui:form

    I have some code like following:
    <netui:form action="action1" >
    <netui:anchor action="action2">Check</netui:anchor>
    </netui:form>
    Action1 and action2 willl be finally redirected to the same JSP(for example one.jsp).
    The weird thing is that: according to log output, it seems that one.jsp has been hit twice when user click "check" link.
    Is it possible that when user click "check" link, weblogic not only trigger action2 but also trigger action1? forsubmit attribute is not set to true explicitly for netui:anchor tag.
    Thanks in advance

    hi
    verify from a browser trace tool (e.g. livehttpheaders, fiddler or firebug) how many requests your browser is making. (or you can inspect the code that portal generates in the HTML). Once we have determined whether its the browser making the two requests or something on the server, we can see if there are workarounds.
    regards
    deepak

  • Netui-data:repeater tag error

    hi ,
    While using the netui repeater tag and am getting this
    ERROR [11:45:10] (Logger.java:190) - Caught exception when evaluating expression
    "{container.item.id}" with available binding contexts [actionForm, pageFlow, gl
    obalApp, request, session, appication, pageContext, bundle, container, url, page
    Input]. Root cause: com.bea.wlw.netui.script.xscript.UnsupportedContextOperation
    Exception: A java.util.List types can not be indexed with a String with value "id"
    any ideas why ? also the same code works elsewhere

    hi there,
    Its been resolved now , was a code error , it was actually using the wrong object.
    thanks anyways

  • Netui-data:repeater for haspmap?

    Could someone advise me how to iterate through a hashmap using netui repeater to display the keys and values on jsp page.
    Here is my code:
    HashMap Structure:
    Key                          Value
    Question Label          List<AnswerBean>
    JSP Code:
    <netui-data:repeater dataSource="pageFlow.surveyForm.surveyAnswers">   // this returns the Map<QuestionText, List<AnswerBean>> , Answers contains answer Id and answer Text.
        <netui-data:repeaterItem>
               <netui:span value="${container.item}"/> //display the question text
                <netui-data:repeater dataSource=""> // here i want to iterate through the values (List<AnswerBean>)
                       <netui-data:repeaterItem>
                                <netui:span value=""/> // here i want to display the answer (answerBean.answerText)
                       </netui-data:repeaterItem>
                </netui-data:repeater>
        </netui-data:repeaterItem>
    </netui-data:repeater>Appreciate your help.
    Thanks

    Thanks Deepak for your suggestion. Now i am able to retrieve the keys from the hashmap.
    Could you please advise me what is wrong with the below code to retrieve the values?
    // my entry set : Set<Entry<String, Collection<SurveyAnswer>>> converted from HashMap<String, Collection<SurveyAnswer>>
    <netui-data:repeater dataSource="pageFlow.surveyForm.surveyAnswers">
         <netui-data:repeaterItem>
              <netui:span value="${container.item.key}"/>
              <netui-data:repeater dataSource="container.item.value">
                   <netui-data:repeaterItem>
                        <netui:span value="${container.container.item.surveyQuestionLabel}"/>
                   </netui-data:repeaterItem>
              </netui-data:repeater>
         </netui-data:repeaterItem>
    </netui-data:repeater>
    I get the below error:
    javax.el.PropertyNotFoundException: The class 'java.util.HashMap$Entry' does not have the property 'surveyQuestionLabel'.
    surveyQuestionLabel property does exist in SurveyAnswer.

  • Netui:anchor href

    Hi,
    I tried to append the context path in front of the link using anchor:
    <netui:anchor href="<%=request.getContextPath()%>/..." >
    But it seems that anchor takes it as is.
    java.net.URISyntaxException: Illegal character in path at index 32: /appmanager/myPortal/<%=request.getContextPath()%>/......
    at java.net.URI$Parser.fail(URI.java:2752)
    at java.net.URI$Parser.checkChars(URI.java:2925)
    at java.net.URI$Parser.parseHierarchical(URI.java:3009)
    at java.net.URI$Parser.parse(URI.java:2967)
    at java.net.URI.<init>(URI.java:574)
    at com.bea.wlw.netui.pageflow.util.TemplateHelper.setUrl(TemplateHelper.
    java:371)
    How can I code the link? Thanks

    Hi
    I tried
    <netui:anchor href="${pageContext.request.contextPath}/index.jsp" value="Click"/>
    and it seems to work
    Vimala-

  • Netui:radioButtonGroup and Repeater tag

    I wish to use a NetUI radio group and radio options with values poplulated from
    a NetUI repeater.
    But the radio option complains that it has an invalid parent tag if the repeater
    is place between the group and the option (so as to have one group with many options
    populated by the repeater).
    The simple solution would to remove the repeater and code the loop by hand but
    this seems a little inelegent.
    Any suggestions?
    <snip>
    <netui:radioButtonGroup dataSource="{actionForm.organisationID}">
    <netui-data:repeater dataSource="{session.matchingOrgs}">
    <netui-data:repeaterItem>
    <p>
    <ol>
    <li>
    <!--gives error as radioButtonOption has Invalid
    parent tag-->
    <netui:radioButtonOption value="{container.item.id}"><netui:label
    value="{container.item.organisationName}"></netui:label></netui:radioButtonOption>
    </li>
    </ol>
    </p>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    </netui:radioButtonGroup>
    </snip>

    I wish to use a NetUI radio group and radio options with values poplulated from
    a NetUI repeater.
    But the radio option complains that it has an invalid parent tag if the repeater
    is place between the group and the option (so as to have one group with many options
    populated by the repeater).
    The simple solution would to remove the repeater and code the loop by hand but
    this seems a little inelegent.
    Any suggestions?
    <snip>
    <netui:radioButtonGroup dataSource="{actionForm.organisationID}">
    <netui-data:repeater dataSource="{session.matchingOrgs}">
    <netui-data:repeaterItem>
    <p>
    <ol>
    <li>
    <!--gives error as radioButtonOption has Invalid
    parent tag-->
    <netui:radioButtonOption value="{container.item.id}"><netui:label
    value="{container.item.organisationName}"></netui:label></netui:radioButtonOption>
    </li>
    </ol>
    </p>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    </netui:radioButtonGroup>
    </snip>

  • Force the Summary Sub totals on same page as the Repeating Group

    Hello folks,
    I have a Group by Left Report where I am showing Patients and the Visits that they have taken for each Department.
    I am then doing a Sub Total of the number of Visits the Patient has taken. I would like to make sure that the sub total shows
    up on the same page as the data in the Repeating Group. I tried using an Anchor but the Report does not like it.
    It gives an Error: REP 1213 - Field references column at a frequency below its group when I anchor from Repeating frame to the sub total footer
    and REP 1814 Report cannot be formatted. Object 'Horizontally' can never fit within 'M_1' when I try to anchor the other way.
    My goal is to show the Sub Totals (Total) on the same page as the Patient and not go to the next page. I have enclosed the single dashed line and the Total (Label and field) in a Frame.
    Output of Report:
    Patient ID     Patient Name              Department              Visit
    ======================================================================
    1001           Mary Poppins              Department 001              3
                                             Department 002              4
                                             Department 003              1
                                             Total                       8
    1002           Peter Pan                 Department 001              2
                                             Department 002              1
                                             Department 003              2
                                             Total                       5
                                             -----------------------------Thanks in advance!

    Pls set the property(page protect of the frame containing both sub total and patient details) to yes.

  • How to generate netui controls at run time through some action in pageflow

    Hi,
    I want to create a dynamic table on jsp but don't want to create any control in design time. I will pass some query to the database and no. of textboxes should be created automatically based on the no. of field in result.
    Could you please help me in achieving this?
    Thanks in advance.
    Alka

    I know this but I don't want to write <netui:repeater> tag in jsp page at design time. I want to write some code in an action of page flow which will create that repeater programmtically and will set all it's properties accordingly.
    Initially my jsp page will not contain any netui control even I want to do this at run time through some coding. Is there any way to do this?
    Did you get what I want to do?

  • Relative positions of repeating frames

    Hi,
    I have two repeating frames in a report with the page direction of the first set to 'Down/Across'. I want the second repeating frame to print following the first frame(if the first frame ends halfway thro the second column in the page, i want the second frame to start right there). Your ideas are appreciated.

    How about anchoring the repeating frames together?

Maybe you are looking for