There is no provision for creating a foreign key (object relationship) based
drop-down in appfuse:gen.  So if you have a OneToMany relationship in your
model that you ran appfuse:gen against, then you will need to create your
own drop-down based on the models children.  Its not too terrible.  In your
action create a List that will hold the children.  When you load your model
from the database populate this list with a list = parent.getChildren(). 
Then in your jsp template you can use struts tags (assuming you are using
struts) to build the drop-down from your list.

-D


Casanova wrote:
> 
> Hello sir,
> 
> Iam wondering if there is already a solution for generating a dropdown box
> and checkbox using appfuse plugins appfuse:gen. If so, please let me know
> how I can generate dropdowon, checkbox using appfuse:gen. Potentialy this
> should be possible by creating a foreignkey relation for dropdown and
> tinyint or bit for checkbox in database.
> 
> Regards,
> Ajay
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDown-and-Checkbox-from-Appfuse%3Agen-tp15518592s2369p15547086.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to