You can build tobago from the source. See:
http://myfaces.apache.org/tobago/getting-started.html
But i will send you the gendoc example directly.
Regards
Bernd
madan chowdary wrote:
Hi Bernd,
thnx for the reply, will check over the java file u send,
is there any working demo for the example u speciefied, if so then that would
be easier for me to understand.
Madan
----- Original Message ----
From: Bernd Bohmann <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Sunday, 4 February, 2007 6:33:40 PM
Subject: Re: [ Tobago ] Help regarding valueChangelistener
Hallo Madan,
which type has the value of the selectOneChoice?
In my example the getter of the selectItems returns the valid options
depending on the value selected in the other selectOneChoice.
But i don't like to add to much logic in a getter.
If you need more code to set the optionList of the depend selectBox I
would prefer an action. This is the intention of my statement
Please look in the controller of the example
http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/java/org/apache/myfaces/tobago/example/reference/Controller.java?revision=503385&view=markup
the action is the method
public String action()
and the getter of the depend selectItems is
the method
public SelectItem[] getManufacturerSelectItems()
Regards
Bernd
madan chowdary wrote:
Hi Bernd,
This is what my <tx:selectOneChoice/>'s <f:selectItems/> iterate
/**
*
* @return the billToSite address available for the customer
*/
public Collection<SelectItem> getBillToSites() {
Collection<SelectItem> selectItems = new ArrayList<SelectItem>();
if(billToSites != null){
for(BillToSite billToSite : billToSites){
selectItems.add(new
SelectItem(billToSite.getSiteId(),billToSite.getAddress()));
}
}
return selectItems;
}
billToSites is an array of BillToSite class, so just created a Collection
object with SelectItem in that .
would this cause the problem ?
and in ur previous mail u specified as
I would suggest to switch the selectItem in the action of the command or
in the getter of the getSelectItem method of the depend selectOneChoice.
i didnt get the above statement, can u explain it in detail plz
thnx
Madan
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/