How to update the treetable

2012-08-10 Thread lxw_first
I created a treetable with a treemodel based on database schema. I am trying
to refresh the treetable so that it will change it's data after some db
update.
I update viat the button event.the button event work but treetable doesn't
change.
To create treetable i have this on my page:

treeTable = new TreeTable(treeTable, createTreeModel(), columns);
treeTable.getTreeState().setAllowSelectMultiple(true);
treeTable.setRootLess(true);
treeTable.getTreeState().collapseAll();
creatForm.add(treeTable);

the createTreeModel code:
protected TreeModel createTreeModel() {
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();
initTree(roleList, rootNode);
TreeModel treeModel = new DefaultTreeModel(rootNode);
return treeModel;
}

i add the button event like this:
protected void onSubmit(AjaxRequestTarget target, Form? form) {
roleList.clear();
treeTable.updateTree(target);
target.add(getForm(),treeTable);
}

Any idea or reference to documentation that explain this?
thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-the-treetable-tp4651122.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:treetable with checkbox column

2012-08-10 Thread lxw_first
the create treetable code like this:
treeTable = new TreeTable(treeTable, createTreeModel(), columns);
treeTable.getTreeState().setAllowSelectMultiple(true);
treeTable.setRootLess(true);
treeTable.getTreeState().collapseAll();
creatForm.add(treeTable);

the columns code:
new PropertyCheckboxColumn(new ColumnLocation(Alignment.RIGHT, size,
Unit.EM), header, type);

how can i get the checkbox selected?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4651123.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



how to get dropdownlist selected value

2012-07-26 Thread lxw_first
http://apache-wicket.1842946.n4.nabble.com/file/n4650788/aaa.bmp 

html:


select wicket:id=attrvalue/select


code
final ListView trView=new ListView(tritems, new PropertyModel(this,
attrBizRoles)) {
private IBizRole attrvalueBizRole=new BizRole();

@Override
protected void populateItem(ListItem item) {
attrBizRole = (IBizRole) item.getModelObject();
item.add(new Label(lblattr, attrBizRole.getName()));
// this list can get from attr
attrvalueBizRoles = (ListIBizRole) 
attrBizRole.getChildBizRole();
if (attrvalueBizRoles.size()0) {
attrvalueBizRole=attrvalueBizRoles.get(0);
}
DropDownChoice attrvalueChoice = new 
DropDownChoice(attrvalue,new
PropertyModelIBizRole(this, attrvalueBizRole), attrvalueBizRoles,new
IChoiceRenderer() {

@Override
public Object getDisplayValue(Object object) {
attrvalueBizRole = (IBizRole) object;
return attrvalueBizRole.getName();
}

@Override
public String getIdValue(Object object, int index) {
attrvalueBizRole = (IBizRole) object;
return String.valueOf(attrvalueBizRole.getId());
}
});
item.add(attrvalueChoice);
}
};

i want to get the dropdownlist selected value.how to get value?
Can anyone tell me how to achieve this. 
Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-get-dropdownlist-selected-value-tp4650788.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket:treetable with checkbox column

2012-07-23 Thread lxw_first
Hello,

I have a treetable with two column.one column is PropertyTreeColumn,other
column is CheckColumn,similar with the PropertyTreeColumn.After I selected
or not selected checkbox in the treetable,i clicked button,then save all the
checkbox value.But now i don't know how to get checkbox value.

Can anyone tell me how to achieve this.
thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:treetable with checkbox column

2012-07-23 Thread lxw_first
checkbox.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4650743.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inherit Panel setVisible In AjaxCall

2012-07-22 Thread lxw_first
Thanks for you reply. Because I will need to render new data when the model
object of the DropDown changed,so I create a new instance of
BaseRoleMapPanel. I have fixed this question. 

Thanks a lot。 





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inherit-Panel-setVisible-In-AjaxCall-tp4650683p4650686.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: about the modalwindow in the wicket

2012-04-25 Thread lxw_first
Hi,I follow you code,but the error is still exists。

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4586074.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



about the modalwindow in the wicket

2012-04-23 Thread lxw_first
I have a question in trying to change the label content in the ModalWindow.
There is a label in the ModalWindow. The ModalWindow extends the Panel. 
How to change the content of the modalwindow when the content ofthe
textfield changed?
Anyone can help me?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4580873.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to embedded CheckBox in the DropDownChoice Options

2012-04-06 Thread lxw_first
 I want to embedded CheckBox in the DropDownChoice Options so that I can
select multi options in the page.
But i don't know how to readlize it?
Anyone can help me?
Thanls a lot.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-embedded-CheckBox-in-the-DropDownChoice-Options-tp4536496p4536496.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org