Netui defautvalue

Hi folks,
I have a probelm in netui. I have one pageFlowController there I am populating
a UserInfo object.That object will have userId and password.I getting the information
in pageflowcontroller and setting it to session.Now if I want to get the value
in jsp using netui tag how to do that.. The sample code is code in controller
=========== UserInfo uInfo=new UserInfo(); uInfo.setUserId("test"); uInfo.setPassword("test");
getSession().setAttribute("userInfo",uInfo);
Code in JSP ======== <netui:textBox dataSource="actionForm.userid} defaultValue={session.?}>
How to write the defaultvalue here. Pls help me on that Thanks Sougata

Dave -
Have you tried the named-value de-referencing style in the JavaScript, e.g.
document.whateverForm['{actionForm.somObject.otherObjects[3].description}']
I don't know if it will work witha form object, but it's a thought.
Greg
Dave Muirhead wrote:
The netui:textarea tag (and others like it) produce html element names (as in "<textarea
name="...">) that can contain square brackets and curly braces. For example:
{actionForm.someObject.otherObjects[3].description}
Element names of this form cause problems with javascript expressions that attempt
to refer to those elements. It is no longer possible to use an expression of the
form:
document.whateverForm.whateverTextArea
when the value <someTextAreaElement> is something like the above because it resolves
to:
document.whateverForm.{actionForm.somObject.otherObjects[3].description}
which is not legal Javascript syntax (due to curly braces)...
Has anyone run into this? What's the work around? Thanks.
Dave

Similar Messages

  • A list of inputs using netui tags

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

  • How to set a date value at netui:hidden/ tag bind to a RowSet item/property through a form bean?

    Hi,
    I have the following urgent problem.
    I created a pageflow which uses a form bean (created with a db control) to insert
    values in a table. I overcame the disability to insert date values in the table
    by converting this columns to string values in the table. But now I have to insert
    a sysdate in a column that holds the row sampled date. How is it possible? I used
    javascript without an success.
    Code in jsp:
    document[getNetuiTagName("myForm",this)][getNetuiTagName("date",this)].value=new
    Date();(have used string values too)
    <netui:hidden dataSource="{actionForm.sampled}" tagId="date"/>
    Code in .jcx file
    <xsd:element name="SAMPLED" type="xsd:dateTime" wld:JDBCType="DATE" minOccurs="0"
    wld:TableName="theTable" nillable="true">
    * </xsd:element>
    Code in .jpf file
    * <pageflow-object id="formbeanprop:portlets.Career.Submit_CV.Submit_CVController.DatabaseForm#sampled#java.sql.Timestamp"/>
    public static class DatabaseForm extends RowSetForm
    public java.sql.Timestamp getSampled()
    return sampled;
    public void setSampled(java.sql.Timestamp newOne)
    registerChange("sampled");
    this.sampled = newOne;
    I have tried to use java.sql.Date too...
    Any help would be very appreciated.
    Thx,
    Vincent

    Hi,
    Hope You're using the template.fmb.
    If  your Custom Form is in INV module, use  'FND_ORG.CHOOSE_ORG;' in the pre-form.
    Else Set the org id dynamically,
    begin
        MO_GLOBAL.SET_POLICY_CONTEXT(ACCESS_MODE,ORG_ID);
    end;
    Example:
    begin
        MO_GLOBAL.SET_POLICY_CONTEXT('S',101);
    end;
    S - Denotes that the current session will work for Single Org_id (101)
    M - Denotes that the current session will work for Multiple Org_id
    Thanks

  • netui:errors Tag issue

    hi
    i have the following code in one of my JSP
    <b><%
    String localeAttrName = I18NConstants.LOCALE;
    Locale locale = (Locale) session.getAttribute(localeAttrName);
    %></b>
    And i call below tag
    <b><netui:errors locale="<%=localeAttrName%>"/></b>
    When i compile i am getting error saying
    "This attribute does not support request time values"
    Any ideas ?
    Regards
    DP

    Sorry here is the correct format
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 58, <ejb:getSysTypes searchCriteria="test" return = "ret" />
    Error: Attribute: _return is not a valid attribute name

  • Problem with netui:data repeater tag

    Hi,
    I have 10 checkboxes in a form. It is represented as array of boolean in the form.
    The form and the checkbox values are initialised in the JPF class. Using repeater
    tag to display the checkboxes.
    When the user clicks on first check box, all other check boxes should be selected.
    Need to do this with client side validation.
    Can someone tell me how to do this?

    Hi kunal,
    Thanks for your immediate response.
    But, if I use , I am getting an saying that the file does not exist.
    I have included your code, can you check it. Also, I just want the link to be displayed, not the values that I am getting through the netui-data:repeaterItem tag. Can you please help me.
    I am attaching my code here:
    <netui-data:repeater dataSource="{pageFlow.results2}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem >
    <netui:label value="{container.item.title}" defaultValue=" " ></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterItem>
    <netui:label value="{container.item.link}" defaultValue=" " ></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterItem>
    <netui:label value="{container.item.title}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></ol></netui-data:repeaterFooter>
    </netui-data:repeater>
    Thanks,
    Latha

  • 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

  • netui:imageButton BUG

    HI,
    there is problem while i use
    <netui:imageButton action="save" formsubmit="true"> .....
    <netui:imageButton action="delete" formsubmit="true"> ....
    <netui:imageButton action="cancel" formsubmit="true"> ...
    this is generating the JavaScript method with same function name, so only last
    action i.e. Cancel is calling every time....
    but when i use
    <netui:imageAnchor action="save" formSubmit="true">
    <netui:imageAnchor action="delete" formSubmit="true">
    <netui:imageAnchor action="cancel" formSubmit="true">
    then this tag generates three javascript function as per the action name... but
    the problem with this tag is it's "src" attributes does not take dynamic path
    for images... we have to hard code the image path.......
    can you pleae guide me regarding this......

    This appears to be a bug that there is a patch for 8.1GA, and will be included
    in sp2.
    If you contact support, ask for the following patch:
    CR121496 - When multiple forms are present in a jsp, netui:parameter values
    always defaults to the value set in the last form in the page.
    -Tanya
    "vijay patel" <[email protected]> wrote:
    >
    HI,
    there is problem while i use
    <netui:imageButton action="save" formsubmit="true"> .....
    <netui:imageButton action="delete" formsubmit="true"> ....
    <netui:imageButton action="cancel" formsubmit="true"> ...
    this is generating the JavaScript method with same function name, so
    only last
    action i.e. Cancel is calling every time....
    but when i use
    <netui:imageAnchor action="save" formSubmit="true">
    <netui:imageAnchor action="delete" formSubmit="true">
    <netui:imageAnchor action="cancel" formSubmit="true">
    then this tag generates three javascript function as per the action name...
    but
    the problem with this tag is it's "src" attributes does not take dynamic
    path
    for images... we have to hard code the image path.......
    can you pleae guide me regarding this......

  • Render information into a jsp page using netui tags

    Hi,
    Using netui tag in JSP, how can I display data that is stored in a array list or collection object? For example, the collection object has a list of href links. What is the appropriate netui tag that I can use to display the content in the jsp page?
    Any suggestions on this?
    Thanks,
    Latha

    look at the netui:data repeater tags.

  • Netui

    Hi,
    I'm having a few small problems at the moment with the internationalisation tags and was hoping that someone here could clear up something for me.
    I am working on a website that has to be produced in 4 languages, two of them are displaying correctly, while two are not.
    I am trying to produce a message along the lines of:
    ....Your contact number is xxx-xxx-xxxx
    were I'd like to substitute in the number at run time from the customer profile. So in my property files I have text like:
    ....Your contact number is {0}
    Then when I run the page, two languages work (English and German), returning the correct message, while two (French and Italian) just return the original message, without the substitution.
    Have I done something really stupid here? Are there special characters that I can't have in my test
    At the beggining of my JSP I have:
    <netui-data:getData
    ....resultId="phoneNumber"
    ....value="{pageFlow.customer.phoneNumber}" />
    <%
    ....Object [] messageArgs = new Object []
    ....{pageContext.getAttribute("phoneNumber")};
    %>
    Then where I want to display the message:
    <i18n:getMessage
    ....messageName="ContactNumber"
    ....messageArgs="<%= messageArgs %>"/>
    When I have just copied the one message over from the English properties file into the French, then the substitution worked fine. Why is it that only some languages work?
    Thanks for any advice.

    Ok, I've found where I was going wrong. When there was a single quote in the text, i.e. l'option, the substitution failed.
    Cheers

  • Netui:form in edit mode

    Hi,
    I am trying to use netui:form in the JSP of the edit mode like this :
    <netui:form action="testAction">
         <netui:button value="Valider" type="submit"/>
         <netui:button value="Annuler" type="reset"/>
    </netui:form>
    but I always get the following error : Action 'testAction' is not a valid action
    If I try to use netui:form tag in another JSP (not in the edit mode, for example the JSP displayed after the begin action), it works fine.
    And it works fine in the edit mode with a netui:anchor tag. The action specified is called.
    Here is the PageFlow Controller :
    @Jpf.Controller()
    public class favorisController extends PageFlowController {
         @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "/site_unisvers/favoris/favoris.jsp") })
         public Forward testAction(TestActionFormBean form) {
              System.out.println("je suis testAction");
              System.out.println(form.getTextBox());
              Forward forward = new Forward("success");
              return forward;
    Here is the portlet xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet definitionLabel="favoris" title="Favoris">
    <netuix:titlebar>
    <netuix:maximize/>
    <netuix:minimize/>
    <netuix:help contentUri="/site_unisvers/favoris/help.jsp"/>
    <netuix:edit contentUri="/fr/su/unv/unisvers/ihm/favorisController.jpf" action="edit"/>
    </netuix:titlebar>
    <netuix:content>
    <netuix:pageflowContent contentUri="/fr/su/unv/unisvers/ihm/favorisController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    Anybody can help me ?

    My code works fine. WebLogic just didn't update well the config files.
    Thomas

  • NetUI file upload creates temporary files without cleanup

    When using the NetUI File Upload in my web application, I notice that it
    stores temporary files in the server config directory. The file names
    are netxxxxx.tmp and they are never deleted on server startup/shutdown,
    etc. I am uploading large files (about 500k) so these temporary files
    start to take up space very quickly and I have to manually delete them.
    Is there a way to disable this or what? I suppose I could edit a
    startup/shutdown script to delete them, but I'd rather not have to
    change the provided software.
    Thanks

    Bumping this up... any BEA reps read this NG?
    Steven Ostrowski wrote:
    When using the NetUI File Upload in my web application, I notice that it
    stores temporary files in the server config directory. The file names
    are netxxxxx.tmp and they are never deleted on server startup/shutdown,
    etc. I am uploading large files (about 500k) so these temporary files
    start to take up space very quickly and I have to manually delete them.
    Is there a way to disable this or what? I suppose I could edit a
    startup/shutdown script to delete them, but I'd rather not have to
    change the provided software.
    Thanks

  • 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:select seems to be broken in Portal 9.2

    Hi
    I have problems with the tag and I slowly think it might be a bug in the tag. The optionsDataSource attribute seems not to work anymore. It only puts the actual text '{pageFlow._options}' in the dropdown box. I tried to use it with the pageFlow and actionForm option but with the same result. I hope there is something I do wrong ;) Any help is very much appreciated
    on JSP page
    <netui:select dataSource="{actionForm.selections}" optionsDataSource="{pageFlow._options}"
    in JPFController
    public String[] _options = {"red", "green", "blue", "orange", "pink", "aqua", "black", "brown", "tan"};
    with setters and getters
    in formbean
    public static class SubmitForm extends FormData
    private String[] selections;
    public void setSelections(String[] selections)
    this.selections = selections;
    public String[] getSelections()
    return this.selections;
    }

    That did the trick ;\
    optionsDataSource="${pageFlow.selectOptions}

  • How to Display string array in jsp page using netui-data:repeater tag ??

    hi,
    I am trying to display a string array in a table using the netui-data:repeater tag.
    I have to use a page flow controller Array(1 Dimensional) to be displayed in the jsp.
    Can any one tell me how to print the array in a table of 3rows & 5 columns.
    Here is the code on which I am crrently working on.
    <netui-data:repeater dataSource="{pageFlow.strWorkObject_Array}">
    <netui-data:repeaterHeader>
    <table cellpadding="4" border="1" class="tablebody">
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr>
    <td><netui:label value="{container.item}" >
    </netui:label></td>
    <td><netui:label value="{container.item}">
    </netui:label></td>
    <td><netui:label value="{container.item}">
    </netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter>
    </table>
    </netui-data:repeaterFooter>
    </netui-data:repeater>

    weblogic.developer.interest.workshop
    Mansoor Naseem wrote:
    I would like to know where the pageflow newsgroup is.
    These are all the groups in weblogic.developer.interest:
    weblogic.developer.interest.60beta.* (5 groups) weblogic.developer.interest.management
    weblogic.developer.interest.61beta.* (2 groups) weblogic.developer.interest.misc
    weblogic.developer.interest.clustering.* (1 group) weblogic.developer.interest.performance
    weblogic.developer.interest.commerce weblogic.developer.interest.personalization
    weblogic.developer.interest.ejb.* (3 groups) weblogic.developer.interest.portal
    weblogic.developer.interest.environment weblogic.developer.interest.rmi-iiop
    weblogic.developer.interest.jdbc weblogic.developer.interest.security
    weblogic.developer.interest.jms weblogic.developer.interest.servlet
    weblogic.developer.interest.jndi weblogic.developer.interest.tools
    weblogic.developer.interest.jsp weblogic.developer.interest.weblogicenterprise
    MN

  • How to use java code in netui

    Hi all,
    i want to use
    <input type="checkbox" name="active" value="1" <%=( appraiser.getActive()).equals("1")
    )?" checked ":""%>> Yes</td>
    in netui like
    <netui:checkBox dataSource="{actionForm.active}" />
    but until now, i can find how to solve this problem .....
    the goal is ... if the value in active is 1, i want the check box is check .....else
    Thanks
    Sougata
    thank's for your help
    best regard

    Sougata,
    Is your question how to set a netui:checkBox to checked or unchecked when
    the checkBox is first presented to the user?
    - john
    "Sougata" <[email protected]> wrote in message
    news:40584118$[email protected]..
    >
    Hi all,
    i want to use
    <input type="checkbox" name="active" value="1" <%=(appraiser.getActive()).equals("1")
    )?" checked ":""%>> Yes</td>
    in netui like
    <netui:checkBox dataSource="{actionForm.active}" />
    but until now, i can find how to solve this problem .....
    the goal is ... if the value in active is 1, i want the check box is check.....else
    Thanks
    Sougata
    thank's for your help
    best regard

Maybe you are looking for

  • Purchase Order creation with reference to Purchase requistion

    Hi, The scenario is like this I am creating Purchase order with reference to a Purchase requisition which is not relased.The created Purchase order is in hold status.I am releasing the Purchase requisition and opening the Purchase order and saving at

  • Many Trash problems with leopard and no fix

    Hi I posted that my trash is not emptying under any circumstances no one seemed to know how to solve this. i noticed that there are several people with trash issues (some not emptying until restart, others cant see the trash) i just hope that apple f

  • Putting music library on a computer that already has an itune library on it

    Hello...I have a problem that I can't get an answer to. I have a 60gb video ipod with about 22gb of music on it. My old computer went down and my son installed his ipod on muy new one. I can't get it to recognize my library and to allow me to import

  • Download  assistant  doesnt  run

    hello.i  have  downloaded  download assistant,but  doesnt  run  at  all!.first  i  ve  tried  to  run  from  my  downloads  folder,but  it  failed.after  that  ,copy  paste  to  programs  directory  ,but  the  problem  remain.i  have  win  8x64

  • Rollover effects

    what i want to achieve is a rollover effect, when i rollover my home button i would like a line with the button (PHOTOGRAPHY) to transition fade in and appear next to it. Example is provided.