BluetoothSelectDevices strange behavior on Windows 7 and 8

Hi,
I have strange problem with BluetoothSelectDevices function from Windows Bluetooth API. I am developing an application containing mixed managed and unmanaged C++ code. One of its
required functions is to open a bluetooth devices selection dialog in order to give possibility to a user select previously remembered device or to pair and select a new device. First my problem appears when I call BluetoothSelectDevices with fAddNewDeviceWizard
field of BLUETOOTH_SELECT_DEVICE_PARAMS set to FALSE. In this case I wand a user simply will select his device from a list without possibility to add and pair a new device. This is my function:
static uint64 dialappBluetoothSelectDevice (HWND hwnd)
BLUETOOTH_SELECT_DEVICE_PARAMS btsdp = { sizeof(btsdp) };
btsdp.cNumOfClasses = 0; // search for all devices
btsdp.prgClassOfDevices = 0;
btsdp.pszInfo = L"Select Device..";
btsdp.hwndParent = hwnd;
btsdp.fForceAuthentication = FALSE;
btsdp.fShowAuthenticated = TRUE;
btsdp.fShowRemembered = TRUE;
btsdp.fShowUnknown = TRUE;
btsdp.fAddNewDeviceWizard = FALSE;
btsdp.fSkipServicesPage = TRUE;
btsdp.pfnDeviceCallback = 0; // no callback
btsdp.pvParam = 0;
btsdp.cNumDevices = 0; // no limit
btsdp.pDevices = 0;
if (BluetoothSelectDevices(&btsdp))
LogMsg ("BluetoothSelectDevices returned TRUE");
uint64 addr;
BLUETOOTH_DEVICE_INFO * pbtdi = btsdp.pDevices;
for (unsigned cDevice = 0; cDevice < btsdp.cNumDevices; cDevice ++)
if (pbtdi->fRemembered) {
addr = pbtdi->Address.ullLong;
break;
pbtdi = (BLUETOOTH_DEVICE_INFO*) ((BYTE*)pbtdi + pbtdi->dwSize);
BluetoothSelectDevicesFree(&btsdp);
return addr;
LogMsg ("BluetoothSelectDevices returned FALSE, GetLastError = %d", GetLastError());
return 0;
So, after calling this function the “Select Bluetooth Device” window is opened, but it is absolutely clean: there is only my text "Select
Device.." shown on the gray background and “Search Again” button at left-bottom window’s corner.  I have not overcome this problem for now.
The next problem appears on Windows 8 systems only when I set fAddNewDeviceWizard = TRUE. In this case the dialog is really shown (white background) and a user can select and pair a new
device. But when he completes device pairing, the function returns FALSE! Why? (On Windows 7 it works correctly). The GetLastError returns ERROR_CANCELLED (1223).
This problem is my real showstopper. What am I doing not correctly?
Thanks in advance.
Sergey

Hi RedSoftk,
Welcome back!
Problem1: I wonder if you really get one or more selected device.
Problem2:  Maybe you could test if the Bluetooth is still connected after your app gives you a FALSE. if the FALSE is given you when you press the complete button, so it is possible that the Bluetooth has failed to paired and added to PC.
Regards!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Strange behavior of Windows Azure Compute Emulator (SDK 2.3)

    Today, after an update of the Azure SDK from 2.2 to 2.3, I noticed that only one of the two instances of my web role is started in
    the Azure Compute Emulator, the output of the Start-AzureEmulator is this:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:3389/
    VERBOSE: Started
    and only one instance is started in the Azure Compute Emulator.
    But in the past was something similar to this one:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    http://127.0.0.1:82/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:338/
    VERBOSE: Started
    and two instances were started.
    I already found this thread:
    http://stackoverflow.com/questions/13946634/strange-behavior-of-windows-azure-compute-emulator-sdk-1-8-with-multiple-role
    but it was not useful in my case (Microsoft.WindowsAzure.Common.WorkArounds.BindToAllIpsWorkAroundEnabled is False).
    Thanks in advance for any help.
    OS: Windows 8.1
    Azure SDK: 2.3
    Azure Compute Emulator: 2.3.0.0

    Hi,
    As far as I know, powershell didn't have a parameter to start azure emulator with full express, please try to use Command-line to test, refer to
    http://msdn.microsoft.com/en-us/library/gg433130.aspx for more details, if this didn't give you help, please feel free to let me know.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WM_CAP_DRIVER_CONNECT strange behavior on Windows 7

    Hi,
    I'm sorry if this is not the right place to post my question, but I did not found one, maybe someone could suggest me.
    Anyway, I have some code for aquiring cam image using WM_CAP* messages.
    While it works perfectly on an XP machine, in Seven I have a lot of strange behavior.
    On the first call to
    SendMessage(hCapWnd, WM_CAP_DRIVER_CONNECT, DriverIdx, 0&)
    The "source Video" window appear, while on XP it return immediately true.
    Now I choose the source and I press OK but the SendMessage returns false!
    I try again and this time no window appear and the acquisition start normally!
    Then, I disconnect the driver and I try to connect again but the windows appear every time and SendMessage returns false!!!
    It make me crazy!! Please, could someone have some suggestions?
    Regards,
    Daniele.

    Daniele, I'm fighting the same problem as yours. I gave up at the first call to capDriverConnect. Didn't know it may succeed at the second shot.
    GetLastError reports 0 = ok.
    But there must be a way to succeed, because I started an app attached to the driver I use, and it works correctly, without the unwanted dialog. Can't check it right now, but it is probably the same app as here (if link does not work, just search for vbvidcap):
    http://www.natech-inc.com/names/other_programs/vidcap/index.html
    How does it go in your case?
    edit1: Sometimes there are problems if a window belongs to a different thread. Are you sure you call capDriverConnect from the thread that created the window with capCreateCaptureWindow?
    edit2: Sorry for the wrong hint. vbvidcap has the same problem. The app that works uses directshow, not vfw.
    edit3: Maybe the camera is reserved by some other application, or by unknown bug. Appearing of the "choose source" dialog is a sign of the blockage of the device, this works so on XP. In my case I resolved the problem by unplugging the camera and connecting
    it again. And the drivers must be ok. So I remain a believer of VFW :) Troublesome and awkward, but works!

  • Strange behavior with Zoom and Image control

    HELP - I have a strange behavior (bug?) with using Zoom
    effect on an Image that has been placed on a Canvas. I am using
    dynamically instantiated images which are placed on a canvas inside
    a panel. I then assign a Zoom IN and Zoom Out behavior to the
    image, triggered by ROLL_OVER and ROLL_OUT effect triggers. THE BUG
    is that the image jumps around on the Zoom OUT and lands on a
    random place on the canvas instead of coming back to the original
    spot. This is especially true if the mouse goes in and out of the
    image very quickly. HELP -- what am I doing wrong? Computer = Mac
    OS X 10.4.9 Flex 2.0.1
    Here's a simple demo of the bug -- be sure to move the mouse
    in and out rapidly:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="setUp();">
    <mx:Script><![CDATA[
    import mx.events.EffectEvent;
    import mx.effects.Fade;
    import mx.effects.Zoom;
    import mx.rpc.events.ResultEvent;
    import flash.display.Sprite;
    import mx.core.UIComponent;
    import mx.controls.Image;
    private var zoomIn:Zoom;
    private var zoomOut:Zoom;
    private function setUp():void {
    var image:Image = new Image();
    image.id = "album_1_1";
    image.x = 200;
    image.y = 200;
    image.width = 64;
    image.height = 64;
    image.source = "
    http://s3.amazonaws.com/davidmccallie/album-128.jpg";
    image.addEventListener(MouseEvent.ROLL_OVER, doZoom);
    image.addEventListener(MouseEvent.ROLL_OUT, doZoom);
    myCanvas.addChild(image);
    zoomIn = new Zoom();
    zoomIn.zoomHeightTo = 2.0;
    zoomIn.zoomWidthTo = 2.0;
    zoomIn.captureRollEvents = true;
    zoomIn.suspendBackgroundProcessing = true;
    zoomOut = new Zoom();
    zoomOut.zoomHeightTo = 1.0;
    zoomOut.zoomWidthTo = 1.0;
    zoomOut.captureRollEvents = true;
    zoomOut.suspendBackgroundProcessing = true;
    private function doZoom(event:MouseEvent):void {
    var image:Image = Image(event.currentTarget);
    if (event.type == MouseEvent.ROLL_OVER) {
    zoomIn.target = event.currentTarget;
    zoomIn.play();
    } else if (event.type == MouseEvent.ROLL_OUT) {
    zoomOut.target = event.currentTarget;
    zoomOut.play();
    ]]>
    </mx:Script>
    <mx:Panel width="100%" height="100%"
    layout="absolute">
    <mx:Canvas id="myCanvas" width="100%" height="100%">
    </mx:Canvas>
    </mx:Panel>
    </mx:Application>

    There must be bugs in the Zoom effect code -- I changed the
    Zoom to Resize in the above code, and it works perfectly. Of
    course, Resize is not as nice as Zoom because you can't set the
    resize to be around the center of the image, but at least it works.
    Does anyone know about bugs in the Zoom effect?

  • Strange behavior in updating and standbying

    Hi,
    In the last 4 weeks I've been facing some strange behavior from my iPhone 4. First, sometimes when I pick it up its screen is already on (dimmed) and showing the lock screen (with some elements missing though). Secondly, and more annoying yet, when I try to update the apps via app store the initial process occurs normally but after loading the first app it begins installing it and keeps in it forever. I have to soft reset the phone. After that, the app (that kept installing) seems ok. So, I repeat the process of update from the beginning (app after app).
    I've already tried to hard reset the device without any luck with any of the problems. Any suggestions about what is going on?
    Thanks
    Adriano

    Hi,
    I'm not clear on the distinction you're making for type of access.
    Well, to be honest, now that I've re-read that this morning I'm not completely sure what I had in mind either. I think I was thinking about using the collection in what I believe the documentation calls "slices". However, given the other information you've posted it doesn't seem like that would be a feasible alternative in any case.
    I understand what you mean about varray and nested-table with the upper-bound limit for the varray's... I've not actually compared the two for performance so my idea that there may be a difference could be completely incorrect. Beyond that, creating code that only works in batches (or slices) may be less performant than what you currently have.
    I hope I've not detracted from the thread and maybe someone else with more experience will have an "ah ha!" sort of observation.
    Regards,
    Mark

  • Strange behaviors between TextInputSkin and StageTextInputSkin

    Hi All,
    I met a very strange behaviors, and need help with, any idea will be truly appreicated.
    I have a phone field and date field both from TextInput field, I aslo have textfieldskin which is original from TextInputSkin.
    When I apply the TextInputSkin to the TextInput field, the softKeyboard Type can not be modified. I found out that as TextDisplay is not StyleableStageText, the autocorrect, type, etc can not be modified while StageTextInputSkin will work just fine.
    However, when I applied the StageTextInputSkin to my fields, the mouse click event can not be rececived any more...
    My question: How can I change the softkeyboardType and be able to receive mouse click event at same time if my control is from TextInput?
    Kind Regards,

    6 months, and a new cs6 with no improvements on this issue.
    My biggest problem is with an android ICS unit the softkeyboarddeactivated gets called when the keyboard switches and shows the mic speak input keyboard but softkeyboardactivating or activated does not get called when the mic input keyboard is shown.
    Also the scrolling bug is horrible and needs to be fixed.
    and keypresses are needed.
    and being able to layer the native components would be great.
    im sad.

  • Strange behavior from battery and/or charger on my Playbook

    I have a Playbook 16gb, about a year old which was working well until about 2 months ago when the micro usb port stopped working.  Turns out a pin was damaged, and I had to have a whole new port installed (cost $75.00) with a 30-day warranty.
    Two months later, when the warranty had run out the same problem started happening.  I went to another repair shop this time and was told again, a pin was damaged.  I don't know if the first place gave me a damaged port or never removed the old one. I thought this was really strange, but could not dispute it and again had a new usb port installed ($45.00 this time, and a 90-day warranty).
    So this time the usb port is working, and the charge comes across the battery icon to show that the battery is charging, except that it never charges up the battery.  Overnight charging later, the battery indicates the charge is still where it was when I originally started charging - but - I seem to be able to work on the tablet for many hours with the charger attached.  So, the charger does not charge the battery but it seems to work like an electrical cord and keep electricity going into the tablet for as long as I need to use it. Trouble is I can't take the tablet anywhere if I can't guarantee I will find a wall plug to plug into.
    So I thought maybe the battery is the problem. I installed Battery Guru, but it says the battery health is 90%.  When I remove the charger the battery level starts to drop, but when I plug it back in, it does not increase, but doesn't decrease either.
    Can anyone tell me what is going on?  I don't want to go back to the shop and have to spend more money without a guarantee anything will be fixed.

    I think thats fine.  This is a gray area since 2 companies have worked on it.  I don't think you should have to keep paying over and over to get the same thing fixed if it is breaking for no reason.  Is it possible for the last company that repaired it to contact RIM for a possible RMA or other repair options?
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Strange behavior with getCommonCharacterFormat and links

    I am working on a texteditor using TLF and Flash CS5. The problem I have is that when I use getCommonCharacterFormat on a single point selection the behavior is different if I have a link-tag adjacent to the selection compared to not having it.
    Think of a text like this: "Hello beautiful world!"
    - When I place the cursor at the end of the text in bold the format says bold and when i continue to write the text will be in bold.
    - When I place the cursor just before the text in bold the format says not bold and when i continue to write the text will not be in bold.
    This makes perfectly sence to me and is exactly what I would expect to happen.
    But if I make the word "beautiful" into a link the behavior is very different.
    - When I place the cursor at the end of the text in bold the format says not bold but when i continue to write the text will be in bold.
    - When I place the cursor just before the text in bold the format says bold but when i continue to write the text will not be in bold.
    Is this a bug or is there a good explanation to this behaviour? Should I do want I want to do in a different way?
    I you want me to I can paste some example code that illustrates my problem.
    /Peter

    Sounds like a bug. The issue, for what it's worth, is that typing after a link is different than typing after a span, because new text that you type isn't added to the link. We'll investigate.
    - robin

  • Very strange behavior with to_date and format 'yddd' after 31/12/2009

    Hi, I have the following PL/SQL code which retrieve a date from a production batch code as fallow:
    DECLARE
    dtmDateFabric DATE;
    BEGIN
    -- on teste si l'on peut reconstituer la date fabric à partir du code lot
    dtmDateFabric := TO_DATE ('9348', 'yddd');
    DBMS_OUTPUT.put_line ('dtmdatefabric ' || dtmDateFabric);
    END;
    batch code is constitued like this: YDDD year of production and day number in year.
    This code was perfectly working before 2010 and it used to return December 14, 2009.
    And now the same code returns December 14, 2019.
    And I can't use 'rddd' as format.
    Any idea to resolve this issue ?
    Thank's for help.
    Olivier

    It's not strange at all, we are in 2010 now, so if don't specify the decade, century and millennium it takes the current: 2 (millennium) 0(century) 1(decade) and your year becomes 2019...
    You have to add a byte to your year format to specify the decade:
    SQL> DECLARE
      2  dtmDateFabric DATE;
      3  BEGIN
      4  -- on teste si l'on peut reconstituer la date fabric à partir du code lot
      5  dtmDateFabric := TO_DATE ('09348', 'yyddd');
      6  DBMS_OUTPUT.put_line ('dtmdatefabric ' || dtmDateFabric);
      7  END;
      8  /
    dtmdatefabric 14-12-2009 00:00:00
    Procedura PL/SQL completata correttamente.And you'll be ok untill 2099...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/07/creare-documenti-office-da-plsql/]
    Edited by: Massimo Ruocchio on Jan 8, 2010 4:40 PM
    Added explaination

  • Strange behavior with Premiere and effects in CS6

    Hello
    I created a PS file with several layers of a subject for a TV show idea i am preparing for a presintation but every time a render my effects are not as i see them., speciffialy the 8-16 point Garbage mattes and keying.
    The PS files where dragged and dropped into Premiere and as Sequences to maintin them in folders and in a Nested Sequence.,
    Then i sort of sequences masked PS layers, using Ultra key to punch out the greene screen,  8/16 point Gabrage mattes to take out any other noise or background images un wanted, MOJO to warm up the subject i then placed the sequence as a NESTED sequence in my time line, but when i would render the Garbage Mattes, keying and all would be partially showing a previous tweek, but when i open the nested Sequence i would not see these errors or older tweeks, yet in the main Sequence aka composition i would see them yet when i would place the mouse over the time line to select an area for the position to play they would go away again,
    sounds like a bug?
    OSX10.7.4 
    imac i7 12GB
    8TB RAID
    CS6 Suite
    Message was edited by: Andrew Yoole
    This message was relocated from the After Effects Forum.

    There must be bugs in the Zoom effect code -- I changed the
    Zoom to Resize in the above code, and it works perfectly. Of
    course, Resize is not as nice as Zoom because you can't set the
    resize to be around the center of the image, but at least it works.
    Does anyone know about bugs in the Zoom effect?

  • Strange behavior by OMBIMPORT and configuration defaults

    Hi!
    We use a OMBplus script that exports a collection from our dev repository as:
    OMBEXPORT TO MDL_FILE '$MDL_EXPORT_FILE' FROM PROJECT 'STORE' COMPONENTS (COLLECTION '$COLLECTION') OUTPUT LOG '$MDL_EXPORT_LOG'
    When importing it into the test repository the ORACLE_MODULE will loose its configuration defaults and the configurations will be set to "Unknown value", and the deploy will fail. (The configurations are the same and the import uses NAMES as identifier)
    Why is this happening? Why does the import update the ORACLE_MODULE? Also, it works fine with some modules so it is probably a setup issue, but I just can't find it!
    Do you have any ideas of what problems I'm facing?
    Thanks in advance!
    // Pär

    Hi again.
    I solved the problem now, but I do not know the exact reason it failed in the first place...
    The problem did occurr in the source-repository (at EXPORT). So I dropped and recreated all locations connected to the problematic module. Then I validated the entire module and made sure it was OK. Then I exported the entire module.
    Finally I went into my target repository and deleted the module and then re-created it using the export from above. It seems to have solved the problem.
    Thanks!
    / Pär

  • Strange behavior of kMoveStoryRangeCmdBoss and kCopyStoryRangeCmdBoss

    Hi All,
    I use ITextUtils::QueryMoveStoryCommand with ignoreAttributes = kFalse to move text between text frames, while preserving text formating.
    But there were some cases when  text formatting was not preserved. I have tryed ITextUtils::QueryCopyStoryCommand on these frames and everything worked ok.
    Any help will be of great value!
    Regards,
    Oleg

    I looked up the reviews for your drive on newegg.com and found the following comments that might be relevant:
    +Pros: This drive replaced an 80gb drive in my mac mini. I've had no problems over the last year, it's been reliable and quiet. Good price for the capacity. The drive is optimized for streaming, so dumping movies and music to it is a good fit.+
    +Cons: The drive was optimized for streaming, so any type of random reads or writes results in very low performance. It would work good as a media center hard drive, but this drive is actually slower on random read/write benchmarks than the 4200 rpm drive it replaced.+
    and
    +Pros: Drive worked, it was cheap, seems to be decent quality. Built for streaming+
    +Cons: Built for streaming, not random access. Random accesses are painfully slow.+
    +Other Thoughts: I used this to replace my Mac Mini's factory hard drive. It gave me much more space, and I also figured the improved 5400rpm spindle speed couldn't hurt. I definitely have more space, but the drive is pretty slow.+

  • Strange behavior with 3560s and RPS 2300

    I just installed an RPS 2300 in a small branch office that has a pair of WS-C3560-24PS switches.  There are two odd things I'm noticing:
    1) When I do "show env rps", it shows the RPS detected but I don't get any information about it.
    Switch#show env rps
    SW  Status          RPS Name          RPS Serial#  RPS Port#
    1   Active          <>
    2) When the switch loses power it fails over to the RPS just fine, but does not fail back to regular power automatically.  I have to unplug the RPS. 
    I've installed same model RPS with a pair of 3750-Es switches, and in that case, "show env rps" from the switch shows me the RPS information, and failback happens when regular power is restored.
    Is there something different about the 3560s, or did I miss something in the configuration?  The switches are running 12.2(55)SE7, IP Services.

    Yes, just found via searching automatic failback is only supported on the 3560-E and 3750-E.
    https://supportforums.cisco.com/message/3669961#3669961
    Also noticed the "power rps" commands are only supported on the 3560v2, so those won't work for me.
    http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_52_se/command/reference/3560cr/cli1.html#wpmkr11908996
    What's funny is while the exec commands don't work, the config-mode commands do. 
    Switch#power rps name serialnumber
    Can not execute cmd on legacy switch 1
    Switch#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#power rps deviceid serialnumber
    Oh well.  I've been wanting to replace the 3560s with 3750Gs, so this is yet another reason to do so!

  • Strange behavior in a table with dropTarget and delete action

    I am having a strange behavior in a table with drag and drop and action component to delete row.
    Steps:
    Drag the first row to the table and appears in the destination table (works well)
    Select and change the value by 156, appears an error (works fine)
    delete the row, the row disappears (works well)
    Add the first row again and the value is 156 instead of 158 (why ????)
    I guess the error is the deletion that is not correct, but do not know how?
    Can anyone help?
    I add the source code if you see where I'm wrong
    Java class:
    +public class BeanExample {+
    private ArrayList<RowExample> starttValues;
    private ArrayList<RowExample> endValues;
    +public BeanExample() {+
    super();
    +}+
    +public void setStarttValues(ArrayList<BeanExample.RowExample> starttValues) {+
    this.starttValues = starttValues;
    +}+
    +public ArrayList<BeanExample.RowExample> getStarttValues() {+
    +if (starttValues == null) {+
    starttValues = new ArrayList<BeanExample.RowExample>();
    starttValues.add(new RowExample("1", new Number(158)));
    starttValues.add(new RowExample("21", new Number(12565464)));
    +}+
    return starttValues;
    +}+
    +public void setEndValues(ArrayList<BeanExample.RowExample> endValues) {+
    this.endValues = endValues;
    +}+
    +public ArrayList<BeanExample.RowExample> getEndValues() {+
    +if (endValues == null) {+
    endValues = new ArrayList<BeanExample.RowExample>();
    +}+
    return endValues;
    +}+
    +public void validatorExample(FacesContext facesContext, UIComponent uIComponent, Object object) {+
    Number number = (Number)object;
    +if ((number.longValue() % 2) == 0) {+
    FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, "ES PAR", "ES PAR");
    throw new ValidatorException(message);
    +}+
    +}+
    +public DnDAction handleDrop(DropEvent dropEvent) {+
    Transferable transferable = dropEvent.getTransferable();
    DataFlavor<RowKeySet> rowKeySetFlavor = DataFlavor.getDataFlavor(RowKeySet.class, "loteDrag");
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    +if (rowKeySet != null) {+
    CollectionModel dragModel = transferable.getData(CollectionModel.class);
    +if (dragModel != null) {+
    Object currKey = rowKeySet.iterator().next();
    dragModel.setRowKey(currKey);
    RowExample table = (RowExample)dragModel.getRowData();
    getEndValues().add(new RowExample(table.getId(), table.getValue()));
    return dropEvent.getProposedAction();
    +}+
    +}+
    return DnDAction.NONE;
    +}+
    +public void borrarFila(ActionEvent actionEvent) {+
    endValues.remove(0);            RequestContext.getCurrentInstance().addPartialTarget(FacesContext.getCurrentInstance().getViewRoot().findComponent("pc1:t2"));
    +}+
    +public static class RowExample {+
    private String id;
    private Number value;
    +public RowExample(String id, Number value) {+
    super();
    this.id = id;
    this.value = value;
    +}+
    +public void setId(String id) {+
    this.id = id;
    +}+
    +public String getId() {+
    return id;
    +}+
    +public void setValue(Number value) {+
    this.value = value;
    +}+
    +public Number getValue() {+
    return value;
    +}+
    +}+
    +}+JSF
    +<?xml version='1.0' encoding='windows-1252'?>+
    +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"+
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    +<jsp:directive.page contentType="text/html;charset=windows-1252"/>+
    +<f:view>+
    +<af:document id="d1">+
    +<af:form id="f1">+
    +<af:panelGroupLayout id="pgl1">+
    +<af:table value="#{beanExample.starttValues}" var="row"+
    rowBandingInterval="0" id="t1" rowSelection="single"
    displayRow="selected" contentDelivery="immediate">
    +<af:column sortable="false" headerText="Id" align="start" id="c2">+
    +<af:outputText value="#{row.id}" id="ot1"/>+
    +</af:column>+
    +<af:column sortable="false" headerText="Value" align="start" id="c1">+
    +<af:outputText value="#{row.value}" id="ot2"/>+
    +</af:column>+
    +<af:collectionDragSource actions="COPY" modelName="loteDrag"/>+
    +</af:table>+
    +<af:panelCollection id="pc1">+
    +<f:facet name="toolbar" >+
    +<af:toolbar id="dc_t2" >+
    +<af:commandToolbarButton shortDesc="Delete"+
    icon="/imagesDemo/delete_ena.png"
    id="dc_ctb3" immediate="true"
    +actionListener="#{beanExample.borrarFila}"/>+
    +</af:toolbar>+
    +</f:facet>+
    +<af:table value="#{beanExample.endValues}" var="row"+
    +rowBandingInterval="0" id="t2">+
    +<af:column sortable="false" headerText="Id" align="start" id="c3">+
    +<af:outputText value="#{row.id}" id="ot3"/>+
    +</af:column>+
    +<af:column sortable="false" headerText="Value" align="start" id="c4" >+
    +<af:inputText value="#{row.value}" autoSubmit="true" id="it1" validator="#{beanExample.validatorExample}"/>+
    +</af:column>+
    +<af:collectionDropTarget actions="COPY" modelName="loteDrag"+
    +dropListener="#{beanExample.handleDrop}"/>+
    +</af:table>+
    +</af:panelCollection>+
    +</af:panelGroupLayout>+
    +</af:form>+
    +</af:document>+
    +</f:view>+
    +</jsp:root>+

    I think the problem is the validator
    I changed the practical case, I added an InputText to enter new values in the first row.
    +<af:inputText immediate="true" label="new value" id="it2"+
    +valueChangeListener="#{beanExample.newvalue}" autoSubmit="true"/>+
    +public void newvalue (ValueChangeEvent valueChangeEvent) {+
    +String valor = (String)valueChangeEvent.getNewValue();+
    +Number valorNumber=null;+
    +try {+
    +valorNumber = new Number (valor);+
    +} catch (SQLException e) {+
    +}+
    +RowExample example = (RowExample) endValues.get(0);+
    +example.setValue(valorNumber);+
    +example.setId(valorNumber.toString());+
    +RichTable table = (RichTable)FacesContext.getCurrentInstance().getViewRoot().findComponent(id);+
    +RequestContext.getCurrentInstance().addPartialTarget(table);+
    +}+
    Case 1
    I drag the first row to the target table (ok)
    The new row appears (ok)
    Enter the value 77 in the InputText (ok)
    id content and value change (ok)
    Case2
    I drag the first row to the destination table
    The new row appears (ok)
    Change the value of the first row by 80 (ok)
    errors appears (by validator) (ok)
    Enter the value 77 in the InputText (ok)
    the id is changed but the value NO (*KO*)
    I do not understand the behavior
    Edited by: josefuente on 27-oct-2010 16:03

  • Zenworks Agent 10.3.3 - Windows 7 32 -Strange behavior

    Hi,
    Here's my problem :
    I have a SYSPREP fully functionnal that install the Novell Client IR9a on a Windows 7 SP1 32Bits and at the end i have a VBS File that download the latest version of Zenworks Agent installer to the local harddrive. After it installs it... Then a strange behavior happen after the required reboot by the installer.
    You can't ping any DNS names until until you have rebooted your machine 3 times.
    -> You can ping ip addresses but not their names.
    I tried to do a flush dns realse or renew and same behavior... can't ping any DNS names.
    This problem is not there if i do not install the Adaptive agent and leave the Novell Client Alone...
    The Windows 7 was originally a home premium that was upgraded to a oem pro license if that can ring any bell.
    Thank you.

    There was an issue a LONG time ago that I have not heard reported
    since..........
    http://www.novell.com/support/viewCo...rnalId=7004310
    Maybe the old work-around will help you...........
    On 1/16/2012 2:46 PM, anto28 wrote:
    >
    > Hi,
    >
    > Here's my problem :
    >
    > I have a SYSPREP fully functionnal that install the Novell Client IR9a
    > on a Windows 7 SP1 32Bits and at the end i have a VBS File that download
    > the latest version of Zenworks Agent installer to the local harddrive.
    > After it installs it... Then a strange behavior happen after the
    > required reboot by the installer.
    >
    > You can't ping any DNS names until until you have rebooted your machine
    > 3 times.
    >
    > -> You can ping ip addresses but not their names.
    >
    > I tried to do a flush dns realse or renew and same behavior... can't
    > ping any DNS names.
    >
    > This problem is not there if i do not install the Adaptive agent and
    > leave the Novell Client Alone...
    >
    > The Windows 7 was originally a home premium that was upgraded to a oem
    > pro license if that can ring any bell.
    >
    > Thank you.
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

Maybe you are looking for