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}

Similar Messages

  • Update seems to have broken openbox theming.

    I updated about 2 hours ago and it seems to have broken a lot of my window manager.
    I use openbox as a standalone window manager and have had no issues so far.
    I update every few days and today caused the resizing-freeze issue, so I downgraded the suggested packages which fixed that.
    However I have another issue with theming.
    Programs such as firefox, thunderbird, thunar etc... all have the correct theme. However I use some gnome programs such as rhythmbox and nautilus and neither of these are themeing correctly as well as terminator and all appear to have the default gnome theme.
    I use obconf and lxappearence for themeing normally, however these seem to have no effect.
    I've done a fair amount of searching and googling and am now very tired and am going to bed.
    If anyone has any advice it would be much appreciated. If I am being stupid in my sleep deprived state please feel free to point it out XD.

    Hi all. I'm also running Openbox and have done the following so far;
    1. Installed gnome-themes-standard. Created a new folder ~/.config/gtk-3.0/; Created the file in the folder "settings.ini" with the following code;
    [Settings]
    gtk-application-prefer-dark-theme = true
    gtk-theme-name = Adwaita
    gtk-fallback-icon-theme = gnome
    Thanks to the info on the thread here
    2.  Checked out the post here. Downloaded the tar of Adwaita from this.page and did the usual "makepkg -s" magic and rebooted.
    What I'm now getting is nm-applet in tint2 with the dark theme of Adwaita which is great but doesn't really match my dark theme axiomd but it's better than before.
    What I'm wondering is how to manage this in lxappearance, change font etc?? If I select the theme Adwaita it's a light theme? Having looked in the directory there is both gtk-2.0 (i think this is the light one?) and gtk-3.0.
    I've also noticed that it is affecting rhythmbox; slow to load and the status icon setting in the plugins is missing, so you close the GUI and find the app quits rather than the previous behaviour where it would close but the notification icon would still run in tint2 enabling one click control access to the GUI again.
    I appreciate this is obviously a new implementation and will take a bit of time to learn but any tips from those in the know would be great!? TIA.
    Last edited by phrac (2011-05-01 11:10:09)

  • ITunes seems to be broken, only get stereo sound

    Hey all,
    I use Windows XP Pro with the latest iTunes version and for several iterations of iTunes now, it only play in stereo mode (two speakers) and will not take advantage of the true capabilities of my PCI sound card, a Creative Audigy Gamer.
    In Windows I can set the sound card to play in 'Quadraphonic Speakers' mode and I can play CDs with Windows Media Player and get the full effect I should get. I fire up iTunes and it only plays through the two 'front' speakers and absolutely refuses to play as it should with all four speakers going. It used to work a few iterations ago, but an iTunes+Quicktime update sometime past seems to have broken it!!
    I have completely removed the Audigy drivers and the card, then re-installed all of it, because I know that the favorite response from folks is to do this first, so please don't tell me to do it again as I won't...unless you have some additional, deeper suggestions that might do it, of course!!
    Personally, I think iTunes is broken, but I have no proof. Anyone else having this issue or knowof a fix?
    TIA,
    Just Me Here

    Try right-clicking or Control-cicking the iTunes application and selecting "show package contents".
    Check in Contents -> Resources Disabled to see if your remaining language files are there. If they are, drag them to Contents -> Resources. Close the Contents window and try launching iTunes again.

  • Form bean with int property and netui:select tag

    Hi,
    I've recently started using WebLogic 8.1 for a client project. There's
    been a bit of a learning curve, but I've been able to find most of my
    answers in the docs or on the dev2dev site. This one, though, I've been
    unable to manage.
    I have a database table, call it foo. In it I have columns for id
    (numeric) and name (string). I created a database control to read that
    data:
    select id, name
    from foo
    I then want to use this data to populate a select list in a form, which
    is going to be used to submit new records for another table. For the data:
    id     name
    1     Foo
    2     Bar
    3     Bletch
    I want to generate a select list (this is the output HTML, not the netui
    tags):
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    </select>
    My first question is what the best way to do this is. I was able to get
    this working by creating a database control, which returns an array of a
    custom Foo class. I then pass that array into a utility method which
    converts it into a Map, and pass that map to the netui:select tag in the
    optionDataSource attribute. This works, but it seems rather roundabout,
    so I'm wondering if there's a better way to do it, without needing the
    conversion utility method in the middle. I tried playing around with
    the control, I tried using different netui tags (I thought I could do it
    with a repeater and netui:selectOption tags, but that didn't work), and
    nothing else worked.
    The second problem arose when I was tying the result to a Form Bean. I
    created a bean with all the data that I was reading from the form, and
    at first, I just made everything in the form bean be a String. For this
    select, though, the values are ids, so I thought I'd just make them be
    ints in the form bean instead. However, when I did that, WL decided
    that it wanted to add in a default option with a value of 0:
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    <option value="0" selected>0</option>
    </select>
    I've tried to find a way to get rid of that 0, and I can't. Is there a
    way to prevent it from sticking in a default value like that? Or do I
    have to just leave it as a String in the form bean to get it to work the
    way I want?
    Thanks in advance for your help.
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

    wrt your 2nd problem, in the jpf, for the form bean, are you declaring your id
    like this:
    private int id;
    if so, try declaring it w/ a valid value, like:
    private int id = 1;
    -tanya
    Joe Robins <[email protected]> wrote:
    Hi,
    I've recently started using WebLogic 8.1 for a client project. There's
    been a bit of a learning curve, but I've been able to find most of my
    answers in the docs or on the dev2dev site. This one, though, I've been
    unable to manage.
    I have a database table, call it foo. In it I have columns for id
    (numeric) and name (string). I created a database control to read that
    data:
    select id, name
    from foo
    I then want to use this data to populate a select list in a form, which
    is going to be used to submit new records for another table. For the
    data:
    id     name
    1     Foo
    2     Bar
    3     Bletch
    I want to generate a select list (this is the output HTML, not the netui
    tags):
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    </select>
    My first question is what the best way to do this is. I was able to
    get
    this working by creating a database control, which returns an array of
    a
    custom Foo class. I then pass that array into a utility method which
    converts it into a Map, and pass that map to the netui:select tag in
    the
    optionDataSource attribute. This works, but it seems rather roundabout,
    so I'm wondering if there's a better way to do it, without needing the
    conversion utility method in the middle. I tried playing around with
    the control, I tried using different netui tags (I thought I could do
    it
    with a repeater and netui:selectOption tags, but that didn't work), and
    nothing else worked.
    The second problem arose when I was tying the result to a Form Bean.
    I
    created a bean with all the data that I was reading from the form, and
    at first, I just made everything in the form bean be a String. For this
    select, though, the values are ids, so I thought I'd just make them be
    ints in the form bean instead. However, when I did that, WL decided
    that it wanted to add in a default option with a value of 0:
    <select name="foo">
    <option value="1">Foo</option>
    <option value="2">Bar</option>
    <option value="3">Bletch</option>
    <option value="0" selected>0</option>
    </select>
    I've tried to find a way to get rid of that 0, and I can't. Is there
    a
    way to prevent it from sticking in a default value like that? Or do
    I
    have to just leave it as a String in the form bean to get it to work
    the
    way I want?
    Thanks in advance for your help.
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

  • Load contents into one "netui:select" on click of another.

    Hi! I am a fresher to Weblogic Workshop and Portal. I want to know how to capture the onSelect or onChange event in a <netui:select> tag and call a pageflow action on the occurence of this event.

    I remember this keyboard menu. Didn't I give you the CSS for this?  I'm pretty sure I did.  Because I still have it in my notes.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>CSS Horizontal Menu</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
    /* BEGIN Horizontal Navbar */
    nav {
    margin: 0 auto;
    padding: 0;
    width: 900px;  /**adjust width as required**/
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
    overflow: hidden; /**float containment**/
    border: 1px dotted red; /**for demo purposes, you may delete this border**/
    nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: auto;
    /**list styles**/
    nav li {
    display: block;
    float: left;
    width: auto;
    line-height: 1em;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 15px;
    text-shadow: 1px 1px 1px #000;
    /**link styles**/
    nav li a {
    display: block;
    padding: 0.5em;
    border: 2px outset #999;
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
    background: #CCC;
    /**mouseover styles**/
    nav li a:hover,
    nav li a:active,
    nav li a:focus {
    border: 2px inset;
    background: #00CCCC; }
    /* END Horizontal Navbar */
    </style>
    </head>
    <body>
    <nav>
    nav container
    <ul>
    <li><a href="#">Menu Item 1</a></li>
    <li><a href="#">Menu Item 2</a></li>
    <li><a href="#">Menu Item 3</a></li>
    <li><a href="#">Menu Item 4</a></li>
    </ul>
    <!--end nav--></nav>
    </body>
    </html>
    Nancy O.

  • Numbers seems to have broken

    I was using Numbers this morning -- no major problem except that it didn't properly recover from page view (leaving junk on the right of the table).
    This afternoon it seems to have broken. ALL my files, including the one from this morning have mostly blank cells. The contents seem to be there - if I click a cell the contents show up in the formula bar (or whatever it's called). And if I double-click to edit the contents reappear. But then go away again as soon as I finish with the cell.
    Some (but not all) of the header cells in Gray Headers style show up, and some are simply a pair of faint white squares at the end of the text string. Check boxes show up OK.
    Oh, and if I double click on a date it shows up for editing with the year as 00002010.
    This is very distressing. I have a lot of data locked up in Numbers and as of now, all is unusable.
    What's going on?

    Thanks for the help. Actually I should have mentioned that I tried that (I've been using Macs since my Mac IIfx in 1990 so I picked up a few tricks) as well as restarting. The problem remains.
    In the meantime I've tried opening my files (remotely) with another machine. No problems. It's local.
    Next I'll try reinstalling Numbers, if I can find the disks
    Richard

  • 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

  • Ability to rename folders in Launchpad in Mountain Lion Seems to be broken. Is there a fix?

    Ability to rename folders in Launchpad in Mountain Lion Seems to be broken. Is there a fix?

    YouWinSomeYouLoseSome wrote:
    you still cannot rename folders.
    I can... you cannot. I'm not sure why. It will not work on an app icon.
    Are you sure you're doing this on a Folder?
    Perhaps it is a function of Finder. You can try deleting Finder prefs to default.
    Go to your Finder "Go" menu hold the option key and choose Library. Then go to Preferences folder and trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.) 

  • 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:select default value on top instead of bottom

    Is there anyway that I can change the netui:select tag to show the default value
    on the top of the list instead of the bottom?
    thanks
    kunal

    Kunal--
    If you are binding to a data set (a LinkedHashMap, for example), you can insert the default value
    into the data set in code in the JPF before binding to the select box, but it's not configurable
    when simply setting the defaultValue attribute.
    Apologies for the limitation.
    Eddie
    Kunal Mittal wrote:
    Is there anyway that I can change the netui:select tag to show the default value
    on the top of the list instead of the bottom?
    thanks
    kunal

  • Netui:select default value at the top

    I am using netui:select with following syntax:
    <netui:select defaultValue="--Select--" dataSource="{actionForm.contactType}"
    optionsDataSource="{pageFlow.contactTypes}" styleClass="app-commomForm"> </netui:select>
    The problem is "--Select--" is shown at the bottom of the drop down. What do I
    do to show at the top of the list?

    Maybe you can use the default value attribute, that way the user will always see the select selected...
    or maybe try using a string array and place select at the start of the array...

  • Need help with moving items betwen 2 netui select boxes

    Hi,
    I have 2 multiple select boxes for possible courses and assigned courses. I need a way to implement move of option items from one box to another using buttons. The user can select courses from one box and move them to another. I am not sure how I would do that with netui select boxes and a pageflow method. If I use javascript, i get all kinds of errors even though I am trying to use the tagid. If validation fails, then the select boxes dont save the updated content.
    Please help.
    Bindu

    Ahmed_Arafa wrote:
    hii all,
    i have a list item.. in this list item i have a two list item value
    1- visa ,list elements visa
    2- cash ,list elements cash
    i need when user select visa from list item then appear text item (visa_number)
    i change item visa_number visible to no
    that's my code i write it
    trigger
    when new-block-instance
    IF :RESERVATION.PAY_METHOD = 'visa'THEN
         SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);     
    END IF;**My problem is when i click on cash in the first nothing happen and this right
    when i click to visa second nothing happen this not right
    **when i click on visa first every thing is working
    i need when i click on visa any time item appear and when i would like to click to cash.. visa item is disappearWrite your code in When-List-Change trigger at list_item.
    Hope this will help you.

  • How to keep the defaultValue in the netui:select tag at the beginning of the dropdown values?

    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 using the optionsDataSource.
    As I am using the defaultValue, it is being added to the end of the dropdown 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 of the
    list instead at the bottom of thge dropdown values. i.e., In the above list, "Any"
    must be above apple option.
    How can I achieve this using netui:select tag?
    Thanks & Regards,
    Murthy

    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

  • How to pre-select in netui:select

    I am new to workshop. I need to use netui:select for a list box with multiple selection. I want to pre-select the listbox with several entries. I am wondering how to do this?

    Cindy,
    You can set multiple default values on a select tag by binding the
    defaultValue attribute to a String[] or anything else (collection, etc)
    that can be turned into an Iterator.
    For example, here is how I modified Workshop's Sample Application
    (specifically the "select multiple" example)
    <netui:form action="submit">
    <netui:select multiple="true" dataSource="{actionForm.selections}"
    size="5" defaultValue="{pageInput.defaultValues}">
    <netui:selectOption value="red" />
    <netui:selectOption value="blue" />
    <netui:selectOption value="green" />
    <netui:selectOption value="yellow" />
    <netui:selectOption value="orange" />
    </netui:select>
    <netui:button type="submit" value="Submit"/>
    </netui:form>
    here is the code from the controller showing the page flow variable
    defaultValues being passed to the page as a page input in fhe Forward
    contstructor.
    private String[] defaultValues = {"green", "yellow"};
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward begin()
    return new Forward("success", "defaultValues", defaultValues);
    - john
    "Cindy" <[email protected]> wrote in message
    news:407170f4$[email protected]..
    I am new to workshop. I need to use netui:select for a list box withmultiple selection. I want to pre-select the listbox with several entries.
    I am wondering how to do this?

  • Write to java object using netui:select tag

    Hello,
    I am iterating through a hashmap of java objects using a netui-data:repeater.
    <netui-data:repeater dataSource="{pageFlow.MyHashMap}">
    <netui-data:repeaterItem>
    <netui-data:repeater dataSource= "{container.item.HashMapOfEmbeddedObjects}">
    <netui-data:repeaterItem>
    <netui:select dataSource= "{container.item.type}" optionsDataSource= "{container.item.typeChoices}" /> </td>
    <netui:select dataSource= "{container.item.default}"
    optionsDataSource= "{container.item.defaultChoices}" /> </td>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    The java object has a field "HashMapOfEmbeddedObjects" that is itself a hashmap of java objects. I want to be able to make a selection and have it be written to the
    "type" and "default" fields of the embedded objects, but dataSource="{container.item.default}" does not save the value of the selection.
    Is there anyway to use the netui:select tag to write to the field on a java object? Any help is greatly appreciated.

    I have done it in the past. The java object need not be actionForm. The following write-up I found in edocs will help you achieve this.
    Page Flow-Scoped Form Beans
    Page Flow-scoped Form Bean instances have the same life-cycle as the Controller file instance. They are created and destroyed when the Controller file instance is created and destroyed. This makes Page Flow-scoped Form Beans useful for storing data that has been accumulated across many different JSP pages.
    To create a Page Flow-scoped Form Bean instance, construct a public member variable of the Form Bean in the Controller file.
    public class myController extends PageFlowController
    public MyFormBean pageFlowScopedBean = new MyFormBean();
    Once you have created a Page Flow-scoped instance of a Form Bean, you can pass the instance to action methods by using the @action form="form_bean" annotation.
    public class myController extends PageFlowController
    public MyFormBean pageFlowScopedBean = new MyFormBean();
    * @jpf:action form="pageFlowScopedBean"
    * @jpf:forward name="success" path="displayData.jsp"
    protected Forward submit( MyFormBean form )
    return new Forward( "success" );
    Each time the submit() method is invoked, it is passed the same instance of the Form Bean, namely, pageFlowScopedBean, the instance that was created when the Controller file instance was created.
    For more info go to http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conReqScopedVsPageScopedBean.html
    Good luck.
    --SJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for