0

zk nested for each in tabbox

asked 2014-11-14 00:21:33 +0800

fernando900819 gravatar image fernando900819
3 1

I have a object: ViewsByUser like:

public class ViewsByUser {

    Views view;
    ArrayList <UsersViews> usersViews;

    public ViewsByUser(Views view, ArrayList<UsersViews> usersViews) {
        this.view = view;
        this.usersViews = usersViews;
    }

   // Getter and Setters ...


    @Override
    public String toString() {
        return view.getName();
    }

}

And my object has a ArrayList <UsersViews> usersViews;

Then i am creating a List of my before object "ViewsByUser" loading the information with a DAO

ArrayList<ViewsByUser> viewsbyus = CDAO.getInfo();

and i need in a tabbox load the object (in the tabs the view and in the tabpanel a new tabbox with the eacho usersViews of the view).

I am trying with a forEachStatus but it not works for me.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-16 08:08:11 +0800

Darksu gravatar image Darksu
1991 1 4

Hello fernando900819,

I believe that the funcionality you want to create could be accomplished much easier by using java code.

Please look at the following url and specifically the method addChildrenTab. This could be used as a reference for your task:

http://forum.zkoss.org/question/46356/dynamic-tabbox/

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-11-14 00:21:33 +0800

Seen: 13 times

Last updated: Nov 16 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More