About the DDP(Document-Driven Programming)

Hi all,
I have been reading the J2EE tutorial and see the conception of DDP(Document-Driven Programming) at the section of introducing xml application.
This tutorial says: DDP is "The newest approach to using XML is to construct a document that describes what an application page should look like. The document, rather than simply being displayed, consists of references to user interface components and business-logic components that are "hooked together" to create an application on-the-fly."
Do this mean that, if we use DDP, we could only create the application UI pages totally in XML files? If it does, it will be flexible to create web applications and those applications can be easily maintained.
I am interested about this topic but the tutorial gives a little words on DDP. By search the website, I can't find any useful document in which DDP is described in details.
So I wonder if there are any online useful resources for DDP? Thanks for any suggestions!

Well, you could do something like in the attached VI.
I prefer NOT to have loops inside event cases, because they block the event structure. You can use the outer loop for everything and manipulate the timeouts.
I would strongly suggest NOT to toggle booleans but to hardwire the desired states using diagram constants. Toggling must rely on the existing state, which can be unexpected unders certain conditions, especially if the program gets much bigger and you add features.
Also, I think you are missing a state, because valve 5 gets closed once and never opens again. You should also initialize the toggle to a known state using a local variable at the start of the program, else things are out of sync if you would accidentally change the toggle when the VI is not running.
You probably should add some logic on the other events to discard them if the state is not zero.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ValveBankStateMachine2MOD.vi ‏35 KB

Similar Messages

  • Questions about the Apple Developer Enterprise Program

    Hi there,
    i got some questions about the Apple Developer Enterprise Program:
    - is there a way a company can create their own "AppStore" with only the APPs the employees should use?
    - when I developed the enterprise app are the install files on a apple hosted server or do i need my own infrastructure to distribute my app?
    Thanks in advance for answers!

    Google: MDM

  • About the word document to be captured in benefits

    hi team,
                        in spro level the form setup is created for the benefit form...... what i want is i have a tcode hrben0050.i want how to use this tcode can any one explain me. about the usage of the tcode.....ok

    Hi,
    This Document may help you to some extent. Just check it out.
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/f5253715dfb808e10000009b38f889/content.htm

  • A few questions about the apple individual developer program

    1. Are there any age lower limits to join the apple individual developer program?
    2. How many UDID spots for iOS developer-access-only beta build devices can i register if i own an apple individual developer program account?
    Thanks!

    Thank you, but what if I continue my membership the next year(i know that i have to pay USD$99 again),
    will I get 100 more NEW empty slots next year while my previous 100 registered slots are still in effect?
    Sorry i have clicked the "correct answer" button accidentally on myself

  • I have a message saying there is a jam in the automatic document feeder even though there is no pape

    I have an HP Color Laserjet CM2320fxi MFP. The message is "document jam - open auto sheet feeder door and clear", but there is no paper. I have even disconnected the scanner unit and still getting the same message. Is this a software issue and can the machine be software reset? I have done the screen reset without success. I don't think a replacement lid with document feeder would resolve the issue. Thanks

    TimCW1,
    Here is a link to a document about the Automatic Document Feeder for your printer. It deals with the specific error message you are getting. Let us know if this helps or if you still have the issue.
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=...
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • About the FINANCE

    Hi Gurus,
              I would like to know about the Finance Document number,
    When the Document has both status,,like OPEN ,CLOSED Generally document suppose to open or close. But when the document has both.
    Is it clear gurus,
    Krisna

    Hi!
    FI documents has generally 2 statuses: cleared or not cleared. These statuses are stored in 2 different tables, BSAS, or BSIS. One FI document can be located only in one of these tables at the same time.
    Regards
    Tamá

  • Spend more 3500 a year - what about the excess points?

    Hi, 
    I'm a eliteplus member and have spent more than 3500 in this year. My question is, will the excess money be added to the next calendar year, or will it be reset on Jan 1 2016?
    Thanks for answering!!!
    Solved!
    Go to Solution.

    Hello again roshinichi,
    I hope that you are enjoying your Wednesday morning so far.
    I pulled up your My Best Buy™ account and can see that you have already requalified for Elite Plus status during the 2015 calendar year.  When it comes to qualifying for Elite or Elite Plus status an eligible Best Buy purchase would only count towards the calendar year in which it was processed, and any amount spent over the required $1,500 (Elite) or $3,500 (Elite Plus) would not carry over to the following calendar year.  Your spending total would reset to $0 on January 1st.
    As I mentioned in my response yesterday, please feel free to send me a private message if you have any other questions about the My Best Buy™ program or your account.  I am always more than happy to help.  You can send a private message by clicking on the blue button in my signature that is labeled "Private Message."
    Thank you for reaching out to us on the forum and congratulations on requalifying for Elite Plus status!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?

    I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created with the old system.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?  How?

    I'm in the same boat: new to OS X and Mac, and in the middle of a book. I switched because I heard about the the ease of using Mac, but so far, for me, it's been a nightmare. I bought 2011 Office Mac and hate everything about it, the most recent being the inability to open or cut or paste any of my original word files. I understand that this could have easily been done with earlier versions, but not Mountain Lion (which I learned is what OSX is.) Since I work with language, I am amazed at the assumptions of the Apple community. It helps to use common language and explain even the basics.  
    So all the helpful hints to use the latest version of Office Mac are to no avail. Now what?

  • I run OSX10.6.8. Just dwnlded FF8.1 and everytime I go to open it I am asked about the disk image. But if I delete the dmg, the program won't run.

    I just downloaded the 8.1 version. It was a 30+mb file. Previously I ran 4.0. So I drag the new Firefox icon into the Apps folder. It does its merge thing with the old version. Problem is when I click to open FF now, it always throws up this window asking me about the disk image of what I just downloaded. I even tried restarting the computer--but the same message pops up. I checked on your website and it says that I need to "eject" the disk image (i.e. I'm guessing that means the 30+ mb file I just down loaded), so since I don't have an eject option that I can find (except for external harddrives and cd/dvd), I just drug it into the trash. I go to empty the trash and I get a message that that dmg file is "in use" even though FF is completely shut down. So again I'm guessing that means that even though I already merged that dmg file with the old 4.0 version file, if I dump the update file it seems that it's going to mess up the actual revised program file still remaining. I just want to be able to click on the icon in my dock like I've always done and have FF open. I don't want to keep being asked about disk image stuff. Somehow this feels like an easy resolution, but I just can't seem to put my finger on how to resolve it. Thanks for you help.

    Nope---didn't work. I've owned Macs for about 12 years so although I am brain dead on some things, I do have a working knowledge on most things. I only say that to say this--I did try holding down the mouse and choosing empty trash. It asks if I want to permanently delete what's in there. I say yes--and then I get the same identical message again-----'The operation can't be completed because the item "Firefox 8.0.1.dmg" is in use I can then click stop, or continue.' So apparently that complains the same way it does if I click it up on the menu :)))
    As for item owned by---that's not an issue and isn't coming up. User is not a problem either as I am the only user on this system. There is only ONE file in my trash at the moment at that is this dmg file. Nothing Mac. Nothing owned by anyone other than Firefox. The problem seems to be that the dmg file and the original 4.0 FF file are working in tandem with each other--even though I have already drug the new 8.0 globe into the Apps folder and it updated the FF app with the new stuff. If I could force the dmg file to go away, I would do so, but at every turn the system is telling me it can't be done because it seems to think that dmg file is in use---even though everything is shut down and/or ejected. Hey--I'm getting ready to head out and won't be back till evening. I'll check back in this evening. Thank you again for your help.

  • About the program of free Lion

    I just bought a macbook pro with snow leopard. I learned about the program for free Lion. I purchased it from Italy, but i live in Greece and i have a greek account in apple. Can i take a redeem code via greek store? Or i have to take it from an italian account?

    Hi Alex,
    Contact AppleCare and they should be able to help you out.

  • Question about the programming of a legend

    Hello everybody,
    I have a question about the programming of a waveform's legend. I
    already asked here in this forum about the legend programming (03)
    months ago.
    I went satisfied but I ve just noticed that this code
    (See Code old_legend_test.llb with main.vi as main function) operates a
    little different from my expectances.
    Therefore I have a new question and I want to know if it
    is possible by labview programming to plot and show, on a waveform
    chart, a signal with activ plot superior to zero (0) without to be
    obliged to plot and show a signal with activ plot equal to zero (0) or
    inferior to the desired activ plot.
    I give you an example
    of what I m meaning. I have by example 4 signals (Signal 0, 1, 2 and 3)
    and each signal corresponds respectively to a channel (Chan1, Chan2,
    Chan3, Chan4). I want to control the legend (activ plot, plot name and
    plot color) programmatically. Is it possible with labview to plot signal
    1 or 2 or 3 or (1, 3) or (2,3) or (1,2,3) or other possible combination
    without to active the signal with the corresponding activ plot zero
    (0)?
    Let see the labview attached data
    (new_legend_test.llb with main.vi as main function). When I try to
    control the input selected values again I get them back but I don't
    understand why they have no effect on the legend of my waveform chart.
    Could somebody explain me what I m doing wrong or show me how to get a
    correct legend with desired plots? Thank by advance for your assistance.
    N.B.
    The
    both attached data are saved with labview 2009.
    Sincerly,PrinceJack
    Attachments:
    old_legend_test.llb ‏65 KB
    new_legend_test.llb ‏65 KB

    Hi
    princejack,
    Thanks for
    posting on National Instruments forum.
    The behavior
    you have is completely normal. You can control the number of row displayed in
    the legend and this rows are linked to the data you send to your graph. Thus,
    if you have 3 arrays of data, let say chan1, chan2 and chan3, you can choose
    which data you want to display in your graph using the property node (Active
    plot and visible). But for the legend as you send 3 plots there is an array of
    the plot name [chan1, chan2, chan3] and you can display 0, 1, 2 or 3 rows of
    this array but you cannot control the order in this array! So, to be able to
    change this array you have to only send data you need to you graph. I'm not
    sure my explanations are clear so I have implemented a simple example doing
    that.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/
    Attachments:
    GraphLegend.vi ‏85 KB

  • I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    That would depend on whether your model actually has a hard drive. If you have the new 2013 Retina model, then you have a fixed storage device built-in that cannot be modified after purchase.

  • Hi, I followed the instructions to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple. How to track the application progress? Can someone help?

    Hi, I followed the instructions from Apple MFI website, to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple for couple weeks. How to track the application progress? Can someone help? < Edited by Host >
    Thank you.
    Best Regards,
    Gerald

    Hi Gerald
    This is a user-to-user forum, and your message will not be received by Apple. You will need to sign into your Developer/MFI account, and contact Apple that way. This can be done here.
    P.S Please do not post your e-mail address here.
    Taylor

  • Getting information about the last opened document?

    Hi there!
    I've got a question about the reader and it's opened documents: Is there any possibility to get any information about a document, that was already opened by the Adobe reader?
    Example: I open xyz.pdf, and after closing the reader, i want to check what the last page was, the user looked at. Or the time, when this document was closed.
    thanks
    Daniel

    Try something like this:
    Font font = UIManager.getFont("Button.font");hope this helps!

  • What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    My phone is not jailbroken.  I don't know what you mean about hacked.   Maybe it is hacked?   This is what is happening: About three times over the past few months I've noticed that my phone while "off" will come on (light up) and the screen shows an arrow towards the bottom; an arrow such that you would see on various "players" in order to "play" video or audio, I've searched my phone and cannot find any app that produces this particular screen though. Once I pick up the phone when this screen myseriously appears out of nowhere and press anything, it goes away and goes to the standard "slider" front page to unlock the phone.

Maybe you are looking for