Re: Empty FeedbackPanel

2014-06-12 Thread Martin Grigorov
Hi,

Do you use Ajax submit ?
If YES then you need to override #onError(AjaxRequestTarget, Form) add add
the feedback to the target manually.

Martin Grigorov
Wicket Training and Consulting


On Wed, Jun 11, 2014 at 6:21 PM, Lucio Crusca lu...@sulweb.org wrote:

 Here is a form:


 http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

 here is the relevant html snippet:

 form class=inputForm wicket:id=registrationform
   fieldset
 legendInserisci i tuoi dati/legend
   div id=feedbackPanel
 span wicket:id=feedback/
   /div
 div class=campoform
   label wicket:for=nome
 span class=inputformlabelspanNome */span
 span class=inputWrapper
   input type=text class=text_reg placeholder=nome
 wicket:id=nome
 /span
   /label
 /div
 [...]


 and java code:

 registrationform.add(new TextField(nome).setRequired(true));
 registrationform.add(new FeedbackPanel(feedback));

 If you click the Invia button (italian for Submit), the validation
 takes place (in fact my onSubmit() does not get called since many required
 fields are not filled in), but the FeedbackPanel remains empty (take a
 look at generated html).

 Similar code works in other wicket projects I've done, so I don't know
 what I'm doing different/wrong here... any clue?


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




Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
 Hi,

 Do you use Ajax submit ?
 If YES then you need to override #onError(AjaxRequestTarget, Form) add add
 the feedback to the target manually.


What is Ajax submit? How do I check whether I'm using it? (I suspect the
reply is no, you're not using it since you do not even know what it is).

However I have a suspect, there's another strange thing in that form,
maybe the two things are related: look at the five check boxes down the
form, one of them doesn't show the image:

http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

but if you look at the generated HTML, the image is actually there, and if
you click the link in img src=... you actually see the image.

Now, how that could be a cause or consequence of missing FeedbackPanel is
beyond any stretch of my imagination, but those two things share a common
fact: both do not show up when they should.


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



Re: Empty FeedbackPanel

2014-06-12 Thread Martin Grigorov
Ajax submit is when you use AjaxSubmitLink or AjaxButton for the input
type=submit 
I just checked and it seems you don't use any of these.

Do you override Form#onError() or Button#onError() and what do you do there
?

Martin Grigorov
Wicket Training and Consulting


On Thu, Jun 12, 2014 at 10:47 AM, Lucio Crusca lu...@sulweb.org wrote:

  Hi,
 
  Do you use Ajax submit ?
  If YES then you need to override #onError(AjaxRequestTarget, Form) add
 add
  the feedback to the target manually.
 

 What is Ajax submit? How do I check whether I'm using it? (I suspect the
 reply is no, you're not using it since you do not even know what it is).

 However I have a suspect, there's another strange thing in that form,
 maybe the two things are related: look at the five check boxes down the
 form, one of them doesn't show the image:

 http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

 but if you look at the generated HTML, the image is actually there, and if
 you click the link in img src=... you actually see the image.

 Now, how that could be a cause or consequence of missing FeedbackPanel is
 beyond any stretch of my imagination, but those two things share a common
 fact: both do not show up when they should.


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




Re: Empty FeedbackPanel

2014-06-12 Thread Ernesto Reinaldo Barreiro
Wow! IMHO your answer is very un-respectful even if you don't notice it.
Your first message to this list is from January 2013... and you still don't
know what is an AJAX submit? Time to start reading a bit about the
framework you are using? Instead of expecting people to solve your problems
;-)


On Thu, Jun 12, 2014 at 10:47 AM, Lucio Crusca lu...@sulweb.org wrote:

  Hi,
 
  Do you use Ajax submit ?
  If YES then you need to override #onError(AjaxRequestTarget, Form) add
 add
  the feedback to the target manually.
 

 What is Ajax submit? How do I check whether I'm using it? (I suspect the
 reply is no, you're not using it since you do not even know what it is).

 However I have a suspect, there's another strange thing in that form,
 maybe the two things are related: look at the five check boxes down the
 form, one of them doesn't show the image:

 http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

 but if you look at the generated HTML, the image is actually there, and if
 you click the link in img src=... you actually see the image.

 Now, how that could be a cause or consequence of missing FeedbackPanel is
 beyond any stretch of my imagination, but those two things share a common
 fact: both do not show up when they should.


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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: rant level=8/10 Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
 Wow! IMHO your answer is very un-respectful even if you don't notice it.
 Your first message to this list is from January 2013... and you still
 don't
 know what is an AJAX submit? Time to start reading a bit about the
 framework you are using? Instead of expecting people to solve your
 problems
 ;-)


*MY* reply is un-respectful? Did you really say *THAT*?

FYI: I've been using wicket since then and I never needed an Ajax submit
(I still don't need it now). Why should I study something I don't need?
And, while I'm at it, Wicket is well known for being powerful but poorly
documented. Wicket enthusiasts reply saying that Wicket has a wonderful
active community that can help you and provide for the lack of
documentation, hence people is more inclined to ask the community rather
than to study a sub-optimal documentation. Moreover I don't expect anyone
doing anything: I just ask, if someone is so kind as to reply, so good. If
no one replies it means I asked in the wrong place or in the wrong way.

But if I get such harsh replies like yours, I assume either you are a
troll or you've had a bad day, now you choose, I suspect the latter, since
you are into wicket much more than many others on this list. However
please take note: I'm sorry for you but I'm not guilty for your bad day.

And, while you spend your valuable time into looking at my past messages,
please observe that I even tried to help others at least once I remember
of, maybe a few times, the few times I felt like I could actually help. I
know, you've done much more than me for this community, and I hope one day
I will have your reputation and deserve your respect, but that day, if it
ever comes, I'll try to be kind to others too, which is not an optional
behavior even when you are a wicket expert.

That being said, I wish you all the best nevertheless.

/rant



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



Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
 Ajax submit is when you use AjaxSubmitLink or AjaxButton for the input
 type=submit 
 I just checked and it seems you don't use any of these.

 Do you override Form#onError() or Button#onError() and what do you do
 there
 ?

None of them. I only override Button#onSubmit().



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



Re: rant level=8/10 Empty FeedbackPanel

2014-06-12 Thread Martin Grigorov
Hi Lucio,

People may complain that Wicket documentation is poor but it seems these
people didn't bother to read either the reference guide [1], nor any of the
published books [2].
All of them explain how to submit a form with Ajax

1. http://wicket.apache.org/guide/
2. http://wicket.apache.org/learn/books/

P.S. Please don't change the subject of your mails because this breaks the
way some mail clients follow a thread/discussion. Just create a new thread
when you have a new question.


Martin Grigorov
Wicket Training and Consulting


On Thu, Jun 12, 2014 at 11:54 AM, Lucio Crusca lu...@sulweb.org wrote:

  Wow! IMHO your answer is very un-respectful even if you don't notice it.
  Your first message to this list is from January 2013... and you still
  don't
  know what is an AJAX submit? Time to start reading a bit about the
  framework you are using? Instead of expecting people to solve your
  problems
  ;-)
 

 *MY* reply is un-respectful? Did you really say *THAT*?

 FYI: I've been using wicket since then and I never needed an Ajax submit
 (I still don't need it now). Why should I study something I don't need?
 And, while I'm at it, Wicket is well known for being powerful but poorly
 documented. Wicket enthusiasts reply saying that Wicket has a wonderful
 active community that can help you and provide for the lack of
 documentation, hence people is more inclined to ask the community rather
 than to study a sub-optimal documentation. Moreover I don't expect anyone
 doing anything: I just ask, if someone is so kind as to reply, so good. If
 no one replies it means I asked in the wrong place or in the wrong way.

 But if I get such harsh replies like yours, I assume either you are a
 troll or you've had a bad day, now you choose, I suspect the latter, since
 you are into wicket much more than many others on this list. However
 please take note: I'm sorry for you but I'm not guilty for your bad day.

 And, while you spend your valuable time into looking at my past messages,
 please observe that I even tried to help others at least once I remember
 of, maybe a few times, the few times I felt like I could actually help. I
 know, you've done much more than me for this community, and I hope one day
 I will have your reputation and deserve your respect, but that day, if it
 ever comes, I'll try to be kind to others too, which is not an optional
 behavior even when you are a wicket expert.

 That being said, I wish you all the best nevertheless.

 /rant



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




Re: Empty FeedbackPanel

2014-06-12 Thread Martin Grigorov
If you are able to reproduce this in a mini application (a quickstart app)
then please attach it to a ticket in Jira and we will see what is going
wrong.

Martin Grigorov
Wicket Training and Consulting


On Thu, Jun 12, 2014 at 11:55 AM, Lucio Crusca lu...@sulweb.org wrote:

  Ajax submit is when you use AjaxSubmitLink or AjaxButton for the input
  type=submit 
  I just checked and it seems you don't use any of these.
 
  Do you override Form#onError() or Button#onError() and what do you do
  there
  ?

 None of them. I only override Button#onSubmit().



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




Re: rant level=8/10 Empty FeedbackPanel

2014-06-12 Thread Ernesto Reinaldo Barreiro
Hi,

Yes I have a bad day...  but my answer has nothing to do with that.

1- You ask a  question. Someone ask you about the details.
2- You answer very vaguely...  If you have taken just two seconds to google
for it

https://www.google.com/search?q=wickt+AJAX+submitoq=wickt+AJAX+submitaqs=chrome..69i57j0l3.4663j0j1client=ubuntu-browsersourceid=chromeie=UTF-8#q=wicket+AJAX+submit

you could have answered NO I DON'T USE AJAX or YES I DO USE AJAX.
3- The person that is answering your e-mail is a commiter. He spends many
hours solving real problems/improving the framework. I know for sure that
this person sacrifices his personal time to help other people and make the
framework better.
4- Given what I said in 3, it is my opinion that you have to value better
their time, and doing that, IMHO,  is best way I know to show them respect.
5- I personally has spent many hours of my free time trying to help others
and the community. This does not give me any rights whatsoever. It just
sometimes makes me angry when I see people do not value the time the others
spend helping (or trying to help) them.
6- Complaining about things is easy, e.g. lack of documentation, stepping
forward and helping fix them is VERY hard.

Having said the above, I apologize to you for my harsh words.


On Thu, Jun 12, 2014 at 11:54 AM, Lucio Crusca lu...@sulweb.org wrote:

  Wow! IMHO your answer is very un-respectful even if you don't notice it.
  Your first message to this list is from January 2013... and you still
  don't
  know what is an AJAX submit? Time to start reading a bit about the
  framework you are using? Instead of expecting people to solve your
  problems
  ;-)
 

 *MY* reply is un-respectful? Did you really say *THAT*?

 FYI: I've been using wicket since then and I never needed an Ajax submit
 (I still don't need it now). Why should I study something I don't need?
 And, while I'm at it, Wicket is well known for being powerful but poorly
 documented. Wicket enthusiasts reply saying that Wicket has a wonderful
 active community that can help you and provide for the lack of
 documentation, hence people is more inclined to ask the community rather
 than to study a sub-optimal documentation. Moreover I don't expect anyone
 doing anything: I just ask, if someone is so kind as to reply, so good. If
 no one replies it means I asked in the wrong place or in the wrong way.

 But if I get such harsh replies like yours, I assume either you are a
 troll or you've had a bad day, now you choose, I suspect the latter, since
 you are into wicket much more than many others on this list. However
 please take note: I'm sorry for you but I'm not guilty for your bad day.

 And, while you spend your valuable time into looking at my past messages,
 please observe that I even tried to help others at least once I remember
 of, maybe a few times, the few times I felt like I could actually help. I
 know, you've done much more than me for this community, and I hope one day
 I will have your reputation and deserve your respect, but that day, if it
 ever comes, I'll try to be kind to others too, which is not an optional
 behavior even when you are a wicket expert.

 That being said, I wish you all the best nevertheless.

 /rant



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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: Empty FeedbackPanel

2014-06-12 Thread Lucio Crusca
 If you are able to reproduce this in a mini application (a quickstart app)
 then please attach it to a ticket in Jira and we will see what is going
 wrong.

Thanks:

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





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



Re: Empty FeedbackPanel

2014-06-12 Thread Ernesto Reinaldo Barreiro
Hi,

As far as I can see you are adding components on onBeforeRender(). So, all
components are recreated any time page is rendered  Move your logic to
onInitialize and you will see your feedback messages appear.


On Thu, Jun 12, 2014 at 2:22 PM, Lucio Crusca lu...@sulweb.org wrote:

  If you are able to reproduce this in a mini application (a quickstart
 app)
  then please attach it to a ticket in Jira and we will see what is going
  wrong.

 Thanks:

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





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




-- 
Regards - Ernesto Reinaldo Barreiro


Empty FeedbackPanel

2014-06-11 Thread Lucio Crusca
Here is a form:


http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

here is the relevant html snippet:

form class=inputForm wicket:id=registrationform
  fieldset
legendInserisci i tuoi dati/legend
  div id=feedbackPanel
span wicket:id=feedback/
  /div
div class=campoform
  label wicket:for=nome
span class=inputformlabelspanNome */span
span class=inputWrapper
  input type=text class=text_reg placeholder=nome
wicket:id=nome
/span
  /label
/div
[...]


and java code:

registrationform.add(new TextField(nome).setRequired(true));
registrationform.add(new FeedbackPanel(feedback));

If you click the Invia button (italian for Submit), the validation
takes place (in fact my onSubmit() does not get called since many required
fields are not filled in), but the FeedbackPanel remains empty (take a
look at generated html).

Similar code works in other wicket projects I've done, so I don't know
what I'm doing different/wrong here... any clue?


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



Re: Empty FeedbackPanel

2014-06-11 Thread Sven Meier

Strange, invalid form input isn't preserved either.

Check the application log for clues.

Regards
Sven


On 06/11/2014 06:21 PM, Lucio Crusca wrote:

Here is a form:


http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register

here is the relevant html snippet:

 form class=inputForm wicket:id=registrationform
   fieldset
 legendInserisci i tuoi dati/legend
   div id=feedbackPanel
 span wicket:id=feedback/
   /div
 div class=campoform
   label wicket:for=nome
 span class=inputformlabelspanNome */span
 span class=inputWrapper
   input type=text class=text_reg placeholder=nome
wicket:id=nome
 /span
   /label
 /div
[...]


and java code:

 registrationform.add(new TextField(nome).setRequired(true));
 registrationform.add(new FeedbackPanel(feedback));

If you click the Invia button (italian for Submit), the validation
takes place (in fact my onSubmit() does not get called since many required
fields are not filled in), but the FeedbackPanel remains empty (take a
look at generated html).

Similar code works in other wicket projects I've done, so I don't know
what I'm doing different/wrong here... any clue?


-
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