JAXB: using choice to have a list

I'm going a bit crazy here trying to get JAXB to do what I want. I'm also going crazy trying to get this forum to display my posts, so I'm leaving out the code. The problem I'm having is when I want to have a list with more than one type of element in the list. I'm using a choice element in my schema with maxOccurs="unbounded". The problem is when I marshall the tags of the listed elements are missing. Their children show up, unfortunately now they are the children of the parent of the list! Unmarshalling works fine. Is this a problem with JAXB, or am I misusing the choice element?

anyone can extend a hand to give us a hint?

Similar Messages

  • How do I create a URL to filter a view when the value I have from list one is the ID that was used by list 2 to pull in the list 1 title?

    My list "Tasks" has an record with Title = "Build SSIS for Duke Energy" and its ID is 1. Then I have a list "Journal" where I have tracked entries related to the progress of the task. When I create the Journal entries I passed
    in the ID of the task 1 which then pulled the title into the Journal's Associated task lookup column. Now I'd like to have a column in the Tasks list that would have a URL to take me to all journal entries related to the Task. But passing in the ID 1 of the
    task does not work. 
    If the lookup column has the actual Title from the task in all the time and it is not dynamically pulled every time the list is queried shouldn't I be able to filter on the Title e.g. "Build
    SSIS for Duke Energy"  

    I ended up going with a workflow to build the URL and sending the title to the look-up column. 
    I tried the script at that site and ran into several problems. It didn't work with views that were grouped, the calculated links did not show on the edit and view forms. I assume those forms would have to be changed to run the script also.
    In addition to, I have to add a CEWP to each view and I was also losing the "Items" and "List" options (next to "Browse") from the ribbon until I clicked around in the list. 
    What are the downfalls of a workflow? I ask because many people default to using a similar TextToHTML script like you mentioned.

  • I have a list a and want to use (CSR) Jslink to change the view but multiple fields

    I have a list but want to use CSR - jslink to change the view of multiple fields. Can a jslink have multiple fields to change. Looking at the samples
    here
    Would like to merge 2 or 3 script in one to do multiple things. Is this a best practice?
    Thanks in Advance
    Code snippet here below(tried this but not working for me.Sure im missing something): Trying to combine the prioritycolor and percentagecomplete together but not working
    // Create object that have the context information about the field that we want to change it's output render
    var fieldsContext= {};
    fieldsContext.Templates = {};
    fieldsContext.Templates.Fields = {
    // Apply the new rendering for Priority field on List View
    "Priority": { "View": priorityFiledTemplate },
    "PercentComplete": {
    "View": percentCompleteViewFiledTemplate,
    "DisplayForm": percentCompleteViewFiledTemplate,
    "NewForm": percentCompleteEditFiledTemplate,
    "EditForm": percentCompleteEditFiledTemplate
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(fieldsContext);
    // This function provides the rendering logic for list view
    function priorityFiledTemplate(ctx) {
    var priority = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    // Return html element with appropriate color based on priority value
    switch (priority) {
    case "(1) High":
    return "<span style='color :#f00'>" + priority + "</span>";
    break;
    case "(2) Normal":
    return "<span style='color :#ff6a00'>" + priority + "</span>";
    break;
    case "(3) Low":
    return "<span style='color :#cab023'>" + priority + "</span>";
    // This function provides the rendering logic for View and Display form
    function percentCompleteViewFiledTemplate(ctx) {
    var percentComplete = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    return "<div style='background-color: #e5e5e5; width: 100px; display:inline-block;'> \
    <div style='width: " + percentComplete.replace(/\s+/g, '') + "; background-color: #0094ff;'> \
    &nbsp;</div></div>&nbsp;" + percentComplete;
    // This function provides the rendering logic for New and Edit forms
    function percentCompleteEditFiledTemplate(ctx) {
    var formCtx = SPClientTemplates.Utility.GetFormContextForCurrentField(ctx);
    // Register a callback just before submit.
    formCtx.registerGetValueCallback(formCtx.fieldName, function () {
    return document.getElementById('inpPercentComplete').value;
    return "<input type='range' id='inpPercentComplete' name='inpPercentComplete' min='0' max='100' \
    oninput='outPercentComplete.value=inpPercentComplete.value' value='" + formCtx.fieldValue + "' /> \
    <output name='outPercentComplete' for='inpPercentComplete' >" + formCtx.fieldValue + "</output>%";

    Hi Patrick,
    It works in my test environment using your code.
    I suggest follow the steps as below:
    1. Save the following code as a js file (TaskListView.js) and upload it into the SiteAssets Document Library.
    2. Edit the list view page.
    3. Edit the list web part. Go to Miscellaneous -> JS Link.
    4. Add the following URL into the JS Link textbox.
    ~site/SiteAssets/TaskListView.js
    5. Click "OK" and save the page.
    If it still not works, please check whether active the Minimal Download Strategy feature in site feature or not.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • HT204266 Why can't I use paypal?  And if I can't use paypal why do you list it?

    Why can't I use paypal?  And if I can't use paypal why do you list it?

    I suspect it is a case of different rules in different regions. Here in the UK I have a choice of Visa, MasterCard, Amex, ClickandBuy (who they?), Maestro and None... Where are you seeing PayPal advertised as an option?
    tt2

  • OK since midday today firefox 3.6.24 apparently no longer executes javascript on ebay. Can't use the "add to watch list" buttons or the enlarge photo buttons. It says 'javascript at the bottom of the firefox window but nothing happens.

    just as I wrote above.. ebay loads and functions. I can bid and view auctions but trying to either use the "add to watch list" or "add to wish list" buttons or to switch between different posted photos of an item just gives me javascript:; at the bottom left of my screen but clicking the button has no effect.I'm still running 10.4.11 with the last java download.. is this an ebay change to a newer java version not supported by my os or is it a firefox error..oh and one more thing each page seems to have become 4 times longer..ie there is a huge empty space as I scroll down the page before I hit the bottom.Only appears to do this on ebay..haven't found any other sites showing similar errors and everything works fine on my imac running firefox 4 under 10.5

    Craig Stenton: at 12:13:04
    but I can't install windows! During the install I am asked for the product key and it tells me that it is not valid and so I can't proceed.
    Craig Stenton: at 12:14:16
    I can't use the usual methods of activation because I cannot get an activation code. I can't use the activation wizard. I can't call the number because it requires an activation code.
    Hi,
    I'm a bit confused with this paragraph, as you said Vista already install on your computer, why did you say Windows can't be installed?
    According to your description with your problem, it is Product edition and key are not match. Firstly of all, we must make sure the system you installed on your computer was
    Windows Vista Business, not matter 32 or 64 bit.
    Note: you can check current system edtion at System Properties.
    After that, you can try to input your product key and activate your system for test.
    If problem still presists, it would be better to provide the activation error message.
    Roger Lu
    TechNet Community Support

  • Creating a formula using a alphabetic drop down list?

    I am creating a work sheet using formulas and drop down list. I have one drop down list that has a list of name and the second list is a list of letter that correspond to those names. (ex: column "J" on line "4 - 29" there is the letter
    "A-Z" and then continues , in column "K" line "4" starts the list of names. In Cell B4 is the drop down list of names in column "K" to choose from, I would like the letter that corresponds to that name automatically
    be put into cell A4, how do I create the formula in cell A4?

    Hi Tina,
    According to your description, please following these steps:
    With your sample as shown in the following figure, select range “J4:K29”, and click
    FORMULAS-Defined Names-Create from Selection, and check
    Right column.
    Then, use the enter formula in A4 “=INDIRECT(B4)”.
    And I upload a TEXT.xlsx file on OneDrive, you can download this file via this link:
    https://microsoft-my.sharepoint.com/personal/v-lzng_microsoft_com/Documents/Shared with Everyone
    Hope it’s helpful.
    Regards,
    Emi

  • I'm getting prompted to update adobe acrobat 9.5.5 which I have deleted. I am currently using 10.1.13. It is still asking me to update 9.5.5 (can't find anything using it) I have tried to cancel the updates for 9.5.5 but it only recognizes the 10.1.13 ver

    I'm getting prompted to update adobe acrobat 9.5.5 which I have deleted. I am currently using 10.1.13. It is still asking me to update 9.5.5 (can't find anything using it) I have tried to cancel the update prompts for 9.5.5, but it only recognizes the 10.1.13 version. Suggestions? Am I missing something? It's driving me crazy!

    Hi ncm72,
    Could you please let me know what version of OS are you using.
    Also, go to Control Panel/System Preferences in Windows/MAC and check whether Acrobat 9 is shown under installed programs list.
    You might also try running Acrobat cleaner tool to remove all traces of previous versions of Acrobat:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Then, install Acrobat X again from the link mentioned below:
    Download Acrobat products | Standard, Pro | XI, X
    Let me know if this works.
    Regards,
    Anubha

  • All of my previous security exceptions disappeared when I upgraded Firefox and I have NO list of what they were; how do I get them back?

    I was pestered to death by Firefox to upgrade to 12.0. I am really sorry I did. I lost all my Security Exceptions. Tools > Options > Security > Exceptions All of my previous security exceptions disappeared when I upgraded Firefox. They are gone and I have NO list of what they were. Is there ant way to bring them back?

    The security exceptions that allow other sites to install software?
    Which version did you have before -- 3.6.x or Firefox 11?
    I don't know whether you regularly back up your computer, but if you have a backup of your Firefox profile folder, then that data should be in there. If you can locate a backup copy of permissions.sqlite, you could use a utility to extract the list. (Or find a volunteer here to assist you with that.)
    By the way, did your pop-up exceptions and image exceptions carry over? You can check those under Tools > Options > Content.

  • Can we use mgrpAllowedBroadcaster in a static list?

    Hi Jay,
    I have a list that was dynamic in the old setup and want to make it static in the new setup.
    the dynamic list had some users as mgrpAllowedBroadcaster. Can we still use this attribute in a static group?
    thx!

    Yes, there's no difference in mgrpAllowedBroadcaster. The list may be static, dynamic, or even a combination.

  • What technology to use to store a huge list of name-value pairs?

    Hi:
    I have a list of name value pairs (the size of the list is ~500). I get the name from the request parameter, and depending on the value for that, I have to display images on my webpage.
    How should I go about this? Should I use a Hashtable to store the values or should I use an array or should I got for XML and some pattern matching or should I write to a text file and do some pattern matching?
    Please help.
    Thanks

    Did you mean huge (several million) or is 500 more like the number? For "huge" you use a database. For 500, if you want to access the value when you are given the name, you use a Map. Probably a HashMap would be best.

  • I have a list of page URLs - I want a report showing their SiteCatalyst Page Names

    I have a list of page URLs and I want to generate their respective page names.  Is this possible?  I have access to SiteCatalyst 15 and Discover 3.1.
    I want to end up with this table:
    Page URL
    Page Name
    www.example.com/page1
    Page 1
    www.example.com/page2
    Page 2

    You want to do this within CQ ? If yes then you can use pagemanager API to get page http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/Page.html#getName() name and JCR API to get path http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/Item.html#getPath()
    To get absolute URL you can also use externilizer service http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/commons/Externalizer.html#absolut eLink(org.apache.sling.api.SlingHttpServletRequest, java.lang.String, java.lang.String)
    Yogesh

  • HT201068 Can I use this to have someone in another state do my QuickBooks input?

    Can I use this to have someone in another state do my QuickBooks input?

    Hi examinernews,
    After reading your post it seems you would like the ability to allow a remote user to control your Mac. That can be done by using Screen Sharing, a feature of your Mac. I have linked to an article which explains how to use it:
    OS X Mavericks: Share your screen
    You can let others view your computer screen on their own Mac. While your screen is being shared, the user of the other Mac sees what’s on your screen and can open, move, and close files and windows, open apps, and even restart your Mac.
    Open Sharing preferences if it isn’t already open (choose Apple menu > System Preferences, then click Sharing).
    Select the Screen Sharing checkbox.If Remote Management is selected, you must deselect it before you can select Screen Sharing.
    To specify who can share your screen, select one of the following:            
    Option
    Description
    All users:
    Anyone with a user account on your Mac can share your screen.
    Only these users:
    Screen sharing is restricted to specific users.
    If you selected “Only these users,” click Add (+) at the bottom of the Users list, then do one of the following:
    Select a user from Users & Groups, which includes all the users of your Mac.
    Select a user from Network Users or Network Groups, which includes everyone on your network.
    To let others share your screen without having a user account on your Mac, click Computer Settings, then select one or both of the following:
    Option
    Description
    Anyone may request permission to control screen:
    When other computer users begin screen sharing your Mac, they can ask for permission instead of entering a user name and password.
    VNC viewers may control screen with password:
    Other users can share your screen using a VNC viewer app—on iPad or a Windows PC, for example—by entering the password you specify here.
    If this computer’s screen is shared only by other OS X users, turn off these options and add accounts for the other users.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • Have to list all *.jar files one by one as classpath?

    I use some third party jar files, and it seems that I have to list all the jar files one by one for the classpath. For example, this will work:
    javac -classpath .\temp;C:\path\lib\log4j-1.2.9.jar;.\temp;C:\path\lib\jdom.jar -d .\temp -sourcepath @javalist.txtthis won't work:
    javac -classpath .\temp;C:\path\lib\*.jar -d .\temp -sourcepath @javalist.txtIt is not a problem when I have a few of them, but what if I have 10 of them? Any better way to do it with the DOS Prompt? Thanks.

    Thank you for your replay.
    The problem is that I dont' really know what are the *.jar files I need to use at compile time. I have to get the list of *.jar files at runtime. My java program needs to compile any other given java project at runntime, and those projects will have certain project structures, such
    project_root
    |---src
    |---lib
    I need to consturcture the right classpath string and pass it to the exec method of the Runtime class. I have already successfully compiled a sample project by listing all the jar files one after one, but still want to know if there is a better way to do it.

  • Public parts not allowed to be used by the access control list

    hi,
    I have 2 DCs. DC1 and DC2.  I want to use public parts of DC2 in DC1. When I try to do so in in the dependencies tab, I get the following error.
    some public parts are not allowed to be used by the access control list.
    how to resolve this error ?
    Thanks !

    Hi,
    Sorry for the delayed response ....Both ends static routes are added for the connected test interfaces.....
    Regards,
    Mahesh 

  • I don't have music listed in settings to activate iTunes match

    Why don't I have music listed in settings on my ipad2.  How can I resolve it?

    Did you subscribe to iTunes match on your computer first. It must be set up on a computer? You must be running Windows Vista or Max OS X 10.7 in order to subscribe to iTunes Match.
    I am not using this service so I haven't been through the process. Apple has a support article about how to subscribe, but I thought this one was pretty straight forward and informative as well. Take a look at this.
    http://howto.cnet.com/8301-11310_39-57325437-285/how-to-use-itunes-match/

Maybe you are looking for

  • IPad syncing problem - HELP!

    iPad sync problem - HELP!  I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)"  and yet I seem to have plenty of space on the iPad.  This

  • MDM Sender Channel - reading file name

    Hi all, Is there any simple way to read the name of file sent by MDM when I am using MDM sender adapter ? I know if it's file sender channel, then we can read file name by writing a UDF. But just wondering about MDM sender adapter. Regards, -Shankar

  • Query regarding row level calculations in Bex

    I have a scenario where I am creating a report on a multiprovider. This multiprovider is based on General Ledger and Profit Center Accounting cube. The PCA cube has accumulated balances at G/L account and profit center level, and GL cube has balances

  • Find query name based on workbook id and vice versa

    Hi,   I need to developed a progarm in which user can enter Query name ( tech name ) and  it should display all workbooks releated to it  and vice versa . Is there any tables which stores this relationship.? Wating for response. Thx in advance . Rega

  • How to stop the Elements login prompts?

    Elements 9, stop the login prompt?  i bought Elements/premiere 9 bundle for my home computer.  my home computer is not on internet.  how do i stop the login everytime i open the programs?  any product that requires internet access to activate is comp