How to marshall a list that is in object--JAXB

hI,
how can marshall an object to string, with the hlep of JAXB. But my object contains the list and array list values.
Help needed please.
thanks,
naren

It's just a path, so:
./MyLib.llb/MyVI.vi
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml

Similar Messages

  • How to delete the list that comes up in Open Recent

    I apologize because I know this has been answered before, but I cannot find the answer after quite a bit of searching in the forum. I'd like to delete the list that comes up when I choose File/Open Recent and I can't remember how to do that. Could someone please tell me? Thanks.

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *http://kb.mozillazine.org/Password_Manager

  • How to handle Select List that also needs data entry?

    I have a few "Data Entry" situations that can I would like to be able to use a "Select List with Submit" but also allow the user to type in a new value. What is a method to handle this from the data entry perspective?
    Example:
    Database table contains columns:
    ClassName
    AttributeName
    A new AttributeName is going to be added to this table. The AttributeName could either be added into an existing Class or a new Class could be created. If the new Attribute is being added to an existing Class, I would like to select the value from a "Select List" populated from distinct ClassNames from this table (this part works easy with a Select List with Submit). If the Attribute is being created in a New Class, I am not sure the best approach to handle it? I have experimented with the popup LOV and it is not a perfect fit.

    Steve,
    I have done a similar implementation in my app. I have a region with a select list with submit, and a button saying "create new data". I have another region on the page with a form, based on my table. If something is selected in the select list, I populate the form using a pl/sql block. If the button "create new" is clicked, i clear the form and allow the user to enter data, and run a conditional insert pl/sql.

  • How to get to know that the given OBJECT is a drop-down or check box?

    I put a drop-down object in my_form, the details are,
    drop-down name = my_drop_down
    data binded with my_data
    caption = my_caption
    For some, reason, some one has given me this objects (my_drop_down)... i want to figure it out that Whether its a drop-down type of object or a check box or a text field? How can i figure it out PROGRAMITICALLY/Java script?

    Thank you, But, i need to figure out it PROGRAMMITICALLY with java script?
    i used,
    xfa.resolveNode("CUSTOMER.P1.Subform1.TextField28").id == 'DropDown'
    it did not worked! pls. help me
    Regards

  • Sorting a list of different class objects

    Hi All ,
    How to sort a List a.which contains objects of different Classes, b. objects of same class . Is it possible to sort these by implementing Comparable interface .
    Thanks ,
    Rajesh Reddy

    rajeshreddyk wrote:
    Hi All ,
    How to sort a List a.which contains objects of different Classes, b. objects of same class . Is it possible to sort these by implementing Comparable interface .Well, if objects of different classes are kept in the same List and you want to sort them together they at least have that in common. They're Comparable-able. -:) To manifest that the different classes could all implement a Comparableable interface (or maybe Intercomparable would be a better choise of name.)

  • How to marshal List Source using JAXB and xjc?

    Hi all,
    I'm having problems to marshal objects of xjc generated java classes to xml output. In detail I am facing problems to use a list of sources (List<javax.xml.transform.Source>) that's been generated.
    The schema I am using is:
    <xs:complexType name="tTestAttachment">
    <xs:sequence>
    <xs:element name="textXML" type="xs:base64Binary" xmime:expectedContentTypes="text/xml" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="TestAttachment" type="tTestAttachment" />
    ...By using xjc the java classes are generated without problems. The expectedContentTypes="text/xml" results the generation of a List<Source> parameter for the class.
    public class TTestAttachment {
    @XmlMimeType("text/xml")
    protected List<Source> textXML;
    ...Now I want to test the generated classes and marshal an object I created by the following code
    StreamSource ssrc = new StreamSource("file:D:/temp/test.xml");
    attachment.getTextXML().add(ssrc);
    attachment.getTextXML().add(ssrc);
    ObjectFactory objFactory = new ObjectFactory();
    JAXBContext jc = JAXBContext.newInstance(TTestAttachment.class);
    Marshaller marshaller = jc.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
    JAXBElement<TTestAttachment> jaxbelem = objFactory.createTestAttachment(attachment);
    marshaller.marshal(jaxbelem, new PrintWriter(System.out));
    ...But as return I just receive an error message, that StreamSource is not known to the context:
    javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: class javax.xml.transform.stream.StreamSource nor any of its super class is known to this context.]
    ...So now I made it known to the JAXBContext by adding it as parameter:
    JAXBContext jc = JAXBContext.newInstance(TTestAttachment.class);With the result, that I get an output but not as expected with content of the source inline but with the link to it.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns2:TestAttachment xmlns:ns2="http://www.example.com/schema01">
    <ns2:textXML xsi:type="streamSource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <systemId>file:D:/temp/test.xml</systemId>
    </ns2:textXML>
    <ns2:textXML xsi:type="streamSource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <systemId>file:D:/temp/test.xml</systemId>
    </ns2:textXML>
    </ns2:TestAttachment>A second idea was to leave the JAXBContext as it is and add the annotation @XmlList to the attribute of the generated java class. But that also does not lead to the expected result. It included the content of the source now but whitespace separated and not as single objects. The expected result should look some like this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <TestAttachment xmlns="http://www.example.com/schema01">
    <textXML>PD94...sbzwvbWVzc2FnZT4=</textXML>
    <textXML>PD94...sbzwvbWVzc2FnZT4=</textXML>
    </TestAttachment>By the way - when I'm using a single "text/xml" mime type element (maxOccurs="1") in the based schema everything works fine. xjc generates a single attribute of type javax.transform.Source and the marshalling works out the expected way.
    Any suggestions on how to marshal the objects correctly?
    - Thanks in advance

    Hope this link help you -
    http://chakkaradeep.com/index.php/autohosted-sharepoint-apps-deep-dive-part-2/
    Also check this link, About Autohosted Apps Preview program
    http://blogs.msdn.com/b/calvarro/archive/2014/05/20/about-autohosted-apps-preview-program.aspx
    For production, it is recommended to convert Auto Hosted to Provider Hosted App, so better prepared for it now.
    http://msdn.microsoft.com/EN-US/library/office/dn722449(v=office.15).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How do I remove an app from the update list that is under someone else's apple id?

    How do I remove an app from the update list that is under someone else's apple id? So this way the update always fails because it asks for someone else's password. I don't have the app on my mac, it only appears in the update list. It's just annoying, because the update keeps appearing, and the reminder keeps reminding me that I should install a new update.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, the App Store may prompt you to update "Angry Birds" or "Twitter," but the hacked app may be something else entirely. Don't make any assumptions about which app you're looking for. To find it, you must carry out a systematic search with Spotlight.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
    Other...
    A sheet will drop down. In that sheet, select
    Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    4. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

  • How do I delete a card out of my contact list that was dropped in by Facebook (I assume).  It won't let me delete it in -edit -delete card.  It has Facebook logo on the card. I have the contact in my contact list that entered.  This one appeared.

    How do I delete a card from my contact list that was added (I assume) by Facebook? I already have the contact in my contact list.  This card contains all Facebook information for this contact. When I click on Edit, the Facebook logo is by each entry.  It will not allow me to delete it by going to "edit" - "delete card".  Help.

    I tried deleting the name in the list and it won't let me - doesn't highlight.  Same under the Edit tab - it won't hilight.  This card is not like the other cards where you can do that.  I believe the contact has a Facebook acct. and I do to.  I didn't - to my knowledge - add this card from there.  I don't know if that is possible.  Bugs me that  Facebook has control over my Contact List or so it seems.  I will see if Facebook can give me any clues.  Thank you.

  • How do I roll up tasks from different sites in the same collection into one task list that can be overlayed onto a calendar or a timeline?

    I am working on how to make an aggragate list that I would like to overlay to a calendar, or add to a timeline.  There are more than 20 different project sites that have task lists.  I created a custom content type for a task list that adds the
    column "Major Milestone."  I would like to take all tasks that are marked as Major Milestone and have them be displayed on a calendar or timeline on the parent site that sums up all of the Major Milestones in the child sites.
    How should I go about doing this? ... and thanks in advance!

    Thank you for your responce. I used a content query wp to rollup only the Major Milestones, but am unable to overlay the results to a calendar.. The link you provided is for overlaying different task lists onto a calendar, but does not detail how to
    overlay the results from the content query onto a calendar.

  • How to find the list of Queries for that have statistics enabled in the sys

    Hi ,
    How to find the list of Queries  that have statistics enabled on them in the system.
    Please help me in this regard
    Thanks
    Maruthi

    hi ,
    I found three options there like
    X - on
    D - Default
    off
    can you please expalin the difference between on and Default
    Thanks in Advance
    Maruthi

  • How do I get ringtones that are not listed in the phone

    how do I get ringtones that are not on the phone's list?

        Thanks so much for providing that information sidmorgy. There are options available to do a media retrieval that may provide help with retrieving available ring tones that were previously purchased. You can access the steps here http://vz.to/102YOjg to see if that option will work for you. Please keep us posted on the outcome.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • How to get the users list that can Add/Remove or modify Vendors in Oracle?

    How to get the users list that can Add/Remove or modify Vendors in Oracle?
    I need to generate a report like name and responsibility. Thanks

    That query gives the Supplier information.
    But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
    I assume it should be based on the Responsibility.

Maybe you are looking for

  • Can I access my iCloud from someone else's computer?

    Is access on my iCloud account permitted from another person's computer?

  • Loosing connection to VW phone with infotainment unit

    Hi new to this but here goes. I have a VW Phaeton with infotainment and bluetooth. The BB torch pairs ok but after several uses it fails to connect correctly and only reconnects after pulling the battery to reboot. I am in the process of replacing th

  • Burning NTSC vs. PAL

    I have moved a great deal of my DVD library into iTunes and have never cared about NTSC v PAL. However, I may be moving from the US to a country where PAL is the standard. What should I be worried about? Are the videos in my library going to be usabl

  • Number emails from iCloud...per day. I need a work around the restriction

    I use a MacBook Pro, lots of memory, drive space etc. That is not the problem. I am the President of a Mac club, 749 members and membership person of our fishing club, 78 members. I send out many emails each day. iCloud prevents me from sending due t

  • ImageIcon with servlets

    If I use (in my servlets) ImageIcon imageIcon = new ImageIcon("/te/a.jpg"); or ImageIcon imageIcon = new ImageIcon(byte_out.toByteArray()); (where byte_out is a ByteArrayOutputStream) il works very well with Tomcat 4 and Tomcat 5 on WinXp, but it doe