Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Shale Wiki" for change 
notification.

The following page has been changed by Hermod Opstvedt:
http://wiki.apache.org/shale/CreatingClayComponents

------------------------------------------------------------------------------
  In addition we also have to declare what the symbol "zipcodesList" is to be 
replaced with when we use it on our page.
  
  The values for such a list must be one of the following types:
- 
[http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/model/SelectItem.html/
  Select"Item Select"Item"["], Collection or Map. W use SelectItem, so you need 
to add the following method to the Post bean:
+ 
[http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/model/SelectItem.html/
  Select``Item Select``Item``[``], Collection or Map. We use Select``Item, so 
you need to add the following method to the Post bean:
  
      private void initZipcodesList() {[[BR]]
-         zipcodeliste=new !SelectItem[zipcodes.length];[[BR]]
+         zipcodeliste=new Select``Item[zipcodes.length];[[BR]]
-         SelectItem selectItem;[[BR]]
+         Select``Item selectItem;[[BR]]
          for(int i=0; i < zipcodes.length; i++)[[BR]]
          {[[BR]]
-             selectItem=new !SelectItem();[[BR]]
+             selectItem=new Select``Item();[[BR]]
              selectItem.setLabel(zipcodes[i].toString());[[BR]]
              selectItem.setValue(zipcodes[i]);[[BR]]
              zipcodesliste[i]=selectItem;[[BR]]

Reply via email to