How to combine JSF and Wicket components on the same page

2010-10-27 Thread gouthamrv

Is there way I can combine a JSF component and a Wicket component on the same
web page? 

I have a menu bar component created in Wicket and a form component is
created in JSF.

I have to combine these two components in one page, is it possible?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-combine-JSF-and-Wicket-components-on-the-same-page-tp3016438p3016438.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: How to add image to table column and how to change image this on click?

2010-10-18 Thread gouthamrv

Thanks EC. It worked!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-image-to-table-column-and-how-to-change-image-this-on-click-tp2996263p3001181.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: How to add image to table column and how to change image this on click?

2010-10-15 Thread gouthamrv

Yes this worked! Thank you very much.

I have another question, If I want to make the complete column header as
clickable, how do I do that. 

That is, currently it supports only clicking on column name, but I want to
have option to click anywhere on that table column header for sorting. 

Is it possible?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-image-to-table-column-and-how-to-change-image-this-on-click-tp2996263p2997566.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 externalize web page elements to make it configurable?

2010-10-15 Thread gouthamrv

I am looking for some design patterns or best practices for configuring web
page fields. 

My web page has a table, which is dynamically created by my API (Wicket). 

Currently all the column names are hard coded in the java but I want to make
it externalizable that way I can add/remove/modify fields without modifying
java code.

Also I want to define each field type, valid value ranges etc.. in this
external file.

Are there any recommended approaches for this requirement?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-externalize-web-page-elements-to-make-it-configurable-tp2997775p2997775.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: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-14 Thread gouthamrv

I have found the problem, now it is working as expected. But I am seeing one
more issue with navigation bar message and numbers that it shows. 

First time when I load page, it shows showing 1 to 10 of 50, now I clicked
next arrow link and it shows showing 11 to 20 of 50. 

After this, I changed my drop down chioce to get another list from data
base. I am expecting that my table should display showing 1 to 10 of 50,
but instead it is shows showing 11 to 20 of 50 (this is the last display
message before changing drop down). 

When I log first and count numbers in my iterator(int first, int count)
method in SortableDataProvider,  first number is not clearing out, it is
just carrying every time. 

How do I solve this problem?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2995758.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: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-14 Thread gouthamrv

Yes you are right!. That works. 

Thank you very much!!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2995985.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 add image to table column and how to change image this on click?

2010-10-14 Thread gouthamrv

I am creating table with AjaxFallbackDefaultDataTable. I want to add image to
each column and when user clicks any column for sorting, I want to change
this image. 

Is this is possible?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-image-to-table-column-and-how-to-change-image-this-on-click-tp2996263p2996263.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 update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv

I would like to know how to update a panel when we select a drop down chioce
values, that is in onUpdate() method.

My custom panel has AjaxFallbackDefaultDataTable.

Below is Panel and drop down components code. When user selects date, I want
to replace my entire Panel. Currently I have commened that
target.addComponent code, but I want to have implementation here. Any
suggestions?


ListDealHistory dealHistoryList = ServicesCaller
.getAllDealHistoryRecords();
DealHistoryTablePanel dealHistoryTablePanel = new 
DealHistoryTablePanel(
deal_history_table_panel, dealHistoryList);
dealHistoryTablePanel.setOutputMarkupId(true);

add(dealHistoryTablePanel);

IModelList? extends String dateChoices = new
AbstractReadOnlyModelList? extends String() {
@Override
public ListString getObject() {
ListString list = new ArrayListString();
list.add(Last 3 months);
list.add(Last 6 months);
return list;
}
};

final DropDownChoiceString datesDropDown = new 
DropDownChoiceString(
dates, new PropertyModelString(this, 
selectedDate),
dateChoices);
datesDropDown.add(new 
AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
//target.addComponent(dealHistoryTablePanel);
}
});
add(datesDropDown);

 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2994412.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: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv

I think you are right. I have changed my code as you suggested, now it is
saying no records found. Here is the rest of the code. I think I am missing
something, can you please suggest?

DealHistoryDataProvider dataProvider = new DealHistoryDataProvider();
AjaxFallbackDefaultDataTableDealHistory ajaxFallbackDefaultDataTable = new
AjaxFallbackDefaultDataTableDealHistory(deal_history_table,
historyColumns, dataProvider, ROWS_PER_PAGE);

public class DealHistoryDataProvider extends
SortableDataProviderDealHistory {
private ListDealHistory dealHistoryList = new 
ArrayListDealHistory();

/**
 * @see org.apache.wicket.markup.repeater.data.IDataProvider#size()
 */
public int size() {
return this.dealHistoryList.size();
}

@Override
public Iterator? extends DealHistory iterator(int first, int count) {
 return this.dealHistoryList.subList(first, first + 
count).iterator();
}

@Override
public IModel model(DealHistory object) {
IModelListDealHistory model = new
LoadableDetachableModelListDealHistory() {
@Override
public ListDealHistory load() {
dealHistoryList = 
ServicesCaller.getAllDealHistoryRecords();
return dealHistoryList;
}
};
return model;
}
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2994557.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: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv

I am still have issues, is it possible for you to provide an example of data
provider implementaion for the requirement I have?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2994648.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 add footer section using DataTable

2010-09-16 Thread gouthamrv

I am using DataTable to display a table. I want to add some buttons to footer
section. How do I do that? Currently it just shows empty tfoot elements in
my html. Here is the sample code of the DataTable:

DataTable table = new DataTable(datatable, columns, new
CalculationInfoProvider(), 1);
add(table);
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-footer-section-using-DataTable-tp2541058p2541058.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: How to add footer section using DataTable

2010-09-16 Thread gouthamrv

Yes you are right, we can do that. 

Thanks!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-footer-section-using-DataTable-tp2541058p2542678.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



Can I implment this with Wicket table components?

2010-09-16 Thread gouthamrv

I have below requirements, I would like to know how feasible it is to
implement this with Wicket table components.

1. A web page should contain a table initially with one row. 
2. On the bottom of the table there should be some links to add row in AJAX
way(No page refresh) 
3. I should be able to clone a selected row when I click a link on the
bottom of the table. 
4. Some of the table cells should be editable 
5. Each row should contain a button on the last row, when I click this I
should be able to send the row 
values to server and update some cells. (In ajax way) 

I know Wicket has something called AjaxFallbackDataTable. Is this solves
all these requirements? if not are there any other table implementations
available?  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-implment-this-with-Wicket-table-components-tp2542690p2542690.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