AW: FilterForm with DropDownChoice

2017-03-23 Thread Christoph.Manig
Hello,

thank you that works fine for my problem.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Mittwoch, 22. März 2017 16:16
An: users@wicket.apache.org
Betreff: Re: FilterForm with DropDownChoice

Hi,

have you tried subclassing your choices and adding some JavaScript?

   DropDownChoice(...) {
  onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("onchange", "this.form.submit()");
  }
   }

I haven't tried this though.

Have fun
Sven

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FilterForm-with-DropDownChoice-tp4677385p4677392.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


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



FilterForm with DropDownChoice

2017-03-22 Thread Christoph.Manig
Hello,

I want to create a table with a filter form.

I used the wicket FilterForm and implemented an own DataProvider. It works fine 
for the textfields. I can write some text and press "enter" and the list will 
be filtered. But if I make a choice in the selectbox and press "enter"
nothing happened. How can I use a DropDownChoice in the FilterForm?

DataProvider:
public class RouteStateDataProvider extends 
SortableDataProvider implements 
IFilterStateLocator {

/** serialVersionUID */
private static final long serialVersionUID = 6220885802292065166L;

/** Logger which writes on the console. */
private static final Logger log = 
LoggerFactory.getLogger(ItemDataProvider.class);

/** The list of all data. */
private List dataList;
/** The class which contains the filter field */
private RouteStateModel filterModel = new RouteStateModel();
/** The comparator for sorting. */
private DAPComparator comparator;

/**
 * Constructor which create the data provider and sets the initial sort 
column and the sort
 * order ascending.
 *
 * @param dataList list of all rows which should be displayed
 * @param startSortField the field name of the initial sort column
 */
public RouteStateDataProvider(List dataList, String 
startSortField) {
this.dataList = dataList;

setSort(startSortField, SortOrder.ASCENDING);
comparator = new DAPComparator(this);
}

@Override
public Iterator iterator(long first, long count) {
if (dataList != null) {
Collections.sort(dataList, comparator);
} else {
log.debug("List of data is emtpy!");
}
return this.filterRoutes().subList((int) first, (int) (first + 
count)).iterator();
}

/**
 * Creates a list which only contains the items with the given id.
 *
 * @return the filtered item list
 */
private List filterRoutes() {
List resultList = new ArrayList<>();
String camelRouteId = filterModel.getCamelRouteId();
String modulName = filterModel.getModuleName();
TargetState targetState = filterModel.getTargetState();

if(filterModel.isEmpty()) {
return dataList;
}  else {
for(RouteStateModel route : dataList) {
boolean inFilter = false;

if(camelRouteId != null) {

if(route.getCamelRouteId().contains(camelRouteId)) {
inFilter = true;
} else {
inFilter = false;
}
}
if(modulName != null) {

if(route.getModuleName().contains(modulName)) {
inFilter = true;
} else {
inFilter = false;
}
}
if(targetState != null) {

if(route.getTargetState().equals(targetState)) {
inFilter = true;
} else {
inFilter = false;
}
}

if(inFilter) {
resultList.add(route);
}
}
return resultList;
}
}

@Override
public long size() {
return this.filterRoutes().size();
}

@Override
public IModel model(RouteStateModel routeStateModel) {
return new Model(routeStateModel);
}

@Override
public RouteStateModel getFilterState() {
return this.filterModel;
}

@Override
public void setFilterState(RouteStateModel routeStateModel) {
this.filterModel = routeStateModel;
}
}

FilterForm:
public class RouteStateForm extends FilterForm {

private IFilterStateLocator locator;

public RouteStateForm(String id, IFilterStateLocator 
locator) {
super(id, locator);

this.locator = locator;

addTable();
addTextfields();
addSelectBoxes();

AW: AW: nested forms with modal window

2017-02-24 Thread Christoph.Manig
I close the window in the onSubmit method of the modal window form, you see 
this below. How can I notify the Button of the mother form that he can execute 
the other statements because the window is closed?

I don't want to update an component what should I put in the 
WindowClosedCallback?


Mit freundlichen Grüßen
Christoph Manig


-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Freitag, 24. Februar 2017 10:58
An: users@wicket.apache.org
Betreff: Re: AW: nested forms with modal window

Hi,

it's your code which closes the ModalWindow, you can notify other parts of your 
project that the window will be closed.

Or use a WindowClosedCallback.

Have fun
Sven


On 24.02.2017 10:00, christoph.ma...@t-systems.com wrote:
> Hello,
>
> what can I do to realize it that the loop will be executed after the modal 
> window was closed? I need the data which adds the modal window to the message 
> objects.
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Donnerstag, 23. Februar 2017 16:36
> An: users@wicket.apache.org
> Betreff: Re: nested forms with modal window
>
> Hi,
>
>> public void onSubmit(AjaxRequestTarget target, Form form) {
>>   remarkModalWindow.show(target);
>>   for(FaultModel fm : selectedModel.getObject()) {
>> System.out.println("ActionButton Remark: " + fm.getFaultRemark());
>>   }
>> }
>> the submit of my modal window will be executed ... after he runs through the 
>> selectedModel.
> Wicket's modal window isn't 'modal' in that it holds processing until it is 
> closed again.
> So of course your loop will execute immediately after telling the model 
> window to be shown - it will not be shown until the current thread has 
> finished request processing.
>
> Regards
> Sven
>
>
> On 23.02.2017 16:20, christoph.ma...@t-systems.com wrote:
>> Hello,
>>
>> I have a form which contains a modal window. The submit button of this form 
>> is an AjaxButton and should first open the modal window. This form contains 
>> a collection of message object which should be changed by the modal window.
>>
>> The modal window also contains a form and a AjaxButton to submit the form. 
>> Here the user can write something into a textfield and submit this form of 
>> the modal window. So the message objects will be changed by the users input 
>> and then the modal window will be closed by modalWindow.close(target).
>>
>> This is the submit of the mother form:
>> @Override
>> public void onSubmit(AjaxRequestTarget target, Form form) {
>>   remarkModalWindow.show(target);
>>   for(FaultModel fm : selectedModel.getObject()) {
>>   System.out.println("ActionButton Remark: " + 
>> fm.getFaultRemark());
>>   }
>> }
>>
>> The selected model is a collection of messages which should be changed by 
>> the modal window. Therefore I will show the submit of the form of the modal 
>> window:
>> @Override
>> protected void onSubmit(AjaxRequestTarget target, Form form) {
>>   RemarkForm remarkForm = (RemarkForm)form;
>>   for(FaultModel faultModel : 
>> remarkForm.getSelectedModel().getObject()) {
>>   System.out.println("Sets the old remark " + 
>> faultModel.getFaultRemark() + " to " + 
>> remarkForm.getModelObject().getFaultRemark());
>>   
>> faultModel.setFaultRemark(remarkForm.getModelObject().getFaultRemark());
>>   }
>>   remarkForm.getRemarkModalWindow().close(target);
>> }
>>
>> The change of the remark is successful and the window will be closed fine. 
>> But on my console I see the output:
>>
>> ActionButton Remark: null
>> Sets the old remark null to testen
>>
>> So it says the submit of my modal window will be executed to late. It will 
>> be triggered after he runs through the selectedModel. But first I want to 
>> change the selectedModel by the modal window and close it and then I want to 
>> write the output in the mother submit to the console. Why did he trigger the 
>> next steps after calling modalWindow.show? I thought the inner form have to 
>> be submitted before the next steps of the mother submit will be called.
>>
>> What can I do here?
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


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


-
To unsubscribe, e-mail: 

AW: nested forms with modal window

2017-02-24 Thread Christoph.Manig
Hello,

what can I do to realize it that the loop will be executed after the modal 
window was closed? I need the data which adds the modal window to the message 
objects.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Donnerstag, 23. Februar 2017 16:36
An: users@wicket.apache.org
Betreff: Re: nested forms with modal window

Hi,

>public void onSubmit(AjaxRequestTarget target, Form form) {
>  remarkModalWindow.show(target);
>  for(FaultModel fm : selectedModel.getObject()) {
>System.out.println("ActionButton Remark: " + fm.getFaultRemark());
>  }
>}
> the submit of my modal window will be executed ... after he runs through the 
> selectedModel.

Wicket's modal window isn't 'modal' in that it holds processing until it is 
closed again.
So of course your loop will execute immediately after telling the model window 
to be shown - it will not be shown until the current thread has finished 
request processing.

Regards
Sven


On 23.02.2017 16:20, christoph.ma...@t-systems.com wrote:
> Hello,
>
> I have a form which contains a modal window. The submit button of this form 
> is an AjaxButton and should first open the modal window. This form contains a 
> collection of message object which should be changed by the modal window.
>
> The modal window also contains a form and a AjaxButton to submit the form. 
> Here the user can write something into a textfield and submit this form of 
> the modal window. So the message objects will be changed by the users input 
> and then the modal window will be closed by modalWindow.close(target).
>
> This is the submit of the mother form:
> @Override
> public void onSubmit(AjaxRequestTarget target, Form form) {
>  remarkModalWindow.show(target);
>  for(FaultModel fm : selectedModel.getObject()) {
>  System.out.println("ActionButton Remark: " + 
> fm.getFaultRemark());
>  }
> }
>
> The selected model is a collection of messages which should be changed by the 
> modal window. Therefore I will show the submit of the form of the modal 
> window:
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
>  RemarkForm remarkForm = (RemarkForm)form;
>  for(FaultModel faultModel : 
> remarkForm.getSelectedModel().getObject()) {
>  System.out.println("Sets the old remark " + 
> faultModel.getFaultRemark() + " to " + 
> remarkForm.getModelObject().getFaultRemark());
>  
> faultModel.setFaultRemark(remarkForm.getModelObject().getFaultRemark());
>  }
>  remarkForm.getRemarkModalWindow().close(target);
> }
>
> The change of the remark is successful and the window will be closed fine. 
> But on my console I see the output:
>
> ActionButton Remark: null
> Sets the old remark null to testen
>
> So it says the submit of my modal window will be executed to late. It will be 
> triggered after he runs through the selectedModel. But first I want to change 
> the selectedModel by the modal window and close it and then I want to write 
> the output in the mother submit to the console. Why did he trigger the next 
> steps after calling modalWindow.show? I thought the inner form have to be 
> submitted before the next steps of the mother submit will be called.
>
> What can I do here?
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
>
>
>


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


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



nested forms with modal window

2017-02-23 Thread Christoph.Manig
Hello,

I have a form which contains a modal window. The submit button of this form is 
an AjaxButton and should first open the modal window. This form contains a 
collection of message object which should be changed by the modal window.

The modal window also contains a form and a AjaxButton to submit the form. Here 
the user can write something into a textfield and submit this form of the modal 
window. So the message objects will be changed by the users input and then the 
modal window will be closed by modalWindow.close(target).

This is the submit of the mother form:
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
remarkModalWindow.show(target);
for(FaultModel fm : selectedModel.getObject()) {
System.out.println("ActionButton Remark: " + 
fm.getFaultRemark());
}
}

The selected model is a collection of messages which should be changed by the 
modal window. Therefore I will show the submit of the form of the modal window:
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
RemarkForm remarkForm = (RemarkForm)form;
for(FaultModel faultModel : remarkForm.getSelectedModel().getObject()) {
System.out.println("Sets the old remark " + 
faultModel.getFaultRemark() + " to " + 
remarkForm.getModelObject().getFaultRemark());

faultModel.setFaultRemark(remarkForm.getModelObject().getFaultRemark());
}
remarkForm.getRemarkModalWindow().close(target);
}

The change of the remark is successful and the window will be closed fine. But 
on my console I see the output:

ActionButton Remark: null
Sets the old remark null to testen

So it says the submit of my modal window will be executed to late. It will be 
triggered after he runs through the selectedModel. But first I want to change 
the selectedModel by the modal window and close it and then I want to write the 
output in the mother submit to the console. Why did he trigger the next steps 
after calling modalWindow.show? I thought the inner form have to be submitted 
before the next steps of the mother submit will be called.

What can I do here?


Mit freundlichen Grüßen
Christoph Manig





AW: AW: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
I found the line which set the modalWindow to null. Thanks for your help

Mit freundlichen Grüßen
Christoph Manig


-Ursprüngliche Nachricht-
Von: Manfred Bergmann [mailto:m...@software-by-mabe.com] 
Gesendet: Mittwoch, 22. Februar 2017 14:19
An: users@wicket.apache.org
Betreff: Re: AW: NullPointerException on submitting a form in a modal window

It it's that line, than only the modalWindow instance variable can be null.
Can you confirm that by either adding a log line or debug into there.

If it is indeed null something in the surrounding of the classes you show makes 
it null, or cleans it up. Some concurrency going on maybe?


Manfred

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677167.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


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



AW: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
The line which throws the exception is modalWindow.close(target); in 
AddRemarkButton. I do not copy the import statements so there are less lines in 
my copied code.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Manfred Bergmann [mailto:m...@software-by-mabe.com] 
Gesendet: Mittwoch, 22. Februar 2017 11:41
An: users@wicket.apache.org
Betreff: Re: NullPointerException on submitting a form in a modal window

Maybe not all of those classes are in separate files.

Manfred

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677164.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


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



NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
Hello,

I have a page which contains a table form. Inside this table there are some 
message objects and their data shown. Moreover the user can select some of the 
messages and trigger some action on them. Then there should be a modal window 
where the user have to set a remark for the selected messages.

The modal window:
public class RemarkModalWindow extends ModalWindow{

/** serialVersionUID */
private static final long serialVersionUID = 8798141972520682460L;

/**
 * Constructor for the modal window.
 *
 * @param id the id of the modal window
 */
public RemarkModalWindow(String id) {
super(id);

RemarkPanel remarkPanel = new RemarkPanel(this.getContentId(), 
this);
this.setContent(remarkPanel);

this.setCloseButtonCallback(new 
ModalWindow.CloseButtonCallback() {
/** serialVersionUID */
private static final long serialVersionUID = 
4018212161671004354L;

@Override
public boolean onCloseButtonClicked(AjaxRequestTarget 
target) {
DAPForm remarkForm = 
remarkPanel.getRemarkForm();

remarkForm.error(getString("remarkModalClose.errorMessage"));
target.add(remarkForm);
return false;
}
});
}

@Override
public boolean isResizable(){
return false;
}

@Override
public int getInitialWidth(){
return 500;
}

@Override
public int getInitialHeight(){
return 100;
}

@Override
public IModel getTitle(){
return Model.of(getString("remarkModal.title"));
}
}

So I created a modal window which contains a panel. Inside the panel there is a 
form with the textfield for the remark and an "add" button. If I click the 
"add" button the window should be closed and the message objects should get the 
remark.
The panel inside the modal window:
public class RemarkPanel extends Panel {

/** serialVersionUID */
private static final long serialVersionUID = -8422969117822175332L;

RemarkForm remarkForm;

/**
 * Constructor which creates the panel.
 *
 * @param id the id of the panel
 * @param remarkModalWindow
 */
public RemarkPanel(String id, RemarkModalWindow remarkModalWindow) {
super(id);

remarkForm = (RemarkForm)FormFactory.getForm(DAPType.REMARK);
remarkForm.setModalWindow(remarkModalWindow);
add(remarkForm);
}

public DAPForm getRemarkForm() {
return (DAPForm) this.remarkForm;
}
}

The Form inside the panel:
public class RemarkForm extends DAPForm {

/** serialVersionUID */
private static final long serialVersionUID = -3714702420141947828L;
private ModalWindow modalWindow;

/**
 * Constructor which creates a form to set the remark of a fault 
message.
 *
 * @param id the id of the form
 */
public RemarkForm(String id) {
super(id);

setDefaultModel(new CompoundPropertyModel(new 
FaultModel()));

addTextfields();
addButtons();
}

/**
 * Adds the additional textfields.
 */
private void addTextfields() {
TextField faultRemark = new TextField<>("faultRemark");

add(faultRemark);
}

/**
 * Adds the buttons to the form.
 */
private void addButtons() {
add(new AddRemarkButton("addRemarkButton", this, modalWindow));
}


public void setModalWindow(ModalWindow modalWindow) {
this.modalWindow = modalWindow;
}
}

This is my "add" button:
public class AddRemarkButton extends AjaxButton {

/** serialVersionUID */
private static final long serialVersionUID = -8702103017249783842L;


private ModalWindow modalWindow;

public AddRemarkButton(String id, Form form, ModalWindow 
modalWindow) {
super(id, form);
this.modalWindow = modalWindow;
}

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
FaultModel faultModel = (FaultModel)form.getModelObject();
String remark = faultModel.getFaultRemark();
System.out.println("Remark: " + remark);

modalWindow.close(target);
}
}

If I click the "add" button in the modal window I get the following exception:

java.lang.NullPointerException
 at 
com.tsystems.dap.console.components.button.AddRemarkButton.onSubmit(AddRemarkButton.java:32)
 at 

AW: AW: AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-16 Thread Christoph.Manig
Thank you. Now all is working fine :)


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Montag, 16. Januar 2017 11:07
An: users@wicket.apache.org
Betreff: Re: AW: AW: AW: AW: Update ListMultipleChoice by Ajax

Hi,

by default ListMultipleChoice passes the index of an item to the 
choiceRenderer. If your items do not implements #equals() and #hashcode(), the 
index will be -1 (see ListMultipleChoice#getModelValue()).

Note that IChoiceRenderer has a note about this in the javadoc.

Since you are using this index, the currently selected items are not identified 
- i.e. no item has an index==-1.

Hope this helps
Sven


On 16.01.2017 07:59, christoph.ma...@t-systems.com wrote:
> Can you explain what these methods equals() and hashCode() have to do?
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Freitag, 13. Januar 2017 13:41
> An: users@wicket.apache.org
> Betreff: Re: AW: AW: AW: Update ListMultipleChoice by Ajax
>
> Ah, it didn't have anything to do with Ajax or models after all:
>
> - PasswordTextField#setResetPassword(false) lets it render the 
> password (you don't have a login form here, so it's safe)
>
> - Group has to implement #equals() and #hashCode() *or* you have to 
> use an id value other than index (which is ChoiceRenderer's default)
>
> Have fun
> Sven
>
>
> On 13.01.2017 11:18, christoph.ma...@t-systems.com wrote:
>> Ok I created an Account on GitHub. Here is the example:
>> https://github.com/CManig/WicketChoiceExample
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>>
>> -Ursprüngliche Nachricht-
>> Von: Maxim Solodovnik [mailto:solomax...@gmail.com]
>> Gesendet: Freitag, 13. Januar 2017 10:48
>> An: users@wicket.apache.org
>> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>>
>> you can use any publicaly available project hosting (your SVN, 
>> bitbucket, github etc.) Or you can create JIRA issue and attach your 
>> quickstart (I would use this option only if I know for sure it is 
>> JIRA
>> bug)
>>
>> On Fri, Jan 13, 2017 at 4:07 PM,   wrote:
>>> I've only have a GitLab Account will this also work for you? Can you send 
>>> me a link to the right place in Jira?
>>>
>>>
>>> Mit freundlichen Grüßen
>>> Christoph Manig
>>>
>>> -Ursprüngliche Nachricht-
>>> Von: Maxim Solodovnik [mailto:solomax...@gmail.com]
>>> Gesendet: Freitag, 13. Januar 2017 10:05
>>> An: users@wicket.apache.org
>>> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>>>
>>> You can share github link
>>> or attach it to JIRA :)
>>>
>>> On Fri, Jan 13, 2017 at 4:02 PM,   wrote:
 I created a small example. How can I send this to you?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport & Logistics Annenstr. 5
 01067 Dresden
 tel.:   +49 (0) 351 / 4744 - 188
 fax:+49 (0) 351 / 4744 - 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Sven Meier [mailto:s...@meiers.net]
 Gesendet: Freitag, 13. Januar 2017 08:16
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax

 Hi Christoph,

 a https://wicket.apache.org/start/quickstart.html allows us to debug the 
 problem.

 You've probably got your model usage wrong, that will be hard to analyze 
 without seeing more code.

 Regards
 Sven


 On 13.01.2017 08:08, christoph.ma...@t-systems.com wrote:
> After refreshing the page I see the same page. Its not a listView it is a 
> ListMultipleChoice.
>
> What do you mean with a quickstart.
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Donnerstag, 12. Januar 2017 22:51
> An: users@wicket.apache.org
> Betreff: Re: AW: Update ListMultipleChoice by Ajax
>
> Hm, with CompoundPropertyModel all inherited models after dropped on 
> detach and re-acquired on following access.
>
> So in theory that should work.
>
> What happens if you refresh the page (F5) after clicking the Ajax link?
> Does the new data show up in the listView and passwordField?
>
> Could you build a quickstart for a deeper look?
>
> Regards
> Sven
>
>

AW: AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-15 Thread Christoph.Manig
Can you explain what these methods equals() and hashCode() have to do?


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Freitag, 13. Januar 2017 13:41
An: users@wicket.apache.org
Betreff: Re: AW: AW: AW: Update ListMultipleChoice by Ajax

Ah, it didn't have anything to do with Ajax or models after all:

- PasswordTextField#setResetPassword(false) lets it render the password (you 
don't have a login form here, so it's safe)

- Group has to implement #equals() and #hashCode() *or* you have to use an id 
value other than index (which is ChoiceRenderer's default)

Have fun
Sven


On 13.01.2017 11:18, christoph.ma...@t-systems.com wrote:
> Ok I created an Account on GitHub. Here is the example: 
> https://github.com/CManig/WicketChoiceExample
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
>
> -Ursprüngliche Nachricht-
> Von: Maxim Solodovnik [mailto:solomax...@gmail.com]
> Gesendet: Freitag, 13. Januar 2017 10:48
> An: users@wicket.apache.org
> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>
> you can use any publicaly available project hosting (your SVN, 
> bitbucket, github etc.) Or you can create JIRA issue and attach your 
> quickstart (I would use this option only if I know for sure it is JIRA 
> bug)
>
> On Fri, Jan 13, 2017 at 4:07 PM,   wrote:
>> I've only have a GitLab Account will this also work for you? Can you send me 
>> a link to the right place in Jira?
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>> -Ursprüngliche Nachricht-
>> Von: Maxim Solodovnik [mailto:solomax...@gmail.com]
>> Gesendet: Freitag, 13. Januar 2017 10:05
>> An: users@wicket.apache.org
>> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>>
>> You can share github link
>> or attach it to JIRA :)
>>
>> On Fri, Jan 13, 2017 at 4:02 PM,   wrote:
>>> I created a small example. How can I send this to you?
>>>
>>>
>>> Mit freundlichen Grüßen
>>> Christoph Manig
>>> Systems Engineer
>>>
>>> T-Systems International GmbH
>>> Systems Integration - SC Travel, Transport & Logistics Annenstr. 5
>>> 01067 Dresden
>>> tel.:   +49 (0) 351 / 4744 - 188
>>> fax:+49 (0) 351 / 4744 - 209
>>> email:  christoph.ma...@t-systems.com
>>>
>>> T-SYSTEMS INTERNATIONAL GMBH
>>> Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
>>> Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
>>> Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
>>> Rickmann
>>> Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
>>> Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
>>>
>>>
>>> -Ursprüngliche Nachricht-
>>> Von: Sven Meier [mailto:s...@meiers.net]
>>> Gesendet: Freitag, 13. Januar 2017 08:16
>>> An: users@wicket.apache.org
>>> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>>>
>>> Hi Christoph,
>>>
>>> a https://wicket.apache.org/start/quickstart.html allows us to debug the 
>>> problem.
>>>
>>> You've probably got your model usage wrong, that will be hard to analyze 
>>> without seeing more code.
>>>
>>> Regards
>>> Sven
>>>
>>>
>>> On 13.01.2017 08:08, christoph.ma...@t-systems.com wrote:
 After refreshing the page I see the same page. Its not a listView it is a 
 ListMultipleChoice.

 What do you mean with a quickstart.


 Mit freundlichen Grüßen
 Christoph Manig

 -Ursprüngliche Nachricht-
 Von: Sven Meier [mailto:s...@meiers.net]
 Gesendet: Donnerstag, 12. Januar 2017 22:51
 An: users@wicket.apache.org
 Betreff: Re: AW: Update ListMultipleChoice by Ajax

 Hm, with CompoundPropertyModel all inherited models after dropped on 
 detach and re-acquired on following access.

 So in theory that should work.

 What happens if you refresh the page (F5) after clicking the Ajax link?
 Does the new data show up in the listView and passwordField?

 Could you build a quickstart for a deeper look?

 Regards
 Sven



 On 12.01.2017 15:35, christoph.ma...@t-systems.com wrote:
> They are member of a form and this has a CompoundPropertyModel.
>
> setDefaultModel(new CompoundPropertyModel(new
> UserModel()));
>
> And this holds all data which are relevant for user. The other components 
> of the form show the data of the user which I set as the default model.
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Donnerstag, 12. Januar 2017 14:20
> An: users@wicket.apache.org
> Betreff: Re: Update ListMultipleChoice by Ajax
>
> Hi,
>
> your components probably hold a reference to the former model.
>
> Where do 'groups' and 'password' get their model from?
>
> Have fun
> Sven
>
>
> On 12.01.2017 12:37, 

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
Ok I created an Account on GitHub. Here is the example: 
https://github.com/CManig/WicketChoiceExample


Mit freundlichen Grüßen
Christoph Manig


-Ursprüngliche Nachricht-
Von: Maxim Solodovnik [mailto:solomax...@gmail.com] 
Gesendet: Freitag, 13. Januar 2017 10:48
An: users@wicket.apache.org
Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax

you can use any publicaly available project hosting (your SVN, bitbucket, 
github etc.) Or you can create JIRA issue and attach your quickstart (I would 
use this option only if I know for sure it is JIRA bug)

On Fri, Jan 13, 2017 at 4:07 PM,   wrote:
> I've only have a GitLab Account will this also work for you? Can you send me 
> a link to the right place in Jira?
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Maxim Solodovnik [mailto:solomax...@gmail.com]
> Gesendet: Freitag, 13. Januar 2017 10:05
> An: users@wicket.apache.org
> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>
> You can share github link
> or attach it to JIRA :)
>
> On Fri, Jan 13, 2017 at 4:02 PM,   wrote:
>> I created a small example. How can I send this to you?
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>> Systems Engineer
>>
>> T-Systems International GmbH
>> Systems Integration - SC Travel, Transport & Logistics Annenstr. 5
>> 01067 Dresden
>> tel.:   +49 (0) 351 / 4744 - 188
>> fax:+49 (0) 351 / 4744 - 209
>> email:  christoph.ma...@t-systems.com
>>
>> T-SYSTEMS INTERNATIONAL GMBH
>> Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
>> Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
>> Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
>> Rickmann
>> Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
>> Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
>>
>>
>> -Ursprüngliche Nachricht-
>> Von: Sven Meier [mailto:s...@meiers.net]
>> Gesendet: Freitag, 13. Januar 2017 08:16
>> An: users@wicket.apache.org
>> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>>
>> Hi Christoph,
>>
>> a https://wicket.apache.org/start/quickstart.html allows us to debug the 
>> problem.
>>
>> You've probably got your model usage wrong, that will be hard to analyze 
>> without seeing more code.
>>
>> Regards
>> Sven
>>
>>
>> On 13.01.2017 08:08, christoph.ma...@t-systems.com wrote:
>>> After refreshing the page I see the same page. Its not a listView it is a 
>>> ListMultipleChoice.
>>>
>>> What do you mean with a quickstart.
>>>
>>>
>>> Mit freundlichen Grüßen
>>> Christoph Manig
>>>
>>> -Ursprüngliche Nachricht-
>>> Von: Sven Meier [mailto:s...@meiers.net]
>>> Gesendet: Donnerstag, 12. Januar 2017 22:51
>>> An: users@wicket.apache.org
>>> Betreff: Re: AW: Update ListMultipleChoice by Ajax
>>>
>>> Hm, with CompoundPropertyModel all inherited models after dropped on detach 
>>> and re-acquired on following access.
>>>
>>> So in theory that should work.
>>>
>>> What happens if you refresh the page (F5) after clicking the Ajax link?
>>> Does the new data show up in the listView and passwordField?
>>>
>>> Could you build a quickstart for a deeper look?
>>>
>>> Regards
>>> Sven
>>>
>>>
>>>
>>> On 12.01.2017 15:35, christoph.ma...@t-systems.com wrote:
 They are member of a form and this has a CompoundPropertyModel.

 setDefaultModel(new CompoundPropertyModel(new
 UserModel()));

 And this holds all data which are relevant for user. The other components 
 of the form show the data of the user which I set as the default model.

 Mit freundlichen Grüßen
 Christoph Manig

 -Ursprüngliche Nachricht-
 Von: Sven Meier [mailto:s...@meiers.net]
 Gesendet: Donnerstag, 12. Januar 2017 14:20
 An: users@wicket.apache.org
 Betreff: Re: Update ListMultipleChoice by Ajax

 Hi,

 your components probably hold a reference to the former model.

 Where do 'groups' and 'password' get their model from?

 Have fun
 Sven


 On 12.01.2017 12:37, christoph.ma...@t-systems.com wrote:
> Hello,
>
> I have a form which contains a ListMultipleChoice and a PasswordTextField.
>
> ListMultipleChoice groups = new 
> ListMultipleChoice<>("groups", groupDao.getAllGroups(), new 
> ChoiceRenderer("groupname"));
> 
>
> PasswordTextField password = new 
> RequiredPasswordField("password");
> 
>
> After clicking an AjaxLink I set a user object to the default model of 
> the form. Then the form will be rendered and I see all data of the user 
> in the fields of the form.
>
> But the ListMultipleChoice and the PasswordTextField are not updated. But 
> the user object contains the data for the ListMultipleChoice and the 
> PasswordTextField.
> Can anyone help please.
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
>
>
 

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
I've only have a GitLab Account will this also work for you? Can you send me a 
link to the right place in Jira?


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Maxim Solodovnik [mailto:solomax...@gmail.com] 
Gesendet: Freitag, 13. Januar 2017 10:05
An: users@wicket.apache.org
Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax

You can share github link
or attach it to JIRA :)

On Fri, Jan 13, 2017 at 4:02 PM,   wrote:
> I created a small example. How can I send this to you?
>
>
> Mit freundlichen Grüßen
> Christoph Manig
> Systems Engineer
>
> T-Systems International GmbH
> Systems Integration - SC Travel, Transport & Logistics Annenstr. 5
> 01067 Dresden
> tel.:   +49 (0) 351 / 4744 - 188
> fax:+49 (0) 351 / 4744 - 209
> email:  christoph.ma...@t-systems.com
>
> T-SYSTEMS INTERNATIONAL GMBH
> Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
> Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
> Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
> Rickmann
> Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
> Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
>
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Freitag, 13. Januar 2017 08:16
> An: users@wicket.apache.org
> Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax
>
> Hi Christoph,
>
> a https://wicket.apache.org/start/quickstart.html allows us to debug the 
> problem.
>
> You've probably got your model usage wrong, that will be hard to analyze 
> without seeing more code.
>
> Regards
> Sven
>
>
> On 13.01.2017 08:08, christoph.ma...@t-systems.com wrote:
>> After refreshing the page I see the same page. Its not a listView it is a 
>> ListMultipleChoice.
>>
>> What do you mean with a quickstart.
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>> -Ursprüngliche Nachricht-
>> Von: Sven Meier [mailto:s...@meiers.net]
>> Gesendet: Donnerstag, 12. Januar 2017 22:51
>> An: users@wicket.apache.org
>> Betreff: Re: AW: Update ListMultipleChoice by Ajax
>>
>> Hm, with CompoundPropertyModel all inherited models after dropped on detach 
>> and re-acquired on following access.
>>
>> So in theory that should work.
>>
>> What happens if you refresh the page (F5) after clicking the Ajax link?
>> Does the new data show up in the listView and passwordField?
>>
>> Could you build a quickstart for a deeper look?
>>
>> Regards
>> Sven
>>
>>
>>
>> On 12.01.2017 15:35, christoph.ma...@t-systems.com wrote:
>>> They are member of a form and this has a CompoundPropertyModel.
>>>
>>> setDefaultModel(new CompoundPropertyModel(new
>>> UserModel()));
>>>
>>> And this holds all data which are relevant for user. The other components 
>>> of the form show the data of the user which I set as the default model.
>>>
>>> Mit freundlichen Grüßen
>>> Christoph Manig
>>>
>>> -Ursprüngliche Nachricht-
>>> Von: Sven Meier [mailto:s...@meiers.net]
>>> Gesendet: Donnerstag, 12. Januar 2017 14:20
>>> An: users@wicket.apache.org
>>> Betreff: Re: Update ListMultipleChoice by Ajax
>>>
>>> Hi,
>>>
>>> your components probably hold a reference to the former model.
>>>
>>> Where do 'groups' and 'password' get their model from?
>>>
>>> Have fun
>>> Sven
>>>
>>>
>>> On 12.01.2017 12:37, christoph.ma...@t-systems.com wrote:
 Hello,

 I have a form which contains a ListMultipleChoice and a PasswordTextField.

 ListMultipleChoice groups = new 
 ListMultipleChoice<>("groups", groupDao.getAllGroups(), new 
 ChoiceRenderer("groupname"));
 

 PasswordTextField password = new RequiredPasswordField("password");
 

 After clicking an AjaxLink I set a user object to the default model of the 
 form. Then the form will be rendered and I see all data of the user in the 
 fields of the form.

 But the ListMultipleChoice and the PasswordTextField are not updated. But 
 the user object contains the data for the ListMultipleChoice and the 
 PasswordTextField.
 Can anyone help please.


 Mit freundlichen Grüßen
 Christoph Manig



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

AW: AW: AW: Update ListMultipleChoice by Ajax

2017-01-13 Thread Christoph.Manig
I created a small example. How can I send this to you?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport & Logistics
Annenstr. 5
01067 Dresden 
tel.:   +49 (0) 351 / 4744 - 188
fax:+49 (0) 351 / 4744 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Freitag, 13. Januar 2017 08:16
An: users@wicket.apache.org
Betreff: Re: AW: AW: Update ListMultipleChoice by Ajax

Hi Christoph,

a https://wicket.apache.org/start/quickstart.html allows us to debug the 
problem.

You've probably got your model usage wrong, that will be hard to analyze 
without seeing more code.

Regards
Sven


On 13.01.2017 08:08, christoph.ma...@t-systems.com wrote:
> After refreshing the page I see the same page. Its not a listView it is a 
> ListMultipleChoice.
>
> What do you mean with a quickstart.
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Donnerstag, 12. Januar 2017 22:51
> An: users@wicket.apache.org
> Betreff: Re: AW: Update ListMultipleChoice by Ajax
>
> Hm, with CompoundPropertyModel all inherited models after dropped on detach 
> and re-acquired on following access.
>
> So in theory that should work.
>
> What happens if you refresh the page (F5) after clicking the Ajax link?
> Does the new data show up in the listView and passwordField?
>
> Could you build a quickstart for a deeper look?
>
> Regards
> Sven
>
>
>
> On 12.01.2017 15:35, christoph.ma...@t-systems.com wrote:
>> They are member of a form and this has a CompoundPropertyModel.
>>
>> setDefaultModel(new CompoundPropertyModel(new
>> UserModel()));
>>
>> And this holds all data which are relevant for user. The other components of 
>> the form show the data of the user which I set as the default model.
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>> -Ursprüngliche Nachricht-
>> Von: Sven Meier [mailto:s...@meiers.net]
>> Gesendet: Donnerstag, 12. Januar 2017 14:20
>> An: users@wicket.apache.org
>> Betreff: Re: Update ListMultipleChoice by Ajax
>>
>> Hi,
>>
>> your components probably hold a reference to the former model.
>>
>> Where do 'groups' and 'password' get their model from?
>>
>> Have fun
>> Sven
>>
>>
>> On 12.01.2017 12:37, christoph.ma...@t-systems.com wrote:
>>> Hello,
>>>
>>> I have a form which contains a ListMultipleChoice and a PasswordTextField.
>>>
>>> ListMultipleChoice groups = new 
>>> ListMultipleChoice<>("groups", groupDao.getAllGroups(), new 
>>> ChoiceRenderer("groupname"));
>>> 
>>>
>>> PasswordTextField password = new RequiredPasswordField("password");
>>> 
>>>
>>> After clicking an AjaxLink I set a user object to the default model of the 
>>> form. Then the form will be rendered and I see all data of the user in the 
>>> fields of the form.
>>>
>>> But the ListMultipleChoice and the PasswordTextField are not updated. But 
>>> the user object contains the data for the ListMultipleChoice and the 
>>> PasswordTextField.
>>> Can anyone help please.
>>>
>>>
>>> Mit freundlichen Grüßen
>>> Christoph Manig
>>>
>>>
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


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


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



AW: AW: Update ListMultipleChoice by Ajax

2017-01-12 Thread Christoph.Manig
After refreshing the page I see the same page. Its not a listView it is a 
ListMultipleChoice. 

What do you mean with a quickstart.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Donnerstag, 12. Januar 2017 22:51
An: users@wicket.apache.org
Betreff: Re: AW: Update ListMultipleChoice by Ajax

Hm, with CompoundPropertyModel all inherited models after dropped on detach and 
re-acquired on following access.

So in theory that should work.

What happens if you refresh the page (F5) after clicking the Ajax link? 
Does the new data show up in the listView and passwordField?

Could you build a quickstart for a deeper look?

Regards
Sven



On 12.01.2017 15:35, christoph.ma...@t-systems.com wrote:
> They are member of a form and this has a CompoundPropertyModel.
>
> setDefaultModel(new CompoundPropertyModel(new 
> UserModel()));
>
> And this holds all data which are relevant for user. The other components of 
> the form show the data of the user which I set as the default model.
>
> Mit freundlichen Grüßen
> Christoph Manig
>
> -Ursprüngliche Nachricht-
> Von: Sven Meier [mailto:s...@meiers.net]
> Gesendet: Donnerstag, 12. Januar 2017 14:20
> An: users@wicket.apache.org
> Betreff: Re: Update ListMultipleChoice by Ajax
>
> Hi,
>
> your components probably hold a reference to the former model.
>
> Where do 'groups' and 'password' get their model from?
>
> Have fun
> Sven
>
>
> On 12.01.2017 12:37, christoph.ma...@t-systems.com wrote:
>> Hello,
>>
>> I have a form which contains a ListMultipleChoice and a PasswordTextField.
>>
>> ListMultipleChoice groups = new ListMultipleChoice<>("groups", 
>> groupDao.getAllGroups(), new ChoiceRenderer("groupname"));
>> 
>>
>> PasswordTextField password = new RequiredPasswordField("password");
>> 
>>
>> After clicking an AjaxLink I set a user object to the default model of the 
>> form. Then the form will be rendered and I see all data of the user in the 
>> fields of the form.
>>
>> But the ListMultipleChoice and the PasswordTextField are not updated. But 
>> the user object contains the data for the ListMultipleChoice and the 
>> PasswordTextField.
>> Can anyone help please.
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


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


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



AW: Update ListMultipleChoice by Ajax

2017-01-12 Thread Christoph.Manig
They are member of a form and this has a CompoundPropertyModel.

setDefaultModel(new CompoundPropertyModel(new UserModel()));

And this holds all data which are relevant for user. The other components of 
the form show the data of the user which I set as the default model. 

Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Donnerstag, 12. Januar 2017 14:20
An: users@wicket.apache.org
Betreff: Re: Update ListMultipleChoice by Ajax

Hi,

your components probably hold a reference to the former model.

Where do 'groups' and 'password' get their model from?

Have fun
Sven


On 12.01.2017 12:37, christoph.ma...@t-systems.com wrote:
> Hello,
>
> I have a form which contains a ListMultipleChoice and a PasswordTextField.
>
> ListMultipleChoice groups = new ListMultipleChoice<>("groups", 
> groupDao.getAllGroups(), new ChoiceRenderer("groupname"));
> 
>
> PasswordTextField password = new RequiredPasswordField("password");
> 
>
> After clicking an AjaxLink I set a user object to the default model of the 
> form. Then the form will be rendered and I see all data of the user in the 
> fields of the form.
>
> But the ListMultipleChoice and the PasswordTextField are not updated. But the 
> user object contains the data for the ListMultipleChoice and the 
> PasswordTextField.
> Can anyone help please.
>
>
> Mit freundlichen Grüßen
> Christoph Manig
>
>
>


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


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



Update ListMultipleChoice by Ajax

2017-01-12 Thread Christoph.Manig
Hello,

I have a form which contains a ListMultipleChoice and a PasswordTextField.

ListMultipleChoice groups = new ListMultipleChoice<>("groups", 
groupDao.getAllGroups(), new ChoiceRenderer("groupname"));


PasswordTextField password = new RequiredPasswordField("password");


After clicking an AjaxLink I set a user object to the default model of the 
form. Then the form will be rendered and I see all data of the user in the 
fields of the form.

But the ListMultipleChoice and the PasswordTextField are not updated. But the 
user object contains the data for the ListMultipleChoice and the 
PasswordTextField.
Can anyone help please.


Mit freundlichen Grüßen
Christoph Manig




AjaxFallbackLink in DefaultDataTable

2017-01-11 Thread Christoph.Manig
Hello,

I created a page to manage all users of my application. It contains a form for 
creating and updating users and a table below to delete and edit users.

Here is the creation of the table and its columns:
List> columns = new ArrayList>();

columns.add(new AbstractColumn(new 
ResourceModel("datatable.action")) {
/** serialVersionUID */
private static final long serialVersionUID = 6160557212653571302L;

@Override
public void populateItem(Item cellItem, 
String componentId, IModel model) {
cellItem.add(new UsermanagementPanel(componentId, model));
}
});
columns.add(new PropertyColumn(new 
ResourceModel("user.username"), "username", "username"));
columns.add(new PropertyColumn(new 
ResourceModel("user.firstname"), "firstname", "firstname"));
columns.add(new PropertyColumn(new 
ResourceModel("user.lastname"), "lastname", "lastname"));
columns.add(new PropertyColumn(new 
ResourceModel("user.eMailaddress"), "eMailaddress", "eMailaddress"));
columns.add(new PropertyColumn(new 
ResourceModel("user.phoneNumber"), "phoneNumber", "phoneNumber"));

new DefaultDataTable(this.id, initColumns(),
new 
DAPDataProvider(userDao.getAllUsers(), "username"), 10);

As you can see every row of the column gets a UsermanagementPanel which only 
contains 2 links. One for editing a user and one for deletion.

The link for editing should be an AjaxFallbackLink. It should set the user of 
the row where the edit link was clicked as the default model of the form above 
and add it to the AjaxRequestTarget for reloading the form.
Here is the Panel:
public class UsermanagementPanel extends Panel {
/** The user which should be changed or deleted. */
private UserModel userForAction;

/**
 * The constructor which creates the panel with the edit and delete 
link.
 *
 * @param id
 *the id of the panel
 * @param model
 */
public UsermanagementPanel(String id, IModel model) {
super(id, model);
addLinks();

userForAction = model.getObject();
log.info("Creates Panel for user: " + 
userForAction.getUsername());
}

/**
 * Add the edit and delete link.
 *
 * @param model
 */
private void addLinks() {
AjaxFallbackLink edit = new 
AjaxFallbackLink("editUser") {
/** serialVersionUID */
private static final long serialVersionUID = 
4045653268294938060L;

@Override
public void onClick(AjaxRequestTarget target) {
Usermanagement usermanagement = 
(Usermanagement) getPage();
Form form = 
usermanagement.getUserForm();
form.setDefaultModelObject(userForAction);
target.add(form);
}
};

Link delete = new Link("deleteUser") {
/** serialVersionUID */
private static final long serialVersionUID = 
3217036727482973672L;

@Override
public void onClick() {
log.info("Triggering deleting of user" + 
userForAction.getUsername());
UserDao userDao = new UserDaoImpl();

userDao.deleteUserById(userForAction.getUserID());
log.debug("Deleting complete, reload page");
setResponsePage(Usermanagement.class);
}
};

add(edit);
add(delete);
}
}

http://wicket.apache.org;>








In the table of the usermanagement page I can see 3 users and their 
UsermanagementPanels. Now I click the edit link in the first row.
In the AjaxDebugWindow and in the browsers development tools, I can see that 3 
Requests where send. One for each user. Then It renders the form by using ajax 
with every user. So it renders the form 3 times. Finally I see the data of the
User in the 3rd row in the form.

If I click the edit link in the 2nd or 3rd row of the table, a 
NullPointerException will be thrown, because the AjaxRequestTarget is null.

Can somebody explain why 3 Requests where send when I click only the link in 
the first row? Why is the AjaxRequestTarget null for the other rows? I only 
want one Request to show only the user of the row. What am I doing wrong?


Mit freundlichen Grüßen
Christoph Manig





AjaxDownload setResponsePage

2014-04-22 Thread Christoph.Manig
Hello,

Iam using AJAXDownload to download some data which will created on the fly, 
while clicking an AjaxButton. Moreover Iam using an AbstractResourceStream. In 
its getInputStream method, I get an byte array. This method can throw some 
exception, which I will catch. If an exception is thrown, I want to redirect to 
an errorpage. It is shown in the code below. Nothing happens when the exception 
is thrown. Can somebody help me please?

download = new AJAXDownload() {
@Override
protected IResourceStream getResourceStream() {
return new AbstractResourceStream() {
InputStream data;
@Override
public InputStream getInputStream(){
try {
data = new 
ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(slaReportModel.getTxtDatumVon(),slaReportModel.getTxtDatumBis()));
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
setResponsePage(new 
InternalError(e.getMessage()));
}
return data;
}

@Override
public void close() throws IOException {
data.close();
}
};
}

@Override
protected String getFileName(){
return filename;
}
 };
this.add(download);
download.initiate(target);


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567





AW: AjaxDownload setResponsePage

2014-04-22 Thread Christoph.Manig
I resolved it with this line:

getRequestCycle().replaceAllRequestHandlers(new RenderPageRequestHandler(new 
PageProvider(new InternalError(e.getMessage();

is this a good way?


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Manig, Christoph 
Gesendet: Dienstag, 22. April 2014 10:43
An: users@wicket.apache.org
Betreff: AjaxDownload setResponsePage

Hello,

Iam using AJAXDownload to download some data which will created on the fly, 
while clicking an AjaxButton. Moreover Iam using an AbstractResourceStream. In 
its getInputStream method, I get an byte array. This method can throw some 
exception, which I will catch. If an exception is thrown, I want to redirect to 
an errorpage. It is shown in the code below. Nothing happens when the exception 
is thrown. Can somebody help me please?

download = new AJAXDownload() {
@Override
protected IResourceStream getResourceStream() {
return new AbstractResourceStream() {
InputStream data;
@Override
public InputStream getInputStream(){
try {
data = new 
ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(slaReportModel.getTxtDatumVon(),slaReportModel.getTxtDatumBis()));
} catch (Exception e) {
log.error(ExceptionUtils.getStackTrace(e));
setResponsePage(new 
InternalError(e.getMessage()));
}
return data;
}

@Override
public void close() throws IOException {
data.close();
}
};
}

@Override
protected String getFileName(){
return filename;
}
 };
this.add(download);
download.initiate(target);


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der Gesellschaft: 
Frankfurt am Main WEEE-Reg.-Nr. DE50335567




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



Download byte array

2014-04-14 Thread Christoph.Manig
Hello,

Iam using a FileResourceStream to download a file. This needs an File, which I 
create on the fly like this:

tempFile = File.createTempFile(SLA, .xls);

InputStream data = new 
ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(beginDate,endDate));
Files.writeTo(tempFile, data);

It works fine. But the problem is that it save the tempfile in my tmp folder. 
Is there a RessourceStream in Wicket which can handle a byte array so that I 
don't need a tempfile?


Mit freundlichen Grüßen
Christoph Manig





Download excel-file

2014-04-10 Thread Christoph.Manig
Hello,

I want to download an excelfile, which will be created on the fly by clicking 
on a button. So I have created my own downloadButton. The excel-file will be 
created, it works fine but the download do not work. I have started my 
application in development mode, but no exception will be thrown. But in the 
wicket ajax panel I found this message: ERROR: Wicket.Ajax.Call.failure: Error 
while parsing response: Could not find root ajax-response element

Here is the code of my button:

public class CustomDownloadButton extends AjaxFallbackButton {
private static final Logger log = 
LoggerFactory.getLogger(CustomDownloadButton.class);
private CSSFeedbackPanel feedback;
private String filename;

public CustomDownloadButton(String id, Form? form, CSSFeedbackPanel 
feedback, String filename) {
super(id, form);
this.feedback = feedback;
this.filename = filename;
}

@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
target.add(feedback);
SlaReportModel slaReportModel = (SlaReportModel)form.getModelObject();
if(!slaReportModel.isEmpty()){

download(createFileForDownload(slaReportModel.getTxtDatumVon(),slaReportModel.getTxtDatumBis()));
}else{
error(Sie müssen den Zeitraum angeben!);
}

}

private File createFileForDownload(Date beginDate, Date endDate) {
log.debug(Creating file for download!);
File tempFile = null;
try
{
tempFile = File.createTempFile(SLA, .xls);

InputStream data = new 
ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(beginDate,endDate));
Files.writeTo(tempFile, data);

} catch (Exception e) {
log.debug(e.getStackTrace().toString());
}
log.debug(File  + tempFile.getName() +  was successfully created!);
return tempFile;
}

private void download(final File fileForDownload) {
log.debug(Preparing download file  + fileForDownload.getName());
System.out.println(fileForDownload.toString());
if (fileForDownload == null){
throw new IllegalStateException(getClass().getName() +  there is 
no file, file is null!);
}

IResourceStream resourceStream = new FileResourceStream(new 
org.apache.wicket.util.file.File(fileForDownload));
getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
ResourceStreamRequestHandler(resourceStream) {
@Override
public void respond(IRequestCycle requestCycle) {

super.respond(requestCycle);
//Files.remove(fileForDownload);

}
}.setFileName(this.filename));
//.setContentDisposition(ContentDisposition.ATTACHMENT)
//.setCacheDuration(org.apache.wicket.util.time.Duration.NONE));
}

@Override
protected void onError(AjaxRequestTarget target, Form? form)
{
// repaint the feedback panel so errors are shown
target.add(feedback);
}
}


Mit freundlichen Grüßen
Christoph Manig





AW: Download excel-file

2014-04-10 Thread Christoph.Manig
So I have to add the AjaxDownload to my form which add my DownloadButton? Like 
this:

AJAXDownload download = new AJAXDownload()
{
@Override
protected IResourceStream getResourceStream()
{
return createResourceStream(item.getModelObject());
}
};

FormSlaReportModel reportForm = new FormSlaReportModel(reportForm,new 
CompoundPropertyModelSlaReportModel(new SlaReportModel()));
reportForm.add(download);
reportForm.add(new CustomDownloadButton(submit, reportForm, feedback, 
SLA_Report));


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Donnerstag, 10. April 2014 11:53
An: users@wicket.apache.org
Betreff: Re: Download excel-file

You cannot stream a PDF back to client via AJAX. Have a look at.

https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow


On Thu, Apr 10, 2014 at 11:47 AM, christoph.ma...@t-systems.com wrote:

 Hello,

 I want to download an excelfile, which will be created on the fly by 
 clicking on a button. So I have created my own downloadButton. The 
 excel-file will be created, it works fine but the download do not 
 work. I have started my application in development mode, but no 
 exception will be thrown. But in the wicket ajax panel I found this message: 
 ERROR:
 Wicket.Ajax.Call.failure: Error while parsing response: Could not find 
 root ajax-response element

 Here is the code of my button:

 public class CustomDownloadButton extends AjaxFallbackButton {
 private static final Logger log =
 LoggerFactory.getLogger(CustomDownloadButton.class);
 private CSSFeedbackPanel feedback;
 private String filename;

 public CustomDownloadButton(String id, Form? form, 
 CSSFeedbackPanel feedback, String filename) {
 super(id, form);
 this.feedback = feedback;
 this.filename = filename;
 }

 @Override
 public void onSubmit(AjaxRequestTarget target, Form form) {
 target.add(feedback);
 SlaReportModel slaReportModel = 
 (SlaReportModel)form.getModelObject();
 if(!slaReportModel.isEmpty()){

 download(createFileForDownload(slaReportModel.getTxtDatumVon(),slaReportModel.getTxtDatumBis()));
 }else{
 error(Sie müssen den Zeitraum angeben!);
 }

 }

 private File createFileForDownload(Date beginDate, Date endDate) {
 log.debug(Creating file for download!);
 File tempFile = null;
 try
 {
 tempFile = File.createTempFile(SLA, .xls);

 InputStream data = new
 ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(beginDate,endDate));
 Files.writeTo(tempFile, data);

 } catch (Exception e) {
 log.debug(e.getStackTrace().toString());
 }
 log.debug(File  + tempFile.getName() +  was successfully 
 created!);
 return tempFile;
 }

 private void download(final File fileForDownload) {
 log.debug(Preparing download file  + fileForDownload.getName());
 System.out.println(fileForDownload.toString());
 if (fileForDownload == null){
 throw new IllegalStateException(getClass().getName() +  
 there is no file, file is null!);
 }

 IResourceStream resourceStream = new FileResourceStream(new 
 org.apache.wicket.util.file.File(fileForDownload));
 getRequestCycle().scheduleRequestHandlerAfterCurrent(new
 ResourceStreamRequestHandler(resourceStream) {
 @Override
 public void respond(IRequestCycle requestCycle) {

 super.respond(requestCycle);
 //Files.remove(fileForDownload);

 }
 }.setFileName(this.filename));
 
 //.setContentDisposition(ContentDisposition.ATTACHMENT)

 //.setCacheDuration(org.apache.wicket.util.time.Duration.NONE));
 }

 @Override
 protected void onError(AjaxRequestTarget target, Form? form)
 {
 // repaint the feedback panel so errors are shown
 target.add(feedback);
 }
 }


 Mit freundlichen Grüßen
 Christoph Manig






--
Regards - Ernesto Reinaldo Barreiro

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



AW: Download excel-file

2014-04-10 Thread Christoph.Manig
I created the class AJAXDownload and copied your code. Then I added the 
AJAXDownload to my download button like this:
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
target.add(feedback);
final SlaReportModel slaReportModel = 
(SlaReportModel)form.getModelObject();
if(!slaReportModel.isEmpty()){
download = new AJAXDownload() {
@Override
protected IResourceStream getResourceStream() {
return new FileResourceStream(new 
org.apache.wicket.util.file.File(createFileForDownload(slaReportModel.getTxtDatumVon(),slaReportModel.getTxtDatumBis(;
}

@Override
protected String getFileName(){
return filename;
}
};
this.add(download);
download.initiate(target);
}else{
error(Sie m?ssen den Zeitraum angeben!);
}

}

It works fine :) thanks for your help.

Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Donnerstag, 10. April 2014 12:08
An: users@wicket.apache.org
Betreff: Re: Download excel-file

Just follow the wiki: that's why it was created ;-)


On Thu, Apr 10, 2014 at 12:01 PM, christoph.ma...@t-systems.com wrote:

 So I have to add the AjaxDownload to my form which add my DownloadButton?
 Like this:

 AJAXDownload download = new AJAXDownload() {
 @Override
 protected IResourceStream getResourceStream()
 {
 return createResourceStream(item.getModelObject());
 }
 };

 FormSlaReportModel reportForm = new
 FormSlaReportModel(reportForm,new
 CompoundPropertyModelSlaReportModel(new SlaReportModel())); 
 reportForm.add(download); reportForm.add(new 
 CustomDownloadButton(submit, reportForm, feedback, SLA_Report));


 Mit freundlichen Grüßen
 Christoph Manig

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Donnerstag, 10. April 2014 11:53
 An: users@wicket.apache.org
 Betreff: Re: Download excel-file

 You cannot stream a PDF back to client via AJAX. Have a look at.


 https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+fil
 e+download+in+one+blow


 On Thu, Apr 10, 2014 at 11:47 AM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I want to download an excelfile, which will be created on the fly by 
  clicking on a button. So I have created my own downloadButton. The 
  excel-file will be created, it works fine but the download do not 
  work. I have started my application in development mode, but no 
  exception will be thrown. But in the wicket ajax panel I found this
 message: ERROR:
  Wicket.Ajax.Call.failure: Error while parsing response: Could not 
  find root ajax-response element
 
  Here is the code of my button:
 
  public class CustomDownloadButton extends AjaxFallbackButton {
  private static final Logger log = 
  LoggerFactory.getLogger(CustomDownloadButton.class);
  private CSSFeedbackPanel feedback;
  private String filename;
 
  public CustomDownloadButton(String id, Form? form, 
  CSSFeedbackPanel feedback, String filename) {
  super(id, form);
  this.feedback = feedback;
  this.filename = filename;
  }
 
  @Override
  public void onSubmit(AjaxRequestTarget target, Form form) {
  target.add(feedback);
  SlaReportModel slaReportModel = 
  (SlaReportModel)form.getModelObject();
  if(!slaReportModel.isEmpty()){
 
 
 download(createFileForDownload(slaReportModel.getTxtDatumVon(),slaRepo
 rtModel.getTxtDatumBis()));
  }else{
  error(Sie müssen den Zeitraum angeben!);
  }
 
  }
 
  private File createFileForDownload(Date beginDate, Date endDate) {
  log.debug(Creating file for download!);
  File tempFile = null;
  try
  {
  tempFile = File.createTempFile(SLA, .xls);
 
  InputStream data = new
 
 ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsB
 yteStream(beginDate,endDate));
  Files.writeTo(tempFile, data);
 
  } catch (Exception e) {
  log.debug(e.getStackTrace().toString());
  }
  log.debug(File  + tempFile.getName() +  was successfully 
  

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Hello,

iam getting an byte array from the backend and I want to send this to the 
browser with an outputstream. So the browser notice that he gets an excel sheet 
and shows this. It should be the same if you open pdfs with the browser while 
downloading this data.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 24. März 2014 14:03
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

Hi,

You can use a JavaScript solution like
http://handsontable.com/index.htmlto show spreadsheet like tables.
I am not sure whether it supports multiple sheets.
I guess there are more such JS solutions out there.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 2:56 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 I want to show an excel data set by clicking on a wicket button. The 
 sheet should be shown in the browser and this data set has multiple 
 table-sheets.
 How can I do that with wicket?


 Mit freundlichen Grüßen
 Christoph Manig





AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
The DownloadLink open the save as dialog but I want to show the data in a 
browser embedded excel. Are there other Wicket-Components to implement this?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 24. März 2014 14:25
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

then all you need is to set few response headers:
Content-Disposition: Inline
Content-type: (see http://stackoverflow.com/a/2938188/497381)

See org.apache.wicket.markup.html.link.DownloadLink#onClick for an example how 
to do this

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 3:17 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 iam getting an byte array from the backend and I want to send this to 
 the browser with an outputstream. So the browser notice that he gets 
 an excel sheet and shows this. It should be the same if you open pdfs 
 with the browser while downloading this data.


 Mit freundlichen Grüßen
 Christoph Manig

 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Montag, 24. März 2014 14:03
 An: users@wicket.apache.org
 Betreff: Re: Show Excelsheet in Browser

 Hi,

 You can use a JavaScript solution like 
 http://handsontable.com/index.htmlto show spreadsheet like tables.
 I am not sure whether it supports multiple sheets.
 I guess there are more such JS solutions out there.

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, Mar 24, 2014 at 2:56 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I want to show an excel data set by clicking on a wicket button. The 
  sheet should be shown in the browser and this data set has multiple
 table-sheets.
  How can I do that with wicket?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
 
 
 



AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
How can I change the ContentDisposition while using an DownloadLink?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 24. März 2014 14:45
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

Yes, DownloadLink uses ContentDisposition.ATTACHMENT. You need #INLINE.
That's why I said to use it as an example.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 3:39 PM, christoph.ma...@t-systems.com wrote:

 The DownloadLink open the save as dialog but I want to show the data 
 in a browser embedded excel. Are there other Wicket-Components to implement 
 this?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Montag, 24. März 2014 14:25
 An: users@wicket.apache.org
 Betreff: Re: Show Excelsheet in Browser

 then all you need is to set few response headers:
 Content-Disposition: Inline
 Content-type: (see http://stackoverflow.com/a/2938188/497381)

 See org.apache.wicket.markup.html.link.DownloadLink#onClick for an 
 example how to do this

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, Mar 24, 2014 at 3:17 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  iam getting an byte array from the backend and I want to send this 
  to the browser with an outputstream. So the browser notice that he 
  gets an excel sheet and shows this. It should be the same if you 
  open pdfs with the browser while downloading this data.
 
 
  Mit freundlichen Grüßen
  Christoph Manig
 
  -Ursprüngliche Nachricht-
  Von: Martin Grigorov [mailto:mgrigo...@apache.org]
  Gesendet: Montag, 24. März 2014 14:03
  An: users@wicket.apache.org
  Betreff: Re: Show Excelsheet in Browser
 
  Hi,
 
  You can use a JavaScript solution like 
  http://handsontable.com/index.htmlto show spreadsheet like tables.
  I am not sure whether it supports multiple sheets.
  I guess there are more such JS solutions out there.
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Mon, Mar 24, 2014 at 2:56 PM, christoph.ma...@t-systems.com wrote:
 
   Hello,
  
   I want to show an excel data set by clicking on a wicket button. 
   The sheet should be shown in the browser and this data set has 
   multiple
  table-sheets.
   How can I do that with wicket?
  
  
   Mit freundlichen Grüßen
   Christoph Manig
  
  
  
 


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



AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Sorry for so much questions but it’s the first webapp I have to develop. How 
can I change the ContentDisposition to show the data embedded in the browser? 
Which Link or button should I use.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 24. März 2014 15:25
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

You can't at the moment.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:19 PM, christoph.ma...@t-systems.com wrote:

 How can I change the ContentDisposition while using an DownloadLink?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Montag, 24. März 2014 14:45
 An: users@wicket.apache.org
 Betreff: Re: Show Excelsheet in Browser

 Yes, DownloadLink uses ContentDisposition.ATTACHMENT. You need #INLINE.
 That's why I said to use it as an example.

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, Mar 24, 2014 at 3:39 PM, christoph.ma...@t-systems.com wrote:

  The DownloadLink open the save as dialog but I want to show the data 
  in a browser embedded excel. Are there other Wicket-Components to
 implement this?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 – 209
  email:  christoph.ma...@t-systems.com
 
  T-SYSTEMS INTERNATIONAL GMBH
  Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
  Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
  Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
  Rickmann
  Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
  Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
 
 
  -Ursprüngliche Nachricht-
  Von: Martin Grigorov [mailto:mgrigo...@apache.org]
  Gesendet: Montag, 24. März 2014 14:25
  An: users@wicket.apache.org
  Betreff: Re: Show Excelsheet in Browser
 
  then all you need is to set few response headers:
  Content-Disposition: Inline
  Content-type: (see http://stackoverflow.com/a/2938188/497381)
 
  See org.apache.wicket.markup.html.link.DownloadLink#onClick for an 
  example how to do this
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Mon, Mar 24, 2014 at 3:17 PM, christoph.ma...@t-systems.com wrote:
 
   Hello,
  
   iam getting an byte array from the backend and I want to send this 
   to the browser with an outputstream. So the browser notice that he 
   gets an excel sheet and shows this. It should be the same if you 
   open pdfs with the browser while downloading this data.
  
  
   Mit freundlichen Grüßen
   Christoph Manig
  
   -Ursprüngliche Nachricht-
   Von: Martin Grigorov [mailto:mgrigo...@apache.org]
   Gesendet: Montag, 24. März 2014 14:03
   An: users@wicket.apache.org
   Betreff: Re: Show Excelsheet in Browser
  
   Hi,
  
   You can use a JavaScript solution like 
   http://handsontable.com/index.htmlto show spreadsheet like tables.
   I am not sure whether it supports multiple sheets.
   I guess there are more such JS solutions out there.
  
   Martin Grigorov
   Wicket Training and Consulting
  
  
   On Mon, Mar 24, 2014 at 2:56 PM, christoph.ma...@t-systems.com
 wrote:
  
Hello,
   
I want to show an excel data set by clicking on a wicket button.
The sheet should be shown in the browser and this data set has 
multiple
   table-sheets.
How can I do that with wicket?
   
   
Mit freundlichen Grüßen
Christoph Manig
   
   
   
  
 

 -
 To unsubscribe, 

AW: Show Excelsheet in Browser

2014-03-24 Thread Christoph.Manig
Is it possible to override the onclick-method of DownloadLink and change the 
ContentDisposition to INLINE?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 24. März 2014 15:41
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

There is no Link impl in Wicket distro that does all you need.
DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to make a 
real download experience.
I think it is OK to add a way to change the content disposition for the next 
version.

Until then you will have to use your own Link impl for this need. Extend from 
DownloadLink and override its #onClick method.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:32 PM, christoph.ma...@t-systems.com wrote:

 Sorry for so much questions but it’s the first webapp I have to develop.
 How can I change the ContentDisposition to show the data embedded in 
 the browser? Which Link or button should I use.


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Montag, 24. März 2014 15:25
 An: users@wicket.apache.org
 Betreff: Re: Show Excelsheet in Browser

 You can't at the moment.

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, Mar 24, 2014 at 4:19 PM, christoph.ma...@t-systems.com wrote:

  How can I change the ContentDisposition while using an DownloadLink?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 – 209
  email:  christoph.ma...@t-systems.com
 
  T-SYSTEMS INTERNATIONAL GMBH
  Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
  Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
  Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
  Rickmann
  Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
  Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
 
 
  -Ursprüngliche Nachricht-
  Von: Martin Grigorov [mailto:mgrigo...@apache.org]
  Gesendet: Montag, 24. März 2014 14:45
  An: users@wicket.apache.org
  Betreff: Re: Show Excelsheet in Browser
 
  Yes, DownloadLink uses ContentDisposition.ATTACHMENT. You need #INLINE.
  That's why I said to use it as an example.
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Mon, Mar 24, 2014 at 3:39 PM, christoph.ma...@t-systems.com wrote:
 
   The DownloadLink open the save as dialog but I want to show the 
   data in a browser embedded excel. Are there other 
   Wicket-Components to
  implement this?
  
  
   Mit freundlichen Grüßen
   Christoph Manig
   Systems Engineer
  
   T-Systems International GmbH
   Systems Integration - SC Travel, Transport  Logistics 
   Hoyerswerdaer Str. 18
   01099 Dresden
   tel.:   +49 (0) 351 / 8152 - 188
   fax:+49 (0) 351 / 8152 – 209
   email:  christoph.ma...@t-systems.com
  
   T-SYSTEMS INTERNATIONAL GMBH
   Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
   Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
   Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
   Rickmann
   Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der
   Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567
  
  
   -Ursprüngliche Nachricht-
   Von: Martin Grigorov [mailto:mgrigo...@apache.org]
   Gesendet: Montag, 24. März 2014 14:25
   An: users@wicket.apache.org
   Betreff: Re: Show Excelsheet in Browser
  
   then all you need is to set few response headers:
   Content-Disposition: Inline
   Content-type: (see 

RequestCycleListener and setPageExpiredErrorPage

2014-01-13 Thread Christoph.Manig
Hello,

in my application I do the following configurations:
getApplicationSettings().setPageExpiredErrorPage(Timeout.class);
getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
getRequestCycleListeners().add(new RequestCycleExceptionListener());

my RequestCycleExceptionListener looks like this:
public class RequestCycleExceptionListener extends AbstractRequestCycleListener 
{

@Override
public IRequestHandler onException(RequestCycle cycle, Exception ex) {
return new RenderPageRequestHandler(new PageProvider(new 
InternalError(getStackTrace(ex;
   }

private String getStackTrace(Exception ex) {
return ex.getMessage();
}
}

Now my problem, if the session expired I will be directed to my 
InternalError-Page. There I can see the Message page xyz expired. But I want to 
be directed to my Timeout-page. It will be right if I delete the two lines 
where I add my RequestCycleListener. What should I do to be directed to the 
timeout-page if the session expires and to the InternalError-page if an 
exception is thrown?

Can anybody help me please?


Mit freundlichen Grüßen
Christoph Manig




set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
Hello,

I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. I do this 
the following way:

public class TableDisabler implements Runnable{

private IndicatingAjaxButton button;

public TableDisabler (IndicatingAjaxButton button){
this.button=button;

}

@Override
public void run() {
button.add(new AjaxEventBehavior(onClick) {
@Override
protected void onEvent(AjaxRequestTarget ajaxRequestTarget) {
CustomDataTable table = 
(CustomDataTable)button.getPage().get(searchTable);
table.setEnabled(false);
ajaxRequestTarget.add(table);

}
});
}
}

When the button is clicked I start this thread, but I get this exception:
Exception in thread Thread-69 org.apache.wicket.WicketRuntimeException: No 
RequestCycle is currently set!
at org.apache.wicket.Component.getRequest(Component.java:1795)
at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
at org.apache.wicket.Page.dirty(Page.java:255)
at org.apache.wicket.Page.componentStateChanging(Page.java:930)
at org.apache.wicket.Component.addStateChange(Component.java:3519)
at org.apache.wicket.Behaviors.add(Behaviors.java:55)
at org.apache.wicket.Component.add(Component.java:4503)
at 
smw.console.frontend.components.support.TableDisabler.run(TableDisabler.java:18)
at java.lang.Thread.run(Thread.java:722)
Exception in thread Thread-70 org.apache.wicket.WicketRuntimeException: No 
RequestCycle is currently set!
at org.apache.wicket.Component.getRequest(Component.java:1795)
at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
at org.apache.wicket.Page.dirty(Page.java:255)
at org.apache.wicket.Page.componentStateChanging(Page.java:930)
at org.apache.wicket.Component.addStateChange(Component.java:3519)
at org.apache.wicket.Behaviors.add(Behaviors.java:55)
at org.apache.wicket.Component.add(Component.java:4503)
at 
smw.console.frontend.components.support.TableDisabler.run(TableDisabler.java:18)
at java.lang.Thread.run(Thread.java:722)

How can I set an RequestCycle in this Thread, so that the table will be 
disabled if the button is clicked?

Mit freundlichen Grüßen
Christoph Manig




AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
If I only add the behaviour to the button it is not fast enough. If the user 
clicks the button an sql-statement starts running which collects a lot of data. 
The delay between clicking the button and disabling the table is too big. 
That's why I want to do this in a parallel thead.


Mit freundlichen Grüßen
Christoph Manig

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 13. Januar 2014 12:10
An: users@wicket.apache.org
Betreff: Re: set RequestCycle in parallel Thread

Why do you need o start a new thread? Is I might ask the question?


On Mon, Jan 13, 2014 at 11:58 AM, christoph.ma...@t-systems.com wrote:

 Hello,

 I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. I 
 do this the following way:

 public class TableDisabler implements Runnable{

 private IndicatingAjaxButton button;

 public TableDisabler (IndicatingAjaxButton button){
 this.button=button;

 }

 @Override
 public void run() {
 button.add(new AjaxEventBehavior(onClick) {
 @Override
 protected void onEvent(AjaxRequestTarget ajaxRequestTarget) {
 CustomDataTable table = 
 (CustomDataTable)button.getPage().get(searchTable);
 table.setEnabled(false);
 ajaxRequestTarget.add(table);

 }
 });
 }
 }

 When the button is clicked I start this thread, but I get this exception:
 Exception in thread Thread-69 org.apache.wicket.WicketRuntimeException:
 No RequestCycle is currently set!
 at org.apache.wicket.Component.getRequest(Component.java:1795)
 at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
 at org.apache.wicket.Page.dirty(Page.java:255)
 at org.apache.wicket.Page.componentStateChanging(Page.java:930)
 at org.apache.wicket.Component.addStateChange(Component.java:3519)
 at org.apache.wicket.Behaviors.add(Behaviors.java:55)
 at org.apache.wicket.Component.add(Component.java:4503)
 at
 smw.console.frontend.components.support.TableDisabler.run(TableDisabler.java:18)
 at java.lang.Thread.run(Thread.java:722)
 Exception in thread Thread-70 org.apache.wicket.WicketRuntimeException:
 No RequestCycle is currently set!
 at org.apache.wicket.Component.getRequest(Component.java:1795)
 at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
 at org.apache.wicket.Page.dirty(Page.java:255)
 at org.apache.wicket.Page.componentStateChanging(Page.java:930)
 at org.apache.wicket.Component.addStateChange(Component.java:3519)
 at org.apache.wicket.Behaviors.add(Behaviors.java:55)
 at org.apache.wicket.Component.add(Component.java:4503)
 at
 smw.console.frontend.components.support.TableDisabler.run(TableDisabler.java:18)
 at java.lang.Thread.run(Thread.java:722)

 How can I set an RequestCycle in this Thread, so that the table will 
 be disabled if the button is clicked?

 Mit freundlichen Grüßen
 Christoph Manig





--
Regards - Ernesto Reinaldo Barreiro

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



AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
Can you give a more detailed example? I cant see how I should add JavaScript 
and how I should use the updateAjaxAttributes method.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 13. Januar 2014 12:44
An: users@wicket.apache.org
Betreff: Re: set RequestCycle in parallel Thread

Hi,

It won't be faster again.
Your best bet is to use plain JavaScript so that the table is disabled before 
the Ajax call is even made to the server.
See AjaxRequestAttributes's onBeforeSend() method 
(IndicatingAjaxButton#updateAjaxAttributes()).

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 13, 2014 at 1:16 PM, christoph.ma...@t-systems.com wrote:

 If I only add the behaviour to the button it is not fast enough. If 
 the user clicks the button an sql-statement starts running which 
 collects a lot of data. The delay between clicking the button and 
 disabling the table is too big. That's why I want to do this in a parallel 
 thead.


 Mit freundlichen Grüßen
 Christoph Manig

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 13. Januar 2014 12:10
 An: users@wicket.apache.org
 Betreff: Re: set RequestCycle in parallel Thread

 Why do you need o start a new thread? Is I might ask the question?


 On Mon, Jan 13, 2014 at 11:58 AM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. I 
  do this the following way:
 
  public class TableDisabler implements Runnable{
 
  private IndicatingAjaxButton button;
 
  public TableDisabler (IndicatingAjaxButton button){
  this.button=button;
 
  }
 
  @Override
  public void run() {
  button.add(new AjaxEventBehavior(onClick) {
  @Override
  protected void onEvent(AjaxRequestTarget ajaxRequestTarget) {
  CustomDataTable table = 
  (CustomDataTable)button.getPage().get(searchTable);
  table.setEnabled(false);
  ajaxRequestTarget.add(table);
 
  }
  });
  }
  }
 
  When the button is clicked I start this thread, but I get this exception:
  Exception in thread Thread-69 org.apache.wicket.WicketRuntimeException:
  No RequestCycle is currently set!
  at org.apache.wicket.Component.getRequest(Component.java:1795)
  at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
  at org.apache.wicket.Page.dirty(Page.java:255)
  at org.apache.wicket.Page.componentStateChanging(Page.java:930)
  at
 org.apache.wicket.Component.addStateChange(Component.java:3519)
  at org.apache.wicket.Behaviors.add(Behaviors.java:55)
  at org.apache.wicket.Component.add(Component.java:4503)
  at
 
 smw.console.frontend.components.support.TableDisabler.run(TableDisable
 r.java:18)
  at java.lang.Thread.run(Thread.java:722)
  Exception in thread Thread-70 org.apache.wicket.WicketRuntimeException:
  No RequestCycle is currently set!
  at org.apache.wicket.Component.getRequest(Component.java:1795)
  at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:318)
  at org.apache.wicket.Page.dirty(Page.java:255)
  at org.apache.wicket.Page.componentStateChanging(Page.java:930)
  at
 org.apache.wicket.Component.addStateChange(Component.java:3519)
  at org.apache.wicket.Behaviors.add(Behaviors.java:55)
  at org.apache.wicket.Component.add(Component.java:4503)
  at
 
 smw.console.frontend.components.support.TableDisabler.run(TableDisable
 r.java:18)
  at java.lang.Thread.run(Thread.java:722)
 
  How can I set an RequestCycle in this Thread, so that the table will 
  be disabled if the button is clicked?
 
  Mit freundlichen Grüßen
  Christoph Manig
 
 
 


 --
 Regards - Ernesto Reinaldo Barreiro

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




AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
I dont want to cover the table. It should be readable for the user. My issue is 
that the user cant click the toolbars while the request is running.
This resolution works, I can see the text 'Before ajax call:
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes){
super.updateAjaxAttributes(attributes);

IAjaxCallListener ajaxCallListener = new AjaxCallListener() {
@Override
public CharSequence getBeforeHandler(Component component){
return alert('Before ajax call');;
}
};
attributes.getAjaxCallListeners().add(ajaxCallListener);
}

How can I disable a table in Javascript? It says that wont be possible. 


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 13. Januar 2014 13:09
An: users@wicket.apache.org
Betreff: Re: set RequestCycle in parallel Thread

Hi,

Just put a div that covers the table and make it visible (hive it after AJAX). 
There are many ways to do this in Wicket one is using IAjaxIndicatorAware. 
There was an article on wicket in action page explaining how to use it (if I 
recall correctly).


On Mon, Jan 13, 2014 at 12:54 PM, christoph.ma...@t-systems.com wrote:

 Can you give a more detailed example? I cant see how I should add 
 JavaScript and how I should use the updateAjaxAttributes method.


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Montag, 13. Januar 2014 12:44
 An: users@wicket.apache.org
 Betreff: Re: set RequestCycle in parallel Thread

 Hi,

 It won't be faster again.
 Your best bet is to use plain JavaScript so that the table is disabled 
 before the Ajax call is even made to the server.
 See AjaxRequestAttributes's onBeforeSend() method 
 (IndicatingAjaxButton#updateAjaxAttributes()).

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, Jan 13, 2014 at 1:16 PM, christoph.ma...@t-systems.com wrote:

  If I only add the behaviour to the button it is not fast enough. If 
  the user clicks the button an sql-statement starts running which 
  collects a lot of data. The delay between clicking the button and 
  disabling the table is too big. That's why I want to do this in a
 parallel thead.
 
 
  Mit freundlichen Grüßen
  Christoph Manig
 
  -Ursprüngliche Nachricht-
  Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
  Gesendet: Montag, 13. Januar 2014 12:10
  An: users@wicket.apache.org
  Betreff: Re: set RequestCycle in parallel Thread
 
  Why do you need o start a new thread? Is I might ask the question?
 
 
  On Mon, Jan 13, 2014 at 11:58 AM, christoph.ma...@t-systems.com wrote:
 
   Hello,
  
   I want to add a new AjaxEventBehaviour to my IndicatingAjaxButton. 
   I do this the following way:
  
   public class TableDisabler implements Runnable{
  
   private IndicatingAjaxButton button;
  
   public TableDisabler (IndicatingAjaxButton button){
   this.button=button;
  
   }
  
   @Override
   public void run() {
   button.add(new AjaxEventBehavior(onClick) {
   @Override
   protected void onEvent(AjaxRequestTarget
 ajaxRequestTarget) {
   CustomDataTable table = 
   (CustomDataTable)button.getPage().get(searchTable);
   table.setEnabled(false);
   ajaxRequestTarget.add(table);
  
   }
   });
   }
   }
  
   When the button is clicked I start this thread, but I get this
 exception:
   Exception in thread Thread-69
 org.apache.wicket.WicketRuntimeException:
   No RequestCycle is currently set!
   at 

AW: set RequestCycle in parallel Thread

2014-01-13 Thread Christoph.Manig
I tried it like this:
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes){
super.updateAjaxAttributes(attributes);

IAjaxCallListener ajaxCallListener = new AjaxCallListener() {
@Override
public CharSequence getBeforeHandler(Component component){
return var table = document.getElementById('searchTable');
\n +
var rowCount = table.rows.length;\n +
for (var i = 1; i  rowCount - 1; i++) { \n +
 $(\#searchTable tbody 
tr:eq(\+i+\)\).each(function(i) {\n +
var offset = $(this).offset();\n +
var veil = $('div 
class=\divVeil\/div').appendTo('body').css({\n +
position: 'absolute',\n +
top: offset.top,\n +
left: offset.left,\n +
height: $(this).outerHeight(),\n +
width: $(this).outerWidth(),\n +
});\n +
});\n +
}  ;
}
};
attributes.getAjaxCallListeners().add(ajaxCallListener);
}

But this didn’t work. Can anybody help?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 13. Januar 2014 13:48
An: users@wicket.apache.org
Betreff: Re: set RequestCycle in parallel Thread

See my link to StackOverflow.
It shows how to disable a row. By disable it means put a div above the row 
so it receives any clicks. The div may be transparent so your users won't 
notice it.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 13, 2014 at 2:42 PM, christoph.ma...@t-systems.com wrote:

 I dont want to cover the table. It should be readable for the user. My 
 issue is that the user cant click the toolbars while the request is running.
 This resolution works, I can see the text 'Before ajax call:
 @Override
 protected void updateAjaxAttributes(AjaxRequestAttributes attributes){
 super.updateAjaxAttributes(attributes);

 IAjaxCallListener ajaxCallListener = new AjaxCallListener() {
 @Override
 public CharSequence getBeforeHandler(Component component){
 return alert('Before ajax call');;
 }
 };
 attributes.getAjaxCallListeners().add(ajaxCallListener);
 }

 How can I disable a table in Javascript? It says that wont be possible.


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567


 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 13. Januar 2014 13:09
 An: users@wicket.apache.org
 Betreff: Re: set RequestCycle in parallel Thread

 Hi,

 Just put a div that covers the table and make it visible (hive it 
 after AJAX). There are many ways to do this in Wicket one is using 
 IAjaxIndicatorAware. There was an article on wicket in action page 
 explaining how to use it (if I recall correctly).


 On Mon, Jan 13, 2014 at 12:54 PM, christoph.ma...@t-systems.com wrote:

  Can you give a more detailed example? I cant see how I should add 
  JavaScript and how I should use the updateAjaxAttributes method.
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
  T-SYSTEMS INTERNATIONAL GMBH
  Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
  Geschäftsführung: Reinhard Clemens 

set table disabled while ajax request is running

2014-01-09 Thread Christoph.Manig
Hello,

in my application I have a table with some custom toolbars. This table shows 
some data from the database if the user clicks an ajax button. But if the user 
clicks the button again, the table will be replaced by a new table with the new 
data. Here an example:

target.add(page.get(table).replaceWith(getNewTable(newData)));

This works fine. :)

Now the problem. When the user clicks the ajax button again the ajax request 
begins running, but the user is able to click one of toolbars of the shown 
table. So I get an exception: the table.toolbar was not found. This is ok 
because of the replacement with a new table. I want to disable the shown table 
while the ajax request is running. If the request detaches the old table will 
be replaced by the new table with enabled toolbars.

I tried to override the onEvent-method of my table. Here you can see the code:
@Override
public void onEvent(IEvent? event){
if(event.getPayload() instanceof AjaxRequestTarget){
AjaxRequestTarget actualRequestTaget = 
(AjaxRequestTarget)event.getPayload();
actualRequestTaget.addListener(new 
AjaxRequestTarget.AbstractListener(){
@Override
public void onBeforeRespond(MapString,Component map, 
AjaxRequestTarget target) {
setEnabled(false);
}
@Override
public void onAfterRespond(MapString,Component map, 
AjaxRequestTarget.IJavaScriptResponse response) {
setEnabled(true);
}
});
}
}

But this didn't work. I can click the toolbars while the request is running and 
then I get the old excetion. The table will be disabled if the request has 
finished.

Is there any possibility to realize it?



Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





AW: set table disabled while ajax request is running

2014-01-09 Thread Christoph.Manig
It is nice to show additional text oder something like this, but I cant hide or 
disable the shown table. So the user has still the possibility to click at one 
of the toolbars, which will throw an exception.

Are there no other ways?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567

-Ursprüngliche Nachricht-
Von: Andrew Geery [mailto:andrew.ge...@gmail.com] 
Gesendet: Donnerstag, 9. Januar 2014 15:12
An: users@wicket.apache.org
Betreff: Re: set table disabled while ajax request is running

The easiest way to do that is to use
http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/ajax/IAjaxIndicatorAware.html

See
http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/
for
an example.

Andrew


On Thu, Jan 9, 2014 at 7:07 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 You may show a veil above the table to prevent clicking on elements 
 during the ajax call

 Martin Grigorov
 Wicket Training and Consulting


 On Thu, Jan 9, 2014 at 1:01 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  in my application I have a table with some custom toolbars. This 
  table shows some data from the database if the user clicks an ajax 
  button. But
 if
  the user clicks the button again, the table will be replaced by a 
  new
 table
  with the new data. Here an example:
 
  target.add(page.get(table).replaceWith(getNewTable(newData)));
 
  This works fine. :)
 
  Now the problem. When the user clicks the ajax button again the ajax 
  request begins running, but the user is able to click one of 
  toolbars of the shown table. So I get an exception: the table.toolbar was 
  not found.
  This is ok because of the replacement with a new table. I want to 
  disable the shown table while the ajax request is running. If the 
  request
 detaches
  the old table will be replaced by the new table with enabled toolbars.
 
  I tried to override the onEvent-method of my table. Here you can see 
  the
  code:
  @Override
  public void onEvent(IEvent? event){
  if(event.getPayload() instanceof AjaxRequestTarget){
  AjaxRequestTarget actualRequestTaget = 
  (AjaxRequestTarget)event.getPayload();
  actualRequestTaget.addListener(new
  AjaxRequestTarget.AbstractListener(){
  @Override
  public void onBeforeRespond(MapString,Component 
  map, AjaxRequestTarget target) {
  setEnabled(false);
  }
  @Override
  public void onAfterRespond(MapString,Component 
  map, AjaxRequestTarget.IJavaScriptResponse response) {
  setEnabled(true);
  }
  });
  }
  }
 
  But this didn't work. I can click the toolbars while the request is 
  running and then I get the old excetion. The table will be disabled 
  if
 the
  request has finished.
 
  Is there any possibility to realize it?
 
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
 
 
 


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



AW: set table disabled while ajax request is running

2014-01-09 Thread Christoph.Manig
The problem ist that the links in the table aren't ajax links. There are also 
the navigation toolbar and the the headers toolbar which I want to disable 
while the ajax request is running. The button which starts the ajax call isn't 
in the table too.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

T-SYSTEMS INTERNATIONAL GMBH
Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri Abolhassan, Thilo 
Kusch, Dr. Markus Müller, Georg Pepping, Hagen Rickmann
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
Sitz der Gesellschaft: Frankfurt am Main
WEEE-Reg.-Nr. DE50335567


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Donnerstag, 9. Januar 2014 16:09
An: users@wicket.apache.org
Betreff: Re: set table disabled while ajax request is running

You can use AjaxChannel with the same name for all Ajax buttons/links in the 
table and with type ACTIVE.
This way only one Ajax request for this channel will be executed. All other 
will be discarded.

Martin Grigorov
Wicket Training and Consulting


On Thu, Jan 9, 2014 at 5:02 PM, christoph.ma...@t-systems.com wrote:

 It is nice to show additional text oder something like this, but I 
 cant hide or disable the shown table. So the user has still the 
 possibility to click at one of the toolbars, which will throw an exception.

 Are there no other ways?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 T-SYSTEMS INTERNATIONAL GMBH
 Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
 Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri 
 Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen 
 Rickmann
 Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 Sitz der 
 Gesellschaft: Frankfurt am Main WEEE-Reg.-Nr. DE50335567

 -Ursprüngliche Nachricht-
 Von: Andrew Geery [mailto:andrew.ge...@gmail.com]
 Gesendet: Donnerstag, 9. Januar 2014 15:12
 An: users@wicket.apache.org
 Betreff: Re: set table disabled while ajax request is running

 The easiest way to do that is to use

 http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/aja
 x/IAjaxIndicatorAware.html

 See

 http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3
 -lines-of-code/
 for
 an example.

 Andrew


 On Thu, Jan 9, 2014 at 7:07 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Hi,
 
  You may show a veil above the table to prevent clicking on elements 
  during the ajax call
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Thu, Jan 9, 2014 at 1:01 PM, christoph.ma...@t-systems.com wrote:
 
   Hello,
  
   in my application I have a table with some custom toolbars. This 
   table shows some data from the database if the user clicks an ajax 
   button. But
  if
   the user clicks the button again, the table will be replaced by a 
   new
  table
   with the new data. Here an example:
  
   target.add(page.get(table).replaceWith(getNewTable(newData)));
  
   This works fine. :)
  
   Now the problem. When the user clicks the ajax button again the 
   ajax request begins running, but the user is able to click one of 
   toolbars of the shown table. So I get an exception: the 
   table.toolbar
 was not found.
   This is ok because of the replacement with a new table. I want to 
   disable the shown table while the ajax request is running. If the 
   request
  detaches
   the old table will be replaced by the new table with enabled toolbars.
  
   I tried to override the onEvent-method of my table. Here you can 
   see the
   code:
   @Override
   public void onEvent(IEvent? event){
   if(event.getPayload() instanceof AjaxRequestTarget){
   AjaxRequestTarget actualRequestTaget = 
   (AjaxRequestTarget)event.getPayload();
   actualRequestTaget.addListener(new
   AjaxRequestTarget.AbstractListener(){
   @Override
   public void onBeforeRespond(MapString,Component
   map, AjaxRequestTarget target) {
   setEnabled(false);
   }
   @Override
   public void onAfterRespond(MapString,Component
   map, AjaxRequestTarget.IJavaScriptResponse response) {
   setEnabled(true);
   }
   });
   }
   }
  
   But this didn't work. I can click the toolbars while the request 
   is running and then I get the old excetion. The table will be 
   disabled if
  the
   request has finished.
  
   

Show Stacktrace in ErrorPage

2013-12-08 Thread Christoph.Manig
Hello,

my application runs in deployment-mode and if an exception is thrown, wicket 
shows his internal error page without the stacktrace. Is there any possibility 
to show this stacktrace in this wicket error page? How can I get the stacktrace 
of an exception to show it in a custom error page?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Link

2013-11-11 Thread Christoph.Manig
Hello,

there are 4 links at the top of my page.

Every link should forward to another page. But the User couldn't see on which 
page he is. I want to change the color of the links depending on the page which 
the user has chosen. How can I realize this? I implemented the links like this:

Link faultLink = new Link(faultLink) {
@Override
public void onClick() {
setResponsePage(Fault.class);
}
};

Christoph



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

AW: Link

2013-11-11 Thread Christoph.Manig
Hello,

I was already trying this. But it didn't works. Here is HTML:
a wicket:id=faultLinkESB Fehler/a | a 
wicket:id=protokollierungLinkProtokollierung/a  | a 
wicket:id=userManagementLinkBenutzerverwaltung/a | a 
wicket:id=changePasswordLinkPasswort auml;ndern/a

And here the Java:
Link faultLink = new Link(faultLink) {
 @Override
 public void onClick() {
setResponsePage(Fault.class);
 }
};
faultLink.setAutoEnable(true);

These links are in my parent page. The FaultPage extends of my parent page. 
Could that be the problem? 

Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 11. November 2013 11:32
An: users@wicket.apache.org
Betreff: Re: Link

Hi,

See org.apache.wicket.markup.html.link.Link#setAutoEnable(true).
This will automatically render disabled link for links which link to the 
current page.


On Mon, Nov 11, 2013 at 12:23 PM, christoph.ma...@t-systems.com wrote:

  Hello,

 there are 4 links at the top of my page.
  Every link should forward to another page. But the User couldn’t see 
 on which page he is. I want to change the color of the links depending 
 on the page which the user has chosen. How can I realize this? I 
 implemented the links like this:

 Link faultLink = new Link(faultLink) {
 @Override
 public void onClick() {
 setResponsePage(Fault.class);
 }
 };

 Christoph




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



AW: Link

2013-11-11 Thread Christoph.Manig
Can you give an example?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 11. November 2013 11:34
An: users@wicket.apache.org
Betreff: Re: Link

Maybe use CSS? Add a class attribute with the name of the page?


On Mon, Nov 11, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote:

  Hello,

 there are 4 links at the top of my page.
  Every link should forward to another page. But the User couldn't see 
 on which page he is. I want to change the color of the links depending 
 on the page which the user has chosen. How can I realize this? I 
 implemented the links like this:

 Link faultLink = new Link(faultLink) {
 @Override
 public void onClick() {
 setResponsePage(Fault.class);
 }
 };

 Christoph




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




--
Regards - Ernesto Reinaldo Barreiro

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



AW: Link

2013-11-11 Thread Christoph.Manig
I mean an example for the CSS Solution


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Montag, 11. November 2013 12:41
An: users@wicket.apache.org
Betreff: Re: Link

BookmarkablePageLink faultLink = new BookmarkablePageLink(faultLink, 
Fault.class); faultLink.setAutoEnable(true);


On Mon, Nov 11, 2013 at 1:37 PM, christoph.ma...@t-systems.com wrote:

 Can you give an example?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 11. November 2013 11:34
 An: users@wicket.apache.org
 Betreff: Re: Link

 Maybe use CSS? Add a class attribute with the name of the page?


 On Mon, Nov 11, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote:

   Hello,
 
  there are 4 links at the top of my page.
   Every link should forward to another page. But the User couldn't 
  see on which page he is. I want to change the color of the links 
  depending on the page which the user has chosen. How can I realize 
  this? I implemented the links like this:
 
  Link faultLink = new Link(faultLink) {
  @Override
  public void onClick() {
  setResponsePage(Fault.class);
  }
  };
 
  Christoph
 
 
 
 
  
  - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



 --
 Regards - Ernesto Reinaldo Barreiro

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




AW: Link

2013-11-11 Thread Christoph.Manig
Ok thanks.

I did the same like this:
Link faultLink = new Link(faultLink) {
@Override
public void onClick() {
setResponsePage(Fault.class);
}
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
if (pageName.equals(Fault.class.getSimpleName())){
tag.put(class, pageName);
}
}
};


Christoph

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



AW: set session-timeout

2013-10-22 Thread Christoph.Manig
If I do this in my WicketApplication class, in the init() method I get 
java.lang.reflect.UndeclaredThrowableException. But if I add this to my base 
page it works. Is there any possibility to do this in the WicketApplication 
class?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: francois meillet [mailto:francois.meil...@gmail.com] 
Gesendet: Montag, 21. Oktober 2013 16:34
An: users@wicket.apache.org
Betreff: Re: set session-timeout

HttpSession httpSession = ((ServletWebRequest) 
RequestCycle.get().getRequest()).getContainerRequest().getSession();
httpSession.setMaxInactiveInterval(timeOut);

François


On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.orgwrote:


 http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a
 pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)


 On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  in my application i have set the errorpage for expired pages like this:
 
  getApplicationSettings().setPageExpiredErrorPage(Timeout.class);
 
  Now I want to make the time until the application expires configurable.
  How can I do this? Can I set this in the WicketApplication.init()?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
 
 
 


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



set session-timeout

2013-10-21 Thread Christoph.Manig
Hello,

in my application i have set the errorpage for expired pages like this:

getApplicationSettings().setPageExpiredErrorPage(Timeout.class);

Now I want to make the time until the application expires configurable. How can 
I do this? Can I set this in the WicketApplication.init()?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Exception while closing modal window

2013-09-10 Thread Christoph.Manig
Hello,

i have a modal window in my application and it works fine. But if I close the 
window with X, I get this exception:

java.lang.ClassCastException: cannot assign instance of 
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$MaskType to 
field org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.maskType 
of type 
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$MaskType in 
instance of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
 at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2063)
 at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1241)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1995)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
 at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
 at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
 at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
 at 
org.apache.wicket.serialize.java.JavaSerializer.deserialize(JavaSerializer.java:122)
 at 
org.apache.wicket.pageStore.DefaultPageStore.deserializePage(DefaultPageStore.java:396)
 at 
org.apache.wicket.pageStore.DefaultPageStore.getPage(DefaultPageStore.java:129)
 at 
org.apache.wicket.page.PageStoreManager$SessionEntry.getPage(PageStoreManager.java:192)
 at 
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:327)
 at 
org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:107)
 at 
org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:52)
 at 
org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:257)
 at 
org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:148)
 at 
org.apache.wicket.core.request.handler.PageProvider.getStoredPage(PageProvider.java:306)
 at 
org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:261)
 at 
org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:166)
 at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getPage(ListenerInterfaceRequestHandler.java:96)
 at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
 at 
org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDelegator.java:80)
 at 
org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:62)
 at 
org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)
 at com.sun.proxy.$Proxy141.service(Unknown Source)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at 
org.ops4j.pax.web.service.internal.HttpServiceStarted$1.invoke(HttpServiceStarted.java:182)
 at org.ops4j.pax.web.service.internal.$Proxy49.service(Unknown Source)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
 at 

Custom TopToolbar

2013-08-19 Thread Christoph.Manig
Hello,

I want to add an own toolbar to my datatable. It works fine but I want another 
positioning of all toolbars. I use the DefaultDataTable which include a headers 
toolbar for sorting and the navigationtoolbar. When I add my showAllToobar it 
will be placed under the headers-toolbar. You can see this in the picture. But 
I want my toolbar between the navigation and the headers-toolbar. How can I do 
this?




Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com




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

AW: CSV-Export change Datepattern

2013-07-19 Thread Christoph.Manig
I have to do this in my wicketApplication class in his init-method right? With 
this call: Application.get().getConverterLocator().getConverter(Date.class) I 
only get the actual converter for the date. How can I register a new 
PatternConverter in my application. There is nothing like this 
Application.get().getConverterLocator().setConverter(Date.class, new 
PatternDateConverter(dd.MM. HH:mm:ss,true))? 

Can anybody give me an example please?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Donnerstag, 18. Juli 2013 16:14
An: users@wicket.apache.org
Betreff: Re: CSV-Export change Datepattern

CSVDataExporter uses the Application's converters:

IConverter converter =
Application.get().getConverterLocator().getConverter(c);

So register a suitable converter in your application.

Alternatively create a new Jira issue to allow passing an IConverterLocator 
into CSVDataExporter.

Sven

On 07/18/2013 03:29 PM, christoph.ma...@t-systems.com wrote:
 Hello,

 in my application I have a table which includes a column timestamp. I have 
 created this column with the help of a Panel which includes a DateLabel.

 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.eventTimestamp).wrapOnAssignment(getPage()),eventTimestamp,eventTimestamp){
  @Override
  public void populateItem(ItemICellPopulatorProtocolRecord 
 cellItem, String componentId, IModelProtocolRecord model)
  {
  cellItem.add(new DatePanelProtocolRecord(componentId, 
 model,eventTimestamp));
  }
 });

 Here is the declaration of the DateLabel:

 public class DatePanelT extends Panel {
  public DatePanel(String id, final IModelT model, String column)
  {
  super(id, model);
  DateLabel datelabel = new DateLabel(date,new 
 PropertyModelDate(model, column),new PatternDateConverter(dd.MM. 
 HH:mm:ss,true));
  add(datelabel);
  }
 }

 So the table shows the date like this 18.07.2013 15:23:53. Furthermore the 
 table has an Exporttoolbar for csv. When I click the link for exporting the 
 csv, it includes the timestamp like this 2013/07/18. This is wrong. I need 
 the full timestamp as it would be shown in the table. Could anybody help me 
 please?

 Mit freundlichen Grüßen
 Christoph Manig
 email:  christoph.ma...@t-systems.com






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


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



AW: AW: CSV-Export change Datepattern

2013-07-19 Thread Christoph.Manig
Hello,

I add this to my WicketApplication class:

@Override
protected IConverterLocator newConverterLocator() {
 ConverterLocator converterLocator = new ConverterLocator();
 converterLocator.set(Date.class, new PatternDateConverter(dd.MM. 
HH:mm:ss,true));
 System.out.println(converterLocator.getConverter(Date.class).toString());
 return converterLocator;
}

This works fine. Thank you for your help.

Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Freitag, 19. Juli 2013 09:50
An: users@wicket.apache.org
Betreff: Re: AW: CSV-Export change Datepattern

In your application override:

 protected IConverterLocator newConverterLocator()
 {
 ConverterLocator locator = new ConverterLocator();

 locator.set(...);

 return locator;
 }


On 07/19/2013 09:43 AM, christoph.ma...@t-systems.com wrote:
 I have to do this in my wicketApplication class in his init-method right? 
 With this call: 
 Application.get().getConverterLocator().getConverter(Date.class) I only get 
 the actual converter for the date. How can I register a new PatternConverter 
 in my application. There is nothing like this 
 Application.get().getConverterLocator().setConverter(Date.class, new 
 PatternDateConverter(dd.MM. HH:mm:ss,true))?

 Can anybody give me an example please?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.: +49 (0) 351 / 8152 - 188
 fax:  +49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Sven Meier [mailto:s...@meiers.net]
 Gesendet: Donnerstag, 18. Juli 2013 16:14
 An: users@wicket.apache.org
 Betreff: Re: CSV-Export change Datepattern

 CSVDataExporter uses the Application's converters:

  IConverter converter =
 Application.get().getConverterLocator().getConverter(c);

 So register a suitable converter in your application.

 Alternatively create a new Jira issue to allow passing an IConverterLocator 
 into CSVDataExporter.

 Sven

 On 07/18/2013 03:29 PM, christoph.ma...@t-systems.com wrote:
 Hello,

 in my application I have a table which includes a column timestamp. I have 
 created this column with the help of a Panel which includes a DateLabel.

 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.eventTimestamp).wrapOnAssignment(getPage()),eventTimestamp,eventTimestamp){
   @Override
   public void populateItem(ItemICellPopulatorProtocolRecord 
 cellItem, String componentId, IModelProtocolRecord model)
   {
   cellItem.add(new DatePanelProtocolRecord(componentId, 
 model,eventTimestamp));
   }
 });

 Here is the declaration of the DateLabel:

 public class DatePanelT extends Panel {
   public DatePanel(String id, final IModelT model, String column)
   {
   super(id, model);
   DateLabel datelabel = new DateLabel(date,new 
 PropertyModelDate(model, column),new PatternDateConverter(dd.MM. 
 HH:mm:ss,true));
   add(datelabel);
   }
 }

 So the table shows the date like this 18.07.2013 15:23:53. Furthermore the 
 table has an Exporttoolbar for csv. When I click the link for exporting the 
 csv, it includes the timestamp like this 2013/07/18. This is wrong. I need 
 the full timestamp as it would be shown in the table. Could anybody help me 
 please?

 Mit freundlichen Grüßen
 Christoph Manig
 email:  christoph.ma...@t-systems.com





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


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



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


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



CSV-Export change Datepattern

2013-07-18 Thread Christoph.Manig
Hello,

in my application I have a table which includes a column timestamp. I have 
created this column with the help of a Panel which includes a DateLabel.

columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.eventTimestamp).wrapOnAssignment(getPage()),eventTimestamp,eventTimestamp){
@Override
public void populateItem(ItemICellPopulatorProtocolRecord 
cellItem, String componentId, IModelProtocolRecord model)
{
cellItem.add(new DatePanelProtocolRecord(componentId, 
model,eventTimestamp));
}
});

Here is the declaration of the DateLabel:

public class DatePanelT extends Panel {
public DatePanel(String id, final IModelT model, String column)
{
super(id, model);
DateLabel datelabel = new DateLabel(date,new 
PropertyModelDate(model, column),new PatternDateConverter(dd.MM. 
HH:mm:ss,true));
add(datelabel);
}
}

So the table shows the date like this 18.07.2013 15:23:53. Furthermore the 
table has an Exporttoolbar for csv. When I click the link for exporting the 
csv, it includes the timestamp like this 2013/07/18. This is wrong. I need the 
full timestamp as it would be shown in the table. Could anybody help me please?

Mit freundlichen Grüßen
Christoph Manig
email:  christoph.ma...@t-systems.com





AW: DatePicker and DateTextField

2013-06-14 Thread Christoph.Manig
Do you mean it like this:
DateTextField txtDatumVon = new DateTextField(txtDatumVon, new 
PatternDateConverter(HH:mm:ss dd.MM.,true));
String date = HH:mm:ss dd.MM.;
try {
 txtDatumVon.setModelObject(new SimpleDateFormat(00:00:00 
dd.MM.).parse(date));
} catch (ParseException e) {
 e.printStackTrace();  //To change body of catch statement use File | 
Settings | File Templates.
}

This didn't work :( Did I do something wrong? Can you give me an example?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Francois Meillet [mailto:francois.meil...@gmail.com] 
Gesendet: Freitag, 14. Juni 2013 08:41
An: users@wicket.apache.org
Betreff: Re: DatePicker and DateTextField

Set the model object (the date) behind the DateTextField to 00:00:00 JJ.MM..

François Meillet
Formation Wicket - Développement Wicket





Le 14 juin 2013 à 07:37, christoph.ma...@t-systems.com a écrit :

 Hello,
 
 how is the DatePicker binded tot he DateTextfield? How is the picked date 
 written in the Textfield? Is there a possiblilty to change this?
 
 When the DatePicker have the pattern dd.MM. there is no problem. But I 
 want the full timestamp with this pattern HH:mm:ss dd.MM. because the 
 User should be able to change the time. I need one DateTextField because the 
 Client and the server are in different timezones. This works fine. The only 
 problem is when I pick a day the DatePicker writes HH:mm:ss 14.06.2013. But 
 it should be 00:00:00 14.06.2013 for default.
 
 Is there anyone who could help?
 
 
 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer
 
 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com
 
 
 


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



AW: DatePicker and DateTextField

2013-06-14 Thread Christoph.Manig
What ist i and the String toDate in your code?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Dr. Britta Landgraf [mailto:b.landg...@fz-juelich.de] 
Gesendet: Freitag, 14. Juni 2013 09:39
An: users@wicket.apache.org
Betreff: Re: DatePicker and DateTextField

I use it in tho following way:

new DateTextField(ToDay, new PropertyModelDate(ti, dateTo), HH:mm:ss 
dd.MM.);

best regards
Britta Landgraf

Am 14.06.2013 09:20, schrieb christoph.ma...@t-systems.com:
 Do you mean it like this:
 DateTextField txtDatumVon = new DateTextField(txtDatumVon, new 
 PatternDateConverter(HH:mm:ss dd.MM.,true)); String date = 
 HH:mm:ss dd.MM.; try {
  txtDatumVon.setModelObject(new SimpleDateFormat(00:00:00 
 dd.MM.).parse(date)); } catch (ParseException e) {
  e.printStackTrace();  //To change body of catch statement use File | 
 Settings | File Templates.
 }

 This didn't work :( Did I do something wrong? Can you give me an example?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.: +49 (0) 351 / 8152 - 188
 fax:  +49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Francois Meillet [mailto:francois.meil...@gmail.com]
 Gesendet: Freitag, 14. Juni 2013 08:41
 An: users@wicket.apache.org
 Betreff: Re: DatePicker and DateTextField

 Set the model object (the date) behind the DateTextField to 00:00:00 
 JJ.MM..

 François Meillet
 Formation Wicket - Développement Wicket





 Le 14 juin 2013 à 07:37, christoph.ma...@t-systems.com a écrit :

 Hello,

 how is the DatePicker binded tot he DateTextfield? How is the picked date 
 written in the Textfield? Is there a possiblilty to change this?

 When the DatePicker have the pattern dd.MM. there is no problem. But I 
 want the full timestamp with this pattern HH:mm:ss dd.MM. because the 
 User should be able to change the time. I need one DateTextField because the 
 Client and the server are in different timezones. This works fine. The only 
 problem is when I pick a day the DatePicker writes HH:mm:ss 14.06.2013. But 
 it should be 00:00:00 14.06.2013 for default.

 Is there anyone who could help?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com




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


--
Dr. Britta Landgraf   phone:   +49 2461 61 5647
IEK-4 fax: +49 2461 61 5452
  email:   b.landg...@fz-juelich.de
  WWW: www.fz-juelich.de/iek/iek-4/





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Karsten Beneke 
(stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. 
Schmidt



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


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



AW: DateConverter getFormat

2013-06-13 Thread Christoph.Manig
Hello,

thank you for your help. But this wouldn#t work because the return type of 
getFormat in my example is DateTimeFormatter from joda. Is there another 
example? Why I have to override this method?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Donnerstag, 13. Juni 2013 11:41
An: users@wicket.apache.org
Betreff: Re: DateConverter getFormat

Hi,

Here is one example:
https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?source=cc#L128


On Thu, Jun 13, 2013 at 12:28 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 In my application the server's timezone could be different to the 
 client's timezone. So in my BasicPage I get the client's timezone with this 
 call:
 ((WebClientInfo)getSession().getClientInfo()).getProperties().getTimeZ
 one();

 So every DateTextField and DateLabel should convert the date between 
 client and server right? Now I want to add a DateLabel. The 
 constructor wants a Converter so I add this:

 DateLabel datelabel = new DateLabel(date,new 
 PropertyModelDate(model,eventTimestamp),new DateConverter(true) {
 @Override
 public String getDatePattern(Locale locale) {
 return dd.MM. HH:mm:ss;
 }

 @Override
 protected DateTimeFormatter getFormat(Locale locale) {
 return null;  //To change body of implemented 
 methods use File | Settings | File Templates.
 }

 });
 I don't now how to override the getFormat-method. Can you help me please?

 Thanks

 Mit freundlichen Grüßen
 Christoph Manig




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



DateTextfield with DatePicker

2013-06-13 Thread Christoph.Manig
Hello,

in my application I have a DateTextField with a DatePicker. I declared it like 
this:
DateTextField txtDatumVon = new DateTextField(txtDatumVon, new 
PatternDateConverter(HH:mm:ss dd.MM.,true));

When I choose a day I can see in the Textfield something like this: HH:mm:ss 
11.06.2013. How can I change this? I want this for Default time 00:00:00 
11.06.2013(the day which was picked in the DatePicker)

Can you help me please?

Thank you.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





AW: DateTextfield with DatePicker

2013-06-13 Thread Christoph.Manig
No I need this datepattern because the user should be able to change the time 
of a day. I also need true because the server and the client are in different 
timezones.

Is there another way to change the default?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: francois meillet [mailto:francois.meil...@gmail.com] 
Gesendet: Donnerstag, 13. Juni 2013 14:15
An: users@wicket.apache.org
Betreff: Re: DateTextfield with DatePicker

DateTextField txtDatumVon = new DateTextField(txtDatumVon, new 
PatternDateConverter(dd/MM/, false));

François



On Thu, Jun 13, 2013 at 1:03 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 in my application I have a DateTextField with a DatePicker. I declared 
 it like this:
 DateTextField txtDatumVon = new DateTextField(txtDatumVon, new 
 PatternDateConverter(HH:mm:ss dd.MM.,true));

 When I choose a day I can see in the Textfield something like this:
 HH:mm:ss 11.06.2013. How can I change this? I want this for Default 
 time 00:00:00 11.06.2013(the day which was picked in the DatePicker)

 Can you help me please?

 Thank you.


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com





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



DatePicker and DateTextField

2013-06-13 Thread Christoph.Manig
Hello,

how is the DatePicker binded tot he DateTextfield? How is the picked date 
written in the Textfield? Is there a possiblilty to change this?

When the DatePicker have the pattern dd.MM. there is no problem. But I want 
the full timestamp with this pattern HH:mm:ss dd.MM. because the User 
should be able to change the time. I need one DateTextField because the Client 
and the server are in different timezones. This works fine. The only problem is 
when I pick a day the DatePicker writes HH:mm:ss 14.06.2013. But it should be 
00:00:00 14.06.2013 for default.

Is there anyone who could help?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





change cursor while ajaxRequest

2013-06-11 Thread Christoph.Manig
Hello,

there is an AjaxButton in my application. This button starts a sql-statement. I 
want to change the cursor while this statement is executed. How can I do this 
with wicket?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Empty Form Validation

2013-05-16 Thread Christoph.Manig
Hello,

I have a form which I want to validate. If this form is empty there should be 
shown a message in the feedbackpanel. How can I do this? Is there a way to 
validate an empty form with its compoundpropertymodel?

Thank you for your help.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





AW: Empty Form Validation

2013-05-16 Thread Christoph.Manig
My form looks like this:
FormFilterCreatorFault faultSearchForm = new 
FormFilterCreatorFault(faultSucheForm, new 
CompoundPropertyModelFilterCreatorFault(new FilterCreatorFault()));

I implement this Validator:
public class EmptyFormValidator  implements IFormValidator{

private FormComponent formModel;
private CSSFeedbackPanel feedback;

public EmptyFormValidator (FormComponent formModel, CSSFeedbackPanel 
feedback){
this.formModel = formModel;
this.feedback = feedback;
}

@Override
public FormComponent?[] getDependentFormComponents() {
return new FormComponent?[]{formModel};
}

@Override
public void validate(Form? components) {
FilterCreatorFault fcf = (FilterCreatorFault) 
formModel.getConvertedInput();

if(fcf == null){
feedback.error(Empty);
}
}
}

The CompoundPropertyModel hast he type FilterCreatorFault. This isn't a 
FormComponent. So this isn't working. How can I validate with the 
CompoundPropertyModel?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Donnerstag, 16. Mai 2013 10:55
An: users@wicket.apache.org
Betreff: Re: Empty Form Validation

Hi,

See IFormValidator


On Thu, May 16, 2013 at 11:51 AM, christoph.ma...@t-systems.com wrote:

 Hello,

 I have a form which I want to validate. If this form is empty there 
 should be shown a message in the feedbackpanel. How can I do this? Is 
 there a way to validate an empty form with its compoundpropertymodel?

 Thank you for your help.


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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


Error SpingComponentInjector

2013-05-02 Thread Christoph.Manig
Hello,

when I add this to my WicketApllication in method init():
  getComponentInstantiationListeners().add(new SpringComponentInjector(this));

I got this Error in my browser. Can you help me please?

HTTP ERROR 503

Problem accessing /smwconsole/. Reason:

java.lang.reflect.UndeclaredThrowableException

Caused by:

org.eclipse.jetty.servlet.ServletHolder$1: 
java.lang.reflect.UndeclaredThrowableException
at 
org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:445)
at 
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:498)
at 
org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:293)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:739)
at 
org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1189)
at 
org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1248)
at 
org.eclipse.jetty.servlet.ServletHandler.addServletMapping(ServletHandler.java:847)
at 
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$2.call(JettyServerImpl.java:195)
at 
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$2.call(JettyServerImpl.java:191)
at 
org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)
at 
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:190)
at 
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:275)
at 
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:110)
at 
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:137)
at 
org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:56)
at 
org.ops4j.pax.wicket.internal.ServletDescriptor.register(ServletDescriptor.java:73)
at 
org.ops4j.pax.wicket.internal.HttpTracker.registerServletDescriptor(HttpTracker.java:94)
at 
org.ops4j.pax.wicket.internal.HttpTracker.addServlet(HttpTracker.java:122)
at 
org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addServlet(PaxWicketAppFactoryTracker.java:103)
at 
org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addApplication(PaxWicketAppFactoryTracker.java:80)
at 
org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addingService(PaxWicketAppFactoryTracker.java:57)
at 
org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addingService(PaxWicketAppFactoryTracker.java:39)
at 
org.ops4j.pax.wicket.internal.util.BundleTrackerAggregator.addingService(BundleTrackerAggregator.java:56)
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
at 
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934)
at 
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795)
at 
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4495)
at org.apache.felix.framework.Felix.registerService(Felix.java:3503)
at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
at 
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310)
at 
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279)
at 
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95)
at 
org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40)
at 
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:320)
at 
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:261)
at 

Authorization Selectbox

2013-04-29 Thread Christoph.Manig
Hello,

there is a selectbox in my webapp , where the user can select an action like 
resubmit or change state. In Addition there are different userroles in my 
webapp. I want that userrole standard only can see change state in this 
selectbox and the userrole admin should see resubmit  and change state. How 
can I realize this?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Authorization

2013-04-29 Thread Christoph.Manig
Hello,

my app extends from AuthenticatedWebApplication. Some pages should have seen by 
user with a certain role. So I write this:
@AuthorizeInstantiation(Useradministrator (SMW_GUI_USERADMIN_ROLE))

But when I login with a user with another role. This user can see this page. 
Have you any idea why?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Datepicker only Hours

2013-04-26 Thread Christoph.Manig
Hello,

I have a DatePicker inside a Form. How can I say the Datepicker that it should 
set the date (day, month, year)  on the actual day when I only fill the fields 
for time (hour and minutes)?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





Datepicker only Hours

2013-04-26 Thread Christoph.Manig
Hello,

I have a DatePicker inside a Form. How can I say the Datepicker that it should 
set the date (day, month, year)  on the actual day when I only fill the fields 
for time (hour and minutes)?



Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
Hello,

I'm using a DefaultDataTable with a NavigationToolbar. I want to show on every 
TablePage 10 rows. Now when I have more than 10 rows (e.g  11) the 
navigationtoolbar appears and I can switch on the 2nd page to see the 11th row. 
But on the 2nd page the Table shows again the first row and not the 11th.

Can you help me please?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





AW: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
Hello,

this is the implementation of the DataProvider:

@Override
public IteratorUserRecord iterator(long l, long l2) {
if (userList != null){
Collections.sort(userList,comparator);
}else{
System.out.println(User-List ist leer!);
}
return userList.iterator();
}

What should have been changed? Can you explain me what these 2 parameters 
should do?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 26. April 2013 13:22
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable with NavigationToolbar

Hi,

The problem seems to be in your implementation of 
org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long first, long 
count)


On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 I'm using a DefaultDataTable with a NavigationToolbar. I want to show 
 on every TablePage 10 rows. Now when I have more than 10 rows (e.g  
 11) the navigationtoolbar appears and I can switch on the 2nd page to 
 see the 11th row. But on the 2nd page the Table shows again the first 
 row and not the 11th.

 Can you help me please?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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

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



AW: DefaultDataTable with NavigationToolbar

2013-04-26 Thread Christoph.Manig
This works. Thank you.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 26. April 2013 13:49
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable with NavigationToolbar

On Fri, Apr 26, 2013 at 1:37 PM, christoph.ma...@t-systems.com wrote:

 Hello,

 this is the implementation of the DataProvider:

 @Override
 public IteratorUserRecord iterator(long l, long l2) {
 if (userList != null){
 Collections.sort(userList,comparator);
 }else{
 System.out.println(User-List ist leer!);
 }
 return userList.iterator();


try with: userList.subList((int)l, (int)l2).iterator();


 }

 What should have been changed? Can you explain me what these 2 
 parameters should do?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Freitag, 26. April 2013 13:22
 An: users@wicket.apache.org
 Betreff: Re: DefaultDataTable with NavigationToolbar

 Hi,

 The problem seems to be in your implementation of 
 org.apache.wicket.markup.repeater.data.IDataProvider#iterator(long 
 first, long count)


 On Fri, Apr 26, 2013 at 1:10 PM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I'm using a DefaultDataTable with a NavigationToolbar. I want to 
  show on every TablePage 10 rows. Now when I have more than 10 rows 
  (e.g
  11) the navigationtoolbar appears and I can switch on the 2nd page 
  to see the 11th row. But on the 2nd page the Table shows again the 
  first row and not the 11th.
 
  Can you help me please?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 - 209
  email:  christoph.ma...@t-systems.com
 
 
 
 


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

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




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

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



AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
Hello,

Now I can see the exporttoolbar but when I click the link the csv is empty. Why 
is that empty?

Here the code:
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
target.add(feedback);
FilterCreatorProtocol filter = 
(FilterCreatorProtocol)form.getModelObject();

if(ConsoleDataHandlerImpl.getInstance().queryProtocolRowsByFilter(filter) = 
MAX_SEARCH_RESULTS){
ListProtocolRecord protocolData = 
ConsoleDataHandlerImpl.getInstance().queryProtocolDataWithSearchFilter(filter);

target.add(ProtokollierungPage.this.get(searchTable).replaceWith(getSearchTable(protocolData)));
}else{
error(ErrorMessage);
}
}

private DefaultDataTable getSearchTable(ListProtocolRecord dataList) {
 DefaultDataTableProtocolRecord,String searchTable = new 
DefaultDataTableProtocolRecord, String(searchTable,getTableHead(),new 
ProtocolDataSortDataProvider(dataList),10);
 searchTable.setOutputMarkupId(true);
 searchTable.addBottomToolbar(new ExportToolbar(searchTable, new 
ModelString(Export to), new ModelString(export)).addDataExporter(new 
CSVDataExporter()));

 return searchTable;
}

ListIColumnProtocolRecord,String columns = new 
ArrayListIColumnProtocolRecord,String();
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.retentionID), retentionId, retentionId));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.protocolID), protocolId, protocolId){
@Override
public void populateItem(ItemICellPopulatorProtocolRecord 
cellItem, String componentId, IModelProtocolRecord model)
{
cellItem.add(new ActionPanel(componentId, model));
}
});
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.externalID), externalId, externalId));
columns.add(new DatePropertyColumn(new 
ResourceModel(protocolRecord.eventTimestamp),eventTimestamp,eventTimestamp,dd.MM.
 HH:mm:ss));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.integrationService),integrationService,integrationService));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.endpoint),endpoint,endpoint));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.endpointType),endpointType,endpointType));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.messageStatus),messageStatus.description,messageStatus.description));


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Manig, Christoph 
Gesendet: Mittwoch, 24. April 2013 07:54
An: users@wicket.apache.org
Betreff: AW: AW: DefaultDataTable will not render bottomtoolbar for export

Hello,

now I see the Problem. Thank you for your help and sorry for my blindness.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Jesse Long [mailto:j...@unknown.za.net]
Gesendet: Dienstag, 23. April 2013 15:57
An: users@wicket.apache.org
Betreff: Re: AW: DefaultDataTable will not render bottomtoolbar for export

Hi Christoph,

PropertyColumns are already exportable. Exportable means implements 
IExportableColumn.

Sven identified that the replaced data table does not have the export toolbar 
added to it. This is why it does not display after being replaced.

Cheers,
Jesse

On 23/04/2013 15:49, christoph.ma...@t-systems.com wrote:
 Ok. Thanks for your answer.

 Here are my columns:
 ListIColumnProtocolRecord,String columns = new 
 ArrayListIColumnProtocolRecord,String();
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.retentionID), retentionId, retentionId)); 
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.protocolID), protocolId, protocolId){
  @Override
  public void populateItem(ItemICellPopulatorProtocolRecord 
 cellItem, String componentId, IModelProtocolRecord model)
  {
  cellItem.add(new ActionPanel(componentId, model));
  }
  });
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.externalID), externalId, 
 externalId)); columns.add(new DatePropertyColumn(new 
 ResourceModel(protocolRecord.eventTimestamp),eventTimestamp,event
 Timestamp,dd.MM. HH:mm:ss)); columns.add(new 
 

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
Hello,

I get this Exception
2013-04-24 08:18:52,766 | ERROR | tp1448118192-654 | DefaultExceptionMapper 
  | ?   ? | 269 - org.apache.wicket.core - 
6.5.0 | Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Method onResourceRequested of 
interface org.apache.wicket.IResourceListener targeted at [ResourceLink 
[Component id = exportLink]] on component [ResourceLink [Component id = 
exportLink]] threw an exception
at 
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)[268:org.apache.wicket.request:6.5.0]
at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)[269:org.apache.wicket.core:6.5.0]
at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)[269:org.apache.wicket.core:6.5.0]
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
at 
org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDelegator.java:80)[274:org.ops4j.pax.wicket.service:2.1.0]
at 
org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:62)[274:org.ops4j.pax.wicket.service:2.1.0]
at 
org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)[274:org.ops4j.pax.wicket.service:2.1.0]
at $Proxy67.service(Unknown 
Source)[274:org.ops4j.pax.wicket.service:2.1.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)[:1.6.0_37]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_37]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_37]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_37]
at 
org.ops4j.pax.web.service.internal.HttpServiceStarted$1.invoke(HttpServiceStarted.java:182)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
at org.ops4j.pax.web.service.internal.$Proxy54.service(Unknown 
Source)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
at 
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[98:org.ops4j.pax.web.pax-web-jetty:1.1.9]
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[84:org.eclipse.jetty.server:7.6.7.v20120910]
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)[82:org.eclipse.jetty.security:7.6.7.v20120910]
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[84:org.eclipse.jetty.server:7.6.7.v20120910]
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[84:org.eclipse.jetty.server:7.6.7.v20120910]
at 
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[98:org.ops4j.pax.web.pax-web-jetty:1.1.9]
at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[84:org.eclipse.jetty.server:7.6.7.v20120910]
at 

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
But I user this columns in my Table:
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.retentionID), retentionId, retentionId));

And in my Browser the property Retention-ID will be loaded from this:
entry key=protocolRecord.retentionIDRetention-ID/entry

I can see the right String for this property. This Webpage is used on a VM with 
Red Hat 64 Bit could this be the problem?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Mittwoch, 24. April 2013 10:26
An: users@wicket.apache.org
Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar for export

Maybe the file is not used at all. I.e. doesn't load it for some reason.


On Wed, Apr 24, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote:

 Hello,

 I get this Exception
 2013-04-24 08:18:52,766 | ERROR | tp1448118192-654 |
 DefaultExceptionMapper   | ?   ? |
 269 - org.apache.wicket.core - 6.5.0 | Unexpected error occurred
 org.apache.wicket.WicketRuntimeException: Method onResourceRequested
 of interface org.apache.wicket.IResourceListener targeted at
 [ResourceLink [Component id = exportLink]] on component [ResourceLink
 [Component id = exportLink]] threw an exception
 at
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)[268:org.apache.wicket.request:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)[269:org.apache.wicket.core:6.5.0]
 at
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)[269:org.apache.wicket.core:6.5.0]
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
 at
 org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDelegator.java:80)[274:org.ops4j.pax.wicket.service:2.1.0]
 at
 org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator.java:62)[274:org.ops4j.pax.wicket.service:2.1.0]
 at
 org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.invoke(ServletProxy.java:72)[274:org.ops4j.pax.wicket.service:2.1.0]
 at $Proxy67.service(Unknown
 Source)[274:org.ops4j.pax.wicket.service:2.1.0]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)[:1.6.0_37]
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_37]
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_37]
 at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_37]
 at
 org.ops4j.pax.web.service.internal.HttpServiceStarted$1.invoke(HttpServiceStarted.java:182)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
 at org.ops4j.pax.web.service.internal.$Proxy54.service(Unknown
 Source)[100:org.ops4j.pax.web.pax-web-runtime:1.1.9]
 at
 org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
 at
 org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
 at
 

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
It is in the same package as the class

src/main/java/smw/console/frontend/protocol/ProtokollierungPage.properties.xml

The classname is ProtokollierungPage.java

Does the ResourceModel load this properties automatically? Why does it show the 
String from the properties at the Tablehead but throw an exception while 
exporting the data?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Mittwoch, 24. April 2013 10:33
An: users@wicket.apache.org
Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar for export

What is the full path of your properties.xml ?


On Wed, Apr 24, 2013 at 11:30 AM, christoph.ma...@t-systems.com wrote:

 But I user this columns in my Table:
 columns.add(new PropertyColumnProtocolRecord, String(new
 ResourceModel(protocolRecord.retentionID), retentionId,
 retentionId));

 And in my Browser the property Retention-ID will be loaded from this:
 entry key=protocolRecord.retentionIDRetention-ID/entry

 I can see the right String for this property. This Webpage is used on
 a VM with Red Hat 64 Bit could this be the problem?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Mittwoch, 24. April 2013 10:26
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
 for export

 Maybe the file is not used at all. I.e. doesn't load it for some reason.


 On Wed, Apr 24, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote:

  Hello,
 
  I get this Exception
  2013-04-24 08:18:52,766 | ERROR | tp1448118192-654 |
  DefaultExceptionMapper   | ?   ?
 |
  269 - org.apache.wicket.core - 6.5.0 | Unexpected error occurred
  org.apache.wicket.WicketRuntimeException: Method onResourceRequested
  of interface org.apache.wicket.IResourceListener targeted at
  [ResourceLink [Component id = exportLink]] on component
  [ResourceLink [Component id = exportLink]] threw an exception
  at
 
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListe
 nerInterface.java:268)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInter
 face.java:216)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler
 .invokeListener(ListenerInterfaceRequestHandler.java:240)[269:org.apac
 he.wicket.core:6.5.0]
  at
 
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler
 .respond(ListenerInterfaceRequestHandler.java:226)[269:org.apache.wick
 et.core:6.5.0]
  at
 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(R
 equestCycle.java:840)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerSt
 ack.java:64)[268:org.apache.wicket.request:6.5.0]
  at
 
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java
 :254)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCyc
 le.java:211)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(R
 equestCycle.java:282)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(Wicke
 tFilter.java:244)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilt
 er.java:188)[269:org.apache.wicket.core:6.5.0]
  at
 
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :137)[269:org.apache.wicket.core:6.5.0]
  at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[95:org.ap
 ache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
  at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.ap
 ache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
  at
 
 org.ops4j.pax.wicket.internal.FilterDelegator$Chain.doFilter(FilterDel
 egator.java:80)[274:org.ops4j.pax.wicket.service:2.1.0]
  at
 
 org.ops4j.pax.wicket.internal.FilterDelegator.doFilter(FilterDelegator
 .java:62)[274:org.ops4j.pax.wicket.service:2.1.0]
  at
 
 org.ops4j.pax.wicket.internal.ServletProxy$ServletInvocationHandler.in
 

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
Is there another way to get this properties? Because there are properties for 
every page in my project.

In which package should this MyApplication.properties.xml be in?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Mittwoch, 24. April 2013 11:16
An: users@wicket.apache.org
Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar for export

Caused by: java.util.MissingResourceException: Unable to find property:
'protocolRecord.retentionID'. Locale: null, style: null
at org.apache.wicket.Localizer.getString(Localizer.java:237)[
269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.Localizer.getString(Localizer.java:149)[
269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:76)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:33)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.CSVDataExporter.exportData(CSVDataExporter.
java:198)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.exportData(ExportToolbar.java:343)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.write(ExportToolbar.java:298)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.request.resource.ResourceStreamResource$1.
writeData(ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.request.resource.AbstractResource.
respond(AbstractResource.java:528)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.markup.html.link.ResourceLink.
onResourceRequested(ResourceLink.java:115)[269:org.apache.wicket.core:6.5.0]
... 54 more

I.e. this is a request to a IResource, not a page.
Wicket doesn't know anything about the page that created the link to the 
resource at this point.

Move your i18n stuff in MyApplication.properties.xml and it should work in all 
cases.



On Wed, Apr 24, 2013 at 11:49 AM, christoph.ma...@t-systems.com wrote:

 It is in the same package as the class


 src/main/java/smw/console/frontend/protocol/ProtokollierungPage.proper
 ties.xml

 The classname is ProtokollierungPage.java

 Does the ResourceModel load this properties automatically? Why does it
 show the String from the properties at the Tablehead but throw an
 exception while exporting the data?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Mittwoch, 24. April 2013 10:33
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
 for export

 What is the full path of your properties.xml ?


 On Wed, Apr 24, 2013 at 11:30 AM, christoph.ma...@t-systems.com wrote:

  But I user this columns in my Table:
  columns.add(new PropertyColumnProtocolRecord, String(new
  ResourceModel(protocolRecord.retentionID), retentionId,
  retentionId));
 
  And in my Browser the property Retention-ID will be loaded from this:
  entry key=protocolRecord.retentionIDRetention-ID/entry
 
  I can see the right String for this property. This Webpage is used
  on a VM with Red Hat 64 Bit could this be the problem?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 – 209
  email:  christoph.ma...@t-systems.com
 
 
  -Ursprüngliche Nachricht-
  Von: Martin Grigorov [mailto:mgrigo...@apache.org]
  Gesendet: Mittwoch, 24. April 2013 10:26
  An: users@wicket.apache.org
  Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
  for export
 
  Maybe the file is not used at all. I.e. doesn't load it for some reason.
 
 
  On Wed, Apr 24, 2013 at 11:23 AM, christoph.ma...@t-systems.com wrote:
 
   Hello,
  
   I get this Exception
   2013-04-24 08:18:52,766 | ERROR | tp1448118192-654 |
   DefaultExceptionMapper   | ?
 ?
  |
   269 - org.apache.wicket.core - 6.5.0 | Unexpected error occurred
   org.apache.wicket.WicketRuntimeException: Method
   

AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
I resolve the problem.

I use this new 
ResourceModel(protocolRecord.retentionID).wrapOnAssignment(getPage())


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Manig, Christoph
Gesendet: Mittwoch, 24. April 2013 11:22
An: users@wicket.apache.org
Betreff: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

Is there another way to get this properties? Because there are properties for 
every page in my project.

In which package should this MyApplication.properties.xml be in?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Mittwoch, 24. April 2013 11:16
An: users@wicket.apache.org
Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar for export

Caused by: java.util.MissingResourceException: Unable to find property:
'protocolRecord.retentionID'. Locale: null, style: null
at org.apache.wicket.Localizer.getString(Localizer.java:237)[
269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.Localizer.getString(Localizer.java:149)[
269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:76)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.model.ResourceModel.getObject(
ResourceModel.java:33)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.CSVDataExporter.exportData(CSVDataExporter.
java:198)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.exportData(ExportToolbar.java:343)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.extensions.markup.html.repeater.data.
table.export.ExportToolbar$DataExportResourceStreamWriter
.write(ExportToolbar.java:298)[271:org.apache.wicket.extensions:6.5.0]
at org.apache.wicket.request.resource.ResourceStreamResource$1.
writeData(ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.request.resource.AbstractResource.
respond(AbstractResource.java:528)[269:org.apache.wicket.core:6.5.0]
at org.apache.wicket.markup.html.link.ResourceLink.
onResourceRequested(ResourceLink.java:115)[269:org.apache.wicket.core:6.5.0]
... 54 more

I.e. this is a request to a IResource, not a page.
Wicket doesn't know anything about the page that created the link to the 
resource at this point.

Move your i18n stuff in MyApplication.properties.xml and it should work in all 
cases.



On Wed, Apr 24, 2013 at 11:49 AM, christoph.ma...@t-systems.com wrote:

 It is in the same package as the class


 src/main/java/smw/console/frontend/protocol/ProtokollierungPage.proper
 ties.xml

 The classname is ProtokollierungPage.java

 Does the ResourceModel load this properties automatically? Why does it
 show the String from the properties at the Tablehead but throw an
 exception while exporting the data?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Mittwoch, 24. April 2013 10:33
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
 for export

 What is the full path of your properties.xml ?


 On Wed, Apr 24, 2013 at 11:30 AM, christoph.ma...@t-systems.com wrote:

  But I user this columns in my Table:
  columns.add(new PropertyColumnProtocolRecord, String(new
  ResourceModel(protocolRecord.retentionID), retentionId,
  retentionId));
 
  And in my Browser the property Retention-ID will be loaded from this:
  entry key=protocolRecord.retentionIDRetention-ID/entry
 
  I can see the right String for this property. This Webpage is used
  on a VM with Red Hat 64 Bit could this be the problem?
 
 
  Mit freundlichen Grüßen
  Christoph Manig
  Systems Engineer
 
  T-Systems International GmbH
  Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
  Str. 18
  01099 Dresden
  tel.:   +49 (0) 351 / 8152 - 188
  fax:+49 (0) 351 / 8152 – 209
  email:  christoph.ma...@t-systems.com
 
 
  -Ursprüngliche Nachricht-
  Von: Martin Grigorov 

AW: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-24 Thread Christoph.Manig
Hello,

yes the csv-export is working now. No I didn't know about the new exporters. At 
the moment I don't need another exporter. Thank you for your help.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 – 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Jesse Long [mailto:j...@unknown.za.net]
Gesendet: Mittwoch, 24. April 2013 12:37
An: users@wicket.apache.org
Betreff: Re: AW: AW: AW: DefaultDataTable will not render bottomtoolbar for 
export

Hi Christoph,

Nice solution. Does your CSV export work now? Do you know about the new 
exporters in wicketstuff-poi v6.7.0?

Thanks,
Jesse

On 24/04/2013 11:50, christoph.ma...@t-systems.com wrote:
 I resolve the problem.

 I use this new
 ResourceModel(protocolRecord.retentionID).wrapOnAssignment(getPage()
 )


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Manig, Christoph
 Gesendet: Mittwoch, 24. April 2013 11:22
 An: users@wicket.apache.org
 Betreff: AW: AW: AW: DefaultDataTable will not render bottomtoolbar
 for export

 Is there another way to get this properties? Because there are properties for 
 every page in my project.

 In which package should this MyApplication.properties.xml be in?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Mittwoch, 24. April 2013 11:16
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: DefaultDataTable will not render bottomtoolbar
 for export

 Caused by: java.util.MissingResourceException: Unable to find property:
 'protocolRecord.retentionID'. Locale: null, style: null
  at org.apache.wicket.Localizer.getString(Localizer.java:237)[
 269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.Localizer.getString(Localizer.java:149)[
 269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.model.ResourceModel.getObject(
 ResourceModel.java:76)[269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.model.ResourceModel.getObject(
 ResourceModel.java:33)[269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.extensions.markup.html.repeater.data.
 table.export.CSVDataExporter.exportData(CSVDataExporter.
 java:198)[271:org.apache.wicket.extensions:6.5.0]
  at org.apache.wicket.extensions.markup.html.repeater.data.
 table.export.ExportToolbar$DataExportResourceStreamWriter
 .exportData(ExportToolbar.java:343)[271:org.apache.wicket.extensions:6.5.0]
  at org.apache.wicket.extensions.markup.html.repeater.data.
 table.export.ExportToolbar$DataExportResourceStreamWriter
 .write(ExportToolbar.java:298)[271:org.apache.wicket.extensions:6.5.0]
  at org.apache.wicket.request.resource.ResourceStreamResource$1.
 writeData(ResourceStreamResource.java:192)[269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.request.resource.AbstractResource.
 respond(AbstractResource.java:528)[269:org.apache.wicket.core:6.5.0]
  at org.apache.wicket.markup.html.link.ResourceLink.
 onResourceRequested(ResourceLink.java:115)[269:org.apache.wicket.core:6.5.0]
  ... 54 more

 I.e. this is a request to a IResource, not a page.
 Wicket doesn't know anything about the page that created the link to the 
 resource at this point.

 Move your i18n stuff in MyApplication.properties.xml and it should work in 
 all cases.



 On Wed, Apr 24, 2013 at 11:49 AM, christoph.ma...@t-systems.com wrote:

 It is in the same package as the class


 src/main/java/smw/console/frontend/protocol/ProtokollierungPage.prope
 r
 ties.xml

 The classname is ProtokollierungPage.java

 Does the ResourceModel load this properties automatically? Why does
 it show the String from the properties at the Tablehead but throw an
 exception while exporting the data?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 – 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Mittwoch, 24. April 2013 10:33
 An: users@wicket.apache.org
 Betreff: Re: AW: AW: DefaultDataTable will not render 

DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Christoph.Manig
Hello,

I have a Problem with the DefaultDataTable and the Export csv. Here is my code:

DefaultDataTableProtocolSearchData,String searchTable = new 
DefaultDataTableProtocolSearchData, String(searchTable,getTableHead(),new 
ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
ModelString(Export to),new ModelString(export)).addDataExporter(new 
CSVDataExporter()));
searchTable.setOutputMarkupId(true);

add(searchTable);

This table will be replaced by submitting an AjaxFallbackButton, so that the 
DataProvider gets an list with some data and not an empty list. My Problem is 
that the bottomtoolbar for exporting a csv ist not rendered. The 
no-records-found toolbar will be rendered.

What is the problem here? Can anyone please help me?



Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com





AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Christoph.Manig
Hello,

here is the code of onSubmit method of the AjaxFallbackButton.

FormFilterCreatorProtocol protocollSearchForm = new 
FormFilterCreatorProtocol(protokollierungSucheForm, new 
CompoundPropertyModelFilterCreatorProtocol(new FilterCreatorProtocol()));
protocollSearchForm.add(new 
AjaxFallbackButton(submit,protocollSearchForm) {

@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
target.add(feedback);
FilterCreatorProtocol filter = 
(FilterCreatorProtocol)form.getModelObject();

if(ConsoleDataHandlerImpl.getInstance().queryProtocolRowsByFilter(filter) = 
MAX_SEARCH_RESULTS){
ListProtocolRecord protocolData = 
ConsoleDataHandlerImpl.getInstance().queryProtocolDataWithSearchFilter(filter);

target.add(ProtokollierungPage.this.get(searchTable).replaceWith(
new 
DefaultDataTableProtocolRecord,String(searchTable,
getTableHead(),
new 
ProtocolDataSortDataProvider(protocolData),
100)));
}else{
error(ErrorMessage);
}


}
}) ;

Do you need some other informations?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Dienstag, 23. April 2013 15:16
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable will not render bottomtoolbar for export

Show us your #onSubmit(ART) ... formatted please.

Sven

On 04/23/2013 02:54 PM, christoph.ma...@t-systems.com wrote:
 Hello,

 I have a Problem with the DefaultDataTable and the Export csv. Here is my 
 code:

 DefaultDataTableProtocolSearchData,String searchTable = new 
 DefaultDataTableProtocolSearchData, 
 String(searchTable,getTableHead(),new 
 ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
 searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
 ModelString(Export to),new 
 ModelString(export)).addDataExporter(new CSVDataExporter())); 
 searchTable.setOutputMarkupId(true);

 add(searchTable);

 This table will be replaced by submitting an AjaxFallbackButton, so that the 
 DataProvider gets an list with some data and not an empty list. My Problem is 
 that the bottomtoolbar for exporting a csv ist not rendered. The 
 no-records-found toolbar will be rendered.

 What is the problem here? Can anyone please help me?



 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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


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



AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Christoph.Manig
Ok. Thanks for your answer.

Here are my columns:
ListIColumnProtocolRecord,String columns = new 
ArrayListIColumnProtocolRecord,String();
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.retentionID), retentionId, retentionId));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.protocolID), protocolId, protocolId){
@Override
public void populateItem(ItemICellPopulatorProtocolRecord 
cellItem, String componentId, IModelProtocolRecord model)
{
cellItem.add(new ActionPanel(componentId, model));
}
});
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.externalID), externalId, externalId));
columns.add(new DatePropertyColumn(new 
ResourceModel(protocolRecord.eventTimestamp),eventTimestamp,eventTimestamp,dd.MM.
 HH:mm:ss));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.integrationService),integrationService,integrationService));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.endpoint),endpoint,endpoint));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.endpointType),endpointType,endpointType));
columns.add(new PropertyColumnProtocolRecord, String(new 
ResourceModel(protocolRecord.messageStatus),messageStatus.description,messageStatus.description));

How can I make them exportable? What are exportable columns in Wicket?

At first the dataTable is empty, so the BottomToolbar shouldn't be rendered. 
That's right. But when it is replaced by an Ajaxbutton and there is some data 
in the dataTable the Bottomtoolbar isn't rendered.Why? Because of the 
non-exportable columns?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Jesse Long [mailto:j...@unknown.za.net] 
Gesendet: Dienstag, 23. April 2013 15:43
An: users@wicket.apache.org
Betreff: Re: DefaultDataTable will not render bottomtoolbar for export

Hi Christoph,

ExportToolbar#isVisible() is not visible in any of these conditions:

* There are no rows displayed (this is your case)
* There are no data exporters (this is not your case)
* There are no exportable columns (I dont know if this is your case)

If you want the export toolbar to be visible when there are no rows, please 
overload ExportToolbar#isVisible(), or file a Jira issue if you want that 
configurable.

Thanks,
Jesse


On 23/04/2013 14:54, christoph.ma...@t-systems.com wrote:
 Hello,

 I have a Problem with the DefaultDataTable and the Export csv. Here is my 
 code:

 DefaultDataTableProtocolSearchData,String searchTable = new 
 DefaultDataTableProtocolSearchData, 
 String(searchTable,getTableHead(),new 
 ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
 searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
 ModelString(Export to),new 
 ModelString(export)).addDataExporter(new CSVDataExporter())); 
 searchTable.setOutputMarkupId(true);

 add(searchTable);

 This table will be replaced by submitting an AjaxFallbackButton, so that the 
 DataProvider gets an list with some data and not an empty list. My Problem is 
 that the bottomtoolbar for exporting a csv ist not rendered. The 
 no-records-found toolbar will be rendered.

 What is the problem here? Can anyone please help me?



 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com






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


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



AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Christoph.Manig
But I added the Toolbar at the initial call oft he Webpage. Then I can submit 
the AjaxButton and some data is in the table. Why should I add the 
bottomtoolbar again? The no-record-found-toolbar will be rendered after the 
Ajaxcall. Why not the Exporttoolbar?


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com


-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net] 
Gesendet: Dienstag, 23. April 2013 15:44
An: users@wicket.apache.org
Betreff: Re: AW: DefaultDataTable will not render bottomtoolbar for export

Your replaced DataTable doesn't have a bottomtoolbar:

 
target.add(ProtokollierungPage.this.get(searchTable).replaceWith(
 new 
DefaultDataTableProtocolRecord,String(searchTable,
 getTableHead(),
 new 
ProtocolDataSortDataProvider(protocolData),
 100)));


Sven


On 04/23/2013 03:29 PM, christoph.ma...@t-systems.com wrote:
 Hello,

 here is the code of onSubmit method of the AjaxFallbackButton.

 FormFilterCreatorProtocol protocollSearchForm = new 
 FormFilterCreatorProtocol(protokollierungSucheForm, new 
 CompoundPropertyModelFilterCreatorProtocol(new FilterCreatorProtocol()));
  protocollSearchForm.add(new 
 AjaxFallbackButton(submit,protocollSearchForm) {

  @Override
  public void onSubmit(AjaxRequestTarget target, Form form) {
  target.add(feedback);
  FilterCreatorProtocol filter = 
 (FilterCreatorProtocol)form.getModelObject();
  
 if(ConsoleDataHandlerImpl.getInstance().queryProtocolRowsByFilter(filter) = 
 MAX_SEARCH_RESULTS){
  ListProtocolRecord protocolData = 
 ConsoleDataHandlerImpl.getInstance().queryProtocolDataWithSearchFilter(filter);
  
 target.add(ProtokollierungPage.this.get(searchTable).replaceWith(
  new 
 DefaultDataTableProtocolRecord,String(searchTable,
  getTableHead(),
  new 
 ProtocolDataSortDataProvider(protocolData),
  100)));
  }else{
  error(ErrorMessage);
  }


  }
  }) ;

 Do you need some other informations?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.: +49 (0) 351 / 8152 - 188
 fax:  +49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com

 -Ursprüngliche Nachricht-
 Von: Sven Meier [mailto:s...@meiers.net]
 Gesendet: Dienstag, 23. April 2013 15:16
 An: users@wicket.apache.org
 Betreff: Re: DefaultDataTable will not render bottomtoolbar for export

 Show us your #onSubmit(ART) ... formatted please.

 Sven

 On 04/23/2013 02:54 PM, christoph.ma...@t-systems.com wrote:
 Hello,

 I have a Problem with the DefaultDataTable and the Export csv. Here is my 
 code:

 DefaultDataTableProtocolSearchData,String searchTable = new 
 DefaultDataTableProtocolSearchData,
 String(searchTable,getTableHead(),new
 ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
 searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
 ModelString(Export to),new 
 ModelString(export)).addDataExporter(new CSVDataExporter())); 
 searchTable.setOutputMarkupId(true);

 add(searchTable);

 This table will be replaced by submitting an AjaxFallbackButton, so that the 
 DataProvider gets an list with some data and not an empty list. My Problem 
 is that the bottomtoolbar for exporting a csv ist not rendered. The 
 no-records-found toolbar will be rendered.

 What is the problem here? Can anyone please help me?



 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com





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


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



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



AW: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Christoph.Manig
Hello,

now I see the Problem. Thank you for your help and sorry for my blindness.


Mit freundlichen Grüßen
Christoph Manig
Systems Engineer

T-Systems International GmbH
Systems Integration - SC Travel, Transport  Logistics
Hoyerswerdaer Str. 18
01099 Dresden 
tel.:   +49 (0) 351 / 8152 - 188
fax:+49 (0) 351 / 8152 - 209
email:  christoph.ma...@t-systems.com

-Ursprüngliche Nachricht-
Von: Jesse Long [mailto:j...@unknown.za.net] 
Gesendet: Dienstag, 23. April 2013 15:57
An: users@wicket.apache.org
Betreff: Re: AW: DefaultDataTable will not render bottomtoolbar for export

Hi Christoph,

PropertyColumns are already exportable. Exportable means implements 
IExportableColumn.

Sven identified that the replaced data table does not have the export toolbar 
added to it. This is why it does not display after being replaced.

Cheers,
Jesse

On 23/04/2013 15:49, christoph.ma...@t-systems.com wrote:
 Ok. Thanks for your answer.

 Here are my columns:
 ListIColumnProtocolRecord,String columns = new 
 ArrayListIColumnProtocolRecord,String();
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.retentionID), retentionId, retentionId)); 
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.protocolID), protocolId, protocolId){
  @Override
  public void populateItem(ItemICellPopulatorProtocolRecord 
 cellItem, String componentId, IModelProtocolRecord model)
  {
  cellItem.add(new ActionPanel(componentId, model));
  }
  });
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.externalID), externalId, 
 externalId)); columns.add(new DatePropertyColumn(new 
 ResourceModel(protocolRecord.eventTimestamp),eventTimestamp,event
 Timestamp,dd.MM. HH:mm:ss)); columns.add(new 
 PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.integrationService),integrationService
 ,integrationService)); columns.add(new 
 PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.endpoint),endpoint,endpoint));
 columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.endpointType),endpointType,endpointT
 ype)); columns.add(new PropertyColumnProtocolRecord, String(new 
 ResourceModel(protocolRecord.messageStatus),messageStatus.descripti
 on,messageStatus.description));

 How can I make them exportable? What are exportable columns in Wicket?

 At first the dataTable is empty, so the BottomToolbar shouldn't be rendered. 
 That's right. But when it is replaced by an Ajaxbutton and there is some data 
 in the dataTable the Bottomtoolbar isn't rendered.Why? Because of the 
 non-exportable columns?


 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.: +49 (0) 351 / 8152 - 188
 fax:  +49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com


 -Ursprüngliche Nachricht-
 Von: Jesse Long [mailto:j...@unknown.za.net]
 Gesendet: Dienstag, 23. April 2013 15:43
 An: users@wicket.apache.org
 Betreff: Re: DefaultDataTable will not render bottomtoolbar for export

 Hi Christoph,

 ExportToolbar#isVisible() is not visible in any of these conditions:

 * There are no rows displayed (this is your case)
 * There are no data exporters (this is not your case)
 * There are no exportable columns (I dont know if this is your case)

 If you want the export toolbar to be visible when there are no rows, please 
 overload ExportToolbar#isVisible(), or file a Jira issue if you want that 
 configurable.

 Thanks,
 Jesse


 On 23/04/2013 14:54, christoph.ma...@t-systems.com wrote:
 Hello,

 I have a Problem with the DefaultDataTable and the Export csv. Here is my 
 code:

 DefaultDataTableProtocolSearchData,String searchTable = new 
 DefaultDataTableProtocolSearchData,
 String(searchTable,getTableHead(),new
 ProtocolDataSortDataProvider(Collections.EMPTY_LIST),10);
 searchTable.addBottomToolbar(new ExportToolbar(searchTable,new 
 ModelString(Export to),new 
 ModelString(export)).addDataExporter(new CSVDataExporter())); 
 searchTable.setOutputMarkupId(true);

 add(searchTable);

 This table will be replaced by submitting an AjaxFallbackButton, so that the 
 DataProvider gets an list with some data and not an empty list. My Problem 
 is that the bottomtoolbar for exporting a csv ist not rendered. The 
 no-records-found toolbar will be rendered.

 What is the problem here? Can anyone please help me?



 Mit freundlichen Grüßen
 Christoph Manig
 Systems Engineer

 T-Systems International GmbH
 Systems Integration - SC Travel, Transport  Logistics Hoyerswerdaer 
 Str. 18
 01099 Dresden
 tel.:   +49 (0) 351 / 8152 - 188
 fax:+49 (0) 351 / 8152 - 209
 email:  christoph.ma...@t-systems.com





 -
 To