Re: How to manage StalePageException

2015-02-18 Thread dpmihai
Can someone confirm if this:

 if (e instanceof StalePageException) {
return super.onException(cycle, e);
 }

is the right way to let StalePageException be handled by wicket?

Is there a problem if the page has PageParameters? 

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

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



How to manage StalePageException

2015-02-18 Thread dpmihai
Hi.

I have a WebPage which gives me a StalePageException when more requests are
made to it at the same time by same user's page, every one with a different
PageParameters object. I also have an AbstractRequestCycleListener with an
onException method in my application.

I read about StalePageException in this posts:
http://apache-wicket.1842946.n4.nabble.com/StalePageException-handling-issue-td4579247.html
and
http://apache-wicket.1842946.n4.nabble.com/Marker-interface-for-quot-internal-quot-exceptions-td4666099.html#a4666100

As I understand by default Wicket recreates the page when StalePageException
occurs.
It wont recreate the page only if you handle this exception yourself in
IRequestCycleListener#onException().

So my question is how to ignore StalePageException in my code?

 I tried:

public IRequestHandler onException(RequestCycle cycle, 
Exception e) {   

if (e instanceof StalePageException) {
return super.onException(cycle, e);
}

}

and even return null

But know it complains page parameters are not sent:

 Can't instantiate page using constructor 'public ...
(org.apache.wicket.request.mapper.parameter.PageParameters)' and argument
''.

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

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



RE: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
In Wicket 5 it was as easy as using br tags inside summary String.

In Wicket 6 this simple way does not work anymore. Why?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664234.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread dpmihai
Thanks.

I did the following:

@Override
public Component getHeader(final String id, final Component parent, final
IWizard wizard) {
Component c = super.getHeader(id, parent, wizard);
c.get(summary).setEscapeModelStrings(false);
return c;
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664241.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket site on Android phone

2013-11-14 Thread dpmihai
I also recently find that I need to tweak Wicket Palette component look,
because on Android a multiple select will not show all the options. You have
to click it for selection and after that you can see only the first selected
item no matter how big is the height for select markup. I have written more
about it  here
http://programmingbb.blogspot.ro/2013/11/html-multiple-select-and-android.html
 
.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-site-on-Android-phone-tp2966635p4662441.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket site on Android phone

2013-11-08 Thread dpmihai
I also tried to make a desktop Wicket application to look good on Android
phone.

1. Depending on application there is a big possibility to not be able to
show all the information. For me, it was ok to use css media query to have a
different css for Android phone. I had to tweak with fonts size and hide
some markups.

2. Modal Windows are a big pain for me. I had to make them show near the top
with fixed position like:

.wicket-modal { 
position: fixed !important; 
top:5% !important;  
}

Without this, on Webkit browser if you scroll down to click some link which
opens a modal, you even won't be able to see the modal (depends on how much
scrolling you need).

I cannot drag a modal on screen (neither in Webkit browser nor in Chrome).
Only the background is dragged.

So I guess, if you can avoid modals, then do it. If you cannot avoid them,
then keep them as small as possible.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-site-on-Android-phone-tp2966635p4662234.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 6: LinkResource with a dynamic resource

2013-03-14 Thread dpmihai
Hi.

I want to have a table with a Link PropertyColumn which contains a
LinkResource. When user clicks on the link I want to be able to pass the row
model to resource first and then have the resource loaded.

I created a ResourceLinkPropertyColumn class like:


public class ResourceLinkPropertyColumnT extends PropertyColumnT, String
{

private IModel labelModel;
private ByteArrayResource resource;

public ResourceLinkPropertyColumn(IModel displayModel, IModel
labelModel, ByteArrayResource resource) {
super(displayModel, null);
this.labelModel = labelModel;
this.resource = resource;
}

 @Override
 public void populateItem(Item item, String componentId, IModel model) {
item.add(new LinkPanel(item, componentId, model));
 }

 protected void onDone(IModelT rowModel) {
 }

 public ByteArrayResource getResource() {
return resource;
 }

 public class LinkPanel extends Panel { 

public LinkPanel(final Item item, final String componentId, 
final IModel
model) {
super(componentId);

ResourceLink link = new ResourceLink(link, resource) {

@Override
public void onClick() {
onDone(model);
super.onClick();
}

protected void onComponentTag(ComponentTag 
componentTag) {
 super.onComponentTag(componentTag);
 componentTag.put(target, _blank);
}


};
add(link);

IModel tmpLabelModel = labelModel;
if (labelModel == null) {
tmpLabelModel = getDataModel(model);
}

link.add(new Label(label, tmpLabelModel));
}
}
}

When I create my data table I add my column like:

columns.add(new ResourceLinkPropertyColumnUser(new
ModelString(Generate), new ModelString(Generate),new
MyByteArrayResource()) {
protected void onDone(IModelUser rowModel) {  
final MyObject object = rowModel.getObject();   

((MyByteArrayResource)getResource()).setMyObject(object);
}
});   

The problem is that when I click the link the resource is loaded first and
then my onDone method is called.
Is there any possibility to pass the model to the resource before it is
loaded?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-LinkResource-with-a-dynamic-resource-tp4657238.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6: LinkResource with a dynamic resource

2013-03-14 Thread dpmihai
The only solution I have is to create my own class ResourceLink with a
method:

public void beforeResourceRequested() {}  (here I will set rowModel to
my resource)


and use it inside onResourceRequested:

/**
 * @see org.apache.wicket.IResourceListener#onResourceRequested()
 */
@Override
public final void onResourceRequested()
{
beforeResourceRequested();
Attributes a = new Attributes(RequestCycle.get().getRequest(),
RequestCycle.get()
.getResponse(), null);
resource.respond(a);
onLinkClicked();
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-LinkResource-with-a-dynamic-resource-tp4657238p4657239.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 : Displaying content in an iframe

2013-03-13 Thread dpmihai
Thank you Ernesto.

I was doing respond(attributes); but inside resource onResourceRequested
instead  to do inside the frame :)
My mistake.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Displaying-content-in-an-iframe-tp4657207p4657214.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How to repaint a component on browser resize?

2013-01-17 Thread dpmihai
I understand.

I wondered if it is possible that to have a behavior inside my panel and
inside renderOnLoadJavaScript (from renderHead) to call a javascript like :

wicketAjaxGet(' + getCallbackUrl()  + width=...'

I have to get the width from javascript somehow with a function, and I have
no idea where to call it.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-repaint-a-component-on-browser-resize-tp4655456p4655462.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2013-01-11 Thread dpmihai
As the bug link states you have  to create date object by yourself. It's ugly
as a witch I know. But for wicket 1.5 I had no other solution. I do not know
how DateField and DateTimeField perform in wicket 1.6.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4655289.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Mount Page

2012-10-25 Thread dpmihai
Yes. I was too tired not to think about getApplication() :)

I also saw that for a 

mountPage(/myPage, MYPage.class) 

to make unmount to work I have to do

unmount(myPage)

without the starting /.

Is this the normal behavior? I find it a bit misleading why the unmount does
not work with a starting /.



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

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



Re: Mount Page

2012-10-25 Thread dpmihai
Added here:

https://issues.apache.org/jira/browse/WICKET-4836



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

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



Re: problem with IResourceListener

2012-09-20 Thread dpmihai
The strange thing is that only when the browser is just opened we see this
behavior. It is not deterministic and sometimes everything is ok from start.
Anyway, after a browser refresh, everything is ok. Also if we keep the
browser open, and new tabs with the iframes are opened, these are also ok.

So this problem seems to be related to iframe cache and some relation with
flash. We do not have any hard clue yet.

The only work-around we found was to do an auto-refresh  for the page that
contains iframes at first load, using javascript.

Although the url generated like 0-IResourceListener-widget-renderer-chart
we saw that for IE is always the same starting with 0, and the iframes are
showing the wright content. In Firefox this number  gets incremented.



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

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



Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-05 Thread dpmihai
see this:
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-td4585991.html#a4586026



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Migration-to-1-5-X-is-not-a-valid-Serializable-tp4651757p4651764.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: after migration to 1.5 I get java.lang.IllegalStateException: Header was already written to response!

2012-08-24 Thread dpmihai
We also have this problem after migrating to 1.5. Everything seems to work
ok, but the logs get full with this error. We did not find a solution to
this.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/after-migration-to-1-5-I-get-java-lang-IllegalStateException-Header-was-already-written-to-response-tp4651455p4651475.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 1.4 newSession id

2012-07-03 Thread dpmihai
In my WebApplication is there possible to know the session id inside
newSession method?

public Session newSession(Request request, Response response) {
  Session session = super.newSession(request, response);
  ...
  String id = session.getId(); // returns null;
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.4 newSession id

2012-07-03 Thread dpmihai
Thanks a lot.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337p4650339.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: setOutputMarkupPlaceholderTag not working to render panel with setvisible false...

2012-07-02 Thread dpmihai
You make you panel invisible (first time when you create it), but where are
you make it visible?

The idea is to override 

public boolean isVisible() {
return !commentDomainList().isEmpty();
}

in your panel.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-not-working-to-render-panel-with-setvisible-false-tp4650313p4650318.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
Hi.

I have a wicket 1.4 application with a AuthenticatedWebSession with
authenticate(String username, String password) method. I use annotations to
allow for seeing some components : @AuthorizeAction(action = Action.RENDER,
roles = Roles.ADMIN) for example.

I want when user logs in to save a cookie and use that cookie to keep user
logged in for ever until he logs out.

I have my custom LoginPanel with user, password and remember checkbox. In
LoginPanel I use a LoginValidator like:
@Override
protected void onInitialize() {
super.onInitialize();
getForm().add(new LoginValidator(username, password, remember));
}

and in my LoginValidator, after a successful login, I do the following:

 if (remember.getConvertedInput()) {
HttpServletResponse servletResponse = ((BufferedWebResponse) 
RequestCycle.get().getResponse()).getHttpServletResponse();
Cookie c = new Cookie(userid, username);
servletResponse.addCookie(c);
 }  

My cookie is created. But I do not know WHERE to read from
HttpServletRequest to see that a cookie exists and automatically login the
user if session expired. Any clues?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-Remember-Login-WIth-Cookie-tp4650029.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
Hi.

My problem is not how to read the cookie. I do not know WHERE to read it,
because my authentication is done from LoginPanel / LoginValidator, and I do
not want my LoginPanel to be shown anymore.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-Remember-Login-WIth-Cookie-tp4650029p4650032.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread dpmihai
I made it by reading cookies in my AuthenticatedWebApplication in

@Override   
public Session newSession(Request request, Response response) {

Session session = super.newSession(request, response);
HttpServletRequest servletRequest = ((ServletWebRequest)
request).getHttpServletRequest();
Cookie[] cookies = servletRequest.getCookies();
.
}

and in the case a remember is needed i call sign-in.

PS. I know about SignInPanel, but I wanted a custom solution.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-Remember-Login-WIth-Cookie-tp4650029p4650038.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-23 Thread dpmihai
I used the workaround with position: static !important. I also had to put a
width with the calendar container (otherwise it looks ugly)

.yui-calcontainer {
width: 140px;
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4649479.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
Any news about this? Wicket 1.5.5 has the same problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642684.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2012-05-17 Thread dpmihai
As I see in css :

div class=w_content_2
   div class=w_content_3
   div class=w_content
div id=_wicket_window_3 class=w_content_container
style=overflow: auto;

because there is a style overflow: auto everything that is inside the
dialog will be scrolled.

I wonder how can put some components over the dialog, because z-index does
not help either.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642699.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Hi.

I have a code that was working in 1.4 but it shows an error message in
wicket 1.5.

I have a TextField, an AjaxSubmitLink and a ListMultipleChoice. When I click
the submit link I want to add the value from text field to the list.

ArrayListSerializable list = new ArrayListSerializable();
list.add(1);
list.add(2);
list.add(3);
listModel = new ModelArrayListlt;Serializable(list);

Form form = new Form(form);

final FeedbackPanel feedbackPanel = new FeedbackPanel(feedback);
feedbackPanel.setOutputMarkupId(true);
form.add(feedbackPanel);

final TextFieldString textField = new TextFieldString(txtValue, new
PropertyModelString(this, objectModel));

final ModelArrayListlt;Serializable choiceModel = new
ModelArrayListlt;Serializable();
final ListMultipleChoice listChoice = new ListMultipleChoice(listChoice,
choiceModel, listModel);
listChoice.setMaxRows(100);
listChoice.setOutputMarkupId(true);   

AjaxSubmitLink addLink = new AjaxSubmitLink(addElement, form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {   
if (objectModel == null) {
return;
}
ArrayListSerializable model = listModel.getObject();
if (objectModel instanceof String) {
try {
if (!model.contains(objectModel)) {
model.add(objectModel);
}
} catch (NumberFormatException ex) {
error(Invalid value type.);
}
} 

if (target != null) {
target.add(listChoice);
}
}

@Override
protected void onError(AjaxRequestTarget target, Form? form) {
target.add(form);
}

};

form.add(textField);
form.add(listChoice);
form.add(addLink);   
add(form);

In Wicket 1.5 I get : '4' is not a valid Serializable.
I have to use Serializable because I have more components text field, date
field to take the value.
I I use String instead of Serializable, it works.

What is wrong in wicket 1,5? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-tp4585991p4585991.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
I forgot to say my object model from TextField is

private Serializable objectModel;

I do not understand how a String is not Serializable?

This code worked on wicket 1.4 without problems. I think something is done
different in wicket framework.

Can you tell me what class throws this error message?

A code like you suggested :
ArrayList? extends Serializable list = new ArrayListSerializable();
list.add(1);

doesn't even compile.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-tp4585991p4586221.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Yes Decebal. You are right. If I have a TextField of some type but my model
is a generic one (in my case objectModel is of type Serializable), I have to
overwrite getConverter method like:

final TextFieldString textField = new TextFieldString(txtValue,
new PropertyModelString(this, objectModel)) {
@Override
public C IConverterC getConverter(ClassC type) {
return new AbstractConverter() {

public Object convertToObject(String 
value, Locale locale) {
return value;
}

@Override
protected Class getTargetType() {
return String.class;
}

};
}
};

This was not necessary in wicket 1.4. Something was changed in converters
area in wicket 1.5

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-tp4585991p4586325.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
A DateTimeField does not need the converter to populate a Serializable model:

final DateTimeField txtTime = new DateTimeField(txtTime,
new PropertyModelDate(this, objectModel));

But there are other bugs with it
(https://issues.apache.org/jira/browse/WICKET-4496), so if something will be
done here maybe it will also be necessary to add the converter.

But this is some redundant code. Maybe something will be done in the future.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-tp4585991p4586363.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-18 Thread dpmihai
I saw that the resolution for this
bug(https://issues.apache.org/jira/browse/WICKET-4496) is Not a problem
using getDefaultModelObject().

But it remains a question. If I have a DatetimeField and I want an
AjaxFormComponentUpdatingBehavior so that if I click the button, or if I
change the hours or minutes field, to see the model of my current date, I
was done like this in wicket 1.4 (and in wicket 1.5 date is null):

private Date date; 

final DateTimeField txtDate = new DateTimeField(txtDate, new
PropertyModel(this, date)) {
@Override
protected DateTextField 
newDateTextField(java.lang.String id,
PropertyModel dateFieldModel) {
final DateTextField f = 
super.newDateTextField(id, dateFieldModel);
f.add(new 
AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void 
onUpdate(AjaxRequestTarget target) {
System.out.println(*** date= 
+ f.getDefaultModelObject());
}
});
return f;
}
};
final Component HOUR = txtDate.get(hours);
HOUR.add(new AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) { 

System.out.println(*** hours= + 
HOUR.getDefaultModelObject()); // ok
as sugested
System.out.println(*** date= + date);  //
null in wicket 1.5
}
});
final Component MINUTES = txtDate.get(minutes);
MINUTES.add(new AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(*** minutes= + 
MINUTES.getDefaultModelObject()); //
ok as sugested
System.out.println(*** date= + date);  //
null in wicket 1.5
}
});
add(txtDate);

Using getDefaultModelObject() I can get hours and minutes field. But how to
get the entire date? Do you have any sugestions?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4566846.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
The class I put here was the full code:

import java.util.Date;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.datetime.markup.html.form.DateTextField;
import org.apache.wicket.extensions.yui.calendar.DateField;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.PropertyModel;

public class DatePage extends WebPage {

private Date date;

public DatePage() {
super();

final DateField txtDate = new DateField(txtDate, new 
PropertyModel(this,
date)) {
@Override
protected DateTextField 
newDateTextField(java.lang.String id,
PropertyModel dateFieldModel) {
DateTextField f = super.newDateTextField(id, 
dateFieldModel);
f.add(createAjaxBehavior());
return f;
}
};
add(txtDate);
}

private AjaxFormComponentUpdatingBehavior createAjaxBehavior() {
return new AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(*** date= + date);
}

};
}
}

and DatePage.html:

!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot;
quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot;
html xmlns=http://www.w3.org/1999/xhtml;
 
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.5-strict.dtd/; 
  xml:lang=en 
  lang=en

head
meta http-equiv=content-type content=text/html; 
charset=utf-8/
/head

body  
div wicket:id=txtDate class=left/ 

/body
/html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554015.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
import java.util.Date;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.datetime.markup.html.form.DateTextField;
import org.apache.wicket.extensions.yui.calendar.DateField;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;

public class DatePage extends WebPage {

private IModelDate date;

public DatePage() {
super();
add(new TestForm(form, date = new ModelDate(new Date(;
}

private class TestForm extends Form {

public TestForm(String form, final IModelDate dateModel) {
super(form, dateModel);

DateField txtDate = new DateField(txtDate, dateModel) 
{

@Override
protected DateTextField
newDateTextField(java.lang.String id,   PropertyModel dateFieldModel) {
DateTextField dateTextField =
super.newDateTextField(id, dateFieldModel);

AjaxFormComponentUpdatingBehavior
ajaxFormComponentUpdatingBehavior = new
AjaxFormComponentUpdatingBehavior(onChange) {
@Override
protected void
onUpdate(AjaxRequestTarget target) {
   
System.out.println(dateModel :[ + dateModel + ]);
}
};

   
dateTextField.add(ajaxFormComponentUpdatingBehavior);
return dateTextField;
}
};

add( txtDate );
}
} 
}

with DatePage.html:

!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot;
quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot;
html xmlns=http://www.w3.org/1999/xhtml;
 
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.5-strict.dtd/; 
  xml:lang=en 
  lang=en

head
meta http-equiv=content-type content=text/html; 
charset=utf-8/
/head

body  
form wicket:id=form
   div wicket:id=txtDate class=left/  
/form 
/body
/html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554031.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
This workaround works. But it seems DateField and DateTimeField are buggy in
Wicket 1.5.5.

So the only solution for now is to create my new components DateField and
DateTimeField.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554145.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
For a DateField and a DateTimeField in the onUpdate method for an
AjaxFormComponentUpdatingBehavior , the model is never updated, it rests
with the initial date selection.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554163.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-13 Thread dpmihai
Here is the link

https://issues.apache.org/jira/browse/WICKET-4496

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554218.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



AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Hi.

I have a set of components  C (anything you want Label, DateField,
TextField, DropDownChoice ...)
and another ChechBox inside a ListItem.  I want to use the checkbox for
enabling / disabling of all components C (when checkbox is selected I want
to disable all C components):

final CheckBox dynamicChkBox = new CheckBox(dynamicChkBox,
dynamicModel);
dynamicChkBox.add(new AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget target) {
  Iterator it = item.iterator();  // item is my ListItem
  while (it.hasNext()) {
Component component = (Component) it.next();
component.setEnabled(!(Boolean)
dynamicModel.getObject());
if ((target != null) 
!component.getId().startsWith(dynamic)) {
target.add(component);
}
  }
}
});

Initially dynamic check box is not selected. I select the checkbox and my
set of components C becomes disabled as desired, but then if I deselect the
chechbox  I get an error:

org.apache.wicket.request.handler.ListenerInvocationNotAllowedException:
Behavior rejected interface invocation. Component: [CheckBox [Component id =
dynamicChkBox]] Behavior: com.asf.nextserver.web.report.NextRuntimePanel$1
{event='onchange'} Listener: [RequestListenerInterface
name=IBehaviorListener, method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
.

I noticed that when I first select the checkbox even if the components are
disabled Wicket Ajax Debug shows an error like : 
ERROR: Wicket.Ajax.Call.processComponent: Component with id [[txtTime145]]
was not found while trying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.

I do not know why, because I put setOutputMarkupId(true) on all my
components C.

Is there somtehing I can do?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-to-enable-disable-a-component-tp4551288p4551288.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AjaxFormComponentUpdatingBehavior to enable/disable a component

2012-04-12 Thread dpmihai
Thanks a lot. I did not see it.

Also my first error in Wicket Ajax Debug was because I had some invisible
components in my ListItem. 
So after I checked also for visibility everything was ok.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-to-enable-disable-a-component-tp4551288p4551309.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



DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
I created a simple page with a DateField and an
AjaxFormComponentUpdatingBehavior where I want to read the model. The
following code does work in Wicket 1.4.16 (prints the selected date), but
does not in Wicket 1.5.5 (prints null):

public class DatePage extends WebPage {

private Date date;

public DatePage() {
super();

final DateField txtDate = new DateField(txtDate, new 
PropertyModel(this,
date)) {
@Override
protected DateTextField 
newDateTextField(java.lang.String id,
PropertyModel dateFieldModel) {
DateTextField f = super.newDateTextField(id, 
dateFieldModel);
f.add(createAjaxBehavior());
return f;
}
};
add(txtDate);
}

private AjaxFormComponentUpdatingBehavior createAjaxBehavior() {
return new AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(*** date= + date);
}

};
}

}

Does anyone know something about this?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4551607.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateField and AjaxFormComponentUpdatingBehavior in wicket 1.5.5

2012-04-12 Thread dpmihai
It does not matter. Your code (DateTextField instead DateField) does not work
either in Wicket 1.5.5 It prints just the current date no matter what date I
choose. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4552082.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



ContextImage and tooltip behavior

2012-04-10 Thread dpmihai
I want to add a tooltip behavior to a ContextImage in Wicket 1.5.5.

public class SimpleTooltipBehavior extends Behavior{

private String tooltip;

public SimpleTooltipBehavior(String tooltip) {
super();
this.tooltip = tooltip;
}

@Override
public void onComponentTag(Component component, ComponentTag tag) {
super.onComponentTag(component, tag);
tag.addBehavior(AttributeModifier.replace(alt, tooltip));
tag.addBehavior(AttributeModifier.replace(title, tooltip));
}   
}

This does not work. The modifiers are not added to the markup.

But this works:

public class SimpleTooltipBehavior extends Behavior{

private String tooltip;

public SimpleTooltipBehavior(String tooltip) {
super();
this.tooltip = tooltip;
}

@Override
public void onComponentTag(Component component, ComponentTag tag) {
super.onComponentTag(component, tag);
tag.getAttributes().put(alt, tooltip);
tag.getAttributes().put(title, tooltip);
}

}

What is wrong with the first code?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ContextImage-and-tooltip-behavior-tp4544817p4544817.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I have a panel like :

public class IntervalFieldPanel extends Panel {

private TextFieldString intervalText;
  
public IntervalFieldPanel(String id, final IModel model) {
super(id, model);

...
intervalText = new TextFieldString(intervalText, model);
...

}
}

and I use it inside another panel like :

public class DailyJobPanel extends Panel {
private IntervalFieldPanel hoursPanel;
private IntervalFieldPanel daysPanel;

}

In wicket 1.4 generated markup ids for my text field are like:
input id=idb3 ... /
input id=idb6 ... /

But in wicket 1.5.5 generated markup ids for my text field are the same (it
is the wicket:id):
input id=intervalText ... /

which generates selections and submits problems. 

Is there a known bug?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-markup-id-for-a-reused-TextField-is-the-same-tp4542607p4542607.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
I have an application in wicket 1.4 with a wizard. Inside a WizardStep I have
a simple DropDownChoice with an AjaxFormComponentUpdatingBehavior where
inside onUpdate method i get the model object

 protected void onUpdate(AjaxRequestTarget target) {
String type = choice.getModelObject();
 ... 
 }
This works well.

But migrating to 1.5.5 makes this not working. The method is entered but the
model is always null.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542617.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
Did anyone see this?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542632.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I found the problem.

Inside html I also had the id like:

input wicket:id=intervalText id=intervalText ... /

In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not
overwritten by wicket.

So I removed it, and everything is ok.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-markup-id-for-a-reused-TextField-is-the-same-tp4542607p4542657.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
The problem was also the id inside html components. When we have both
wicket:id and id, in 1.5.5 id is not overwritten and no events are triggered
for that component.

I wonder why this was not put inside the migration guide to 1.5.

Could be possible to get some warning in case we have something like this:

label wicket:id=type for=choice[]/label
select wicket:id=choice name=choice id=choice/

and tell user that it's choice component in this case would not receive any
events?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542703.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



DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a
DateTimeFiled for all its components (text field, hours field, minutes
field).

I can do this only on date text field :

DateTimeField txtTime = new DateTimeField(txtTime, generalModel) {

 @Override
 protected DateTextField newDateTextField(String id, PropertyModel
dateFieldModel) {
DateTextField f = super.newDateTextField(id, 
dateFieldModel);   
f.add( new 
AjaxFormComponentUpdatingBehavior(onchange) {
@Override
   protected void onUpdate(AjaxRequestTarget
target) {...}
}); 
return f;
}
};

But TextField's for hours and minutes are private and do not have similar
methods to overwrite.
Does anyone use another approach instead of rewriting the hole class again?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTimeField-and-AjaxFormComponentUpdatingBehavior-tp3877416p3877416.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
Thank you. But I had to look inside the source to see the index of component
children:

dateTimeField.get(1).add(new AjaxFormComponentUpdatingBehavior() ...) 
dateTimeField.get(2).add(new AjaxFormComponentUpdatingBehavior() ...) 

Is DateTimeField.HOURS a constant defined in wicket 1.5? (I use 1.4.17)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTimeField-and-AjaxFormComponentUpdatingBehavior-tp3877416p3877501.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: FileUploadField selection event

2010-02-10 Thread dpmihai

Thanks for this tip.

I wonder if there is a possibility to create a behavior and add this to it.
I know that FileUploadField does not work with Ajax , so writing  an
AjaxFormComponentUpdatingBehavior does not work.
Does anyone know a solution to this?


ananthakumaran wrote:
 
 form
 input id=test type=file onchange=
 document.getElementById('secondBox').value =
 document.getElementById('test').value;
 /input
 input id=secondBox type=text /
 /form
 
 On Tue, Feb 9, 2010 at 3:22 AM, dpmihai dpmi...@yahoo.com wrote:
 

 What I really want is that after file selection automatically set the
 text
 of
 another TextField (inside my form) with a string derived from selected
 file
 name.





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




 --
 View this message in context:
 http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html
 Sent from the Wicket - User 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


 
 
 -- 
 
 Anantha Kumaran
 
 

-- 
View this message in context: 
http://old.nabble.com/FileUploadField-selection-event-tp27512780p27527078.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: FileUploadField selection event

2010-02-09 Thread dpmihai

What I really want is that after file selection automatically set the text of
another TextField (inside my form) with a string derived from selected file
name.





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




-- 
View this message in context: 
http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html
Sent from the Wicket - User 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