Re: Has any one used the InMethod Grid DropDownChoiceColumn DropDownChoicePanel

2013-05-20 Thread Paul Bors
Take your pick:
http://www.wicket-library.com/wicket-examples-6.0.x/index.html

More specifically the Ajax EditableTree:
http://www.wicket-library.com/wicket-examples/ajax/tree/table/editable

Just replace the EditablePanel with the form components you want.

~ Thank you,
   Paul Bors



On Fri, May 17, 2013 at 3:27 PM, shashikant.kulkarn...@gmail.co 
shashikant.kulkarn...@gmail.com wrote:

 Hi All,

 Has anyone used InMethod Grid DropDownChoiceColumn  DropDownChoicePanel?
 My
 requirement is I have 3 or more  dropdown choices in a row. Now when I make
 selection changes in the dropdown and click on the submit icon, I am not
 able to get the changed values in the dropdown. Can someone put and example
 to do this. I tried but it is not working.

 Best regards,
 Shashikant



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Has-any-one-used-the-InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658910.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: InMethod Grid DropDownChoiceColumn DropDownChoicePanel

2013-05-17 Thread Martin Grigorov
Hi,

Better use some Pastebin service instead of using images because we cannot
modify your code to make it working.

The problem is that you use : new Model(selectedValue) as a main model for
the DropDownChoice. You should use something like : new PropertyModel(this,
selectedValue), assuming selectedValue is a member of 'this'.


On Fri, May 17, 2013 at 2:47 PM, shashikant.kulkarn...@gmail.co 
shashikant.kulkarn...@gmail.com wrote:

 Hi,I am trying to use the wicketstuff-inmethod-grid component version
 6.5.0.
 I want to use the refDropDownChoiceColumn  DropDownChoicePanel and want to
 get the new value from drop down after selection. How to get this value. I
 am not able to get it. For your I am posting the code here
 http://apache-wicket.1842946.n4.nabble.com/file/n4658891/Wicket_dd.gif
 Please help. I am stuck now.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658891.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




-- 
Martin Grigorov
Wicket Training  Consulting
http://jWeekend.com http://jweekend.com/


Re: InMethod Grid DropDownChoiceColumn DropDownChoicePanel

2013-05-17 Thread shashikant.kulkarn...@gmail.co
Sorry for the image. I will try your solution. Here is the entire method
which creates columns. I have 3 drop down choices in a row. If I select all
the 3 at the same time I need to get the changed value of all of them.
Please suggest. 

private ListIGridColumnlt;IDataSourcelt;Estimationmetadata,
Estimationmetadata, String getEstimationColumns() {
ListIGridColumnlt;IDataSourcelt;Estimationmetadata, 
Estimationmetadata,
String columns = 
new 
ArrayListIGridColumnlt;IDataSourcelt;Estimationmetadata,
Estimationmetadata, String();
columns.add(new SubmitCancelColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, String(esd, Model.of(Edit)));
columns.add(new PropertyColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, Long, String(
new ModelString(Application Name),
applicationsList.applicationName));

//Get the list of parameters now
SalescaseParameterService scParamService = 
(SalescaseParameterService)ServiceFactory.getService(salescaseparameterservice);
ListSalescaseParameter parametersOfSalescase = 

scParamService.getSelectedParameters(((SignInSession)getSession()).getSelectedSalesCase());

final ParameterValueService paramValueService =
(ParameterValueService)ServiceFactory.getService(paramvalueservice);
int counter = 0;
for (final SalescaseParameter parameter : parametersOfSalescase) {  

ParameterService parameterService =
(ParameterService)ServiceFactory.getService(parameterservice);
final Parameter param =
parameterService.getParameter(parameter.getParameterId());

columns.add(new 
DropDownChoiceColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, String, String
(new 
ModelString(+param.getParameterName()), 

estimationdetailses.+counter+.ParameterValues.parameterValue)
{
private static final long 
serialVersionUID = 1L;

@SuppressWarnings({ unchecked, 
rawtypes })
protected 
com.inmethod.grid.column.editable.EditableCellPanel

com.inmethod.grid.IDataSourcelt;Estimationmetadata,Estimationmetadata,String,String
 
newCellPanel(String 
componentId, final
org.apache.wicket.model.IModelEstimationmetadata 
rowModel, 
org.apache.wicket.model.IModelString cellModel) {
//Now get the parameter value 
as list
ArrayListParameterValues 
paramValuesList =
paramValueService.getParamValues(param);

paramValuesWeightageMap.put(+param.getParameterId(),
paramValuesList);
return new DropDownChoicePanel

com.inmethod.grid.IDataSourcelt;Estimationmetadata,Estimationmetadata,String,String
(
componentId, 
new 
Model(selectedValue), rowModel, 
this,new 
Model(paramValuesList), 
new 
PropertyChoiceRenderer( parameterValueId, parameterValue )
);
};  

}
);

columns.add(new 
PropertyColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, Long, String
(new ModelString(Weightage),
estimationdetailses.+counter+.ParameterValues.parameterWeightage)
.setInitialSize(65).setResizable(false));
counter++;
}

return columns;
}




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658891p4658896.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