Unsupported Exception

6 messages - 2232 views

Hi,

A very basic question. I have installed Netbeans 6.5 and I am trying to run the HelloWorld Sample with KUIX.

I have added the required jars to the project and built it. While running I get an Unsupported exception.

I have cleaned an dbuilt, changed the CDLC and MIDP versions, emulators, but I get the same error.

Can someone help ?

Does the exception occure on build time ?

How did you include HelloWorld sources into your NetBeans project ?

Hi,

I have resolved this issue. And have moved on and started actively developing. I have two queries, I searched the forum but could not get a direct response.

 

1) I have a tab-folder and I create the tabs at runtime and within the tab,

I use the ListItem to show a list :

<ListItem id=1 onAction=sendID(this.id) ><Text id=name>Name1</Text><Text id=dob>Dob1</Text></ListItem>

<ListItem id=2 onAction=sendID(this.id) ><Text id=name>Name2</Text><Text id=dob>Dob2</Text></ListItem>

<ListItem id=1 onAction=sendID(this.id) ><Text id=name>Name3</Text><Text id=dob>Dob3</Text></ListItem>

(Please note I am NOT using the <List>/</List> tags), I am directly adding a List Item to a ScrollPane which is inside a tabfolder.

Also while I am changing the ID of the ListItem, I am NOT changing the IDs of the contained Text

How can I access the content of the contents of the ListItem ? I am able to send the List id to Java Side. How do I use the Id to get the data of contained widgets ? What if there are 'n' widgets ?

At the ListItem level if include onAction="display(#Name.text,#dob.text)" it only displays the first List Items Name and Text even though the 'hover' is on the 3rd ListItem. I have a work around for this problem (generate unique IDs for the Text as well), but wanted to know if there is a better way.

 

2) The second is on the progress bar, while the DataProvider is being 'filled', I want the progress bar to show and end when the DataProvider is created. I know exactly when the DataProvider has been instantiated, and I can send an Interuption to the Thread.

DateDataProvider myddp = null;

(if DateDataProvider.isInstantiated){

}else{

//I want to have a progress bar here

myddp = new DateDataProvider();

}

Hi,

I found the resolution for 1), still looking out for a answer for 2

1) With the lastest SVN sources, you would be able to duplicate widget ids in the same screen, because you would be able to do something like this :

<listitem onAction="myAction(this.#name)">

<text id="name">Blabla</text>

</listitem>

2) Try to look at the visible attribute on the progressBar

Thanks Tofu,

I will get the latest code from SVN and give it a shot. And will try the progress bar as well.I have posted a question in the Kaprice Section, but is relevant here as well. So I am going to pop it here as well.

I have one more query before I complete my main module :

I have 3 DataProviders, GrandMasterContainer, FatherContainer, ChildContainer, G has 'n' F and each F has 'n' C.How can I show all the data on the same form/screen ? I send the GrandMasterContainer to the MainFrame, how can I access the ChildContainers items ?

For now, the alternative is have used is I created the XML and call loadScreen(inputstream);

 

I am not using <_renderer>[CDATA] till I find a way to access the child from the grandparent. is there a way to access @{GrandMaster.Father.Child.property} ? Will addSlave work ?