Re: How to localize options in drop down.

2013-10-09 Thread cosmindumy
Hello,
Thanks for answering.
They are in *.properties.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661761.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 localize options in drop down.

2013-10-09 Thread Sven Meier

Do you use unicode escapes or how do you enter unicode characters?

Sven

On 10/09/2013 10:23 AM, cosmindumy wrote:

Hello,
Thanks for answering.
They are in *.properties.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661761.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



Re: How to localize options in drop down.

2013-10-09 Thread cosmindumy
Yes,
Now they are unicode. Something like property.date=F\u00E4llig ab.
But I want to use native characters in propery file as is easier to handle.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.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 localize options in drop down.

2013-10-09 Thread Vit Rozkovec
If you would be using Eclipse IDE you can use this: 
http://propedit.sourceforge.jp/index_en.html


On 9.10.2013 10:45, cosmindumy wrote:

Yes,
Now they are unicode. Something like property.date=F\u00E4llig ab.
But I want to use native characters in propery file as is easier to handle.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.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



catch the paste event

2013-10-09 Thread lc991
hi,

i have a problem to get selection text after ctrl-v event. Is there a
method?

the AjaxEventBehavior paste work but now i don't know to get a text. 

In javascript the text is in the Event e object but in wicket i don't find
it.

this.add(new AjaxEventBehavior(paste) {
@Override
protected void onEvent(AjaxRequestTarget art) {

}
});

bye, lorenzo



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/catch-the-paste-event-tp4661765.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: catch the paste event

2013-10-09 Thread Martin Grigorov
Hi,

You need to use AjaxFormComponentSubmitBehavior(paste) and Wicket will
send the new value to the server.


On Wed, Oct 9, 2013 at 12:03 PM, lc991 lorenzoc...@live.it wrote:

 hi,

 i have a problem to get selection text after ctrl-v event. Is there a
 method?

 the AjaxEventBehavior paste work but now i don't know to get a text.

 In javascript the text is in the Event e object but in wicket i don't find
 it.

 this.add(new AjaxEventBehavior(paste) {
 @Override
 protected void onEvent(AjaxRequestTarget art) {

 }
 });

 bye, lorenzo



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/catch-the-paste-event-tp4661765.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 localize options in drop down.

2013-10-09 Thread Sven Meier

Well, use *.utf8.properties and then you can just use UTF-8 encoding:

  property.date=Fällig ab


Sven

On 10/09/2013 10:45 AM, cosmindumy wrote:

Yes,
Now they are unicode. Something like property.date=F\u00E4llig ab.
But I want to use native characters in propery file as is easier to handle.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tp4661751p4661763.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



Re: catch the paste event

2013-10-09 Thread lc991
I add event on the my form, but how to get a text to Event e object?

form.add(new AjaxFormSubmitBehavior(paste) {

@Override
public void onEvent(Component component, IEvent? event) {
super.onEvent(component, event); 
System.err.println(event.getSource().toString());
}

});



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/catch-the-paste-event-tp4661765p4661767.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 Page Expired in JMeter

2013-10-09 Thread rawe
My next step to solve this problem was to run some tests with The Grinder
Load Testing Tool.
A nice tool, but I got the same problem than in JMeter - Page Expired!
I use the Cookie Manager and tried also URL Rewriting (attaching the
jsessionid to each url) but without
success.
The problem occurs when changing the page inside my application
(setResponsePage).
I tested a Wicket application without page change, but with panel exchanges
- no problem!

rawe





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Page-Expired-in-JMeter-tp4661732p4661769.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: catch the paste event

2013-10-09 Thread Martin Grigorov
AjaxFormComponentSubmittingBehavior(paste)
And then override #onSubmit() method.
The pasted value will be reachable via getFormComponent().getModelObject()


On Wed, Oct 9, 2013 at 12:16 PM, lc991 lorenzoc...@live.it wrote:

 I add event on the my form, but how to get a text to Event e object?

 form.add(new AjaxFormSubmitBehavior(paste) {

 @Override
 public void onEvent(Component component, IEvent? event) {
 super.onEvent(component, event);
 System.err.println(event.getSource().toString());
 }

 });



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/catch-the-paste-event-tp4661765p4661767.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




AjaxEditableLabel as Filter in FormFilter?

2013-10-09 Thread Rodrigo Heffner
Hello,

In a FilterForm, I tried replace my TextFilteredPropertyColumn for an
AjaxEditableLabelFilteredPropertyColumn, but didn't have much success.
Has anyone tried something similar?

Thank you

-- 
Rodrigo H M Bezerra


Re: AjaxEditableLabel as Filter in FormFilter?

2013-10-09 Thread Sebastien
Hi,

I've got something like this, if it can helps...

public abstract class EditableTextFilteredPropertyColumnT, F, S extends
FilteredPropertyColumnT, S
{
private static final long serialVersionUID = 1L;

public EditableTextFilteredPropertyColumn(IModelString displayModel,
S sortProperty, String propertyExpression) {

super(displayModel, sortProperty, propertyExpression);
}

public EditableTextFilteredPropertyColumn(IModelString displayModel,
String propertyExpression) {

super(displayModel, propertyExpression);
}

@Override
public void populateItem(ItemICellPopulatorT cellItem, String
componentId, IModelT rowModel) {

cellItem.add(this.getEditableLabel(componentId, rowModel, new
PropertyModelF(rowModel, getPropertyExpression(;
}

protected abstract AjaxEditableLabelF getEditableLabel(String
componentId, IModelT rowModel, IModelF cellModel);

@Override
public Component getFilter(String componentId, FilterForm? form) {

return new TextFilterF(componentId, this.getFilterModel(form),
form);
}

protected IModelF getFilterModel(FilterForm? form) {

return new PropertyModelF(form.getDefaultModel(),
this.getPropertyExpression());
}
}

Best regards,
Sebastien





On Wed, Oct 9, 2013 at 5:53 PM, Rodrigo Heffner
rodrigo.heff...@gmail.comwrote:

 Hello,

 In a FilterForm, I tried replace my TextFilteredPropertyColumn for an
 AjaxEditableLabelFilteredPropertyColumn, but didn't have much success.
 Has anyone tried something similar?

 Thank you

 --
 Rodrigo H M Bezerra



Re: AjaxEditableLabel as Filter in FormFilter?

2013-10-09 Thread Rodrigo Heffner
Hi Sebastien,

I'll be able to check this tomorrow, when I have my laptop with me.

Thank you very much for your response, I'll let you know how I get on.

Best regards,
Rodrigo
On Oct 9, 2013 5:18 PM, Sebastien seb...@gmail.com wrote:

 Hi,

 I've got something like this, if it can helps...

 public abstract class EditableTextFilteredPropertyColumnT, F, S extends
 FilteredPropertyColumnT, S
 {
 private static final long serialVersionUID = 1L;

 public EditableTextFilteredPropertyColumn(IModelString displayModel,
 S sortProperty, String propertyExpression) {

 super(displayModel, sortProperty, propertyExpression);
 }

 public EditableTextFilteredPropertyColumn(IModelString displayModel,
 String propertyExpression) {

 super(displayModel, propertyExpression);
 }

 @Override
 public void populateItem(ItemICellPopulatorT cellItem, String
 componentId, IModelT rowModel) {

 cellItem.add(this.getEditableLabel(componentId, rowModel, new
 PropertyModelF(rowModel, getPropertyExpression(;
 }

 protected abstract AjaxEditableLabelF getEditableLabel(String
 componentId, IModelT rowModel, IModelF cellModel);

 @Override
 public Component getFilter(String componentId, FilterForm? form) {

 return new TextFilterF(componentId, this.getFilterModel(form),
 form);
 }

 protected IModelF getFilterModel(FilterForm? form) {

 return new PropertyModelF(form.getDefaultModel(),
 this.getPropertyExpression());
 }
 }

 Best regards,
 Sebastien





 On Wed, Oct 9, 2013 at 5:53 PM, Rodrigo Heffner
 rodrigo.heff...@gmail.comwrote:

  Hello,
 
  In a FilterForm, I tried replace my TextFilteredPropertyColumn for an
  AjaxEditableLabelFilteredPropertyColumn, but didn't have much success.
  Has anyone tried something similar?
 
  Thank you
 
  --
  Rodrigo H M Bezerra
 



RE: How to localize options in drop down.

2013-10-09 Thread Paul Bors
Can't you switch to XML and encode your file in UTF-8?
Name your file MyApplication_en_US.properties.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE properties SYSTEM http://java.sun.com/dtd/properties.dtd;
properties
!-- ... (other entries) --
!-- This is a property example that uses Unicode \u00E4 --
entry key=property.dateFällig ab./entry
!-- ... (other entries) --
/properties

You can write your own tool to convert your properties file to the XML
format.

~ Thank you,
  Paul Bors

-Original Message-
From: Vit Rozkovec [mailto:rozkovec...@email.cz] 
Sent: Wednesday, October 09, 2013 4:49 AM
To: users@wicket.apache.org
Subject: Re: How to localize options in drop down.

If you would be using Eclipse IDE you can use this: 
http://propedit.sourceforge.jp/index_en.html

On 9.10.2013 10:45, cosmindumy wrote:
 Yes,
 Now they are unicode. Something like property.date=F\u00E4llig ab.
 But I want to use native characters in propery file as is easier to
handle.



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-
 drop-down-tp4661751p4661763.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



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