@XmlType.propOrder Is not working when filed to be mapped to attributes

Dear all;
I found something (may be it is a bug in the implementation) or I mistakely use it.
I have the follwoing class :
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlType(name="",
propOrder={"payerName","tpaName"})
public class PayerSet {
     private String payerName;
     private String tpaName;
     public void setPayerName(String payer) {
          this.payerName = payer;
      //@XmlAttribute is disabled now
     public String getTpaName() {
          return tpaName;
     public void setTpaName(String tpa) {
          this.tpaName = tpa;
        //@XmlAttribute is disabled now
     public String getPayerName() {
          return payerName;
}and the follwing one which conatins an instance of the previous:
@XmlRootElement
public class EligibilitlyRequest{
     private PayerSet payerSet;     
     public PayerSet getPayerSet() {
          return payerSet;
     public void setPayerSet(PayerSet payerSet) {
          this.payerSet = payerSet;
}Now if I marshal an instance of EligibilitlyRequest object as shown :
     EligibilitlyRequest eligbRequestObject=new EligibilitlyRequest();
     PayerSet payeSet=new PayerSet();
     //Set payer Set---------------------------------
     payeSet.setPayerName("NCCI");
     payeSet.setTpaName("N/A");
     eligbRequestObject.setPayerSet(payeSet);
       JAXBContext ctx=JAXBContext.newInstance(EligibilitlyRequest.class);
     Marshaller m=ctx.createMarshaller();
     StringWriter sw=new StringWriter();
     m.marshal(eligbRequestObject, sw);
     System.out.print(sw.toString());
          I got the order as expected, similar to :
<eligibilitlyRequest>    
   <payerSet >
<payerName >NCCI</payerName>
< tpaName > N/A< /tpaName>
</payerSet>
</eligibilitlyRequest>Note that the order of elements inside <payerSet> is exaclty as specified in ( @XmlType(name="", propOrder={"payerName","tpaName"}) in the PayerSet class.
Now the strange thing happens when I add @XmlAttibute for the PayerSet class (removing the comment), as shown
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlType(name="",
propOrder={"payerName","tpaName"})
public class PayerSet {
     private String payerName;
     private String tpaName;
     public void setPayerName(String payer) {
          this.payerName = payer;
// Now @XmlAttribute is enabled
     @XmlAttribute
     public String getTpaName() {
          return tpaName;
     public void setTpaName(String tpa) {
          this.tpaName = tpa;
// Now @XmlAttribute is enabled
        @XmlAttribute
     public String getPayerName() {
          return payerName;
<eligibilitlyRequest>
        <payerSet tpaName = "N/A" payerName = "NCCI"/>
</eligibilitlyRequest>Please, pay attention to the output order it is not as specified in teh .propOrder of @XmlType annotaion !!!!!!!!!!!!!
Can any one help me to figure out if it is a bug or I miss sometning.
Regards
Edited by: Hope_Seeker on Apr 28, 2010 7:35 AM

Hello,
@XmlType is only for elements.
We cannot use attributes with it.
Thanks

Similar Messages

  • Search help does not work when view context is mapped to comp context

    Hello,
    I am trying to display search help for an input field of a view. The context to which the input field is bound is a node with an attribute. I have specified Dictionary Search help for the attribute. Now when I execute the application, I am able to get the search help in the screen.
    But, I  need to map this  view context node to its comp controller context. When I do the mapping, the search help does not appear when executed.
    It would be a great help if someone can point out an answer to this.
    Thanks,
    Maya

    Hi Maya
    Follow these steps:
    1.Delete the context node/attribute which is bound to search help from the View.
    2.Now Save metadata.
    3.Perform Context mapping again .In the Edit Context Mapping window drag the node/attribute FROM RIGHT PANE TO LEFT PANE and select the entry.
    4.Delete the Input Field from the view.
    5.Save again
    6.Close NWDS and reopen it.
    7.Create input field again and bind it to the context element.
    Hope this solves the problem.
    Regards
    Ananda

  • My Site Links Not Working When Using Alternate Access Mapping

    I have a SharePoint Site Collection under my main
    Web Application: mywebapp:80.
    I had to extend this to an Intranet zone
    Web Application: mywebapp:101.
    I am able to open my Site Collection from either address. The authentication protocols for both are the same.
    When provisioning the User Profile Service and configuring
    My Site, the
    My Site Host Location must be supplied, in this case: http://mywebapp:80/personal/mysite
    I housed my My Site Host under the same Web Application as my
    Site Collection.
    When accessing My Site for any given user from mywebapp:80, all the links of user photos point to that same
    Web Application, which is expected.
    i.e. When on http://mywebapp:80/personal/mysite/person.aspx?accountname=person1 , all the links of photos of other users are http://mywebapp:80/personal/mysite/person.aspx?accountname=person2,
    etc.
    When accessing My Site for any given user from my extension, mywebapp:101, all the links of user photos still point to the old address.
    i.e. When on http://mywebapp:101/personal/mysite/person.aspx?accountname=person1 , all the links of photos of other users are still on http://mywebapp:80/personal/mysite/person.aspx?accountname=person2,
    etc.
    So I figured that the My Site Host configuration under the
    User Profile Service will just literally follow the initial URL specified. That said, I ask:
    1.) Is there no way that the My Site links will be able to adjust depending on the URL I am accessing it from?
    2.) What are possible implementation alternatives for cases like this when I need to use
    My Site under 1
    Web Application and have to make it available on
    multiple host names?

    Hi Noel,
    perhaps this thread is similar with your question:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/d3010532-ae20-4eda-8f58-359f77d17e1e/user-profile-pictures-pointing-to-old-mysitehost?forum=sharepointadminprevious
    any way, for your 2 questions,
    perhaps you can give us more details about the scenario?
    as i know,
    mysite able to adjust, but you may need to configure the the host of the mysite, for example:
    1. to the User Profile Service Application (UPA) and changed the MySite URL, few sites show the new URL and few show the old one.
    2. to Central Admin and found there may 2-UPAs created.
    3. changed the MySite settings on both the UPAs, created Managed Paths wherever necessary and then changed associations of all web applications to one of the main UPA
    for configuring the multiple host, you may check with your IIS, and add the bindings,
    http://forums.iis.net/t/1189870.aspx
    http://stackoverflow.com/questions/14232892/multiple-sites-under-the-same-hostname-possible
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • [Bug?] Defer Panel Update not working when changing scale property

    Hi,
    I found that Defer Panel Update [when True] does not work properly when changing the scale fit property of an intensity graph.
    Try the VI.
    When Defer Panel Update is True, and you change the Numeric controls, the Intensity graph is not updated (as expected).
    But now change the "Z Scale.Scale Fit" button and.... the Intensity graph is updated (only the Z-color, not the axis).
    This looks to be a bug to me!
    Nicolas
    Attachments:
    [Bug] Defer Panel Update not working when changing scale property.vi ‏27 KB

    Hi Nicolas,
    This indeed looks like a bug. I will do more research on it and file a bug report if it's not already filed.  Thank you for posting this information!
    Yi Y.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    IF it is a manufacturing defect and you bought the device from Apple or an authorized Apple retailer, then take it into Apple.

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI.
    But OA & PI are not appearing in the PO header partner tab when created with ref to PR.
    however it works when i create the PO directly ( without the PR ref )
    I am using the same material & Plant for both manual PO & PR to PO.
    Any idea what could be wrong .
    I have maintained the settings for schema groups for vendor master & purchasing doc in the partner determination.
    Thanks
    Dkmurthy

    Hi,
    I have also an issue that seems similar to one you are discussing.
    When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent.
    When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N
    Note: If I try ME21N, and enter the output type and partner, manually, I receive a warning message
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent. However I can not overcome the warning message, if it plays any role, because I can not assign partner function LS to the vendor.Then I receive message CZ 327 (Can not use this partner role).
    Any input is wellcome.

  • The built-in dictionary on my iPad only works with certain sites.  What do I need to do so that I can it all the time. (For example, it does not work when I read e-newspaper.)

    What do I need to do so that I can use the built-in dictionary all the time? My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.

    Rikirannu wrote:
    My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.
    Are you talking about the English dictionary?  Mine seems to work ok on the AZ republic web page.  Does yours not work on all webpages?  Does it not work when you type an English word in Notes and then do select and define?

  • I have i phone 4s i there is problem of wifi my wifi is not working when i go to the wifi there is no working on off when i update it as a 6.1 ios on that time again it was good but after 2 days again the same problem i am too tired

    I have i phone 4s i there is problem of wifi my wifi is not working when i go to the wifi there is no working on off when i update it as a 6.1 ios on that time again it was good but after 2 days again the same problem i am too tired and i also reset network setting but nothing gonna be worked

    Sounds like the device was dropped at some point and damaged as a result.
    Take it to Apple for evaluation and a replacement.

  • I tunes is not working. when i go to update apps nothing happens go to itunes page is blank

    itunes not working. when i go to update apps nothing happens. if i go to itunes store page is blank and does not go to the store

    http://support.apple.com/kb/ts1567

  • HT5622 my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    Hey nocillado,
    Thanks for using Apple Support Communities.
    It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
    Get help activating your iPhone
    http://support.apple.com/kb/ts3424
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using the same Apple ID for Store purchases and iCloud (recommended)
    Have a nice day,
    Mario

  • The touch screen is not working when I am in the Music app of my iPod Touch.  How do I get it to begin working?  It just stopped today.

    The touch screen is not working when I am in the Music app of my iPod Touch.  How do I get it to begin working?  It just stopped today.
    Does anyone know what I can do?  I am unable to switch screens, and I can not see the track that is playing.  The only was I can switch between songs is to use the controls on my headphones.

    Try the stamdard fixes to rule out a software problem:
    - Reset. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.

  • My volume is not working when on the ringer what do I do

    My iPhone volume is not working when I have the volume set on. It will work with the headphones but other then that nothing. What's going on with it?

    supposedly from what I have read it is a software issue. I actually am also having this problem it worked after I performed a full reset,  but now it has started again tomorrow I am going to the apple store to find out what I can do as I bought my 4s right before the 5 was released.

  • Authorization Object is not working when report is modified.

    Hi BW Guru's
    We have Company Code as Authorization Object .and we have 3 company Codes (xxxx,yyyy,zzzz).where the users under Company code xxxx are not supposed to view company code yyyy,zzzz data etc.
    I modified an existing Report and transported to production.But the Authorization Object is not working for that report.The Report is defaultly displaying all the company codes data(xxxx,yyyy) for all the users.But for the other reports its(company code ) is working fine.
    What could be the problem?Is theproblem in transporting the objects.But i transported all the objects inluding auhorization object.
    Please send me the solution as it is very much urgent.
    The solution will be def. awarded with full points.
    Regards
    Sanjay

    hi Sanjay,
    please don't post the same question again, check and response back from your previous thread
    Re: Authorization Object is not working when report is Modified.
    hope this helps.
    would be nice if you reward for helpful answers to all of your previous postings, e.g
    docs related to RRI

  • The Horizontal & vertical scroll is not visible or not working when i run the form in Forms 6i.

    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    In this form , there are 5 canvas namely
    CANVAS2 - Stacked Canvas
    PASS - Content Canvas
    MAT_RATES - Content Canvas
    DATE - Content Canvas
    PREVIOUS - Content Canvas
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.

    Vijetha wrote:
    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.
    hello vijetha,
    window and canvas show scroll bar when it need.
    You should show block property
    and set block scroll bar
    hope this helps..
    Hamid

Maybe you are looking for

  • Better to use a printer's  WiFi or connect via TimeCapsule USB Printer.

    Just a generic question....Is it better/easier/faster to use a printer's built in WiFi versus connecting it via a USB connection to my Time Capsule. I'm installing an all in one, Epson 810. MBP, 10.5.8, Time Capsule. Would like to use all the functio

  • Want to Call Tech Support

    Is there a phone number to call to report a problem with Lightroom not understood enough to ask on this forum? I need to talk to someone ASAP.

  • Financial Reports Formatting

    Hi In HFR. Forulae Row9 = DataRow1/FormulaeRow/3 Forulae Row10 = DataRow2/FormulaeRow/3 FormulaeRow/3 = Constant Values Forulae Row11 = Difference (row9,row10) I have formatted Row11 RED color for -ve values .............but the report is not showing

  • Replacing LE with Logic Pro: uninstall?

    When I bought LE I installed it on both my home iMac and my iBook G4 (so I could do some work while traveling). Now I've bought Pro, so I plan to keep LE on my iBook, and I want to install Pro on the iMac. • Do I need to uninstall the iMac's LE? • If

  • TES 6.1 Released

    Do you have a Hadoop Project in your company. Cisco TES 6.1 adds a variety of new features (Hadoop Adaper, Amazon EC2/S3 Adapters, iPhone App, and a self service portal). Read about them here: http://blogs.cisco.com/datacenter/announcing-cisco-worklo