Setting Dragged Tilelist Item As Drag Proxy

I've wrote about this problem before but I've never really elaborated on my code. I have a tilelist with an item renderer in it which has it's icons and labels poulated via an array collection retrieved via http request to an online xml file.
I want it so that as each item is dragged out of the tilelist the drag proxy (the image that shows what's being dragged) is actually of the tilelist item being dragged. I'm trying to get this working in a dragInitiate function but can't seem to get it to work, Can anyone help me out please.
Here's the code for my tilelist:-
<mx:TileList id="linkChoice" mouseDown="initiateDrag(event);" dataProvider="{linksFullAC}" doubleClickEnabled="true" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" height="412" width="100%" columnCount="3" rowHeight="145" columnWidth="125" backgroundColor="#2B2B2B" borderColor="#000000" color="#FFFFFF" borderStyle="solid" borderThickness="1" verticalScrollPolicy="on" verticalScrollBarStyleName="ScrollBar" cornerRadius="0" y="40" borderSides="bottom top">
<mx:itemRenderer>
  <mx:Component>
   <mx:Canvas width="125" height="145">
    <mx:Image source="{'http://10169603.computing.student.edgehill.ac.uk/interface/interfaceimages/images/'+data.icon+'.jpg'}" scaleContent="true" scaleY="1.2" height="100" width="100" top="10" horizontalCenter="0"/>
    <mx:Label text="{data.label}" maxWidth="120" bottom="1" horizontalCenter="0" color="#FFFFFF"/>
   </mx:Canvas>   
  </mx:Component>
</mx:itemRenderer> 
</mx:TileList>
And heres my function so far:-
private function initiateDrag(event:MouseEvent):void {        
var dragInitiator:Image = Image(event.currentTarget.icon);       
var source:DragSource = new DragSource();      
source.addData(data.icon,data.label);        
var proxy:Image = new Image();      
proxy.source = dragInitiator.source;      
proxy.width = 50;      
proxy.height = 50;       
DragManager.doDrag(dragInitiator, source, event, proxy);

hi,
I really should be getting some sleep,
in your code shouldn't your drag initiator be more like this
'http://10169603.computing.student.edgehill.ac.uk/interface/interfaceimages/images/'+data.icon+'.jpg'}
I can't see where data.icon is a reference to an image, data.label is a reference to a string but isn't  data.icon is just another string ?
or would drag initiator maybe something like currentTarget.image.source....
David

Similar Messages

  • [svn:fx-4.x] 15360: Removing a few unwanted changes to the positioning of drag proxy.

    Revision: 15360
    Revision: 15360
    Author:   [email protected]
    Date:     2010-04-12 23:23:29 -0700 (Mon, 12 Apr 2010)
    Log Message:
    Removing a few unwanted changes to the positioning of drag proxy.
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2365 ( When layoutDirection is 'rtl', image of the chart item which is being dragged is seen away from mouse pointer)
    Reviewer:
    Tests run: checkintests - PASS
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2365
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artBase.as

    Is letterboxing on in your preferences?
    Yes - that's checked. I've removed it and started a
    new import. It says 19 mins - so I'll follow up when
    done.
    Done. And - still looks like a letterbox
    Am not sure I'm describing it properly.
    Here's a capture of the QT window:
    http://www.chrissearle.org/stuff/QT.tiff
    And here's the iMovie window - two clips - both the same import - one with letterboxing turned on (first clip in clips list) and one turned off (second clip and selected in main part of window)
    http://www.chrissearle.org/stuff/iMovieHD.tiff
    You can see that the aspect ratio from QT and iMovieHD is different
    Mac Mini   Mac OS X (10.4.5)  

  • [svn:fx-4.x] 15097: Changing the position of drag proxy

    Revision: 15097
    Revision: 15097
    Author:   [email protected]
    Date:     2010-03-29 06:22:57 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Changing the position of drag proxy
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2365 ( When layoutDirection is 'rtl', image of the chart item which is being dragged is seen away from mouse pointer)
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2365
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artBase.as
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artItemDragProxy.as

    MoonSwan wrote:I've never heard of a validating editor but I was recently wondering what exists that could help me.  Aside from emacs, what should I search for to find one of these validating editors?
    You can use whatever tool you prefer - for someone already using emacs, emacs is a natural choice. Simple, easy to use online tools exist e.g. http://schneegans.de/sv/
    Just upload the file in question ('Validate by file upload' option) and click 'Validate':
    The '=' character cannot be included in a name. (723:10)
    <Terminal="Terminal">
    ^
    Googling 'xml validation' should give you some more tools / services if this one is not good enough.

  • Having a constant Y position for the drag proxy

    hi,
    is it possible to constrain the image used in the drag proxy
    to just one axis when it is being dragged?
    In other words, I'm trying to create a slider-type effect
    that slides along a numberline.
    the only form of control that i can see relating to
    positioning is 'yOffset':
    quote:
    public static function doDrag(dragInitiator:IUIComponent,
    dragSource:DragSource, mouseEvent:MouseEvent,
    dragImage:IFlexDisplayObject = null, xOffset:Number = 0,
    yOffset:Number = 0, imageAlpha:Number = 0.5, allowMove:Boolean =
    true):void
    any help is appreciated
    finty

    this is how I've approached this (I adapted sample code from
    the documentation):
    (any recommendations are appreciated)
    <?xml version="1.0" ?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    //Import classes so you don't have to use full names.
    import mx.managers.DragManager;
    import mx.core.DragSource;
    import mx.events.DragEvent;
    import flash.events.MouseEvent;
    import mx.controls.Image;
    import mx.containers.Canvas;
    import flash.events.Event;
    //Variables used to hold the image's location
    public var xOff:Number;
    public var yOff:Number;
    // Embed icon image.
    [Embed(source='assets/10c.png')]
    public var globeImage:Class;
    private var imageProxy:Image;
    // Drag initiator event handler, called by
    // the image's mouseMove event.
    private function dragMe(event:MouseEvent,
    img1:Image,format:String):void {
    var dragInitiator:Image=Image(event.currentTarget);
    var ds:DragSource = new DragSource();
    ds.addData(img1, format);
    // The drag manager uses the image as the drag proxy
    // and sets the alpha to 100 (opaque),
    // so it appears to be dragged across the canvas.
    imageProxy = new Image();
    imageProxy.source = globeImage;
    imageProxy.height=globeImage.height;
    imageProxy.width = globeImage.width
    imageProxy.addEventListener(Event.ENTER_FRAME,
    onEnterFrame);
    draggin = true;
    DragManager.doDrag(dragInitiator, ds, event, imageProxy, 0,
    0, 1.00);
    //Function called by the canvas dragEnter event; enables
    dropping
    private function doDragEnter(event:DragEvent):void {
    DragManager.acceptDragDrop(Canvas(event.target));
    draggin = false;
    imageProxy.removeEventListener(Event.ENTER_FRAME,
    onEnterFrame);
    // Function called by the canvas dragDrop event;
    // Sets the image object's position,
    // "dropping" it in its new location.
    private function doDragDrop(event:DragEvent, target1:Canvas,
    format:String):void {
    draggin = false;
    myimg.x = target1.mouseX - xOff
    // myimg.y = target1.mouseY - yOff
    // Helper function called by the dragged image's mouseMove
    event,
    // as the image drags across the canvas.
    // The function updates the xOff and yOff variables to show
    the
    // current mouse location.
    private function myoffset(img:Image):void {
    xOff = img.mouseX
    yOff = img.mouseY
    public var draggin:Boolean = false;
    public function onEnterFrame(event:Event):void{
    if(draggin == true){
    myimg.x = event.currentTarget.mouseX - v1.x -
    (myimg.width/2);
    ]]>
    </mx:Script>
    <!-- The Canvas is the drag target -->
    <mx:Canvas id="v1" width="500" height="500"
    dragEnter="doDragEnter(event)"
    dragDrop ="doDragDrop(event, v1, 'img')" borderStyle="solid"
    backgroundColor="#DDDDDD">
    <!-- The image is the drag initiator and the drag proxy.
    -->
    <mx:Image id="myimg"
    source="@Embed(source='assets/10c.png')"
    mouseMove="dragMe(event, myimg,
    'img');myoffset(myimg);"/>
    </mx:Canvas>
    </mx:Application>

  • [Flex 4] Can't Set Drag indicator in Air Application

    I'm trying to make a simple Air app that lets the user drag an Icon from one panel into another.  I want to set the drag indicator to look like the icon being dragged.  But no icon is being displayed.  Here is my code.  I'm using flash builder 4, it shouldn't be this hard.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        viewSourceURL="srcview/index.html">
        <fx:Script>
            <![CDATA[
                import mx.core.DragSource;
                import mx.core.IUIComponent;
                import mx.events.DragEvent;
                import mx.managers.DragManager;
                [Embed("assets/network.jpg")]
                private var network_icon:Class;
                //user clicks the src, so allow drag
                private function mouseDownHandle(e:MouseEvent):void {
                    var img:Image = e.currentTarget as  Image;
                    var dragImg:Image = new Image();
                    dragImg.source = img.source;
                    dragImg.width = 111;
                    dragImg.height = 111;
                    var src:Image = Image(e.currentTarget);
                    var ds:DragSource = new DragSource();
                    ds.addData(src, "img");
                    DragManager.doDrag(e.currentTarget as IUIComponent, ds, e, dragImg);
                //user moves the drag proxy onto the drop target, so allow drop
                private function dragEnterHandler(e:DragEvent):void {
                    DragManager.acceptDragDrop(e.currentTarget as IUIComponent);
                //user drops src onto target, so re-parent the src to the target
                private function dragDropHandler(e:DragEvent):void {
                    e.currentTarget.addElement(e.dragInitiator);
            ]]>
        </fx:Script>
        <!-- SRC -->
        <s:Panel title="src" width="100" minHeight="133" x="10" y="10">
            <s:layout>
                <s:VerticalLayout gap="10" horizontalAlign="center"
                                  paddingTop="10" paddingBottom="10" />
            </s:layout>
            <mx:Image source="{network_icon}" mouseMove="{mouseDownHandle(event);}" />
        </s:Panel>
        <!-- TARGET -->
        <s:Panel title="target" width="100" minHeight="133" x="120" y="10"
                 dragEnter="dragEnterHandler(event);"
                 dragDrop="dragDropHandler(event);">
            <s:layout>
                <s:VerticalLayout gap="10" horizontalAlign="center"
                                  paddingTop="10" paddingBottom="10" />
            </s:layout>
        </s:Panel>
    </s:WindowedApplication>

    Hello from France!
    Same problem here...
    It works in a web application but not in an Air application.
    Any idea will be welcome...
    L.N.

  • Repositioning, grouping and align-to-grid of tilelist items

    I am working on a shopping cart application, where as user can drag products from tree and drop in a TileList. But now I want to know, how to reposition, group and grid-align the TileList items. User can drag and drop the items wherever he wants in the tilelist and group them color-wise or price-wise. Is this possible with TileList component or do I need to use any other component. Please help me. Below is the TileList example..
              TileList
                   |
                   |
    -----Red Color-----
    product1     product2    product3
    product9   product10
    product11
    ------Green Color-----
    product3     product5
    product12  
    product13  product14
    ------Blue Color------
    product4     product7    product8     product6
    and so on....

    Why not just put the text in the frame instead of having one text frame on top of another? That way you only have one object instead of two. Right click that and choose text frame options to set the inset for that frame and then apply the text wrap to that frame.
    You set the baseline grid in your preferences. With that setting it's document wide, but you can also set a separate baseline grid for individual text frames.
    If I'm not understanding exactly what you're looking to do, please post a screenshot.
    BTW, do yourself a favor a try to think in InDesign terms. You'll find it much find help.
    Bob

  • How i can set the selected item of a dropDown component from java code

    Hi
    Thank you for reading my post
    How i can set the slected item of a DropDown component from backing beans java code ?
    it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selected item of this combobox
    In back code i have both value and display values to use them .
    can some one give me some help ?
    Thanks ,

    See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    It says
    One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back.

  • How to set Document Library Item Limit at Site Collection level?

    Hi,
    I have SharePoint which contains one Site collection with many Sites. Each sites has many document library.
    Actually my requirement is, End Users  wants to see only 10 items per page in document library. We can manually set by using "Item Limit" option but i could not set that for around 150 document libraries.
    Is there any possible to set that in Site Collection level?
    Thanks & Regards
    Poomani Sankaran

    You can run for each loop and use below code
    http://get-spscripts.com/
    #Get the site and list
    $web = Get-SPWeb "http://portal/sites/testsite"
    $list = $web.GetList(($web.ServerRelativeUrl.TrimEnd("/") + "/Shared Documents"))
    #Get the list view to be changed
    $newview = $list.Views["Sort by modified date"]
    #Set the mobile and default mobile view properties
    $newview.MobileView = $true
    $newview.MobileDefaultView = $true
    #Update the view configuration
    $newview.Update()
    $web.Dispose()
    $web.Lists[0].Views[0].RowLimit=30
    $web.Lists[0].Views[0].Update()
    How you can get all list using powershell
    http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
    If this helped you resolve your issue, please mark it Answered

  • Setting value of items based on a radio group selection

    Hi,
    I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group...
    e.g when value A is selected then only item_1 and item_2 are displayed, when value B is selected then only item_3 and item_4 are displayed... and so on...
    idea was to let users to only enter information related to specific selection... but with what I currently have, users can select option A from the radio group and can enter information in item_1 and item_2 and then they can change there minds and select option B and start entering information in item_3 and item_4 and when they save the form they potentially could have information in all items (item_1 to item_4 and so on)...
    Is there a way I can set the value of certain items to null based on the selection from the radio group... e.g when user select option A, then values of item_3 and item_4 be set to null and if they select option B, then values of item_1 and item2 be set to null...
    Please advice how to approach it the best... I would appreciate a step by step solution as I am a new bee...
    Thanks in advance

    Hi,
    You can hide and disable other items.
    Disabled items values are not submitted.
    And you can create after submit computation that set NULL to item session state according your radio group state
    Regards,
    Jari

  • How to set an Application Item from PL/SQL

    I am attempting to set an Application Item
    After login to my app, I want to retrieve a row from my SETTINGS table and populate some Application Items with the settings information so that I can
    display some of that settings information on every page.
    Just to start, I created one Application Item named F106_YEAR
    I then created a Shared Components Application Process which executes on New Session: After Authentication
    I created this process as an Anynomous PL/SQL block.
    declare
    aucyr varchar(4);
    begin
    select year into auctyr
    from settings;
    :F106_YEAR := aucyr;
    end;
    I've tried a couple of other Syntax tricks attempting to reference the Application Item F106_YEAR from within PL/SQL (like V('F106_YEAR') but nothing seems to be working.
    I'm sure that I am missing something simple. Can someone tell me how to set an Application Item from PL/SQL?
    Thanks in advance.

    I'm still doing something wrong because this is not working for me.
    I've tried both of the following versions as an Application Process set to run on New Session after Authentication:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    :F106_AUCTION_YEAR:=auction_year;
    end;
    and I also tried:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    APEX_UTIL.SET_SESSION_STATE (p_name, p_value);
    end;
    F106_YEAR is a global Item (shared components).
    The select statement works just fine in SQL*PLUS so I know that it is correct.
    If I run the debugger and log into the application, here is the output. Shouldn't I see my Application Process get called if it is set to run on New Session after Validation?
    My Application process is named RETRIEVE_AUCTION_SETTINGS
    0.01: A C C E P T: Request="P101_PASSWORD"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Fetch session state from database
    0.02: ...Check session 695371898690095 owner
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 106, page 101
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P101_USERNAME" - saving same value: "jps"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Branch point: BEFORE_PROCESSING
    0.03: Processing point: AFTER_SUBMIT
    0.03: ...Process "Set Username Cookie": PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end;
    0.04: ...Process "Login": PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );
    0.06: ...Process "Clear Page(s) Cache": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 101
    0.06: Nulling cache for application "106" page: 101
    0.00:
    0.00: S H O W: application="106" page="1" workspace="" request="" session="695371898690095"
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Application 106, Authentication: CUSTOM2, Page Template: 2904114531488186
    0.01: ...Session ID 695371898690095 can be used
    0.01: ...Application session: 695371898690095, user=JPS
    0.01: ...Determine if user "JPS" workspace "1040027630222986" can develop application "106" in workspace "1040027630222986"
    0.01: ...Check for session expiration:
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 106, page 1
    0.01: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Fetch application meta data
    0.02: Computation point: BEFORE_HEADER
    0.02: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER     
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Auction_Title F106_AUCTION_YEAR

  • How to set an application item when report column link is clicked?

    I am trying to set the short name of a bread crumb entry when I drill into a detail from an interactive report page.
    The master report has a column link with target = detail - "page in this application"
    I can pass page items through the URL and they are set on the target page.
    How can I set an application item before the target page is called?
    Is there a way to set a process before the link is followed?

    Kenneth,
    I'm not totally sure that I understood the question but, it soounds like you want to set the value of some page items on the page that is opened when you click a link on a column in the master window. Is this right?
    If so, you can achieve what you want by creating hidden page item(s) on the target page. In the master page, on which every column provides the link, go into Report Attributes, click on the link column and scroll down to the section labeled "Column Link" Within this section, set the link text to the current column value, e.g. #MASTER_REPORT_COLUMN_NAME_HERE#. Set the target to "Page in this Application" and pick the page number for the target window.
    Underneath this you will see a section to set set the value for page items. If you click the flashlight, you can search for the hidden page item that you created above. Use the same value to set it as you did the link text, i.e. #MASTER_REPORT_COLUMN_NAME_HERE#. Do this and let APEX take care of passing the values on the URL.
    On the child page, just set whatever control you want to dynamically pick up the value from the hidden field. For example, if you hidden field where named P4_CLEARER_NAME. You could set the title attribute to "Contact Information for &P4_CLEARER_NAME."
    You need the preceeding "&" and terminating "." around the name of you hidden page item to do this.
    -Joe

  • Problem with setting tooltips for items of a JCombobox

    hi guys,
    I want to set tooltips for items of JComboBox & the code that i have written is given below , but the tooltip text is set for all the items of Nonitindustrycombo but the tooltips remain the same even for Nonitdesgcombo's items.
    Is that we need to refresh the ComboboxRenderer every time ?
    I am not able to trace out the exact reason for this,please if anyone can suggest me something regarding this would be of great use to me.
    class Searchpanel extends JPanel {
    String[] str = null;
    public SearchPanel(){
    Nonitindustrycombo.addItem("--Select--");
    ArrayList NonITindus = ERPModel.getAllNonitIndustry(); //gets all the items(strings) for Nonitindustrycombo
    for (Iterator iter = NonITindus.iterator(); iter.hasNext();) {
    String str = iter.next().toString();
    Nonitindustrycombo.addItem(str);
    SetTooltip(Nonitindustrycombo,NonITindus);
    Nonitdesgcombo.addItem("--Select---");
    ArrayList desg = ERPModel.getAllNonitDesg(); //gets all the items(strings) for Nonitdesgcombo
    for (Iterator iter = desg.iterator(); iter.hasNext();) {
    Nonitdesgcombo.addItem(iter.next());
    SetTooltip(Nonitdesgcombo,desg);
    class MyComboBoxRenderer extends BasicComboBoxRenderer
    public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected,
    boolean cellHasFocus)
    if (isSelected)
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    if (0 < (index))
    list.setToolTipText(str[index - 1]);
    else
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    setFont(list.getFont());
    setText((value == null) ? "" : value.toString());
    return this;
    private void SetTooltip(JComboBox combo,ArrayList arr){
    str = (String []) arr.toArray (new String [arr.size ()]);
    combo.setRenderer(new MyComboBoxRenderer());
    public static void main(String[] args){
    new SearchPanel();
    Thanks ,
    vishal

    1) You where given a working example in your last posting on this topic. Compare your code with the working code to see whats different and fix it.
    2) The code you posted doesn't compile.
    3) You didn't use the "Code Formatting Tags" when you posted your code so it not readable.

  • How to set the default item showed in a h:selectonemenu

    I need to show the second, or the third, and on so.
    i tried some ways to set the default item showed in it, but failed.
    i had tried the attribute value, but it stiil showed the first item.
    Can u help me?
    in the JSP
    <h:selectOneMenu id = "companyName" rendered="true" binding="#{j03CMSyainAddBean.selectCompany}" style="width:150">
           <f:selectItems value="#{j03CMSyainAddBean.companyList2}"/>
    </h:selectOneMenu>in the back BEAN
    private UISelectOne selectCompany;
    private ArrayList companyList2;In the ArrayList companyList2, there are several selectItems.
    Thanks
    George

    Sanjeev K Sharma wrote:
    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    In /etc/default/grub you can use the name of your entry you wish to use as default
    GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
    You can tell grub to stop using submenus by doing:
    GRUB_DISABLE_SUBMENU=y
    Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
    menuentry "Other Linux" {
    linux <KERNEL IMAGE HERE>
    initrd <INITRD IMAGE HERE>
    EDIT: /etc/grub/default -> /etc/default/grub
    Last edited by Slabity (2015-04-07 11:16:22)

  • Problem in Set GLby in Item Master

    Dear All,
    I am facing problem in set GL by method in item master, In my master I have defined some items with warehouse determination, some items with Item group determination and few items with Item level determination.
    but in case of items for which i have set GL by item level are automatically changes to item group as i have determined GL at item level and my item group GLs are blank system wont allow me to transact as there is no account in item group and anyway it is not desired .
    anybody has faced problems like that and what would be the possible solution
    Thanks,
    Regards,
    Atul Joshi

    Hi Atul,
    >>  I am facing problem that in Item master "Set GL By" changes from Item level to Item Group automatically
    I am not sure whether my reply will be of any further help to you or not!
    However, would you please check whether this behaviour is also reproducible in demo database (say OEC computers) or any other database on the same server environment.
    If you are able reproduce the same problem in all databases that are configured in your current server environment, I recommend to report the issue to support via a ticket (if not created already).
    If the problem is with only one database then as already recommended by other experts on this thread:
    1. Comment all user code in Stored procedure
    2. Verify if any formatted search queries are active on Item Master (like auto number generation, like ...)
    3. Is there any add-ons that are active on Item Master
    Would appreciate if you also write back whether you are not able to update on change of "Set GL By" (or) it is getting changed automatically from item level to Item group.
    Good Luck.
    Regards
    Satish

  • Why does StreamSocket::ConnectAsync set up two TCP connections when proxy is configured in system?

    Hello, Dear all,
    Per my test, the proxy for HTTPS will be selected as the actual used one for the out-going packets if we do the following test in an corporate network environment. Two connections will be set up: one is with the proxy, the other one is with the target address.
    Some info about my env:
    1. the configured proxy could only be accessed in the corporate network;
    2. the target host has both private and public IPs;
    3. I don't check whether there is proxy configured in code.
    4. the issue could only occurr in the private network; If I do the test out of the corporate network, the behavior is correct because no proxy is configured. But I am not sure whether the issue would occur if there would be a usable proxy configured.
    The repro steps are:
    1. Create a Windows Store App project with VS2013. The testing code is pretty simple as the following:
    using namespace Windows::Networking::Sockets;
    StreamSocket^ streamSock = ref new StreamSocket();
    IAsyncAction ^sconn = streamSock->ConnectAsync(
    ref new Windows::Networking::HostName("10.1.2.3"), "56789",
    SocketProtectionLevel::PlainSocket);
    The target address and port (10.1.2.3:56789) could be any meaningful or bad one. We only need to observe the packet sent out from the client side in the following steps.
    2. Configure the proxy in Internet Options -> Connections -> LAN Settings -> Advanced -> Secure. Give a good proxy/port to it;
    2.1. Run the program and capturing the packet from Wireshark or other tools.
       ==> You will see that a HTTP request with header "CONNECT" is sent to the proxy. That's to say, the client will connect to the proxy.
       ==> You will also see that the client side also sent out a TCP SYN packet to the remote target address (10.1.2.3:56789).
    3. Disable or remove the proxy setting;
    3.1. Run the program and capturing the packet from Wireshark or other tools.
       ==> You will see that there would be no HTTP request sent out.
    I am using Win8.1/VS2013 and the system is up-to-date... I am not sure the behavior is designed as this, or it is a bug of the StreamSocket?
    BTW: I didn't use Windows::Networking::Connectivity::NetworkInformation::GetProxyConfigurationAsync on purpose.
    For the classical WinSock, we could only see the TCP SYN packet in step 2. That's to say, the behaviors between StreamSocket and WinSocket are different.
    Thank you all.

    A workaround to avoid proxy connection requests from being sent out is to use the
    ConnectAsync(Hostname, String, SocketProtectionLevel,
    NetworkAdapter) method with a specific adapter. The proxy-related logic is disabled when a specific network adapter is selected.
    You can retrieve the main active network adapter by calling GetInternetConnectionProfile() and then referencing the NetworkAdapter property of the returned information:
    ConnectionProfile^ connectionProfile = NetworkInformation::GetInternetConnectionProfile();
    NetworkAdapter^ adapter = connectionProfile->NetworkAdapter;
    You could also enumerate all possible adapters and try to connect on each of them, one by one:
    for each (HostName^ localHostInfo in NetworkInformation::GetHostNames())
    if (localHostInfo->IPInformation != nullptr)
    NetworkAdapter^ adapter = localHostInfo->IPInformation->NetworkAdapter;
    // Attempt to connect with this adapter.

Maybe you are looking for

  • What data type is used for storing password,

    What data type is used for storing pass word in oracle db, i mean if user inputs some thing from forms it should be in Encrypted form in db, please any help?? Thank you Hina

  • Problem in Chinese Language conversion

    HI , I have some probelm in chinese language conversion. Scenario: 1.I am trying to send the saleorder details as a mail, from the output types of sale order. 2.The details of the related cutomer in sales order is maintained in chinese in (XD01) 3.Wh

  • Searching problems on new Macbook

    I bought a new Macbook last week and transferred all my files/data from previous model through crossover cable; worked flawlessly. Now I am having problems with searches both with Spotlight and in individual applications (worked fine on old model). T

  • Panasonic TV models compatible with Freetalk Confe...

    Hi all, Can someone provide me the list of Panasonic TV compatible models for Freetalk Conference HD camera? I am interested in TX-L*E30 (TV LED). Any experience with this particular model? Thanks Kuba

  • OPC instance deadband

    DeadBand-Sets the percent of change within a range that a value from the OPC server must change before the OPC server communicates the value to the Shared Variable Engine. I can't understand how OPC Server relize data range for different OPC items, w