Skip to main content

dojo combobox and jsf

2 replies [Last post]
thomas_borunda
Offline
Joined: 2007-06-21
Points: 0

Having trouble calling dojo combobox data from a jsf bean. This is in my faces-config.xml:

ComboBoxBean
com.sun.facesApp.dojo.ComboBoxBean
session

and this in my jsp code:

Copied ComboboxBean class from "usingFaces" example to com.sun.facesApp.dojo package. jsp page renders the combo box but no data, just this text in the control: "#{ComboboxBean.country}"

Using netbeans 5.5.1 and jmaki netbeans module 1.6.9.9.1

Thanks for help
- t

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

The Using JSF is a bit dated now. Here is the test from our samples that will work:

https://widgets.dev.java.net/source/browse/*checkout*/widgets/trunk/code...

Notice the package name change.

We also removed the "selected" attribute recently and we need to build that into the data model for the widget.

thomas_borunda
Offline
Joined: 2007-06-21
Points: 0

Hi thanks for help,

I remove "selected" tag and added ApplicationBean source and renamed package to jmaki.dojo. Also changed faces-config.xml to match.So this is new jsp call:

Combobox output now says "undefined".

I do something not quite right?

- t