NumberTextField eats my markup step attribute

2014-01-10 Thread Per Newgro
Hi,

i would like to enable float values in my form (without validation error).
But it's not possible for me.

If i add this input markup

input type=number step=any wicket:id=myNumber /

and assign a

new NumberTextFieldDouble(myNumber, numberModel);

the resulting markup is

input type=number id=myNumber1 /

So i'm not able to get a valid form submit with a value of 12.5 because 
step=any has been removed
(NumberTextField@190).

The NumberTextField.setStep is also unusable because it uses a Number parameter
which is any obviously not :-).

is there another workaround or is a ticket required?

Thanks for your support
Per

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



Re: NumberTextField eats my markup step attribute

2014-01-10 Thread Martin Grigorov
Hi,

This is a bug.
Please file a ticket.

Martin Grigorov
Wicket Training and Consulting


On Fri, Jan 10, 2014 at 10:01 AM, Per Newgro per.new...@gmx.ch wrote:

 Hi,

 i would like to enable float values in my form (without validation error).
 But it's not possible for me.

 If i add this input markup

 input type=number step=any wicket:id=myNumber /

 and assign a

 new NumberTextFieldDouble(myNumber, numberModel);

 the resulting markup is

 input type=number id=myNumber1 /

 So i'm not able to get a valid form submit with a value of 12.5 because
 step=any has been removed
 (NumberTextField@190).

 The NumberTextField.setStep is also unusable because it uses a Number
 parameter
 which is any obviously not :-).

 is there another workaround or is a ticket required?

 Thanks for your support
 Per

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




Aw: NumberTextField eats my markup step attribute

2014-01-10 Thread Per Newgro
Because the w3c-spec says

step = any or positive floating-point number NEW
Specifies the value granularity of the element’s value.

and

Positive floating-point number #
A non-negative floating-point number, with the following restriction:
must be greater than zero

http://dev.w3.org/html5/markup/input.number.html

it should be valid to use 0 or 0 as special constant in NumberTextField.

NumberTextField

public static final Number ANY = 0;

and


@Override
protected void onComponentTag(final ComponentTag tag)
{
...

if (step != null)
{
if (step.equals(ANY)
{
attributes.put(step, any);
}
else
{
attributes.put(step, 
Objects.stringValue(step));
}
}
else
{
attributes.remove(step);
}
...
}

This should do the trick without any change in current behavior.

Thanks
Per

Then i could do
 Gesendet: Freitag, 10. Januar 2014 um 09:01 Uhr
 Von: Per Newgro per.new...@gmx.ch
 An: wicket usergroup users@wicket.apache.org
 Betreff: NumberTextField eats my markup step attribute

 Hi,
 
 i would like to enable float values in my form (without validation error).
 But it's not possible for me.
 
 If i add this input markup
 
 input type=number step=any wicket:id=myNumber /
 
 and assign a
 
 new NumberTextFieldDouble(myNumber, numberModel);
 
 the resulting markup is
 
 input type=number id=myNumber1 /
 
 So i'm not able to get a valid form submit with a value of 12.5 because 
 step=any has been removed
 (NumberTextField@190).
 
 The NumberTextField.setStep is also unusable because it uses a Number 
 parameter
 which is any obviously not :-).
 
 is there another workaround or is a ticket required?
 
 Thanks for your support
 Per
 
 -
 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: Re: NumberTextField eats my markup step attribute

2014-01-10 Thread Per Newgro
Thank you Martin.
Done
https://issues.apache.org/jira/browse/WICKET-5467

 Gesendet: Freitag, 10. Januar 2014 um 09:09 Uhr
 Von: Martin Grigorov mgrigo...@apache.org
 An: users@wicket.apache.org users@wicket.apache.org
 Betreff: Re: NumberTextField eats my markup step attribute

 Hi,
 
 This is a bug.
 Please file a ticket.
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Fri, Jan 10, 2014 at 10:01 AM, Per Newgro per.new...@gmx.ch wrote:
 
  Hi,
 
  i would like to enable float values in my form (without validation error).
  But it's not possible for me.
 
  If i add this input markup
 
  input type=number step=any wicket:id=myNumber /
 
  and assign a
 
  new NumberTextFieldDouble(myNumber, numberModel);
 
  the resulting markup is
 
  input type=number id=myNumber1 /
 
  So i'm not able to get a valid form submit with a value of 12.5 because
  step=any has been removed
  (NumberTextField@190).
 
  The NumberTextField.setStep is also unusable because it uses a Number
  parameter
  which is any obviously not :-).
 
  is there another workaround or is a ticket required?
 
  Thanks for your support
  Per
 
  -
  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: Re: NumberTextField eats my markup step attribute

2014-01-10 Thread Martin Grigorov
Do you want to add suggested improvement as a patch (+test) ? :)

Martin Grigorov
Wicket Training and Consulting


On Fri, Jan 10, 2014 at 11:13 AM, Per Newgro per.new...@gmx.ch wrote:

 Thank you Martin.
 Done
 https://issues.apache.org/jira/browse/WICKET-5467

  Gesendet: Freitag, 10. Januar 2014 um 09:09 Uhr
  Von: Martin Grigorov mgrigo...@apache.org
  An: users@wicket.apache.org users@wicket.apache.org
  Betreff: Re: NumberTextField eats my markup step attribute
 
  Hi,
 
  This is a bug.
  Please file a ticket.
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Fri, Jan 10, 2014 at 10:01 AM, Per Newgro per.new...@gmx.ch wrote:
 
   Hi,
  
   i would like to enable float values in my form (without validation
 error).
   But it's not possible for me.
  
   If i add this input markup
  
   input type=number step=any wicket:id=myNumber /
  
   and assign a
  
   new NumberTextFieldDouble(myNumber, numberModel);
  
   the resulting markup is
  
   input type=number id=myNumber1 /
  
   So i'm not able to get a valid form submit with a value of 12.5 because
   step=any has been removed
   (NumberTextField@190).
  
   The NumberTextField.setStep is also unusable because it uses a Number
   parameter
   which is any obviously not :-).
  
   is there another workaround or is a ticket required?
  
   Thanks for your support
   Per
  
   -
   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




Announcing DEVdev: the Deventer Developers meetup

2014-01-10 Thread Martijn Dashorst
We just launched a new meetup in Deventer, the Netherlands: the
DEVdev. We intend this to be a general developer oriented meetup that
has semi-regular events.

We want to kick off the meetup series with a Wicket oriented evening
consisting of 3 presentations in dutch (we do plan to invite non-dutch
speakers at later events).

Since this is a mainly Netherlands oriented event, I will continue
this message in dutch, with apologies to our international readers:

Op woensdag 30 januari zal er in Deventer de eerste DEVdev meetup
plaatsvinden met als hoofdonderwerp Apache Wicket. Het programma:

17:30-18:00 Ontvangst
18:00-18:30 State of the Wicket
18:30-19:15 Pizza uit eigen oven
19:15-19:45 Letting Wicket REST
19:45-20:15 Wicket: What else?
20:15-21:00 Afsluitende borrel

State of the Wicket – Martijn Dashorst
Over het verleden, heden en de toekomst van Apache Wicket, waaronder Wicket 7.

Letting Wicket REST
Waarom zou je Wicket toepassen in een RESTful-architectuur en hoe zou
je het moeten doen?

Wicket: What else?
Een kleine blik in de Wicket-stuff projecten. Wat zijn leuke, mooie,
handige projecten.

De presentaties van deze avond worden gegeven in het Nederlands.

Je kan registreren voor de meetup op onderstaand adres:

http://www.meetup.com/DEVdev-powered-by-Topicus

Als je je registreert voor de DEVdev groep ontvang je een
welkomstbericht. Je bent dan nog niet aangemeld voor 30 januari–graag
RSVP-en. Er zijn zo'n 80 plaatsen beschikbaar, en registratie
geschiedt op basis van wie het eerst komt die het eerst maalt...

DEVdev wordt gesponsord door Topicus. De pizza, drankjes en de
locatie–een oud schoolgebouw recht tegenover het Deventer NS station.
Met z'n ligging aan de juiste kant van de IJssel en rijke historie is
Deventer een mooie plek om te bezoeken.

DEVdev is sponsored by Topicus. They provide the food, drinks and the
venue in our new office–an old school–located right across the
Deventer train station. Located on the right side of the IJssel river,
Deventer is a great town and has a well known historic center worth a
visit.

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



Re: Announcing DEVdev: the Deventer Developers meetup

2014-01-10 Thread Jeroen Steenbeeke
The 30th of January is a Thursday, not a Wednesday


2014/1/10 Martijn Dashorst martijn.dasho...@gmail.com

 We just launched a new meetup in Deventer, the Netherlands: the
 DEVdev. We intend this to be a general developer oriented meetup that
 has semi-regular events.

 We want to kick off the meetup series with a Wicket oriented evening
 consisting of 3 presentations in dutch (we do plan to invite non-dutch
 speakers at later events).

 Since this is a mainly Netherlands oriented event, I will continue
 this message in dutch, with apologies to our international readers:

 Op woensdag 30 januari zal er in Deventer de eerste DEVdev meetup
 plaatsvinden met als hoofdonderwerp Apache Wicket. Het programma:

 17:30-18:00 Ontvangst
 18:00-18:30 State of the Wicket
 18:30-19:15 Pizza uit eigen oven
 19:15-19:45 Letting Wicket REST
 19:45-20:15 Wicket: What else?
 20:15-21:00 Afsluitende borrel

 State of the Wicket – Martijn Dashorst
 Over het verleden, heden en de toekomst van Apache Wicket, waaronder
 Wicket 7.

 Letting Wicket REST
 Waarom zou je Wicket toepassen in een RESTful-architectuur en hoe zou
 je het moeten doen?

 Wicket: What else?
 Een kleine blik in de Wicket-stuff projecten. Wat zijn leuke, mooie,
 handige projecten.

 De presentaties van deze avond worden gegeven in het Nederlands.

 Je kan registreren voor de meetup op onderstaand adres:

 http://www.meetup.com/DEVdev-powered-by-Topicus

 Als je je registreert voor de DEVdev groep ontvang je een
 welkomstbericht. Je bent dan nog niet aangemeld voor 30 januari–graag
 RSVP-en. Er zijn zo'n 80 plaatsen beschikbaar, en registratie
 geschiedt op basis van wie het eerst komt die het eerst maalt...

 DEVdev wordt gesponsord door Topicus. De pizza, drankjes en de
 locatie–een oud schoolgebouw recht tegenover het Deventer NS station.
 Met z'n ligging aan de juiste kant van de IJssel en rijke historie is
 Deventer een mooie plek om te bezoeken.

 DEVdev is sponsored by Topicus. They provide the food, drinks and the
 venue in our new office–an old school–located right across the
 Deventer train station. Located on the right side of the IJssel river,
 Deventer is a great town and has a well known historic center worth a
 visit.

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




-- 
Jeroen Steenbeeke
www.fortuityframework.com


Re: Announcing DEVdev: the Deventer Developers meetup

2014-01-10 Thread Martijn Dashorst
True. It is Thursday 30 januari.

Klopt. Het is donderdag 30 januari.

Martijn

2014/1/10 Jeroen Steenbeeke j.steenbeeke...@gmail.com:
 The 30th of January is a Thursday, not a Wednesday


 2014/1/10 Martijn Dashorst martijn.dasho...@gmail.com

 We just launched a new meetup in Deventer, the Netherlands: the
 DEVdev. We intend this to be a general developer oriented meetup that
 has semi-regular events.

 We want to kick off the meetup series with a Wicket oriented evening
 consisting of 3 presentations in dutch (we do plan to invite non-dutch
 speakers at later events).

 Since this is a mainly Netherlands oriented event, I will continue
 this message in dutch, with apologies to our international readers:

 Op woensdag 30 januari zal er in Deventer de eerste DEVdev meetup
 plaatsvinden met als hoofdonderwerp Apache Wicket. Het programma:

 17:30-18:00 Ontvangst
 18:00-18:30 State of the Wicket
 18:30-19:15 Pizza uit eigen oven
 19:15-19:45 Letting Wicket REST
 19:45-20:15 Wicket: What else?
 20:15-21:00 Afsluitende borrel

 State of the Wicket – Martijn Dashorst
 Over het verleden, heden en de toekomst van Apache Wicket, waaronder
 Wicket 7.

 Letting Wicket REST
 Waarom zou je Wicket toepassen in een RESTful-architectuur en hoe zou
 je het moeten doen?

 Wicket: What else?
 Een kleine blik in de Wicket-stuff projecten. Wat zijn leuke, mooie,
 handige projecten.

 De presentaties van deze avond worden gegeven in het Nederlands.

 Je kan registreren voor de meetup op onderstaand adres:

 http://www.meetup.com/DEVdev-powered-by-Topicus

 Als je je registreert voor de DEVdev groep ontvang je een
 welkomstbericht. Je bent dan nog niet aangemeld voor 30 januari–graag
 RSVP-en. Er zijn zo'n 80 plaatsen beschikbaar, en registratie
 geschiedt op basis van wie het eerst komt die het eerst maalt...

 DEVdev wordt gesponsord door Topicus. De pizza, drankjes en de
 locatie–een oud schoolgebouw recht tegenover het Deventer NS station.
 Met z'n ligging aan de juiste kant van de IJssel en rijke historie is
 Deventer een mooie plek om te bezoeken.

 DEVdev is sponsored by Topicus. They provide the food, drinks and the
 venue in our new office–an old school–located right across the
 Deventer train station. Located on the right side of the IJssel river,
 Deventer is a great town and has a well known historic center worth a
 visit.

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




 --
 Jeroen Steenbeeke
 www.fortuityframework.com



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Announcing DEVdev: the Deventer Developers meetup

2014-01-10 Thread Ernesto Reinaldo Barreiro
Graag een beige Nederlands te lessen.

Hope presentation slides are in English and will be shared somewhere?


On Fri, Jan 10, 2014 at 11:14 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 We just launched a new meetup in Deventer, the Netherlands: the
 DEVdev. We intend this to be a general developer oriented meetup that
 has semi-regular events.

 We want to kick off the meetup series with a Wicket oriented evening
 consisting of 3 presentations in dutch (we do plan to invite non-dutch
 speakers at later events).

 Since this is a mainly Netherlands oriented event, I will continue
 this message in dutch, with apologies to our international readers:

 Op woensdag 30 januari zal er in Deventer de eerste DEVdev meetup
 plaatsvinden met als hoofdonderwerp Apache Wicket. Het programma:

 17:30-18:00 Ontvangst
 18:00-18:30 State of the Wicket
 18:30-19:15 Pizza uit eigen oven
 19:15-19:45 Letting Wicket REST
 19:45-20:15 Wicket: What else?
 20:15-21:00 Afsluitende borrel

 State of the Wicket – Martijn Dashorst
 Over het verleden, heden en de toekomst van Apache Wicket, waaronder
 Wicket 7.

 Letting Wicket REST
 Waarom zou je Wicket toepassen in een RESTful-architectuur en hoe zou
 je het moeten doen?

 Wicket: What else?
 Een kleine blik in de Wicket-stuff projecten. Wat zijn leuke, mooie,
 handige projecten.

 De presentaties van deze avond worden gegeven in het Nederlands.

 Je kan registreren voor de meetup op onderstaand adres:

 http://www.meetup.com/DEVdev-powered-by-Topicus

 Als je je registreert voor de DEVdev groep ontvang je een
 welkomstbericht. Je bent dan nog niet aangemeld voor 30 januari–graag
 RSVP-en. Er zijn zo'n 80 plaatsen beschikbaar, en registratie
 geschiedt op basis van wie het eerst komt die het eerst maalt...

 DEVdev wordt gesponsord door Topicus. De pizza, drankjes en de
 locatie–een oud schoolgebouw recht tegenover het Deventer NS station.
 Met z'n ligging aan de juiste kant van de IJssel en rijke historie is
 Deventer een mooie plek om te bezoeken.

 DEVdev is sponsored by Topicus. They provide the food, drinks and the
 venue in our new office–an old school–located right across the
 Deventer train station. Located on the right side of the IJssel river,
 Deventer is a great town and has a well known historic center worth a
 visit.

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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket-Bootstrap Question

2014-01-10 Thread Michael Haitz
if you want to use bootstrap on all your pages, then use 
settings.setAutoAppendResources(true) instead of renderHead() { 
Bootstrap.renderHead(response); }.

cheers,
Michael

Am 09.01.2014 um 19:32 schrieb Gabriel Landon glan...@piti.pf:

 In the init() method of your application class :
 
 final BootstrapSettings settings = new BootstrapSettings();
 //add theme (optional)
 settings.setThemeProvider(new
 SingleThemeProvider(BootswatchTheme.CERULEAN));
 Bootstrap.install(this, settings);
 
 
 In your page class :
 @Override
public void renderHead(final IHeaderResponse response) {
super.renderHead(response);
Bootstrap.renderHead(response);
// font-awesome (optional)
 
 response.render(CssHeaderItem.forReference(FontAwesomeCssReference.instance()));
}
 
 Then you should have all the css and js needed in your page.
 
 regards,
 Gabriel.
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Bootstrap-Question-tp4663565p4663591.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: Announcing DEVdev: the Deventer Developers meetup

2014-01-10 Thread Martijn Dashorst
BTW the registration process requires a manual by yours truly, so it
can take minutes, an hour or sometimes longer to get through the
registration process unfortunately. I intend to moderate everybody
through as soon as possible.

Martijn

On Fri, Jan 10, 2014 at 11:28 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 Graag een beige Nederlands te lessen.

 Hope presentation slides are in English and will be shared somewhere?


 On Fri, Jan 10, 2014 at 11:14 AM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

 We just launched a new meetup in Deventer, the Netherlands: the
 DEVdev. We intend this to be a general developer oriented meetup that
 has semi-regular events.

 We want to kick off the meetup series with a Wicket oriented evening
 consisting of 3 presentations in dutch (we do plan to invite non-dutch
 speakers at later events).

 Since this is a mainly Netherlands oriented event, I will continue
 this message in dutch, with apologies to our international readers:

 Op woensdag 30 januari zal er in Deventer de eerste DEVdev meetup
 plaatsvinden met als hoofdonderwerp Apache Wicket. Het programma:

 17:30-18:00 Ontvangst
 18:00-18:30 State of the Wicket
 18:30-19:15 Pizza uit eigen oven
 19:15-19:45 Letting Wicket REST
 19:45-20:15 Wicket: What else?
 20:15-21:00 Afsluitende borrel

 State of the Wicket – Martijn Dashorst
 Over het verleden, heden en de toekomst van Apache Wicket, waaronder
 Wicket 7.

 Letting Wicket REST
 Waarom zou je Wicket toepassen in een RESTful-architectuur en hoe zou
 je het moeten doen?

 Wicket: What else?
 Een kleine blik in de Wicket-stuff projecten. Wat zijn leuke, mooie,
 handige projecten.

 De presentaties van deze avond worden gegeven in het Nederlands.

 Je kan registreren voor de meetup op onderstaand adres:

 http://www.meetup.com/DEVdev-powered-by-Topicus

 Als je je registreert voor de DEVdev groep ontvang je een
 welkomstbericht. Je bent dan nog niet aangemeld voor 30 januari–graag
 RSVP-en. Er zijn zo'n 80 plaatsen beschikbaar, en registratie
 geschiedt op basis van wie het eerst komt die het eerst maalt...

 DEVdev wordt gesponsord door Topicus. De pizza, drankjes en de
 locatie–een oud schoolgebouw recht tegenover het Deventer NS station.
 Met z'n ligging aan de juiste kant van de IJssel en rijke historie is
 Deventer een mooie plek om te bezoeken.

 DEVdev is sponsored by Topicus. They provide the food, drinks and the
 venue in our new office–an old school–located right across the
 Deventer train station. Located on the right side of the IJssel river,
 Deventer is a great town and has a well known historic center worth a
 visit.

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




 --
 Regards - Ernesto Reinaldo Barreiro



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Wicket-Bootstrap Question

2014-01-10 Thread David Beer

Hi Joesph

Take a look at this simple example project I did of getting 
wicket-bootstrap3 working.

https://github.com/dmbeer/wicket-bootstrap-example

Thanks

David
On 09/01/14 03:40, Joseph Mokenela wrote:

Hi,

I am not sure whether this is the right place to ask
*wicket-bootstrap*specific questions, I apologize if its not.

Following is my question.

I am building a wicket application and I am using wicket-bootstrap for
bootstrap layout.

However I am not able to access some of the bootstrap classes from my
markup even though it looks like it has successfully pulled the css, i saw
this when i checked view source on the page.

Is there any specific configuration i need to make in order to have access
to the css classes on my page?

Another question: Is there support for bootstrap 3 yet?

Thanks in advance,

Kind Regards,
Joseph





Re: Wicket-Bootstrap Question

2014-01-10 Thread Joseph Mokenela
I would like to thank everyone for the quick responses. I really appreciate
it. Looks like I was calling the some of the css  Bootstrap 3 specific
classes from my pages, but what was actually loaded by the framework was
version 2.3.2.

Kind Regards,
Joseph


On Fri, Jan 10, 2014 at 1:42 PM, David Beer david.m.b...@gmail.com wrote:

 Hi Joesph

 Take a look at this simple example project I did of getting
 wicket-bootstrap3 working.
 https://github.com/dmbeer/wicket-bootstrap-example

 Thanks

 David

 On 09/01/14 03:40, Joseph Mokenela wrote:

 Hi,

 I am not sure whether this is the right place to ask
 *wicket-bootstrap*specific questions, I apologize if its not.


 Following is my question.

 I am building a wicket application and I am using wicket-bootstrap for
 bootstrap layout.

 However I am not able to access some of the bootstrap classes from my
 markup even though it looks like it has successfully pulled the css, i saw
 this when i checked view source on the page.

 Is there any specific configuration i need to make in order to have access
 to the css classes on my page?

 Another question: Is there support for bootstrap 3 yet?

 Thanks in advance,

 Kind Regards,
 Joseph





-- 
*Joseph Mokenela*

*Systems ArchitectMMJ Microsystems*

*Write your code as if the person who maintains it is a homicidal maniac
who knows where you live.*

P please don't print this e-mail unless you really need to.


how to add field to event in a wicket.jquery.ui calendar

2014-01-10 Thread Selom
Hi all,

I am currently based on the 
com.googlecode.wicket.jquery.ui.samples.pages.calendar.ExtendedCalendarPage

I have added in my dialog panel (AbstractFormDialog) another  field ( an
identifiant in a
wicket.jquery.ui..AutoCompleteTextFieldString(identifiant) ).

The event  model  looks like this: 


 
 
 Part of the event popup. 
 


But after clicking on the save button from the dialog, my field is not
showned in the calendar (like  the title)

Any help would be appreciate.

Thanks to you in advance.



-
Selom
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-add-field-to-event-in-a-wicket-jquery-ui-calendar-tp4663617.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



ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
We are starting to get ListenerInvocationNotAllowedExceptions intermittently
in production. What are some suggestions for handling this? My first thought
is return an EmptyRequestHandler in my custom IExceptionMapper
implementation. Is this a bad practice?

Thanks for your time.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618.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 field to event in a wicket.jquery.ui calendar

2014-01-10 Thread Sebastien
Hi Pierre,

Did you called calendar.refresh(target)?
Do you use a CompoundPropertyModel? Maybe you have to call
calendar#modelChanged?

Can you post a quickstart so I can investigate?

Thanks in advance,
Sebastien.



On Fri, Jan 10, 2014 at 4:45 PM, Selom pierre.kou...@uhb.fr wrote:

 Hi all,

 I am currently based on the
 com.googlecode.wicket.jquery.ui.samples.pages.calendar.ExtendedCalendarPage

 I have added in my dialog panel (AbstractFormDialog) another  field ( an
 identifiant in a
 wicket.jquery.ui..AutoCompleteTextFieldString(identifiant) ).

 The event  model  looks like this:




  Part of the event popup.



 But after clicking on the save button from the dialog, my field is not
 showned in the calendar (like  the title)

 Any help would be appreciate.

 Thanks to you in advance.



 -
 Selom
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/how-to-add-field-to-event-in-a-wicket-jquery-ui-calendar-tp4663617.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




Nested Forms

2014-01-10 Thread gmparker2000
When submitting an inner form it appears that the request contains all of the
outer and inner form fields.  Is this the expected behaviour?  From what I
can see it appears that the outer form is submitted, and only the inner form
parameters are validated and used for model updates.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-Forms-tp4663620.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



Publish Javadoc or big number of Static pages

2014-01-10 Thread andre seame


Hello,

 

I
have a wicket site to manage different points on the project. I receive 200
HTML pages for the developer teams. These pages are javadoc pages.

I
add some dynamic pages built over the static pages with wicket. And I will to
publish all pages with wicket. 

As
I have static HTML pages and as want to use them immediately, I must use the
Frame HTML mechanism. 

So
I will have a page with a left part: the menu or the list of pages, and on the
right part (in another frame) the associated page. 

So
I am using the 
http://www.wicket-library.com/wicket-examples/frames/ examples. This
works, but I have 2 problems: 

-
I have to created 200 page.java/page.class, one per static pages! 

-
I have to modify the code (creating a new page.java/page.class) if there is a
new static page.

 

So
what is the easiest way to manage this problem? 

 

May
be an idea is to say to wicket:  just for
this time, the associated html page to genericsaticpage.class is
staticpage1.html. Of course for another link, the associated html page to
genericsaticpage.class will be staticpage2.html.

 

I
can also image to have staticpage.html : ...bodydiv
wicket:id=The body will be read from the static
page/body. In this case, I will lost the css or the javascript
code that may be included in the original static page.

 

Thanks
for any pointers or suggestion. 

  

Re: Nested Forms

2014-01-10 Thread Chris Snyder
Nested form elements (what I'm assuming you're referring to) aren't
allowed, per the HTML spec:
http://www.w3.org/TR/html5/forms.html

I wouldn't expect Wicket to follow any kind of predictable behavior
(especially since different browsers likely exhibit different behaviors
themselves).

Best,
Chris

On Fri, Jan 10, 2014 at 12:04 PM, gmparker2000 greg.par...@brovada.comwrote:

 When submitting an inner form it appears that the request contains all of
 the
 outer and inner form fields.  Is this the expected behaviour?  From what I
 can see it appears that the outer form is submitted, and only the inner
 form
 parameters are validated and used for model updates.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Nested-Forms-tp4663620.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: Nested Forms

2014-01-10 Thread Marios Skounakis
Html does not support nested forms. Wicket works around this limitation and
allows form nesting. I think it changes the html so that the inner form
tags become span tags. This means that whenever any of the forms needs to
be posted, everything is posted since in the result html there's only one
form element.

Wicket provides some mechanisms so that submitting the outer form submits
(validates and updates models) the inner forms too, whereas submitting an
inner form only validates and updates the model for this inner form.

You can find more details in the wicket free guide (
https://code.google.com/p/wicket-guide) and at
https://cwiki.apache.org/confluence/display/WICKET/Nested+Forms (not sure
how up-to-date is the latter).



On Fri, Jan 10, 2014 at 7:04 PM, gmparker2000 greg.par...@brovada.comwrote:

 When submitting an inner form it appears that the request contains all of
 the
 outer and inner form fields.  Is this the expected behaviour?  From what I
 can see it appears that the outer form is submitted, and only the inner
 form
 parameters are validated and used for model updates.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Nested-Forms-tp4663620.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: Nested Forms

2014-01-10 Thread Paul Bors
Also see section 12.5 Nested forms of the Free Guide at
http://wicket.apache.org/guide/guide/chapter11.html#chapter11_5


On Fri, Jan 10, 2014 at 12:56 PM, Marios Skounakis msc...@gmail.com wrote:

 Html does not support nested forms. Wicket works around this limitation and
 allows form nesting. I think it changes the html so that the inner form
 tags become span tags. This means that whenever any of the forms needs to
 be posted, everything is posted since in the result html there's only one
 form element.

 Wicket provides some mechanisms so that submitting the outer form submits
 (validates and updates models) the inner forms too, whereas submitting an
 inner form only validates and updates the model for this inner form.

 You can find more details in the wicket free guide (
 https://code.google.com/p/wicket-guide) and at
 https://cwiki.apache.org/confluence/display/WICKET/Nested+Forms (not sure
 how up-to-date is the latter).



 On Fri, Jan 10, 2014 at 7:04 PM, gmparker2000 greg.par...@brovada.com
 wrote:

  When submitting an inner form it appears that the request contains all of
  the
  outer and inner form fields.  Is this the expected behaviour?  From what
 I
  can see it appears that the outer form is submitted, and only the inner
  form
  parameters are validated and used for model updates.
 
  --
  View this message in context:
  http://apache-wicket.1842946.n4.nabble.com/Nested-Forms-tp4663620.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: Publish Javadoc or big number of Static pages

2014-01-10 Thread Paul Bors
I'm not following, you want to show 200 static HTML pages in your webapp?

Your webapp must be running on top of a web server, why not just let the
web server server the static content?
What's the dynamic part of those 200 static HTML pages?
Do you need to authenticate the user first or something before they can
view the static content?


On Fri, Jan 10, 2014 at 12:23 PM, andre seame andre1...@hotmail.fr wrote:



 Hello,



 I
 have a wicket site to manage different points on the project. I receive 200
 HTML pages for the developer teams. These pages are javadoc pages.

 I
 add some dynamic pages built over the static pages with wicket. And I will
 to
 publish all pages with wicket.

 As
 I have static HTML pages and as want to use them immediately, I must use
 the
 Frame HTML mechanism.

 So
 I will have a page with a left part: the menu or the list of pages, and on
 the
 right part (in another frame) the associated page.

 So
 I am using the
 http://www.wicket-library.com/wicket-examples/frames/ examples. This
 works, but I have 2 problems:

 -
 I have to created 200 page.java/page.class, one per static pages!

 -
 I have to modify the code (creating a new page.java/page.class) if there
 is a
 new static page.



 So
 what is the easiest way to manage this problem?



 May
 be an idea is to say to wicket:  just for
 this time, the associated html page to genericsaticpage.class is
 staticpage1.html. Of course for another link, the associated html page to
 genericsaticpage.class will be staticpage2.html.



 I
 can also image to have staticpage.html : ...bodydiv
 wicket:id=The body will be read from the static
 page/body. In this case, I will lost the css or the javascript
 code that may be included in the original static page.



 Thanks
 for any pointers or suggestion.




Re: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread Paul Bors
Do you have a stack trace?


On Fri, Jan 10, 2014 at 11:00 AM, jchappelle jchappe...@4redi.com wrote:

 We are starting to get ListenerInvocationNotAllowedExceptions
 intermittently
 in production. What are some suggestions for handling this? My first
 thought
 is return an EmptyRequestHandler in my custom IExceptionMapper
 implementation. Is this a bad practice?

 Thanks for your time.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618.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: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
Sometimes it's an AjaxLazyLoadPanel and sometimes it is an AjaxLink. This
particular one is from an AjaxLazyLoadPanel.


2013-10-17 07:23:42,782 ERROR ajp-127.0.0.1-8009-6
com.redi.risk.ui.RiskExceptionMapper - Unexpected error occurred
2013-10-17 07:23:45,985 WARN  ajp-127.0.0.1-8009-36
org.apache.wicket.RequestListenerInterface - behavior not enabled; ignore
call. Behavior
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel$1@1ddb562 at
component [ [Component id = filterFormPanel]]
2013-10-17 07:23:46,001 WARN  ajp-127.0.0.1-8009-36
com.redi.risk.ui.RiskExceptionMapper - Error during request
org.apache.wicket.request.handler.ListenerInvocationNotAllowedException:
Behavior rejected interface invocation. Component: [ [Component id =
filterFormPanel]] Behavior:
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel$1@1ddb562
Listener: [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at 
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:448)
at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:403)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
at java.lang.Thread.run(Unknown Source)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618p4663628.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: Publish Javadoc or big number of Static pages

2014-01-10 Thread Steve
public class StaticPage extends Page implements
IMarkupResourceStreamProvider, IMarkupCacheKeyProvider {

private String staticPageFilename;

public StaticPage(String staticPageFilename) {
super();
this.staticPageFilename = staticPageFilename;
}

@Override
public String getCacheKey(MarkupContainer container, Class?
containerClass) {
return staticPageFilename;
}

@Override
public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class? containerClass) {
   
String html = getFileAsString(staticPageFilename);
//modify html if necessary
return new StringResourceStream(html);
}

}
On 11/01/14 06:11, Paul Bors wrote:
 I'm not following, you want to show 200 static HTML pages in your webapp?

 Your webapp must be running on top of a web server, why not just let the
 web server server the static content?
 What's the dynamic part of those 200 static HTML pages?
 Do you need to authenticate the user first or something before they can
 view the static content?


 On Fri, Jan 10, 2014 at 12:23 PM, andre seame andre1...@hotmail.fr wrote:


 Hello,



 I
 have a wicket site to manage different points on the project. I receive 200
 HTML pages for the developer teams. These pages are javadoc pages.

 I
 add some dynamic pages built over the static pages with wicket. And I will
 to
 publish all pages with wicket.

 As
 I have static HTML pages and as want to use them immediately, I must use
 the
 Frame HTML mechanism.

 So
 I will have a page with a left part: the menu or the list of pages, and on
 the
 right part (in another frame) the associated page.

 So
 I am using the
 http://www.wicket-library.com/wicket-examples/frames/ examples. This
 works, but I have 2 problems:

 -
 I have to created 200 page.java/page.class, one per static pages!

 -
 I have to modify the code (creating a new page.java/page.class) if there
 is a
 new static page.



 So
 what is the easiest way to manage this problem?



 May
 be an idea is to say to wicket:  just for
 this time, the associated html page to genericsaticpage.class is
 staticpage1.html. Of course for another link, the associated html page to
 genericsaticpage.class will be staticpage2.html.



 I
 can also image to have staticpage.html : ...bodydiv
 wicket:id=The body will be read from the static
 page/body. In this case, I will lost the css or the javascript
 code that may be included in the original static page.



 Thanks
 for any pointers or suggestion.




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



Re: Publish Javadoc or big number of Static pages

2014-01-10 Thread Steve
Actually here's a slightly better example using PageParameters instead. 
This will allow you to mount it using:
WebApplication.get().mountPage(/static, StaticPage.class);

Also demonstrates that you can inject your own wicket tags into the
markup before returning it leaving the original markup file untouched.


public class StaticPage extends WebPage implements
IMarkupResourceStreamProvider, IMarkupCacheKeyProvider {

private String staticPageFilename;

public StaticPage(PageParameters params) {
super();
   
this.staticPageFilename =
params.get(staticPageFilename).toString();
   
add(new Label(label, This is a static page generated from: 
+ staticPageFilename));
}

@Override
public String getCacheKey(MarkupContainer container, Class?
containerClass) {
return staticPageFilename;
}

@Override
public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class? containerClass) {
   
String html = getFileAsString(staticPageFilename);
//modify html if necessary
html = html.replace(body, body\n h1
wicket:id=\label\/h1);
   
return new StringResourceStream(html);
}

}
On 11/01/14 06:11, Paul Bors wrote:
 I'm not following, you want to show 200 static HTML pages in your webapp?

 Your webapp must be running on top of a web server, why not just let the
 web server server the static content?
 What's the dynamic part of those 200 static HTML pages?
 Do you need to authenticate the user first or something before they can
 view the static content?


 On Fri, Jan 10, 2014 at 12:23 PM, andre seame andre1...@hotmail.fr wrote:


 Hello,



 I
 have a wicket site to manage different points on the project. I receive 200
 HTML pages for the developer teams. These pages are javadoc pages.

 I
 add some dynamic pages built over the static pages with wicket. And I will
 to
 publish all pages with wicket.

 As
 I have static HTML pages and as want to use them immediately, I must use
 the
 Frame HTML mechanism.

 So
 I will have a page with a left part: the menu or the list of pages, and on
 the
 right part (in another frame) the associated page.

 So
 I am using the
 http://www.wicket-library.com/wicket-examples/frames/ examples. This
 works, but I have 2 problems:

 -
 I have to created 200 page.java/page.class, one per static pages!

 -
 I have to modify the code (creating a new page.java/page.class) if there
 is a
 new static page.



 So
 what is the easiest way to manage this problem?



 May
 be an idea is to say to wicket:  just for
 this time, the associated html page to genericsaticpage.class is
 staticpage1.html. Of course for another link, the associated html page to
 genericsaticpage.class will be staticpage2.html.



 I
 can also image to have staticpage.html : ...bodydiv
 wicket:id=The body will be read from the static
 page/body. In this case, I will lost the css or the javascript
 code that may be included in the original static page.



 Thanks
 for any pointers or suggestion.




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