MHP + NanoXML combo

Hi,
I'm trying to read an XML file using xletview and nanoXML, using the following code:
try {
IXMLParser parser = XMLParserFactory.createDefaultXMLParser();
IXMLReader reader = StdXMLReader.fileReader("books.xml");
parser.setReader(reader);
IXMLElement xml = (IXMLElement) parser.parse();
XMLWriter writer = new XMLWriter(System.out);
writer.write(xml);
} catch (Exception e) {
e.printStackTrace();
It compiles without a problem, but it won't read the file. I get a FileNotFoundException, and I have no idea why. I also tried absolute URLs, but without success.
Has anyone else encountered this problem? Does anyone knows how to fix it?

Alright, I switched to nanoXML Lite, and parsing a local file works fine now.
However, I'm still having problems with parsing xml files located on a web server. Is this even possible in MHP?
If so, what is the correct approach? Right now I'm trying to get access via URL and InputStream classes, but without success.

Similar Messages

  • XML content in MHP-Xlet

    Hello!
    I am working on a MHP-application that contacts a server and loads an XML-file, but I have problems, sorting and displaying the XML-content in my Xlet.
    I am using nanoXML to parse the file and via the debug-output of my STB (or the IRT-SW-box) I can see, that this is succesful - but I have no idea how to fill a text-area with the content of my XML-file.
    Has anybody done something like that? And is it possible to write XML-files on a server via the back channel? Maybe with FTP?
    Thanks a lot!

    To answer the other part of the question, it is possible to write files to a server over the return channel. You will need to implement the protocol yourself, however, so in the FTP example you would have to include a simple FTP client in your application.
    Depending on your needs, you may want something more secure than FTP, but this is obviously a design decision for your project.
    Steve

  • Manipulating XML DOM in MHP

    Does anyone have manipulated XML DOM in an MHP Application?
    My application have some configuration files writen as XML documents.
    Is there any package for doing that? Any that does not consume too much resource of a MHP STB?
    Anderson

    It's certainly possible to do this, although MHP does not include any standard XML parser (MHP 1.1.2 does, but the spec has only just been made public, it's not implemented yet, and it's certainly not deployed yet).
    Right now, you nee dot include the XML parser in your application in order to use it. Most people who are doing this kind of thing seem to use the NanoXML parser, which is SAX-based, but any Java-based XML parser should be OK.
    Steve.

  • AccessControlException when using nanoXML :-(

    I am now doing some xml parsing in MHP box with nanoXML. There is exception below:
    java.security.AccessControlException: access denied (java.util.PropertyPermission net.n3.nanoxml.XMLParser read)
    at java.security.AccessControlContext.checkPermission(Ljava/security/Permission;)V(Unknown Source)
    at java.security.AccessController.checkPermission(Ljava/security/Permission;)V(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Ljava/security/Permission;)V(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Ljava/lang/String;)V(Unknown Source)
    at java.lang.System.getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;(Unknown Source)
    at net.n3.nanoxml.XMLParserFactory.createDefaultXMLParser()Lnet/n3/nanoxml/IXMLParser;(XMLParserFactory.java:76)
    and it comes from the source of nanoXML in System.getProperty method:
    * Creates a default parser.
    * @see #DEFAULT_CLASS
    * @see #CLASS_KEY
    * @return the non-null parser.
    * @throws java.lang.ClassNotFoundException
    * if the class of the parser or validator could not be found.
    * @throws java.lang.InstantiationException
    * if the parser could not be created
    * @throws java.lang.IllegalAccessException
    * if the parser could not be created
    public static IXMLParser createDefaultXMLParser()
    throws ClassNotFoundException,
    InstantiationException,
    IllegalAccessException
    String className = System.getProperty(XMLParserFactory.CLASS_KEY,
    XMLParserFactory.DEFAULT_CLASS);
    return XMLParserFactory.createXMLParser(className,
    new StdXMLBuilder());
    has anyone ever seen this? I have no idea why this.
    Thanks in advance!

    Yes I'm using Vidiom Systems Tools "VIsion Workbench" Software. It is a Eclipse Enviroment modified.
    URL url =null;
         try{          
             url = new URL("http://localhost:8080/movies_xml2.xml");
             URLConnection connection = url.openConnection();
             IXMLParser parser = XMLParserFactory.createDefaultXMLParser();
             IXMLReader reader = new StdXMLReader(connection.getInputStream());
             parser.setReader(reader);
                   // Read file and parse it!
                   IXMLElement xmlDoc = (IXMLElement) parser.parse();
                   // Get the tag called
                   IXMLElement node = xmlDoc.getFirstChildNamed("datalist");
                   System.out.println("");
                   Enumeration books = node.enumerateChildren();      
                   while (books.hasMoreElements())
                       book = (IXMLElement) books.nextElement();
                       System.out.println("GeneroID    : " + book.getAttribute("GENREID", ""));
                       System.out.println("MovieID     : " + book.getAttribute("MOVIEID", "unknown"));
              catch (Exception e)
                   e.printStackTrace();
              }Regards and Thanks

  • How to populate data in the data table on combo box change event

    hi
    i am deepak .
    i am very new to JSF.
    my problem is i want to populate data in the datatable on the combo box change event.
    for example ---
    combo box has name of the city. when i will select a city
    the details of the city should populate in the datatable. and if i will select another city then the datatable should change accordingly..
    its urgent
    reply as soon as possible
    thanks in advance

    i am using Rational Application Developer to develop my application.
    i am using a combo box and i am assigning cityName from the SDO.
    and i am declaring a variable in the pageCode eg.
    private String cityName;
    public void setCityName(String cityName){
    this.cityName = cityName;
    public String getCityName(){
    return cityName;
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu" value="#{pc_Test1.loginID}" valueChangeListener="#{pc_Test1.handleMenu1ValueChange}">
                        <f:selectItems
                             value="#{selectitems.pc_Test1.usercombo.LOGINID.LOGINID.toArray}" />
                   </h:selectOneMenu>
                   <hx:behavior event="onchange" target="menu1" behaviorAction="get"
                        targetAction="box1"></hx:behavior>
    and also i am declaring a requestParam type variable named city;
    and at the onChangeEvent i am writing the code
    public void handleMenu1ValueChange(ValueChangeEvent valueChangedEvent) {
    FacesContext context = FacesContext.getCurrentInstance();
    Map requestScope = ext.getApplication().createValueBinding("#{requestScope}").getValue(context);
    requestScope.put("login",(String)valueChangedEvent.getNewValue());
    and also i am creating another SDO which is used to populate data in datatable and in this SDO in the where clause i am using that requestParam .
    it is assigning value in the pageCode variable and in the requestParam but it is not populating the dataTable. i don't no why??
    it is possible that i may not clear at this point.
    please send me the way how my problem can be solved.
    thanks in advance

  • Downloading the 10.6.8 Update Combo v1.1 and it seems stuck at "registering updated components". It's running but I've had "about a minute" left for 30 minutes now

    Trying to download the 10.6.8 Update Combo v1.1 and it seems stuck at "Registering updated components". It's been saying it has "about a minute" left for at least a half hour. What do I do?

    Try downloading it from the Apple site.  Set Safari to download to the desk top:Safari preferences>general>save downloads to desktop.  Download to desktop, and run the installer:
    http://support.apple.com/kb/DL1399

  • Stuck iMac during 10.6.2 to 10.6.8 OS combo update

    Dear community,
    I recently had to wipe out an iMac HDD and reinstall the OS. The install DVD contained OS X Snow Leopard 10.6.2, and I wished to upgrade to Mavericks (10.9) by doing an intermediate update to 10.6.8, as required by the new OS installer.
    After a successful disk erase & OS installation from DVD, I tried to update the OS by using the 10.6.8 Combo update http://support.apple.com/kb/dl1399, which was located on an external hard drive. Just before finishing the update, the screen went black and there was no way to recover the system. Fan and internal HDD were both spinning, so the system was stuck for an unknown reason.
    After waiting for 15 minutes, I decided to switch off the computer manually with the power button, and since then the iMac won't boot any more. Here's a list of what I tried:
    - Boot from cd ("C" during startup): impossible, another disc is currently in the drive, and can't eject it
    - Safe mode: won't load in 30 minutes, I guess it won't load at all
    - Reset NVRAM: no effect
    - Single user mode:
          - "fsck -fy": no effect, volume is OK;
          - reinstalling the updates from within su mode "softwareupdate -i -a" (hoping to reinstall it and get rid of the possible crap): impossible, there is no network connection.
    Any help would be very welcome

    Thanks for the hint, I managed to eject the disc holding the mouse click and inserted the OS DVD.
    This doesn't solve the problem though, I can't boot from it (holding "C" has no effect, nor has the "Alt" key).
    Reading the verbose boot output, things seem pretty bad:
    jnl: unknown-dev replay_journal: from some_decimal: to some_other_decimal (joffset some_hexadecimal)
    jnl: unknown-dev replay_journal done.
    Maybe broken filesystem, but I can't explain why external boot mode doesn't work…

  • Installed 10.6.8 Server Combo Update, but can't update Server Tools to 10.6.8?

    Hello all,
    I installed the 10.6.8 combo update for my xserve earlier today. I also need to update the server tools to 10.6.8 since I am trying to create a new NetInstall image from a .dmg that is running 10.6.8.
    The server tools update has always shown up in the past in Software Update, but I didn't see it this time around so I went and found what looks like the download link for it: http://support.apple.com/kb/DL1403.
    Anyway, I get it downloaded and go to install it, and it says my Server HD does not have Mac OS X installed, and it will not install the update.
    I have the 10.6.8 Server Tools installed on my imagebuilder, but it isn't setup with the right workflow and it would be a hassle to get that going.
    Has anyone else had any problems getting the 10.6.8 server tools installed on their xserve?

    @m.mills: I'd be interested to see what your workflow looks like for your image using the 10.6.7 SIU on 10.6.8 Server? I have been struggling trying to get NetInstall or NetRestore to work using this tool. For NetRestore, it tries to install on the MBP, but fails after a minute or two with this error:
    Unable to set '10.6' as boot disk: The bless tool was unable to set the current boot disk."
    I am using the 10.6 retail DVD as source. I have a very basic workflow:
    * source DVD 10.6
    * Enable Automated Intall; install to volume name: 10.6, erase before installing
    * Apply System Configuration Settings - (apply computer name and local hosts setting)
    * Add 10.6.8 combo pkg
    * Create image
    I also have a machine running 10.7 Server and have successfully created a 10.7.2 image, but 10.6.8 has been giving me fits. It would be nice if I could create a 10.6.8 image on the 10.7 server. Is it possible to do this?
    Any Help is appreciated.
    thx

  • DVD player 5.4 keeps crashing using a variety of DVDs.  I have OS 10.6.8, and have repaired permissions, verified the disc, and installed the 10.6.8 update combo.  Several previous questions have adressed this problem.  What is the solution?

    DVD player 5.4 keeps crashing.  I have seen here that a number of other people have had this problem.  I recently started one DVD, and when I went back to it, it opened to a black screen twice.  It also crashes with other DVDs after I scroll ahead or back.  It gives an error message that it is skipping damaged areas, or sometines error 69889.  Playing this on a PC, however, there is no problem.  I repaired the permissions, verified the disc, and installed the OS 10.6.8 combo update, all to no avail.  Techs told me that it is usually the hardware, so I bought a LaCie external combo drive.  Still crashes.  Looked on Apple downloads and they don't list a 5.4 to replace this version.  Mac informer.com offers a free download for DVD 5.5- should I try this?  Why doesn't Apple fix this problem?

    Your suggestions did not help.  I repeated them again after the first try did not succeed.  Any other ideas?
    Would installing another copy of DVD 5.4 help?  How can I get another copy of DVD player 5.4, since Apple does not seem to offer it?  I do have the disc for Snow Leopard, but am not extremely tech savy (and maybe it is the same corrupted version). 

  • Mac OS 10.4. 11 Combo update (PPC) bug?

    Installed the update above after software update check. On restart the Imac stops witth a black screen and the fan going at full speed. The "on" light is lit.
    I have done the following actions:
    1. started from the installer that came with the computer (Mac s 10.3)
    repaired permissions. repaired disk.
    2. Installed system 10.3 again.Works fine.
    trashed many files to make 18 GB free space on the hard disk.
    3. Upgraded to Tiger 10.4. Works fine.
    4. repaired permissons again.
    5 . Did another Software update download and install of the Combo update.
    6. Result: black screen, fan going at full, "on " light on.
    Any good advice ?

    Good advice?
    There are no guarantees, but following this procedure when installing updates and upgrades on your Mac, or even re-installing them, will go a long way towards avoiding unpleasant after effects and ‘post-update stress disorder’.
    It is also worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site. If your car runs on gasoline you would not want to fill the tank with diesel, so don’t try to install the PPC updater on an Intel Mac!
    The 10.4.11 Combo Updater for PPC Macs is here: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
    And for Intel Macs: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eintel.html
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    More information on using Software Updater here:
    http://support.apple.com/kb/HT1338
    Using the Combo updater ensures that all system files changed since the original 10.4.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.4.10 to 10.4.11. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious!
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them 10.4.10. compliant. Give them a weeks or two while you regularly check their websites for updates. This applies particularly to plug-ins for Safari 3.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    If you are updating Safari (or just have):
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed an OS update and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 used Safari 3.0.4 which was not a beta. If Safari 3.1.2 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 3.0.4 (or worse still, version 2) when running 10.4.11 or 10.5 can have repercussions, as Safari 3.1.1 uses a completely different webkit on which other applications like iChat, Mail and Dashboard Widgets etc also rely, and may entail you having to reinstall an earlier operating system.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here for causing such problems are Piclens and Pithhelmet. If you have them, trash them.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    • /Library/InputManagers
    • ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).

  • How to Bind a Combo Box so that it retrieves and display content corresponding to the Id in a link table and populates itself with the data in the main table?

    I am developing a desktop application in Wpf using MVVM and Entity Frameworks. I have the following tables:
    1. Party (PartyId, Name)
    2. Case (CaseId, CaseNo)
    3. Petitioner (CaseId, PartyId) ............. Link Table
    I am completely new to .Net and to begin with I download Microsoft's sample application and
    following the pattern I have been successful in creating several tabs. The problem started only when I wanted to implement many-to-many relationship. The sample application has not covered the scenario where there can be a any-to-many relationship. However
    with the help of MSDN forum I came to know about a link table and managed to solve entity framework issues pertaining to many-to-many relationship. Here is the screenshot of my application to show you what I have achieved so far.
    And now the problem I want the forum to address is how to bind a combo box so that it retrieves Party.Name for the corresponding PartyId in the Link Table and also I want to populate it with Party.Name so that
    users can choose one from the dropdown list to add or edit the petitioner.

    Hello Barry,
    Thanks a lot for responding to my query. As I am completely new to .Net and following the pattern of Microsoft's Employee Tracker sample it seems difficult to clearly understand the concept and implement it in a scenario which is different than what is in
    the sample available at the link you supplied.
    To get the idea of the thing here is my code behind of a view vBoxPetitioner:
    <UserControl x:Class="CCIS.View.Case.vBoxPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:v="clr-namespace:CCIS.View.Case"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    d:DesignWidth="300"
    d:DesignHeight="200">
    <UserControl.Resources>
    <DataTemplate DataType="{x:Type vm:vmPetitioner}">
    <v:vPetitioner Margin="0,2,0,0" />
    </DataTemplate>
    </UserControl.Resources>
    <Grid>
    <HeaderedContentControl>
    <HeaderedContentControl.Header>
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
    <TextBlock Margin="2">
    <Hyperlink Command="{Binding Path=AddPetitionerCommand}">Add Petitioner</Hyperlink>
    | <Hyperlink Command="{Binding Path=DeletePetitionerCommand}">Delete</Hyperlink>
    </TextBlock>
    </StackPanel>
    </HeaderedContentControl.Header>
    <ListBox BorderThickness="0" SelectedItem="{Binding Path=CurrentPetitioner, Mode=TwoWay}" ItemsSource="{Binding Path=tblParties}" />
    </HeaderedContentControl>
    </Grid>
    </UserControl>
    This part is working fine as it loads another view that is vPetioner perfectly in the manner I want it to be.
    Here is the code of vmPetitioner, a ViewModel:
    Imports Microsoft.VisualBasic
    Imports System.Collections.ObjectModel
    Imports System
    Imports CCIS.Model.Party
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' ViewModel of an individual Email
    ''' </summary>
    Public Class vmPetitioner
    Inherits vmParty
    ''' <summary>
    ''' The Email object backing this ViewModel
    ''' </summary>
    Private petitioner As tblParty
    ''' <summary>
    ''' Initializes a new instance of the EmailViewModel class.
    ''' </summary>
    ''' <param name="detail">The underlying Email this ViewModel is to be based on</param>
    Public Sub New(ByVal detail As tblParty)
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Me.petitioner = detail
    End Sub
    ''' <summary>
    ''' Gets the underlying Email this ViewModel is based on
    ''' </summary>
    Public Overrides ReadOnly Property Model() As tblParty
    Get
    Return Me.petitioner
    End Get
    End Property
    ''' <summary>
    ''' Gets or sets the actual email address
    ''' </summary>
    Public Property fldPartyId() As String
    Get
    Return Me.petitioner.fldPartyId
    End Get
    Set(ByVal value As String)
    Me.petitioner.fldPartyId = value
    Me.OnPropertyChanged("fldPartyId")
    End Set
    End Property
    End Class
    End Namespace
    And below is the ViewMode vmParty which vmPetitioner Inherits:
    Imports Microsoft.VisualBasic
    Imports System
    Imports System.Collections.Generic
    Imports CCIS.Model.Case
    Imports CCIS.Model.Party
    Imports CCIS.ViewModel.Helpers
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' Common functionality for ViewModels of an individual ContactDetail
    ''' </summary>
    Public MustInherit Class vmParty
    Inherits ViewModelBase
    ''' <summary>
    ''' Gets the underlying ContactDetail this ViewModel is based on
    ''' </summary>
    Public MustOverride ReadOnly Property Model() As tblParty
    '''' <summary>
    '''' Gets the underlying ContactDetail this ViewModel is based on
    '''' </summary>
    'Public MustOverride ReadOnly Property Model() As tblAdvocate
    ''' <summary>
    ''' Gets or sets the name of this department
    ''' </summary>
    Public Property fldName() As String
    Get
    Return Me.Model.fldName
    End Get
    Set(ByVal value As String)
    Me.Model.fldName = value
    Me.OnPropertyChanged("fldName")
    End Set
    End Property
    ''' <summary>
    ''' Constructs a view model to represent the supplied ContactDetail
    ''' </summary>
    ''' <param name="detail">The detail to build a ViewModel for</param>
    ''' <returns>The constructed ViewModel, null if one can't be built</returns>
    Public Shared Function BuildViewModel(ByVal detail As tblParty) As vmParty
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Dim e As tblParty = TryCast(detail, tblParty)
    If e IsNot Nothing Then
    Return New vmPetitioner(e)
    End If
    Return Nothing
    End Function
    End Class
    End Namespace
    And final the code behind of the view vPetitioner:
    <UserControl x:Class="CCIS.View.Case.vPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    Width="300">
    <UserControl.Resources>
    <ResourceDictionary Source=".\CompactFormStyles.xaml" />
    </UserControl.Resources>
    <Grid>
    <Border Style="{StaticResource DetailBorder}">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBlock Grid.Column="0" Text="Petitioner:" />
    <ComboBox Grid.Column="1" Width="240" SelectedValuePath="." SelectedItem="{Binding Path=tblParty}" ItemsSource="{Binding Path=PetitionerLookup}" DisplayMemberPath="fldName" />
    </Grid>
    </Border>
    </Grid>
    </UserControl>
    The problem, presumably, seems to be is that the binding path "PetitionerLookup" of the ItemSource of the Combo box in the view vPetitioner exists in a different ViewModel vmCase which serves as an ObservableCollection for MainViewModel. Therefore,
    what I need to Know is how to route the binding path if it exists in a different ViewModel?
    Sir, I look forward to your early reply bringing a workable solution to the problem I face. 
    Warm Regards,
    Arun

  • Not able to populate data in the combo box

    Hi Guys,
    I m new to flex development and I want to populate the data
    coming from the databasein the combobox.I am able to get the length
    .but not able to populate the data.
    Can anyone helpme out?
    The code is below:
    The data displayed in the combox box is displayed as
    [object],[object] etc.I m sure that the data is coming from the
    database and its not populated in the combo box.any help is
    appreciated.
    private function getParkinfo(event:ResultEvent):void
    { Alert.show(event.result.length.toString());
    countries.dataProvider = event.result;
    <mx:ComboBox id="countries" />

    What does the data look like in the result? Is it XML? Post a
    sample of it.

  • Item listener & combo boxes......please help me....thanks

    I did a applet that shows 4 jcombobox......the combo 2 is filling if the combo 1 is actioned, the combo3 is filling if the combo2 is actioned and the combo 4 have to be filled if the combo 3 is actioned.
    I did it...using item listener......it works fine....the first time....(in the console appears the lines that i specify using System.out.println).....but after...when i select any combo....i see in the console...that the itemlistener action is done several times......i don�t know why......do you have any idea or suggestion about it?............
    Thanks in advance...
    Mary
    This is the code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.lang.*;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    public class w3_a extends JApplet {
    Container contentPane;
    int i=10, j=20, k=30, l=40;
    private JComboBox jcb1;
    private JComboBox jcb2;
    private JComboBox jcb3;
    private JComboBox jcb4;
    private JTabbedPane jtp;
    private GriddedPanel jp1;
    private GriddedPanel jp2;
    public void init() {
    contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    add_JComboBoxes_GUI();
    add_JTabbedPanes_GUI();
    fill_combo1();
    void add_JComboBoxes_GUI() {
    jp1 = new GriddedPanel();
    jp1.setBorder( new EmptyBorder(new Insets(5, 5, 5, 5)) );
    jcb1 = new JComboBox();
    jcb2 = new JComboBox();
    jp1.add(jcb1);
    jp1.add(jcb2);
    contentPane.add(jp1, BorderLayout.NORTH);
    jcb1.addItemListener(new java.awt.event.ItemListener() {
    public void itemStateChanged(ItemEvent e) {
    System.out.println("Accion 1 - Element");
    fill_combo2();
    jcb2.addItemListener(new java.awt.event.ItemListener() {
    public void itemStateChanged(ItemEvent e) {
    System.out.println("Accion 2 - Element");
    fill_combo3();
    void add_JTabbedPanes_GUI() {
    jtp = new JTabbedPane();
    jtp.addTab("Datos Generales", new Panel_Data());
    contentPane.add(jtp);
    class Panel_Data extends JPanel {
    public Panel_Data() {
    // Primer panel de JTabbedPane de Datos Generales
    jp2 = new GriddedPanel();
    jp2.setBorder( new EmptyBorder(new Insets(5, 5, 5, 5)) );
    jcb3 = new JComboBox();
    jcb4 = new JComboBox();
    jp2.add(jcb3);
    jp2.add(jcb4);
    jtp.add(jp2);
    contentPane.add(jtp, BorderLayout.SOUTH);
    jcb3.addItemListener(new java.awt.event.ItemListener() {
    public void itemStateChanged(ItemEvent e) {
    System.out.println("Accion 3 - Element");
    fill_combo4();
    jcb4.addItemListener(new java.awt.event.ItemListener() {
    public void itemStateChanged(ItemEvent e) {
    System.out.println("Accion 4 - Element");
    void fill_combo1() {
    System.out.println("Start fill_combo1()");
    jcb1.removeAllItems();
    jcb1.addItem("combo1 " + (++i));
    jcb1.addItem("combo1 " + (++i));
    jcb1.addItem("combo1 " + (++i));
    System.out.println("End fill_combo1()");
    return;
    void fill_combo2() {
    System.out.println("Start fill_combo2()");
    jcb2.removeAllItems();
    jcb2.addItem("combo2 " + (++j));
    jcb2.addItem("combo2 " + (++j));
    jcb2.addItem("combo2 " + (++j));
    System.out.println("End fill_combo2()");
    return;
    void fill_combo3() {
    System.out.println("Start fill_combo3()");
    jcb3.removeAllItems();
    jcb3.addItem("combo3 " + (++k));
    jcb3.addItem("combo3 " + (++k));
    jcb3.addItem("combo3 " + (++k));
    System.out.println("End fill_combo3()");
    return;
    void fill_combo4() {
    System.out.println("Start fill_combo4()");
    jcb4.removeAllItems();
    jcb4.addItem("combo4 " + (++l));
    jcb4.addItem("combo4 " + (++l));
    jcb4.addItem("combo4 " + (++l));
    System.out.println("End fill_combo4()");
    return;

    Hi!!!
    Thanks by answer to me.....
    Yes ...i already understand why is happening in it.....
    I did modifications to my code to remove the listeners and after to add them....but no yet obtain my goal that the combo 2 is filling if the combo 1 is actioned, the combo3 is filling if the combo2 is actioned and the combo 4 have to be filled if the combo 3 is actioned.
    I think that at least should it to work for combo1 and combo2, because i don't know how to specify to add or remove the listener from the class de Panel_Data would be .....because i think that with:
    jcb3.removeItemListener(this);
    jcb3.addItemListener(this);
    jcb4.removeItemListener(this);
    jcb4.addItemListener(this);
    i am removing and adding the itemlistener from the main class w10_a (for combo3 and combo4)...... and not for the Panel_Data class.
    ie,
    jcb4.removeItemListener(
    //here is my doubt i don't know how to specify
    //to add or to remove the itemlistener from the
    //Panel_Data class for combo3 and combo4
    jcb4.addItemListener(
    //here is my doubt i don't know how to specify
    //to add or to remove the itemlistener from the
    //Panel_Data class for combo3 and combo4
    Well...i hope that you could help me please in give me some suggestions about it...
    Thanks in advance...
    Mary
    Here is my code modified:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.lang.*;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    public class w10_a extends JApplet implements ItemListener{
    Container contentPane;
    int i=10, j=20, k=30, l=40;
    private JComboBox jcb1;
    private JComboBox jcb2;
    private JComboBox jcb3;
    private JComboBox jcb4;
    private JTabbedPane jtp;
    private GriddedPanel jp1;
    private GriddedPanel jp2;
    public void init() {
    contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    add_JComboBoxes_GUI();
    add_JTabbedPanes_GUI();
    fill_combo1();
    void add_JComboBoxes_GUI() {
    jp1 = new GriddedPanel();
    jp1.setBorder( new EmptyBorder(new Insets(5, 5, 5, 5)) );
    jcb1 = new JComboBox();
    jcb2 = new JComboBox();
    jp1.add(jcb1);
    jp1.add(jcb2);
    contentPane.add(jp1, BorderLayout.NORTH);
    jcb1.addItemListener(this);
    jcb2.addItemListener(this);
    void add_JTabbedPanes_GUI() {
    jtp = new JTabbedPane();
    jtp.addTab("Datos Generales", new Panel_Data());
    contentPane.add(jtp);
    class Panel_Data extends JPanel implements ItemListener {
    public Panel_Data() {
    // Primer panel de JTabbedPane de Datos Generales
    jp2 = new GriddedPanel();
    jp2.setBorder( new EmptyBorder(new Insets(5, 5, 5, 5)) );
    jcb3 = new JComboBox();
    jcb4 = new JComboBox();
    jp2.add(jcb3);
    jp2.add(jcb4);
    jtp.add(jp2);
    contentPane.add(jtp, BorderLayout.SOUTH);
    //Implementamos ActionListener para cada acci�n ejecutada
    jcb3.addItemListener(this);
    jcb4.addItemListener(this);
    public void itemStateChanged(ItemEvent e) {
    if ( e.getItemSelectable() == jcb3 ) {
    System.out.println("Accion 3 - Element");
    fill_combo4();
    if ( e.getItemSelectable() == jcb4 ) {
    System.out.println("Accion 4 - Element");
    public void itemStateChanged(ItemEvent e) {
    if ( e.getItemSelectable() == jcb1 ) {
    System.out.println("Accion 1 - Element");
    fill_combo2();
    if ( e.getItemSelectable() == jcb2 ) {
    System.out.println("Accion 2 - Element");
    fill_combo3();
    void fill_combo1() {
    System.out.println("Start fill_combo1()");
    jcb1.removeItemListener(this);
    jcb1.removeAllItems();
    jcb1.addItem("combo1 " + (++i));
    jcb1.addItem("combo1 " + (++i));
    jcb1.addItemListener(this);
    jcb1.addItem("combo1 " + (++i));
    System.out.println("End fill_combo1()");
    void fill_combo2() {
    System.out.println("Start fill_combo2()");
    jcb2.removeItemListener(this);
    jcb2.removeAllItems();
    jcb2.addItem("combo2 " + (++j));
    jcb2.addItem("combo2 " + (++j));
    jcb2.addItemListener(this);
    jcb2.addItem("combo2 " + (++j));
    System.out.println("End fill_combo2()");
    void fill_combo3() {
    System.out.println("Start fill_combo3()");
    jcb3.removeItemListener(this);
    jcb3.removeAllItems();
    jcb3.addItem("combo3 " + (++k));
    jcb3.addItem("combo3 " + (++k));
    jcb3.addItemListener(this);
    jcb3.addItem("combo3 " + (++k));
    System.out.println("End fill_combo3()");
    void fill_combo4() {
    System.out.println("Start fill_combo4()");
    jcb4.removeItemListener(this);
    jcb4.removeAllItems();
    jcb4.addItem("combo4 " + (++l));
    jcb4.addItem("combo4 " + (++l));
    jcb4.addItemListener(this);
    jcb4.addItem("combo4 " + (++l));
    System.out.println("End fill_combo4()");

  • Combo Drive Problems

    I just installed the IDE CDRW/DVD combo drive and the PowerDVD software that came with it.  Unfortunately I cannot seem to get my DVDs to play correctly.  After about 10 minutes the playback goes buggy on me.  It sort of crashes.  By that I mean the DVD will go start over at the beginning (the studio logo part).  I played the disc on two other players and it works fine.  I also tried using another disc, and I experienced the same problem.  The thing kind of resets.  Further attempts have resulted in crashes and lock ups.  I attempted playing the disc with PowerDVD and Windows Media Player.  I made sure the drive was set to DMA and I did flash the drive BIOS.  The hardware manager for the OS says the device is functioning properly.  Anybody have any suggestions?  Is this a hardware or a software issue?

    Okay, I reinstalled the OS, installed WinDVD 4 and tested the discs.  So I concluded that the problem was solved by reinstalling the OS.  I assumed it would be safe to install PowerDVD 5.  I did that and tested the disc and look what happens.  Same old problem.  I uninstalled it but still have the same problem!  All that hassle of backing up my old data, reinstalling the OS...and the suffering.  Oh the suffering.  
    At this point I think I'll just roll over and play dead.  Fine...I can't watch Underworld on my deskbox past chapter 3...strangely, Matrix used to skip backward too, but that problem seems to have gone away.  
    I saw Wonkanoby's post about the new Nforce drivers...I picked those up...no help.  I've pretty much done everything I can think about.  At one point I've even taken the drive back and exchanged it for a new one.  All updated drivers...DirectX 9...WinUpdated all current...really, nothing I can think of short of getting a new drive.  But...it works fine for some discs?!
    I think I'm going insane...man...look at this thread...I must be insane...I've spent a great majority of it talking to myself...

  • What is difference between 10.5.6 COMBO Update and 10.5.6 Update ? Both say

    Both say +"The 10.5.6 Update is recommended for all users running Mac OS X Leopard and includes general operating system fixes that enhance the stability, compatibility and security of your Mac."+
    *Mac OS X 10.5.6 Combo Update* (669 MB)
    http://support.apple.com/downloads/MacOS_X_10_5_6_ComboUpdate
    *Mac OS X 10.5.6 Update* (373 MB)
    http://support.apple.com/downloads/MacOS_X_10_5_6Update
    I've never had any issue whatsoever before in using Software Update to handle all such OS updates. This is my first time encountering problem: It says "Restart", so I click Restart; and it starts on that purple default OS background, then starts an install process. But that status bar has been seemingly stopped for over 40 minutes after just advancing about 1/8th of an inch....
    So I forced power-off, restarted, found these forums, and one of many seemingly contradictory knowledge base documents says if you're having problems with automatic Software Update, then instead download a standalone installer.
    Which is why I ask the question of this thread. Normally, when I see "Combo Update", the implication is that there are multiple incremental updates stacked sequentially on top of each other, and the Combo will ensure that all intermediate updates get installed along with the most current update.
    But in this case, the information at the links above does not differentiate in any way WHICH of the two someone should use if their current OS version is 10.5.5 .

    That was really very helpful. So for me it begs a followup.
    I ran the "regular" installer since I had 10.5.5 prior to running the update. Via the automated Software Update feature, the update failed several times. However, when I came to the support forums here and then downloaded and ran the standalone update file (the regular one), the process was simple, and my system updated to 10.5.6.
    I have checked my system profiler and it says 10.5.6 ...
    But based on things you have said, it seems to me that I would be adding an extra layer of solid foundation for my installed OS X if I were to run the COMBO Updater now -- even though I am at 10.5.6 -- so as to ensure the thorough code set is in place.
    Am I reading correctly? Is that what you would recommend? Because I already earlier downloaded the COMBO update installer file, at the same time I also downloaded the smaller standalone updater file... At that time I wasn't certain which I should run. And I'd much rather take a little extra time now to run the COMBO if it would enhance the stability of the OS on my computer.
    So I look forward to your reply.
    In a separate posting I made tonight, in another thread, I am annoyed that for a major OS update Apple didn't entrust their consumer marketing division to write the instructions for consumers... so that instead of just that regular ol' automated convenience of set-n-forget "Software Update", in this case it actually communicated to the customer: "You might want to update Safari and iTunes using this automated process, but we also are updating the full operating system of OS X. And thus we recommend you download that file separately and run it from your desktop as follows...."
    Apple Support has historically never been in sync with the Consumer Sales side of the business -- the group that is Best in Class in knowing how to communicate with mainstream consumers.
    Thank you again for your reply. I wish the Support gods would take your posting and make it STICKY so that 1000 new threads don't have to be started. But that is like praying for competence from U.S. Congress.

Maybe you are looking for

  • Can't start managed server in Oracle Service Bus 10gR3

    Using Windows 2003 Enterprise. Standard install of OSB 10gR3 - only changes from standard are that I also installed the samples, otherwise, it's default install the whole way. My windows machine name is the same as a name entry in the HOSTS file, as

  • Problem with Premiere Elements 11 uploading mp4 files

    I tried to upload a video footage for editing. The video was taken using a GoPro camera and the output is mP4. The footage playback on Premiere Elements 11 was choppy and stalled often. I asked someone else with the same program and he experienced th

  • Itune wont open...

    k ive been looking through most of the threads here about itunes not opening, havent seen anyhting with the same problems that i have... whenever i try to run itunes i get the message that it's encountered an error and needs to close, yeah thats one

  • Encryption Program

    Ok, so here's the deal: For school I have to create an encryption program that will read a string from the user, ask them for an alphabet that it will use to encrypt it then encrypt the phrase. This is my code: * This program asks the user for a phra

  • VF01 - intercept type and find a user exit to modify some fields

    Hi all, in transaction VF01 i need to intercept the saving of a new invoice because when i save i have to check the invoice type if vbrk-fkart = 'ZIV' i need to put VBRP-AUFNR and VBRP-PRCTR to predefined values... how can i intercept the saving of t