Question of using concat for databinding

I am trying to use concat to build up a string for databinding. the code 2 should replace the code 1 here and of course they should have the same output:
Code 1:
  <textInput text="${uix.current.DepartmentName}"
             columns="10" readOnly="true"/>
Code2:
     <textInput columns="10" readOnly="true">
      <boundAttribute name="text">
         <dataObject>
           <concat>
              <![CDATA[${uix.current.]]>
              <![CDATA[DepartmentName]]>
              <![CDATA[}]]>
           </concat>
         </dataObject>
       </boundAttribute>
   </textInput>Code 1 gives out always right out put like "Administration,Marketing...." ,but code 2 gives always "${uix.current.DepartmentName}", the databinding code out. Its not translated correctly as databinding resourse.
Do You have any idea to solve this problem?
Best Regards
Yong

Hi Arjuna, thanks for your help.
We are currently investigating how to extend the UIX components in a way to get the good old bc4j components back again.
We had some understanding problems with the new binding.
Anyhow a <textInput text="${uix.current[uix.rootAttr.attrName]}}" /> seems to work.
Regards, Markus

Similar Messages

  • Question of using Struts for the J2EE pattern

    I am now using Struts for the development. I have 3 questions about J2EE
    pattern by the use of Struts:
    1) How can I use Struts to create the Front Controller? In the book
    descibing Front Controller, it is a servlet file which receives the request
    and then dispatches to the appropriate view according to the request.
    However, in using Struts, should I use the same way? However, I found that
    in using Struts, I can call the controller class which subclass
    ActionServlet, all the views forwarded are declared in the
    struts-config.xml. Am I right in this method?
    2) In the project, there is a Front Controller which dispatches the request
    to the appropriate view (jsp file). Of course, I use Struts to do this.
    However, I expect that the user is impossible for going to the view (jsp
    page) directly by typing the address of the jsp file. I hope that the user
    can go to the view through the controller only. How can I do this?
    3) There is a problem by using browser - when a user browses a site, he can
    press the 'back' button to the previous page, and then click the 'forward'
    button also. How can I prevent this by using Struts? I found that in some
    sites, when the user clicks the 'back' button, an error page displays. How
    can I do this? Thanks!
    Many Thanks!
    Stephen

    I'll take a stab at number 2 and number 3.......
    2) You could have the controller object place a "flag" in the request that is dispatched to the JSP. Make the JSP check for that flag to ensure that this request came from the controller object. If the request comes from anywhere other than the controlle object, you can display an error page, or you could redirect them back to the controller. You could also use the HTTPSessionObject to place flags for users and have the JSP check there.
    3) Keep a log of the user's activities in the HTTPSession. Whenever a page is invoked, have it check to see if the user has already been here, and if it is appropriate for the user to be here again.
    Hope this helps!!
    I'm not really a java programmer, I just play one on TV.

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • Question about using numbers for an address spread sheet

    I am using numbers for a mailing address spread sheet. When I try to type in a Massachusetts zip code, once I hit "enter" the cell deletes the zero, which is the first number in the zip code.  How can I change this? Thank you

    to open the cell inspector use the menu item "View > Show Inspector" then select the "cells":

  • Clean up output when using concat for two columns?

    Probably a basic questions, but I searched this forum and google and couldn't find an answer, so here it goes...
    I'm trying to concatenate two fields: first_name and last_name
    I'm using the following pl/sql:
    concat(a.first_name, a.last_name)But it runs the name together
    smithjohn And the title shows the following
    concat(a.first_name,a.last_name)And this output is going to a non-technical users, so I don't want them to freak out...
    I've tried this as well
    a.first_name||' '||a.last_nameAnd now the column, I get the following:
    Smith John But the column heading shows
    a.first_name||""||a.last_nameIs there anyway I can clean up the column heading so the end users won't be confused...?
    thanks
    Message was edited by:
    cmmiller

    For renaming the title of the column use an alias with "AS" or just put the alias after the concatenation.
    Examples:
    denunez@XE> select e.first_name||' '||e.last_name as Name from employees e  where rownum <3
      2  ;
    NAME
    Ellen Abel
    Sundar Ande
    denunez@XE> select e.first_name||' '||e.last_name Name from employees e  where rownum <3
      2  ;
    NAME
    Ellen Abel
    Sundar Ande
    denunez@XE> select e.first_name||' '||e.last_name "Employee Name" from employees e where rownum<3;
    Employee Name
    Ellen Abel
    Sundar Ande

  • Mirroring Disk Drive Question.  Using SVM for Disk Mirroring.

    Hello,
    I am trying to do mirror in solaris 9 using Solaris Volume Manager. I have total 0-7 disks
    4 5 6 7
    0 1 2 3
    Drive 0 and Drive 4 = Boot Drives
    Need to Mirror following drives.
    Drive 1 and Drive 5 = Need to mirror
    Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5.
    Drive 5 was mounted on:/prod16-----/prod20
    Then i have umounted both drives and then using format command to equalize the parititions.
    Then
    I have done following steps.
    metadb -a -f /dev/dsk/c1t1d0s7
    metadb -a -f /dev/dsk/c1t5d0s7
    2)
    metainit -f d100 1 1 c1t1d0s0
    metainit -f d101 1 1 c1t5d0s0
    metainit d0 -m d100
    metattach d0 d101
    3)
    # newfs /dev/md/rdsk/d0
    newfs: /dev/md/rdsk/d0 last mounted as /prod16
    newfs: construct a new file system /dev/md/rdsk/d0: (y/n)? y
    4)
    # mount -F ufs /dev/md/dsk/d0 /prod16
    Now, target 5 is submirror with target 1 mirror. I was wanted to do /prod1 but some reason it showing /prod16. How can i change this to /prod1?
    OR
    2nd question: do i need to mirror each drive vice verse?
    for example:
    metainit -f d102 1 1 c1t5d0s0
    metainit -f d103 1 1 c1t1d0s0
    metainit d1 -m d102
    metattach d1 d103
    Let me know.
    Thanks
    Adeel

    I do it a little differently, as follows, which I gleaned from http://slacksite.com/solaris/disksuite/disksuite.html
    Create state replicas on slices 6 & 7 (any could be used but we usually use 6/7)
    metadb -a -f /dev/dsk/c1t0d0s6
    metadb -a /dev/dsk/c1t0d0s7
    metadb -a -f /dev/dsk/c1t1d0s6
    metadb -a /dev/dsk/c1t1d0s7
    Initialize submirrors for root slice 0 on both drives, and create one-way mirror between metadevice d0 & first sub-mirror
    metainit -f d10 1 1 c1t1d0s0
    metainit -f d20 1 1 c1t1d0s0
    metainit d0 -m d10
    update root entry in /etc/vfstab
    metaroot d0
    Initialize submirrors for swap slice on both drives, and create one-way mirror between metadevice d1 & first sub-mirror
    metainit -f d11 1 1 c1t0d0s1
    metainit -f d21 1 1 c1t1d0s1
    metainit d1 -m d11
    Initialize submirrors for /var slice5 on both drives, and create one-way mirror between metadevice d5 & first sub-mirror.
    metainit -f d15 1 1 c1t0d0s5
    metainit -f d20 1 1 c1t1d0s5
    metainit d5 -m d15
    Edit /etc/vfstab
    add these lines to /etc/vfstab
    /dev/md/dsk/d1 - - swap - no -
    /dev/md/dsk/d5 /dev/md/rdsk/d5 /var ufs 1 no logging
    REBOOT server
    Attach second half of mirrors to allow two drives to synchronize
    metattach d0 d20
    metattach d1 d21
    metattach d2 d25
    I hope this helps.
    Stephanie

  • Question about using onyx for maintenance.....

    after using this app to maintain, clean up, and clear cahes, log files etc, the applications used to open certain files as default was changed and as a result so were their icons...
    when i restarted my mac i noticed that some of my files (mainly .doc) where given the default icon picture instead of the microsoft word icon and i had to re set them all to open as default with microsoft word
    i know this is a result of something ive done in onyx but am unsure which
    any help apprecited, thanks

    Onyx is third-party software. If you need support or questions answered regarding its use you should contact the developer via his/her web site. These Discussions only provide support for Apple products.

  • Design question about using DHCP for an SSID

    I've got an SSID that I would like to send out to a public subnet (wifi for guests in the building) but because it's public i don't want to waste a lot of addresses.  So i'm considering a DMZ-type area for the clients to get a RFC1918 address with a single address on the outside.
    Something like this:
    Clients -> WLC4402 -> 10.x.x.xpool -> ??? -> Public subnet
    I know the WLC can dish out my 10.x.x.x subnet to the clients. But my question is the ??? between that and a single IP address and the Public subnet.
    The WLC can't handle that part can it?
    Obviously i could just use a simple linksys router or something to handle that and the ip address pool, but i was hoping there was something in the WLC that can handle it all for me.
    Ideas?  Suggestions?
    Thanks in Advance!

    I guess you are looking for the NAT on the WLC.. this feature is not der on WLC yet.. the WLC acts as a perfect layer 2 device.. this is done only on the layer 3 device currently..
    let me know if this answers your question!!
    Regards
    Surendra

  • Leopard Server question on using partitions for User home directories

    I am setting up a leopard server (Xserve) with an external array (xraid). We set up a /System partition, a /Users partition and a /TimeMachine partition. Each is a partition on a RAID5 device, so we should be pretty well backed up!
    The issue I am having centers on how to get Leopard to use the /Users partition. Apparently, the accounts we set up all had their home directories created under /System/Users, not /Users. This is true for local machine accounts as well as OpenDirectory accounts.
    The question I have is: should I be trying to figure out how to mount the /Users volume inside /System (that would be my old UNIX approach), or should I be trying to set up my users to use the new mount point?
    I am not clear on the 'apple' way for this. Any suggestions would be greatly appreciated.
    Charlie

    I suggest posting to the Mac OS X Server forum where you're more likely to get a cogent response.

  • Delta question while using 'RSAX_BIW_GET_DATA_SIMPLE for delta datasource

    Hello all,
    we have created a custom datasource using FM and we have written it pretty much as a copy of this FM 'RSAX_BIW_GET_DATA_SIMPLE'.
    we are using this extractor to extract data from one of the HR infotypes. Now how it works with infotypes is suppose you have one record for date 04/01/2011 to 12/31/999 and when you go in to create a new record it will delimit the previous one, so basically if you create a new record today the first record will go as 04/01/2011 to 07/31/2011 and new record will be 08/01/2011 to 12/31/9999.
    Now how I am seeing the delat data comeover is I am getting the new record which is created with new dates of 08/01/2011 to 12/31/9999 but the extractor is not fetching the old/changed record of 04/01/2011 to 07/31/9999 so when i load data in DSO I have two records but both of them end on 12/31/999, I have Valid to as part of data fields in DSO so that it can be overwritten but since I am not getting/collecting the changed record the valid to is not changing.
    Has any one faced this before and knows how to fix this?
    Thanks in advance for your help.

    Hi Cathy
    Check the document for combining two date fields to get the timestamp.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30aefb04-7043-2c10-8e92-941536eebc79
    Now the two dates that you have to consider is the start date(08/01/2011) and the end date (12/31/2011). As per the document the record will be captured based on the change either in start date or end date or both. This way it should capture both records.
    Regards
    Lalit
    Edited by: Lalit Tyagi on Aug 3, 2011 4:41 AM

  • Questions about Using Itunes for Nano. New User

    Hi everyone! i am a new ipod user that is new to the itunes software. I have a few questions regarding making playlists and transferring them into the ipod nano and deleting songs from the ipod nano thru itunes or the device. Can someone provide a link or a detail procedure? i've tried already and i can't figure it out. Thank you!

    If I understand what it is you want to accomplish correctly, you can do this if you turn off automatic synchronization. Connect your iPod and click the iPod Options button at the bottom of iTunes. Click the Music button and select "Manually manage songs and playlists." You can then delete specific tracks and playlists directly from the iPod, In addition, iTunes will then not automatically remove the tracks from the iPod if you delete them from iTunes. Note that you'll have to drag songs from your library or playlist to iPod in the Source list to add new tracks.
    For further information, please see page 22 of your iPod nano manual.
    Hope this answers the question.

  • Using concat for STrings

    I'm trying to concat a specified string, ".jpg", to a string of the form:
    filestring = afile.getName();
    filestring.concat(".jpg");
    Why does it not add the .jpg to the end of what filestring is?

    Cuz Strings are immutable dingbat. If you'd read the api you might notice concat returns a new string with the value you want, but you're chucking it since you didn't assign the result to a variable.
    Options:
    1) filestring = afile.getName() + ".jpg"
    2) filestring = afile.getName().concat(".jpg");
    3) filestring = afile.getName(); filestring = filestring.concat(".jpg");
    3) use StringBuffer instead

  • Network question. Use coax for ethernet?

    I heard there's a way to use an existing coaxial cable for an ethernet connection? I have my iMac in our converted garage out back of the main house, and the airport/. internet connection inside the main house. I have them communicate wirelessly now and it's fine, but drops out now and then and I wanted to hook it up by wire.
    There's a coax cable laid between the two houses, but no room/facility for adding an ethernet cable, easily anyway. I was told you can get adapaters to use the coax for this purpose. I looked around online and there's a variety of things available, from simple adapaters for $10 or $20, to complex boxes that cost a hundred to several hundred. Anybody know if this is possible, and if it is, what kind of adapter I need?

    Meetoo wrote:
    I heard there's a way to use an existing coaxial cable for an ethernet connection? I have my iMac in our converted garage out back of the main house, and the airport/. internet connection inside the main house. I have them communicate wirelessly now and it's fine, but drops out now and then and I wanted to hook it up by wire.
    There's a coax cable laid between the two houses, but no room/facility for adding an ethernet cable, easily anyway. I was told you can get adapaters to use the coax for this purpose. I looked around online and there's a variety of things available, from simple adapaters for $10 or $20, to complex boxes that cost a hundred to several hundred. Anybody know if this is possible, and if it is, what kind of adapter I need?
    Coax ("10base2') was the second-generation Ethernet connection technique. (The first was "thicknet"; the third "twisted pair" - "10baseT"). Do a Google search for "10base2".

  • A question about Using RSL for our Intranet Application

    Hi ,
    I am doing an Intranet Application (Which will be used only with in the Employees of the  Organization)
    We want to RSL as read that it will improve the performance of the swf files .
    Please let us know what type of RSL (like Standard RSLs , Cross-domain RSLs or Framework RSL)
    Suppourt us ??
    Can anybody let me know how can i provide RSL facility for my Application .
    Thanks in advnace .

    Thanks for the information .
    As you mentioned:
    RSLs are only useful if more than one SWF is going to share it.
    Our Intranet Application is divided into several Modules , but under only one APPlication MMXL file . So will this be useful for us in any way ??
    Thanks .
    Waiitng for your resposne .

  • Question about using plans for more than one device

    I have a Verizon wireless broad band modem I currently use in conjunction for my lap top. I am looking at getting a cell phone soon and I am curious if I can use that plan, that is currently attached to the modem, with this hypothetical cellphone as well, or if I would need get separate plans for both devices.

    If you want to keep your data from being merged, you will need to have separate iCloud accounts with separate IDs.  You can still track your devices using Find My iPhone, you will just need to be signed into the iCloud account for the device you are trying to track.  You can also continue to share the same ID for iTunes purchasing; it does not need to be the same as the ID used for iCloud.
    In order to migrate your daughter to her own account, on her phone go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from her phone, not from iCloud.  Your devices will not be effected by this.)  When prompted about what to do with the iCloud data, choose Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload her data to the new account.
    You can then go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want from each account (such as deleting your daughter's contacts from your account, and vice versa).

Maybe you are looking for