JAXB Default behaviour for Boolean

Is there any way to modify JAXB default behaviour for boolean types when marshalling?
The default behaviour for this type is to output "true" or "false", is there anyway of outputting "1" or "0"
Thanks in advance

29-Aug-2006
01:43 AM
steve_p wrote:
Hi Edward,
I've not suffered this issue myself but I have read on other forums that some people are also having the same problem as you.
http://www.allaboutsymbian.com/forum/showthread.php?t=50226
S.
Thanks for the feedback - I'm not 100% sure, but I think it happened once I did a PC Suite backup as well - oh well ... not too much of a show stopper - I guess they'll hopefully fix this in the next release of the firmware
Regards,
Edward

Similar Messages

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • Changing file clicking default behaviour for all users

    Is there a way to change the default file clicking behaviour for all users? Each user can do it himself by going via the username menu ("Personal Preferences", "When clicking on a file...") but I would prefer to set it for all users to a value that is different from the default.

    Hi Ganesh,
    Can u pl post how you solved this.
    Regards,
    Reema.

  • Change to the default behaviour for Birds Eye view please

    At the moment the way Birds Eye View (pressing a key to zoom the image to full screen) is not very clever: An example - if your cursor is at the left of the screen it will first of all zoom out, with the "actual area" box located on the left, roughly where your cursor happened to be . And then on releasing the key, it will zoom to a completely new place in the image, based on where your cursor happened to be when you activated the shortcut. In practice this is almost random behavior, because while you are retouching in close, your cursor can be almost anywhere.
    Now I know that its possible very when you are zoomed out to relocate the box, but its a pain to have to do this each time, when its not required.
    What it should do, in my humble opinion - is by default it should keep what I'm calling the "area box" located in the currently zoomed area of the screen, so zooming in and out with the key will by default always take you back to where you were.
    For those of use doing high detail work, who like to quickly see a full screen, this change in behavior would make it possible to use Birds eye view more easily instead of zooming in and out in other ways.
    Of course a preference could be provided in case anyone at all actually likes the annoying CS4 default

    depend of what you want exactly you can use
    PositionInterpolator if you just need a translation
    here is a example that should work
    BoundingSphere bounds = new BoundingSphere();
    TransformGroup vpTrans= myWorld.getViewingPlatform().getViewPlatformTransform();
    // create Alpha
    Alpha alpha = new Alpha (-1,Alpha.INCREASING_ENABLE + Alpha.DECREASING_ENABLE,
    0, 0, 2000, 0, 1000, 2000, 0, 1000);
    // create position interpolator
    PositionInterpolator posInt = new PositionInterpolator (alpha, vpTrans);
    posInt.setSchedulingBounds(bounds);
    posInt.setStartPosition(-1.0f);
    another way his to use spline the best example of this is in the demo that come with java3d at
    your_JVM/demo/java3d/SplineAnim/SplineAnim.java
    the only thing you have to change his to specify the good transformGroup wich is vpTrans
    hope it help
    cyril

  • Default behaviour for v5.0616.2.0.3 of N70 softwar...

    I've just noticed something that I wanted to double check on ...
    I haven't had to power cycle my phone yet on my N70, but now that I have I've noticed that although I've disabled my Orange Homescreen, when I power cycle my phone I'm re-presented with the Orange Homescreen which I then have to disable.
    Could any other Orange N70 user confirm whether they also see this please ?
    Regards,
    Edward

    29-Aug-2006
    01:43 AM
    steve_p wrote:
    Hi Edward,
    I've not suffered this issue myself but I have read on other forums that some people are also having the same problem as you.
    http://www.allaboutsymbian.com/forum/showthread.php?t=50226
    S.
    Thanks for the feedback - I'm not 100% sure, but I think it happened once I did a PC Suite backup as well - oh well ... not too much of a show stopper - I guess they'll hopefully fix this in the next release of the firmware
    Regards,
    Edward

  • Set default behaviour for pasting images?

    I often am faced with copying images from pdfs and placing them in pages.  I then have to select each image and in the inspector choose 'floating' as pages always inserts as inline.  Is there a way to switch Pages to always insert image data as floating?  It is a pain and a real interruption of my work flow.
    Pages 09.

    Brian,
    If you Command-Click in the margin of the document prior to pasting or dragging the image to the document, it will be inserted as Floating. If you leave the Text Insertion cursor active in the Text Layer, the graphic will come in as Inline.
    You have the control over this behavior with a simple click of the mouse prior to the import.
    Jerry

  • Default behaviour based upon ACCTYPE

    Hello,
    I am a new BPC user and so, I would appreciate any help provided. I have done a lot of web search on this and aside from a couple of articles on SDN, I have not managed to find anything on this. I have previously posted a question on a similar topic but this is more of a question related to BPC's capabilities, rather than asking for a solution to a problem.
    Some threads on SDN are suggesting that the default behaviour for BPC (Financial Consolidation) 7.5 NW is to store the data using the accounting convention (i.e., negative for INC and positive for EXP). However, when reports are generated using the same data (using EVDRE e.g.), the sign is automatically flipped (i.e., INC accounts are automatically showed as positive while EXP are shown as negative).
    Is this correct? If so, is any reference available to any SAP published documentation on this?
    Many thanks in advance.

    Hi,
    I dont know whether there are any documents around this topic or not. But let me try to explain this a bit.
    The flipping of signs is done twice - one at the time of sending the data to the database and second at the time of fetching the data from the database. Let me give you a very simple example. Lets say, we are posting the below records:
    Revenue (ACCTYPE = INC): 1000
    Expenses (ACCTYPE = EXP): 400
    Theoritically, the profit should be 600. However, by design, we usually keep the profit as the parent of revenue and expenses, which means that profit will be 1400 (which is wrong). So, we change the signs. After posting the data to the database, the data looks like:
    Revenue (ACCTYPE = INC): -1000
    Expenses (ACCTYPE = EXP): 400
    Now, the profit becomes -600.
    When we fetch the data, the data should look like the original values. So, we again flip the signs. So, the data looks like:
    Revenue (ACCTYPE = INC): 1000
    Expenses (ACCTYPE = EXP): 400
    Which is exactly what we had entered initially. Now, the concern is the profit. The profit is -600 as per the calculation. However, the actual profit should be 600. So, we keep the ACCTYPE of profit as INC.
    Hope this gives you the idea.

  • [Access 2010] Change default formats for data types

    Whenever I import data, the default format for Boolean data types is "-1,0." I know how to subsequently change this format to "Yes/No," but I'd like to change the default
    setting to "Yes/No." Is this possible?
    Thanks in advance.

    Hi,
    I found you post the same question in other place and got the advice. I agree with Mr. Kees suggestion. The data type is a build-in default setting with Access, we can't change it. We may try the workaround via VBA to test.
    http://forums.cnet.com/7723-6129_102-627633/access-2010-change-default-formats-for-data-types/#message5617496
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • How to create an default profile for every user on one machine? Deployment of configurations?

    On firefox 3.5.X i can copy an configured profile from an user-folder to the programm folder of firefox. \mozilla firefox\defaults\profiles.
    After an new user log in to the machine the default profile will get the actual profile of the new user. With all bookmarks, configurations and so on.
    But this doesn't work with the firefox 3.6.10? What changed? What will be the way i can get an default configuration for every user on one machine? I want to deploy the firefox with an default configuration in our enterprise? Why does the behaviour change?
    What to do?
    Thanks...

    No - there are no missing data, because nothing will be copied. The profile - folder does not work.
    There are the standard first start behavior.
    There might be another trick? Hint? Todo?
    Thanks.

  • Can I set a default folder for "save as"?

    Hello,
    I opened a pdf file attachment to an email by double-clicking it. When I wanted to save the file using File/Save As... , the folder/directory shown was the location where MS Outlook placed the attachment.
    I am using Acrobat Reader XI (latest version) on a Windows 7 64bit PC. I could not find any method to change this default behavior of Save As.
    Is it possible to change the behavior of the Save As function to use one or more of the following:
    a fixed user-defined folder/directory
    the last folder/directory used for the Save As dialog (which should be displayed with the full path) !
    the same location where the currently open file was opened (this is the current & only behavior)
    It would be most useful if the default  behavior could be selected among these options in the Edit/Preferences... dialog. Additionally, in the Save As dialog these same options should be displayed with the default selected, thus giving the user the ability to change the behavior for a specific Save As operation.
    If there is no way to do this (e.g.. with an "undocumented" feature or command-line switch), would Adobe consider implementing this?
    Thank you!

    apparently Adobe doesn't give a sh!t about it's users. The possibility to change default behaviour has been removed with the introduction of version 10 and hasn't come back since. For over 3 years people are complaining about this on the forum and are being offered poor workarounds (create a shortcut in your temp folder pointing to your desktop? for fck sake!)
    Adobe employees will tell you 'default system behaviour' ******** and basicly tell u to go finger ur bu.thole.
    I use to buy their products (adobe creative suite) but the fact they don't give 2 sh!ts about their customers made me pick another vendor.
    Best solution i can offer u is just use ANY of the 10.000 other freeware utilities that do offer the basic functionality u'd expect.

  • Setting default value for a jcombobox based on the value not the index

    I am trying to set the default value for my combobox to the current year. One way I thought of doing it was to get the index of the value representing the current year and then use setSelectedInex to make it the default. Any ideas?
    The relevent section of code is below.
    GregorianCalendar gregorianCalendar = new GregorianCalendar();
    int year = gregorianCalendar.get(Calendar.YEAR);
    String currentyear = year + "";
    int startyears = 2000;
    int numyears = 25;
    JComboBox endyearcombobox = new JComboBox();
    endyearcombobox.setBorder( BorderFactory.createLineBorder(Color.DARK_GRAY));
    endyearcombobox.setFont(standardfont);
    endyearcombobox.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent event ) {
    endyearcombobox = ( JComboBox )event.getSource();
    endyear = endyearcombobox.getSelectedItem();
    boolean same = endyear.equals(oldItem);
    oldItem = endyear;
    String[] endyearlist = new String[numyears];
    for(int i = startyears; i < startyears+numyears; i++){
    String item = new Integer(i).toString();
    endyearcombobox.addItem(item);
    Thanks
    Ged

    Thanks mate,
    That was what I was looking for. I still had a little more manipulation to do, but sent me on the right track and have got it working now. I don't know why I didn't think of it in the first place.
    Ged

  • Default behaviour of the Escape key while editing a cell in JTable??

    Hi all,
    i have a Jtable which get its data from an own model object which extends DefaultTableModel.
    If i overwrite the isCellEditable(row, col) method within the tablemodel object and set a specific column to editable, then i notice while editing a cell in that column that the default behaviour of the Escape key is that independet from what you have entered before in to the cell the editing stops and the cell gets the value it had before editing.
    This is the case for me even if i apply a custom editor to a column (one that extends DefaultCellEditor). It is just a JTextField that limits the number of digits a user can enter. Everything works fine. If the user edits the cell and presses ENTER or the "down arrow key" i can check what he has entered with the help of the getCellEditorValue() method. But if the user hits the ESC key after editing a cell this method is not invoked!!!
    My question is :
    is there any way to detect that the user cancels editing with the ESC-key.
    this is very important for me because if the user goes editing the cell i lock the related record in the database, if i cannot detect this it is locked till the application terminates.
    Thanks for any help in advance

    I try override the JTable editingCanceled() ==> does not work.
    I try the addCellEditorListener( CellEditorListener l ) ==> does not work.
    Finally, I try the addKeyListener ==> it works.
    Here is a quick demo. program:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class Test {
    public static void main(String[] args){
    JFrame f = new JFrame();
    String[] colName = {"a", "b"};
    String[][] rowData = {{"1", "2"}, {"3", "4"}};
    JTable table = new JTable(rowData, colName);
    JTextField t = new JTextField(10);
    t.setBackground(Color.red);
    t.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
    // do what ever you want ex. un-lock table
    System.out.println("ESCAPE");
    DefaultCellEditor editor = new DefaultCellEditor(t);
    TableColumnModel colModel = table.getColumnModel();
    for (int i = colModel.getColumnCount()-1; i >= 0; i--) {
    colModel.getColumn(i).setCellEditor(editor);
    f.setContentPane(new JScrollPane(table));
    f.pack();
    f.setVisible(true);

  • Wrong default layout for a new customer

    Hi all,
    I hope somebody can share inputs with regards to this issue.
    I'm assigning a default layout to one customer group (layout1 for all Group1).  When this was done, a list of customer codes were included in the list and each were ticked from that list.
    Second layout called layout2 for the setting 'Set &as Default for all BPs (for Whom a Default Layout Has Not Been Assigned).
    Scenario:  A new customer code is created belonging to Group1.
    Issues: 
                a.  This new customer code does not automatically follow the setting on default layout which is layout1.  When the layout1 default setting was double  
                     checked, the new customer code was part of the list, but it was not ticked. 
                b.  When document was previewed, it uses the wrong layout2.
                c.   The user still has to update the layout1 default setting, ticking the tick box from the list for the new customer code, then clicking update in then
                      layout designer window.
    Question:  Is this a normal behaviour of the system?  I thought that setting it as default for certain customer group will be applicable even to newly created ones under that group.
    Regards,
    Cathy

    Hi,
    I am afraid that it is your SAP B1 version current behavior but you may check using demo database. What is your SAP B1 version anyway ? what is your database localization ?
    You may try the solution part from one of these notes below:
    993486  - 'Set as Default for All BPs' doesn't affect specific BP
    Version   5   Validity: 21.01.2011 - active
    Language   English (Master)
    Portuguese 
    Content:      Summary    |    Header Data    |    References    |    Validity 
    Symptom
    Specific printing template for Business Partner can not be changed in attempt to define printing template as a default template for all Business Partners.
      Cause
    Functionality description
      Solution
    In order to change a specific default printing template for Business Partner follow the steps below:
    1. Choose the required template and press on the 'Set as Default' button.
    2. Choose the 'Set as Default for Specified BP' and 'Set as Default for Current User' option.
    3. Uncheck the box near the BP name and press on the 'Update' button.
    4. Choose the required default template (new template) and press on the 'Set as Default' button.
    5. Choose the 'Set as Default for all BP' option.
      Other terms
    Print Layout Designer, Default Template, Set as Default for All Users,
    Set as Default for Current User, Set as Default for All BPs, Set as Default for Specific BP
            Header Data
    Released On
    24.02.2011 20:52:30   
    Release Status
    Released for Customer   
    Component
    SBO-GEN-PLD Print Layout Designer  
    Other Components
    SBO-SH-PLD-A2 Tips and tricks for building PLD templates
    Priority
      Recommendations/additional info   
    Category
      Consulting   
           References
    This document refers to:  SAP Business One Notes
    861088
    Cannot set a template as default for all users
    This document is referenced by:   SAP Business One Notes (1) 
      861088
      Cannot set a template as default for all users
           Validity
    Software Component
    Version
    SAP BUSINESS ONE
    2005 A
    2005 A SP01
    2005 B
    2007 A
    2007 B
    8.8
    2nd note:
      861088  - Cannot set a template as default for all users
    Version   4   Validity: 04.08.2009 - active
    Language   English 
    Content:      Summary    |    Header Data    |    References    |    Validity 
    Symptom
    When print previewing,the template used is not default template.
      Cause
    A template has been defined as default for all users, when previewing this it is not the template which has been set as default for document.
      Solution
    In order to change to a different default template for all users and all business partners please do the following:
    a) "Set as default for specified Business Partner" and "set as default for current user"
    b) Add tick for this Business Partner
    c) Update by ticking again the specific Business Partner
    d) Change set as default for all users and all Business Partner's
      Other terms
    Print Layout Designer, Default Template, All users, Set as Default template, SAP Business One
            Header Data
    Released On
    04.08.2009 11:28:58   
    Release Status
    Released for Customer   
    Component
    SBO-GEN-PLD Print Layout Designer  
    Other Components
    SBO-SH-PLD-A1 Print Layout Designer known Issues
    Priority
      Recommendations/additional info   
    Category
      Consulting   
           References
    This document refers to:  SAP Business One Notes
    993486
    'Set as Default for All BPs' doesn't affect specific BP
    This document is referenced by:   SAP Business One Notes (1) 
      993486
      'Set as Default for All BPs' doesn't affect specific BP
           Validity
    Software Component
    Version
    SAP BUSINESS ONE
    2004 A
    2005 A
    2005 A SP01
    2005 B
    2007 A
    2007 B
    JM

  • What are the default parameters for PER_EVENTS api

    Dear Experts,
    Can you tell us what are the default parameters for PER_EVENTS API.Here below I have pasted the API.
    procedure create_event
    (p_validate in BOOLEAN default FALSE
    ,p_date_start in DATE
    ,p_type in VARCHAR2
    ,p_business_group_id in NUMBER default NULL -- HR/TCA merge
    ,p_location_id in NUMBER default NULL
    ,p_internal_contact_person_id in NUMBER default NULL
    ,p_organization_run_by_id in NUMBER default NULL
    ,p_assignment_id in NUMBER default NULL
    ,p_contact_telephone_number in VARCHAR2 default NULL
    ,p_date_end in DATE default NULL
    ,p_emp_or_apl in VARCHAR2 default NULL
    ,p_event_or_interview in VARCHAR2 default NULL
    ,p_external_contact in VARCHAR2 default NULL
    ,p_time_end in VARCHAR2 default NULL
    ,p_time_start in VARCHAR2 default NULL
    ,p_attribute_category in VARCHAR2 default NULL
    ,p_attribute1 in VARCHAR2 default NULL
    ,p_attribute2 in VARCHAR2 default NULL
    ,p_attribute3 in VARCHAR2 default NULL
    ,p_attribute4 in VARCHAR2 default NULL
    ,p_attribute5 in VARCHAR2 default NULL
    ,p_attribute6 in VARCHAR2 default NULL
    ,p_attribute7 in VARCHAR2 default NULL
    ,p_attribute8 in VARCHAR2 default NULL
    ,p_attribute9 in VARCHAR2 default NULL
    ,p_attribute10 in VARCHAR2 default NULL
    ,p_attribute11 in VARCHAR2 default NULL
    ,p_attribute12 in VARCHAR2 default NULL
    ,p_attribute13 in VARCHAR2 default NULL
    ,p_attribute14 in VARCHAR2 default NULL
    ,p_attribute15 in VARCHAR2 default NULL
    ,p_attribute16 in VARCHAR2 default NULL
    ,p_attribute17 in VARCHAR2 default NULL
    ,p_attribute18 in VARCHAR2 default NULL
    ,p_attribute19 in VARCHAR2 default NULL
    ,p_attribute20 in VARCHAR2 default NULL
    ,p_party_id in NUMBER default NULL -- HR/TCA merge
    ,p_event_id out nocopy NUMBER
    ,p_object_version_number out nocopy NUMBER
    );

    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts.

Maybe you are looking for

  • Printing Library

    Presently, I can get Itunes for Windows to print the album library only two ways: 1 - By album title and artist. 2 - By album title, artist and track list. Question - Is there a way to print the library by artist then album title? I.E. It would be so

  • "Upgraded" to Lion OS X 10.7.2:  Word doesn't work!

    i need help figuring out how to open my word documents now that i have upgraded to Lion OS X... If I buy "pages" will that program be able to open my word documents?

  • Monitoring JBoss Server and applications running on that Server

    Hi, I am new to JMX. My requirement is, we need to monitor health of application server like jBoss and applications running on that server. I would like to know, is JMX is suitable to my requirement? If so, how to monitor? Thanks, Naga Muni Reddy.

  • Le lecteur dvd ejecte les dvd det ne les li plus

    je n'arrive plus a lire mes dvd le lecteur les ejecte environ 10 sec apres les avoir inséré.

  • Self running program/servlet

    Hi All, I have a servlet and want it to run on its own everytime after some fixed period. Actually I have some oracle queries in the servlet which need to be run at the start of each month so that certain flags could be updated in the database and de