Netui-Grid Tag

In the netui-grid tag, the grid accepts a rowset as an input dataset. If the data
in the database is large, then will using the netui-grid be a memory hog ? Or
is there a way to limit the number of rows retreived ? Or does the data-grid
pull the data as and when the next link is clicked in the table (loads the data
only when needed ?
Please let me know. Thank you in advance.
Uday

Udayraj--
That's a good question.
As with many data sets, you'll want to make sure to row-limit what
comes back from the database. Whether returning RowSets or an array of
beans, large data sets will consume memory especially when running under
heavy load.
The NetUI grid tags do not use database cursors or paging to fetch
data on-demand through a RowSet. A RowSet is a disconnected ResultSet
and contains all of the data that was returned in the ResultSet from
which it was created. So, if the ResultSet returns with 10,000 rows,
the RowSet will contain those rows. The tags "page" through the data
by rendering only a sliding window of the entire RowSet.
If you'd like to row-limit a data set returned from the DB control,
set the "max-rows" attribute in the @jc:sql annotation for a method.
For more info, see the docs for this annotation:
http://edocs.bea.com/workshop/docs81/doc/en/workshop/javadoc-tag/jc/sql.html?skipReload=true
Hope that helps.
Eddie
Udayraj Nair wrote:
In the netui-grid tag, the grid accepts a rowset as an input dataset. If the data
in the database is large, then will using the netui-grid be a memory hog ? Or
is there a way to limit the number of rows retreived ? Or does the data-grid
pull the data as and when the next link is clicked in the table (loads the data
only when needed ?
Please let me know. Thank you in advance.
Uday

Similar Messages

  • Disappearing netui-data tags (workshop applications)

    hoping there are a couple WLS workshops users on this forum....
    This is a rather WLS Workshop problem that I have posted on the BEA forums but haven't got a response there.
    Basically, my netui-data tags aren't displaying pageFlow data (underlying rowset, string array objects) after being deployed on a test single-domain server. I am developing with v8.1 on Windows XP then building an EAR and deploying into a WLS instanse running v8.2 on Solaris.
    Have both grid and repeater tags which according to the logs (DBControl information is successful) should get valid pageFlow objects as a dataSource. I can return pageFlow RowSet data to select tags (plain netui tags) without problem but anything that is netui-data never gets presented (except for the pager labels assigned to grids).
    Maybe the error is due to deploying from v8.1 to v8.2 (fails as well with v8.3)?
    The deployed EAR containing all of the necessary WLS netui jar files and tld packages.
    Maybe the error is due to a config.xml miss?
    appreciate the help / matthew

    error was due to mismatch between versions on unix/windows machines. the application generated from v81 ought to be compatably on v82/v83 but for some reason the JDBC metadata has changed between releases. / matthew

  • Deploying applications with grid tags

    developing with WLS 8.1 on Windows then deploying to WLS 8.3 on Solaris...
    Everything deploys fine when migrating my workshop application from development to a test single-domain server. And the DBControls against a MySQL database work fine. However, data returned (relational) to a grid (netui data bindings) object never gets returned or displayed. No idea why. Must be either something in the config.xml that is missing or a bug when deploying from 8.1 to 8.3 on different OSs.
    Any clues???
    / Matthew

    another thing...
    Same problem happens with repeater tags (another netui-databinding). Yet using the select tag (netui) data returned via a pageflow reference from a DBControl:er is returned without problems. Checked the WEB-INF/lib directory to make sure the netui-tar-databinding.jar was present. It is. And the tld package is also there.
    Also, took the build Ant xml file used to generate the single-server on Solaris and ran it on my Windows machine. Deployed the application (ear) and data is returned into grid tags. Must be some setup difference or missing jar file.
    When generating a single-server I use the setWLSEnv.cmd/sh script to setup environment variables and to run the server the startWeblogic.cmd/sh which are pre-made.
    Get one error on the Solaris instance which doesn´t appear when running on Windows. The WLW says there is an unknown database found ("databas name = MySQL, database driver name = MySQL-AB JDBC Driver"). Not sure why this error is logged since the non netui-data tags like select can return data from the underlying MySQL connection.
    / Matthew
    Message was edited by young_matthewd at Oct 31, 2004 11:28 AM

  • 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;}

  • Changing the formate provided by netui:pager tag

    Hi,
    i m using <netui:pager> tag. by default it provides the format:
    Prev Page A of B Next format.
    I want to change it to something like: Prev 1 2 3...Next ..
    how do i do this
    thanks
    akash

    Akash--
    Unfortunately, this feature isn't available with the 8.1 grid.
    Depending on what you're using the grid for, you might consider using a repeater and implementing
    your own pager whose format you've got more control over. See the
    weblogic.developer.interest.workshop newsgroup for more information.
    Apologies for the limitation...
    Eddie
    Akash wrote:
    Hi,
    i m using <netui:pager> tag. by default it provides the format:
    Prev Page A of B Next format.
    I want to change it to something like: Prev 1 2 3...Next ..
    how do i do this
    thanks
    akash

  • Netui: anchor tag with target attribute.

    I am using the netui:anchor tag inside an iframe to post to an action. But the
    resulting page is displayed within the iframe. Will the target attribute of the
    netui:anchor tag help solve the problem. What is a valid value of the target
    attribute.
    thanks,
    Shankar

    does the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
    If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
    regards
    deepak

  • Set selected in netui:select tag

    Hi, all
    I wonder how to set the selected item after come back from server. I have
    --- jsp
    <netui:select dataSource="{actionForm.personStr}" optionsDataSource="{actionForm.personOptionsHashMap}" defaultValue="-- select one --">
    --- server (.jpf)
    form.setPersonStr(form.getPersonStr());
    form.setPersonOptionsHashMap(hashMap);
    So when screen come back, it has selected duplicated at bottom of the selection. Is there a way like normal html select behavior ?
    Thanks inadvance for any inputs.

    Murthy,
    Unfortunately, though a very reasonable requirement, there is no option for
    placing the default item.
    - john
    "Murthy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am using <netui:select dataSource="{actionForm.xyz}" defaultValue="Any"optionsDataSource="{actionForm.someMap}"
    />
    Now I am getting the values from database to populate the dropdown usingthe optionsDataSource.
    As I am using the defaultValue, it is being added to the end of thedropdown and
    selected by default when I a mopening the page on browser.
    In my dropdown, the values are as follows:
    apple
    orange
    banana
    Any
    Now my requirement is, the defaultValue, Any, must be there at the top ofthe
    list instead at the bottom of thge dropdown values. i.e., In the abovelist, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

  • Netui:fileUpload tag and unicode

    when i attach files using netui:fileUpload tag, korean file names are broken.
    charset of my jsp page is UTF-8.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    chinese and japanese can be used, so default charset can not be changed to EUC-KR.
    but other data of netui:textBox or netui:select are normal.
    and when using normal html tag(<input type="file">), that file name is normal.
    how can i solve this problem..?
    in advance, thanks~

    when i attach files using netui:fileUpload tag, korean file names are broken.
    charset of my jsp page is UTF-8.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    chinese and japanese can be used, so default charset can not be changed to EUC-KR.
    but other data of netui:textBox or netui:select are normal.
    and when using normal html tag(<input type="file">), that file name is normal.
    how can i solve this problem..?
    in advance, thanks~

  • 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:content tag not outputting values

    I am trying to output some data using the <netui:content tag in a page flow. I have a form that calls a controller which then calls a jsp. I've tried numerous scopes and all of them behave the same:
    <p>-- Controller Code Snippet:</p>
    // FOR PAGE FLOW SCOPE<br>
    this.participant = participant; <br><br>
    // FOR SESSION SCOPE<br>
    getSession().setAttribute("participant", participant);<br><br>
    // FOR REQUEST SCOPE<br>
    this.getRequest().setAttribute("participant", participant); <br><br>
    -- JSP CODE --<br><br>
    // FOR PAGE FLOW SCOPE<br>
    <p>PageFlow: <netui:content value="{pageFlow.participant.getCardAccount().getStatus()}"/></p>
    // FOR SESSION SCOPE<br>
    <p>Session: <netui:content value="{session.participant.getCardAccount().getStatus()}" /></p>
    // FOR REQUEST SCOPE<br>
    <p>Request1: <netui:content value="{request.participant.getCardAccount().getStatus()}" /></p>
    -- Resulting HTML --<br><br>
    PageFlow: <br>{pageFlow.participant.getCardAccount().getStatus()}<br><br>
    Session: <br>{session.participant.getCardAccount().getStatus()}<br><br>
    Request1: <br>{request.participant.getCardAccount().getStatus()}<br><br>
    -- Only solution that works so far --<br><br>
    <%Participant participant = (Participant) session.getAttribute("participant"); %><br>
    <%=participant.getCardAccount().getStatus()%> <br>
    <p>I am new to portal, so I must be missing something very simple. Any help would be appreciated</p>

    Hello
    If you want to show the subvi values in main vi front panel while subvi is running, you will have to pass references to front panel indicators to the subvi . Search "references" in labview examples to learn how to use them.
    If not, the from panel indicatos will be updated when subvi stops running.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Netui Anchor Tag

    Can we use href and action attribute in netui:anchor tag both at a time...*href* is for opening a modal dialog and action is page flow action

    does the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
    If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
    regards
    deepak

  • Netui:select tag

    Hi,
    I have a netui:select tag. When the user selects an option, I want it to execute
    the form's action (instead of having users to click a submit button).
    How do you do this?
    Thanks
    Laxman

    Hi,
    I think you can add a submit() javascript to the onselect action of the
    select tag. When the user selects a value the form will be subitted that
    means the form's action will be executed.
    BR,
    don
    Vangarapu Laxman wrote:
    Hi,
    I have a netui:select tag. When the user selects an option, I want it to execute
    the form's action (instead of having users to click a submit button).
    How do you do this?
    Thanks
    Laxman

  • Netui:fileUpload tag ???

    Does anyone know how to use the netui:fileUpload tag. When I try to use it I get
    the error:
    NETUI ERROR: Unable to update expression "{actionForm.theFile}" with the value
    [CHANGES.txt]. The typical cause is that the object represented by the expression
    is not available or is the wrong type for updating.
    I set the "accept" attribute in the netui tag field, which I think is a very bad
    idea since I want to upload any type of file. I don't want to specifiy a mime
    type. So I tried a specific one then the octet-stream one. The JSP page when
    displayed doesn't even change when you set the "accepts" attribute.
    I had this working in 8.1 beta going around the form posting and using the O'Reilly
    classes but 8.1 GA blows up now. So I am trying to use the netui tags but I get
    the error above.
    Any help??
    Thanks.

    Raj,
    Thanks for the files but they don't have anything in them refering to the file
    upload. They don't have any custom code at all. I think you sent the wrong files.
    Mark
    "Raj Alagumalai" <[email protected]> wrote:
    Mark,
    Attached are sample jsp and jpf files which use the NetUI upload tag.
    Hope this helps.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Mark" <[email protected]> wrote in message
    news:[email protected]...
    Does anyone know how to use the netui:fileUpload tag. When I try touse
    it I get
    the error:
    NETUI ERROR: Unable to update expression "{actionForm.theFile}" withthe
    value
    [CHANGES.txt]. The typical cause is that the object represented bythe
    expression
    is not available or is the wrong type for updating.
    I set the "accept" attribute in the netui tag field, which I thinkis a
    very bad
    idea since I want to upload any type of file. I don't want to specifiya
    mime
    type. So I tried a specific one then the octet-stream one. The JSPpage
    when
    displayed doesn't even change when you set the "accepts" attribute.
    I had this working in 8.1 beta going around the form posting and usingthe
    O'Reilly
    classes but 8.1 GA blows up now. So I am trying to use the netui tagsbut
    I get
    the error above.
    Any help??
    Thanks.begin 666 netuiupload.zip
    M4$L#!!0````(`(YJ^2YX/E_V] $```(&```.````0V]N=')O;&QE<BYJ<&:]
    M5%UKVS 4?0_X/]PY+VVHY2:4K'/3$1@K>^S#8-O3D*/K1)DL&5FN4\;^^R3+
    M'\2#N5 V81OY^IRK<^6KP_-":0,[E9,4*:E%322:BI."[C$3JB:/=O)@)Q^4
    M-%H)@?HNF/%)VH/2-=7,8H-9O%@$,UC YP,OP5[F@, PHY5P*;JTD"D-%%)!
    MY0^H,05:%(+OJ.%*$L=O<FR/198,I"'VQ+&."JT*U(9C":/W)&F@FS=1Y'4P
    M:J@30RNCHCU*U-0@(_")2A8AXX;+O55J$27NG 8'ELJ 1EMVCI(Y=!2]]WE'
    MR_FH&YMN2R*5'FTFX.P^I$W&),4]EX2I<(![BL_S#)+F>!^>0GBBHK*S]748
    M_QW[W&-OS[";>*1C0J&+)=P6>2+'LGBQP-7J_RI$K97^=PJ7ZU=)S/PA2 IJ
    M#O-F,^?]ELZWHR;83I2 (E5U^:W7]G9UU5U3!7GJUY[Z;GVUO+GV]^W-%-NH
    M1WO8>_(7+,WWY10ITRH_HWVD+Z$)FJ+H.<UFO;9'7"R)!_LBUBVZG)MX?&Z]
    M3\3!K*A2ZSZP$[0L86 #GHP]^R7\Z8O![*?EVN']SHW6F_R?/H^UO='6[2L%
    MURCM2]/4'27V$ZO3V-*006NOT#3/Q:7_W"[OAK9NK"5(K#OH1;O&Y9U'_7+.
    M;!^_`5!+`P04````" ".:ODN#^7C>H$!``#P`@``"0```&5R<F]R+FIS<(52
    MRT[$, R\(_$/IA(2'-JN."&VNX(#< $)B<>>D\;;!K))29Q]"/'ON*]%("1N
    MCCTS=NPICM+T%BUZ0:A [F"!\LY5NH2%\V^A=DV:S@\/BN-+:$2%8(2M(@>S
    MY%6L10*ELX26GG8-IPBWE->T,M.R%CX@S9Z?;M+S!'2X]M[YAXY(/F)R/(B2
    MJ(R6$+V>)18IZI0S(56"A-16:5ME9%0"C<>EWHZ8MOR?1#O'']S_:(2KQO R
    M_FH[UGJ-+G?1MN$70%&C4%W$,6DR..\^7>3]H\/D>U AG=J-\&8(`*XL8,N"
    M6@1P91F]1W4QP/(15TCCRK?WZ CWS&$>(R0:6 L3>=4?'M\C!LHZS7L,@2_P
    MF8#"I8B&7GI4`OFWBO3Y;TG<EMB0=C8`&V(SR R'W'.+-=0G.B6.0_5L4)
    M-AT\NA6"]&X3T ?8:&/ .@*E`^]X!U3KT%LN6L,=.8'@,30\!D(@03&P^Q2R
    MN>!L,LE@,.H>E+$!'SO<"==/I]!>[0M02P,$% ````@`CFKY+K&O$4#E````
    MR@$```D```!I;F1E>"YJ<W"%4$%.PS 0O"/QA\52C\97!$Y5+G!!B$-1S^MX
    M20RN;24;:'Z/DSI(2)%Z&\_LS*Q7WTCY3($Z9+)@1CB0>8F-J^$0NZ^^C4G*
    M[?65WNP@84/@,31#!I7XQ&\44,? %'@_IDPQG5BU?/0/=8M=3UR][Y_DG=B4
    M!,;&.P-#YRH1B <G,]-+BXS&!>M"<\O>"D@=?;C3,C/)ER*FTA7O)1O3,?G\
    M\[7:13MGS-S]5)-?`+HEM#/*F!U[VN;#P6-*WM7(+@9XRU?2ZJS-%O7GT2;:
    M<7&G`@!>Z0?64LJ@2B6GN+7ZM]0O4$L!`A0`% ````@`CFKY+G@^7_;T`0``
    M`@8```X``````````0`@`+:!`````$-O;G1R;VQL97(N:G!F4$L!`A0`% ``
    M``@`CFKY+@_EXWJ!`0``\ (```D``````````0`@`+:!( (``&5R<F]R+FIS
    M<%!+`0(4`!0````(`(YJ^2ZQKQ% Y0```,H!```)``````````$`( "V@<@#
    A``!I;F1E>"YJ<W!02P4&``````,``P"J````U 0`````
    `
    end

  • Netui:error tag uses deprecated ActionError

    Can anyone tell me if there's a good reason why netui:error tag refers to the deprecated ActionError as opposed to ActionMessage?
    It means I cannot do this as I get a ClassCastException:
    <pre>
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    errors.add("test", new ActionMessage("someError"));
    return errors;
    </pre>
    Instead I am forced to use a deprecated class. As ActionError inherits from ActionMessage, I can't really see why it is referenced.
    Regards
    James

    I also encountered the same issue when I was working with this issue. I could not figure out how to do it so I came with a work around maybe this will help you.
    In my JSP I use the following code:
    <%
    // this part gets the i18n messages which netui:errors tags are not capable of
    ActionErrors actionerrors = (ActionErrors)request.getAttribute("org.apache.struts.action.ERROR");
    if(actionerrors != null)
    %>
    <i18n:getMessage messageName="errors.header" />
    <%
    Iterator it = actionerrors.get();
    while(it.hasNext())
    ActionError e = (ActionError) it.next();
    %>
    <i18n:getMessage messageName="errors.prefix" />
    <i18n:getMessage messageName="<%=e.getKey()%>" />
    <i18n:getMessage messageName="errors.suffix" />
    <%
    %>
    <i18n:getMessage messageName="errors.footer" />
    <%
    %>

  • Problem in onClick attribute of the netui:anchor tag

    Hi,
    I have a String object to be passed to the javascript function with onClick attribute.
    eg: <%String st = new String("helo");%>
    <netui:anchor action="display" onClick="display()">
    I want to pass the object st to the java script so that I can do some validations. how can I do that. If I say,
    onClick="display('<%=st%>')" it is not working. can you please suggest me a solution.
    Regards,
    Satish.

    I haven't tried this with the netui:anchor tag, but it works with the netui:button tag.
    <%
    String onCl = "display('" + st + "')";
    %>
    <netui:anchor action="display" onClick="<%=onCl%>">
    Apparently, you can place a scriptlet inside the onClick attribute, but you cannot intermingle the scriptlet with plain text.
    Also, the onclick attribute appears not to support XScript ({request.whatever}). I find that weird.

Maybe you are looking for

  • Can't Host a Wiki Server's calendar using Server 10.8

    I have setup server and attempted to have one of my calendars on iCal sync with the Wiki calendar I have a user called bernard I have a calendar in ical called bernardtraining In the Wiki the user bernard has a calendar but I cant get ical to sync wi

  • Analog Audio Signal to Decibels with an A weighting filter.

    I have a microphone attached to a pre amp. The sensitivity is about 15mv/pa. In labview I have written the A weighting filter myself. I want to know what the procedure is for audio processing in labview. Should I convert the signal to Pascal via the

  • Uninstall and Reinstall Adobe Acrobat 8 Pro registration failed

    I have uninstalled and reinstall Adobe Acrobat 8 Pro on my new machine. My new machine runs Mac OS X 10.9.5. Every time I try to click on Help > Registration it returns an error message 'Registration Unsuccessful" "A problem was encountered while try

  • Unresolved symbols while linking

    Hello all, I'm toying around with oo4o and I'm having a linking problem. I'm working in VS.NET 2003. I added the directories for headers, excutables, libraries, etc. At first I had 9 unresolved symbol errors, but I got it down to 2 by remembering to

  • Lightroom 3.0 / 3.2 tethered shooting with 550d

    Hey guys and girls, Just starting using lightroom and have had success shooting tethered with my 400d and 550d through the EOS utility but when i go to shoot directly into lightroom i can only use my 400d. Is there anything special I have to do to ge