Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Phil Franken

Are there any plans to include a fix for this in 1.14.18?

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

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



warn on exit from browser

2011-05-12 Thread rebecca
Hello all,

I would like to know if there is a way to open a popup window just before
the user tries to exit the browser window?

I tried using the onbeforeunload event on the body tag and managed to get
a prompt message that enables me to go back to the page i tried to exit.

Do you know a better solution?

Thanks
Rebecca

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3516569.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: ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-12 Thread Marieke Vandamme
Igor, 

Thanks for the answer, and you're right indeed. 
I forgot that I added code in my HeaderContributor that checked if it was an
ajax request. Because I found it useless so re-add all the css + js to the
page just when you're readding your form after validation or something. But
when using the HeaderContributor with the modalwindow, I can never be
certain that the css / js is already loaded or not. 
So I just removed my ajax-check, and now it's working. But can I maybe add
some test to check if my HomeMadeReusabel component is inside a ModalWindow?
Because now I re-add the js + css every time on an ajax call, and most of
the time it's not necessary. 

Thanks! Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-HeaderContributor-in-Panel-not-called-tp3514628p3516743.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: warn on exit from browser

2011-05-12 Thread rebecca
Thank you andrea, but i already managed to use javascript to show a confirm
dialog.

What I would like to know is if it is possible to change the default
behavior of the browser and to show a wicket popup instead of the confirm
dialog?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3516849.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: warn on exit from browser

2011-05-12 Thread Andrea Del Bene
So far as i know Wicket can't  help you that much since this is a pure 
client side problem.

Thank you andrea, but i already managed to use javascript to show a confirm
dialog.

What I would like to know is if it is possible to change the default
behavior of the browser and to show a wicket popup instead of the confirm
dialog?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3516849.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



CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread heapifyman

Hello,

I have a CheckGroup and the CheckGroupSelector. Everythings working fine
so far except for one thing. If I check all checkboxes in the group
(manually or through checking the CheckGroupSelector), save this to a
database and reload the page, the individual checkboxes are correctly
displayed as checked but the CheckGroupSelector is not, i.e.I have to
click the CheckGroupSelector twice to uncheck all the individual checkboxes.
So how do I let the CheckGroupSelector reflect the current state of the
individual checkboxes when the page is loaded?

Thanks for any hints



signature.asc
Description: OpenPGP digital signature


Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
Hi Phil, I'm about to upload a quickstart to this ticket proving it is
not a Wicket related problem. The container is always reading the
entire input stream regardless of the application doing it or not.
I talked about in IRC and Igor suggested me to close the stream if it
exceed the max limit, but by doing so the client gets no response and
browser shows a page saying that the connection to server are lost.


On Thu, May 12, 2011 at 3:39 AM, Phil Franken phil.fran...@gmail.com wrote:
 Are there any plans to include a fix for this in 1.14.18?

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

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





-- 
Pedro Henrique Oliveira dos Santos

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



Unable to Get images and text in listmultiplechoice box

2011-05-12 Thread vn0058212
Hi Guys,

I have had to do lots of searching for this but couldn't find it.

So i have a list box which now has dummy values in it and i will list out
the problems i am facing,

1.) i am unable to get the selected value/values from this list box.
(ajaxformupdating s giving errors on ListMultipleChoice)

2.) Also i am unable to populate my listbox with images+text. (I need to get
images from the images folder and text from database.) But for now i am
content with dummy text and image.

Heres my code,

.java
List choices = new ArrayList();
choices.add(A);
choices.add(B);
choices.add(C);
choices.add(D);
   
ListMultipleChoice lc = new
ListMultipleChoice(myMultiListChoice, new PropertyModel(model,
foobarList), choices);
add(lc);
 

.html

form
select wicket:id=myMultiListChoice size=5
optionoption1/option
optionoption2/option
optionoption3/option
optionoption4/option
optionoption5/option
   /select 
   /form   


Kindly help me out in this regard... 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unable-to-Get-images-and-text-in-listmultiplechoice-box-tp3517149p3517149.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: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread eugenebalt
But what is responsible for actually presenting (listing) the items?

My Model can be a HashMaplt;String,Listgt; that maps a category to a list
of errors in that category. But what do I have to override to make the
feedback panel present that hierarchical list based on the HashMap?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-Hierarchical-DT-DD-Definition-List-Tags-tp3515696p3517279.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: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread Martin Grigorov
It looks like CheckGroupSelector doesn't support that right now.
Please file a ticket.
Attaching a quickstart will make it easier for us and it will be improved
sooner.

On Thu, May 12, 2011 at 1:44 PM, heapifyman heapify...@gmail.com wrote:


 Hello,

 I have a CheckGroup and the CheckGroupSelector. Everythings working fine
 so far except for one thing. If I check all checkboxes in the group
 (manually or through checking the CheckGroupSelector), save this to a
 database and reload the page, the individual checkboxes are correctly
 displayed as checked but the CheckGroupSelector is not, i.e.I have to
 click the CheckGroupSelector twice to uncheck all the individual
 checkboxes.
 So how do I let the CheckGroupSelector reflect the current state of the
 individual checkboxes when the page is loaded?

 Thanks for any hints




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


Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
ListView is a good component to present lists.

e.g.

class MyFeedbackPanel extends Panel implements IFeedback{
onInitialize(){
  super.onInitialize();
  HashMapString,List messagesByCategory = getModelObject();
  add(new ListView(messagesByCategory.keySet()){
populateItem(){
  item.add(new Label(category));
  item.add(new ListView(messagesByCategory.get(catetory)){
populateItem(){
   nestedItem.add(new Label(errorMessage));
}
  });
}
  });
}
}

On Thu, May 12, 2011 at 10:04 AM, eugenebalt eugeneb...@yahoo.com wrote:
 But what is responsible for actually presenting (listing) the items?

 My Model can be a HashMapString,List that maps a category to a list
 of errors in that category. But what do I have to override to make the
 feedback panel present that hierarchical list based on the HashMap?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-Hierarchical-DT-DD-Definition-List-Tags-tp3515696p3517279.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





-- 
Pedro Henrique Oliveira dos Santos

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



Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread Carl-Eric Menzel

I ran into the same issue some time ago and did some work on (I think)
the CheckGroupSelector, as well as Javascript selectors for the other
types of checkboxes. I'll see over the weekend whether I can extract
all that into a useful patch. Once heapifyman opens the ticket, I'll
attach it there.

Carl-Eric

On Thu, 12 May 2011 15:17:00 +0200
Martin Grigorov mgrigo...@apache.org wrote:

 It looks like CheckGroupSelector doesn't support that right now.
 Please file a ticket.
 Attaching a quickstart will make it easier for us and it will be
 improved sooner.
 
 On Thu, May 12, 2011 at 1:44 PM, heapifyman heapify...@gmail.com
 wrote:
 
 
  Hello,
 
  I have a CheckGroup and the CheckGroupSelector. Everythings working
  fine so far except for one thing. If I check all checkboxes in the
  group (manually or through checking the CheckGroupSelector), save
  this to a database and reload the page, the individual checkboxes
  are correctly displayed as checked but the CheckGroupSelector is
  not, i.e.I have to click the CheckGroupSelector twice to uncheck
  all the individual checkboxes.
  So how do I let the CheckGroupSelector reflect the current state of
  the individual checkboxes when the page is loaded?
 
  Thanks for any hints
 
 
 
 



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



Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread heapifyman
Am 12.05.2011 15:17, schrieb Martin Grigorov:
 It looks like CheckGroupSelector doesn't support that right now.
 Please file a ticket.
 Attaching a quickstart will make it easier for us and it will be improved
 sooner.

in the meantime I found a solution:

if (selected.size() == all.size()) {
checkGroupSelector.add(new SimpleAttributeModifier(checked,
checked));
}

where selected is the collection passed to the CheckGroup and all is
the collection passed to the ListView populating the individual checkboxes.

Do you guys still think there's need for a ticket? Maybe this should at
least be added to the documentation for the CheckGroup?

 On Thu, May 12, 2011 at 1:44 PM, heapifyman heapify...@gmail.com wrote:

 Hello,

 I have a CheckGroup and the CheckGroupSelector. Everythings working fine
 so far except for one thing. If I check all checkboxes in the group
 (manually or through checking the CheckGroupSelector), save this to a
 database and reload the page, the individual checkboxes are correctly
 displayed as checked but the CheckGroupSelector is not, i.e.I have to
 click the CheckGroupSelector twice to uncheck all the individual
 checkboxes.
 So how do I let the CheckGroupSelector reflect the current state of the
 individual checkboxes when the page is loaded?

 Thanks for any hints







signature.asc
Description: OpenPGP digital signature


Re: CheckGroupSelector - set checked if all Checkboxes are already selected

2011-05-12 Thread Martin Grigorov
I am not sure whether you solution actually works.
I think they will be always the same.

On Thu, May 12, 2011 at 3:35 PM, heapifyman heapify...@gmail.com wrote:

 Am 12.05.2011 15:17, schrieb Martin Grigorov:
  It looks like CheckGroupSelector doesn't support that right now.
  Please file a ticket.
  Attaching a quickstart will make it easier for us and it will be improved
  sooner.

 in the meantime I found a solution:

 if (selected.size() == all.size()) {
checkGroupSelector.add(new SimpleAttributeModifier(checked,
 checked));
 }

 where selected is the collection passed to the CheckGroup and all is
 the collection passed to the ListView populating the individual checkboxes.

 Do you guys still think there's need for a ticket? Maybe this should at
 least be added to the documentation for the CheckGroup?

  On Thu, May 12, 2011 at 1:44 PM, heapifyman heapify...@gmail.com
 wrote:
 
  Hello,
 
  I have a CheckGroup and the CheckGroupSelector. Everythings working fine
  so far except for one thing. If I check all checkboxes in the group
  (manually or through checking the CheckGroupSelector), save this to a
  database and reload the page, the individual checkboxes are correctly
  displayed as checked but the CheckGroupSelector is not, i.e.I have to
  click the CheckGroupSelector twice to uncheck all the individual
  checkboxes.
  So how do I let the CheckGroupSelector reflect the current state of the
  individual checkboxes when the page is loaded?
 
  Thanks for any hints
 
 
 





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


Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread eugenebalt
Do I also have to override getModelObject()? If so, how?

I'm getting an error in your code on the line
HashMaplt;String,Listgt; messagesByCategory = getModelObject();

the error is that getModelObject() is undefined for the custom class. Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-Hierarchical-DT-DD-Definition-List-Tags-tp3515696p3517407.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: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
Hi, the code I sent was only to give you an idea of how to use
ListView. I understood by your previous mails that you already have a
HashMapString,List.

On Thu, May 12, 2011 at 10:41 AM, eugenebalt eugeneb...@yahoo.com wrote:
 Do I also have to override getModelObject()? If so, how?

 I'm getting an error in your code on the line
 HashMapString,List messagesByCategory = getModelObject();

 the error is that getModelObject() is undefined for the custom class. Thanks

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-Hierarchical-DT-DD-Definition-List-Tags-tp3515696p3517407.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





-- 
Pedro Henrique Oliveira dos Santos

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



Getting Parameters from URL

2011-05-12 Thread drf
We have code in our session object as follows:

public class OurSession extends WebSession {

   public OurSession(Request request)}{
   super(request)
   // GET PARAMETERS FROM REQUEST
   userId = request.getParameter(userId);
  }

}

This works the first time, so if the url has a parameter of userId=JOHN
then this can be picked up in the above code.
However, if the application is again requested from the browser (and the
session already exists), this code will not get called.
What is then the best way to pick up the parameters on the url?
Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-Parameters-from-URL-tp3517499p3517499.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: Getting Parameters from URL

2011-05-12 Thread Andrea Del Bene

Hi,

in your you can use static method RequestCycle.get().getRequest() to get 
the current request and extract parameters.

We have code in our session object as follows:

public class OurSession extends WebSession {

public OurSession(Request request)}{
super(request)
// GET PARAMETERS FROM REQUEST
userId = request.getParameter(userId);
   }

}

This works the first time, so if the url has a parameter of userId=JOHN
then this can be picked up in the above code.
However, if the application is again requested from the browser (and the
session already exists), this code will not get called.
What is then the best way to pick up the parameters on the url?
Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-Parameters-from-URL-tp3517499p3517499.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



New Website up using wicket

2011-05-12 Thread Henrique Boregio
Hey, just wanted to let you guys know that with the help of this
community, I was able to build my first real website using wicket.

Thanks everyone for the support in always trying answering the
questions I've answered. I look forward to using wicket in other
projects.

Oh, its spekios.com if anyone is interested. Thanks once again :)

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



Re: New Website up using wicket

2011-05-12 Thread Pedro Santos
Cool! The site runs pretty fast here, congrats.

On Thu, May 12, 2011 at 11:20 AM, Henrique Boregio hbore...@gmail.com wrote:
 Hey, just wanted to let you guys know that with the help of this
 community, I was able to build my first real website using wicket.

 Thanks everyone for the support in always trying answering the
 questions I've answered. I look forward to using wicket in other
 projects.

 Oh, its spekios.com if anyone is interested. Thanks once again :)

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





-- 
Pedro Henrique Oliveira dos Santos

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



Re: New Website up using wicket

2011-05-12 Thread aladejebi
Great site! And lovely concept. Congrats
--Original Message--
From: Henrique Boregio
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: New Website up using wicket
Sent: May 12, 2011 3:20 PM

Hey, just wanted to let you guys know that with the help of this
community, I was able to build my first real website using wicket.

Thanks everyone for the support in always trying answering the
questions I've answered. I look forward to using wicket in other
projects.

Oh, its spekios.com if anyone is interested. Thanks once again :)

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


Sent via my BlackBerry Device  from MTN

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



Re: New Website up using wicket

2011-05-12 Thread nino martinez wael
Nice and works fine on my Android phone
On May 12, 2011 4:20 PM, Henrique Boregio hbore...@gmail.com wrote:
 Hey, just wanted to let you guys know that with the help of this
 community, I was able to build my first real website using wicket.

 Thanks everyone for the support in always trying answering the
 questions I've answered. I look forward to using wicket in other
 projects.

 Oh, its spekios.com if anyone is interested. Thanks once again :)

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



Re: Time to render ajax panel

2011-05-12 Thread Martijn Dashorst
One word: requestlogger, see chapter 14 of WiA, or search using google.

Martijn

On Thu, May 12, 2011 at 5:27 PM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
 If I am using ajax tabbed panel.  What is a good way to see how long it
 takes to render that panel?  Could I use onBeforeRender and
 onAfterRender?

 This is not necessarily tied to a page that gets refreshed per request.
 E.g. the panel will get rerendered several times before the page will
 ever be refreshed.




-- 
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: Time to render ajax panel

2011-05-12 Thread Martin Grigorov
Second word: AjaxClientServerResponseFilter

On Thu, May 12, 2011 at 5:45 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 One word: requestlogger, see chapter 14 of WiA, or search using google.

 Martijn

 On Thu, May 12, 2011 at 5:27 PM, Brown, Berlin [GCG-PFS]
 berlin.br...@primerica.com wrote:
  If I am using ajax tabbed panel.  What is a good way to see how long it
  takes to render that panel?  Could I use onBeforeRender and
  onAfterRender?
 
  This is not necessarily tied to a page that gets refreshed per request.
  E.g. the panel will get rerendered several times before the page will
  ever be refreshed.
 



 --
 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




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


Re: ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-12 Thread Igor Vaynberg
wicket keeps track of header contributions and doesnt contribute the
same contribution more then once.

-igor


On Thu, May 12, 2011 at 1:24 AM, Marieke Vandamme
marieke.vanda...@tvh.be wrote:
 Igor,

 Thanks for the answer, and you're right indeed.
 I forgot that I added code in my HeaderContributor that checked if it was an
 ajax request. Because I found it useless so re-add all the css + js to the
 page just when you're readding your form after validation or something. But
 when using the HeaderContributor with the modalwindow, I can never be
 certain that the css / js is already loaded or not.
 So I just removed my ajax-check, and now it's working. But can I maybe add
 some test to check if my HomeMadeReusabel component is inside a ModalWindow?
 Because now I re-add the js + css every time on an ajax call, and most of
 the time it's not necessary.

 Thanks! Marieke Vandamme

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-HeaderContributor-in-Panel-not-called-tp3514628p3516743.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: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Phil Franken
Thanks for the update Pedro.  I concur with your assesment based on what 
I've seen, but this makes me worry.  Does this mean if I set a file size 
limit of 1MB and someone uploads a 2GB file the container will read the 
entire 2GB?  Not good, with or without progress bar.  Anyone suggestions 
on how to handle this?


On 5/12/2011 7:47 AM, Pedro Santos wrote:

Hi Phil, I'm about to upload a quickstart to this ticket proving it is
not a Wicket related problem. The container is always reading the
entire input stream regardless of the application doing it or not.
I talked about in IRC and Igor suggested me to close the stream if it
exceed the max limit, but by doing so the client gets no response and
browser shows a page saying that the connection to server are lost.


On Thu, May 12, 2011 at 3:39 AM, Phil Frankenphil.fran...@gmail.com  wrote:

Are there any plans to include a fix for this in 1.14.18?

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

-
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: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
You can setup a firewall to prevent DOS attacks, I'm not sure if
Wicket needs to read the input stream regardless of its HTTP header
specifying that the upload exceed the limit just to close the stream.

On Thu, May 12, 2011 at 1:52 PM, Phil Franken phil.fran...@gmail.com wrote:
 Thanks for the update Pedro.  I concur with your assesment based on what
 I've seen, but this makes me worry.  Does this mean if I set a file size
 limit of 1MB and someone uploads a 2GB file the container will read the
 entire 2GB?  Not good, with or without progress bar.  Anyone suggestions on
 how to handle this?

 On 5/12/2011 7:47 AM, Pedro Santos wrote:

 Hi Phil, I'm about to upload a quickstart to this ticket proving it is
 not a Wicket related problem. The container is always reading the
 entire input stream regardless of the application doing it or not.
 I talked about in IRC and Igor suggested me to close the stream if it
 exceed the max limit, but by doing so the client gets no response and
 browser shows a page saying that the connection to server are lost.


 On Thu, May 12, 2011 at 3:39 AM, Phil Frankenphil.fran...@gmail.com
  wrote:

 Are there any plans to include a fix for this in 1.14.18?

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

 -
 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





-- 
Pedro Henrique Oliveira dos Santos

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



Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Phil Franken
Firewall not really an option (no budget).  Ok so instead of closing the 
stream can you at least make sure the progress bar is invisible and let 
the container do its thing?  I'm using Tomcat do you know of any way to 
set a max file size in Tomcat?



On 5/12/2011 1:02 PM, Pedro Santos wrote:

You can setup a firewall to prevent DOS attacks, I'm not sure if
Wicket needs to read the input stream regardless of its HTTP header
specifying that the upload exceed the limit just to close the stream.

On Thu, May 12, 2011 at 1:52 PM, Phil Frankenphil.fran...@gmail.com  wrote:

Thanks for the update Pedro.  I concur with your assesment based on what
I've seen, but this makes me worry.  Does this mean if I set a file size
limit of 1MB and someone uploads a 2GB file the container will read the
entire 2GB?  Not good, with or without progress bar.  Anyone suggestions on
how to handle this?

On 5/12/2011 7:47 AM, Pedro Santos wrote:

Hi Phil, I'm about to upload a quickstart to this ticket proving it is
not a Wicket related problem. The container is always reading the
entire input stream regardless of the application doing it or not.
I talked about in IRC and Igor suggested me to close the stream if it
exceed the max limit, but by doing so the client gets no response and
browser shows a page saying that the connection to server are lost.


On Thu, May 12, 2011 at 3:39 AM, Phil Frankenphil.fran...@gmail.com
  wrote:

Are there any plans to include a fix for this in 1.14.18?

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

-
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



Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
Hi Phil, I replied in the ticket. Just realize it is not the right
thread to talk about.

On Thu, May 12, 2011 at 2:10 PM, Phil Franken phil.fran...@gmail.com wrote:
 Firewall not really an option (no budget).  Ok so instead of closing the
 stream can you at least make sure the progress bar is invisible and let the
 container do its thing?  I'm using Tomcat do you know of any way to set a
 max file size in Tomcat?


 On 5/12/2011 1:02 PM, Pedro Santos wrote:

 You can setup a firewall to prevent DOS attacks, I'm not sure if
 Wicket needs to read the input stream regardless of its HTTP header
 specifying that the upload exceed the limit just to close the stream.

 On Thu, May 12, 2011 at 1:52 PM, Phil Frankenphil.fran...@gmail.com
  wrote:

 Thanks for the update Pedro.  I concur with your assesment based on what
 I've seen, but this makes me worry.  Does this mean if I set a file size
 limit of 1MB and someone uploads a 2GB file the container will read the
 entire 2GB?  Not good, with or without progress bar.  Anyone suggestions
 on
 how to handle this?

 On 5/12/2011 7:47 AM, Pedro Santos wrote:

 Hi Phil, I'm about to upload a quickstart to this ticket proving it is
 not a Wicket related problem. The container is always reading the
 entire input stream regardless of the application doing it or not.
 I talked about in IRC and Igor suggested me to close the stream if it
 exceed the max limit, but by doing so the client gets no response and
 browser shows a page saying that the connection to server are lost.


 On Thu, May 12, 2011 at 3:39 AM, Phil Frankenphil.fran...@gmail.com
  wrote:

 Are there any plans to include a fix for this in 1.14.18?

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

 -
 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





-- 
Pedro Henrique Oliveira dos Santos

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



Re: Nested forms quick question

2011-05-12 Thread Alexandru Artimon

Yes they are necessarily nested.
Thanks Martin, I'll give it a try.

Alex

On 05/06/2011 09:15 PM, Martin Grigorov wrote:

instead of setRequired() use isRequired(submittedForm == innerForm)

On Fri, May 6, 2011 at 6:04 PM, Titonjyt...@gmail.com  wrote:

Are these necessarily nested forms?

2011/5/5 Alexandru Artimonaarti...@developmentgateway.org


Hey guys,

When I submit the main form can I prevent the submit of the inner forms?

I have some small forms to add items to the main form. The fields in the
inner forms have setRequired(true), so when I submit the main form I get
errors that those fields are empty. Any ideas?

Thanks,
Alexandru

-
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: Weird jsp include output

2011-05-12 Thread Martin Grigorov
Not sure what exactly happens but looking at the code in wiki I'd re-make
JspContainer to JspBehavior. I doubt this will help but you can try it
anyway.
Which version of Wicket do you use ?

On Thu, May 12, 2011 at 8:56 PM, Alexandru Artimon 
aarti...@developmentgateway.org wrote:

 Hi guys,

 I've implemented the wicket:jsp tag as described in the wicket wiki 
 https://cwiki.apache.org/WICKET/including-jsp-files-in-html-templates.html
 and I use it to include the header and the footer in the current wicket
 page. Like this:

   wicket:jsp file=header.jsp /
   table width=1000 border=0 cellspacing=0 cellpadding=0
   align=center
   wicket:child/
   /table
   div class=footer
   /wicket:jsp file=footer.jsp //
   /div

 But the outcome is strange because the footer is above the page content:

   header
   div class=footer
   /footer/
   /div
   wicket script declarations
   table width=1000 border=0 cellspacing=0 cellpadding=0
   align=center
   Page Content
   /table

 I know that wicket html tags are processed before the page is built, but
 why do the html elements invert? Or is there a solution for this ?

 Thanks in advance,
 Alex




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


Re: ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-12 Thread Nicklas Johnson
On a related note, has anyone experienced HeaderContributors being
ineffective in IE8 when added via an ajax event?

The scenario is that a component with an attached Ibehavior which in turn
provides several Javascript HeaderContributors is added to an ajax target
(eg, target.addComponent(fooComponent)).

In Firefox the HeaderContributor seems to be added and evaluated correctly,
and the behavior works as expected.  In IE8, however, the contributed
Javascript appears not to be evaluated.

We are able to work around it by pre-adding the HeaderContributors prior to
the ajax event being fired, but that's kind of a messy solution... Would
rather see IE8 doing the right thing.

(Still need to get up to the latest 1.4, so it's possible that this problem
has already been addressed, though I'm curious if it is or was a known
problem with that dreadful browser.)

   Nick


On 5/12/11 9:51 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 wicket keeps track of header contributions and doesnt contribute the
 same contribution more then once.
 
 -igor
 
 
 On Thu, May 12, 2011 at 1:24 AM, Marieke Vandamme
 marieke.vanda...@tvh.be wrote:
 Igor,
 
 Thanks for the answer, and you're right indeed.
 I forgot that I added code in my HeaderContributor that checked if it was an
 ajax request. Because I found it useless so re-add all the css + js to the
 page just when you're readding your form after validation or something. But
 when using the HeaderContributor with the modalwindow, I can never be
 certain that the css / js is already loaded or not.
 So I just removed my ajax-check, and now it's working. But can I maybe add
 some test to check if my HomeMadeReusabel component is inside a ModalWindow?
 Because now I re-add the js + css every time on an ajax call, and most of
 the time it's not necessary.
 
 Thanks! Marieke Vandamme
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-HeaderContr
 ibutor-in-Panel-not-called-tp3514628p3516743.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
 

-- 
Nicklas Johnson -=- N6OL
TXBU Software Engineer
Ask is not a noun.  You mean request, requirement, or question.


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



Re: Nothing happens on AJAX call after session timeout

2011-05-12 Thread Gabriel Landon
I've tried to use a filter without success because as explained 
http://www.mail-archive.com/users@tomcat.apache.org/msg75996.html here  :
Valves are called before filters, and Tomcat's authentication and
authorization are implemented as Valves. I don't believe you can have your
filter run before the auth Valve.


So in the request there is no Wicket-Ajax in the header when the session
is timeout to know if it's an ajax request.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3519167.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: New Website up using wicket

2011-05-12 Thread Josh Kamau
Works really fast. Just curious. Whats on the back end?
spring/guice/hibernate/???

Josh.

On Thu, May 12, 2011 at 6:45 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Nice and works fine on my Android phone
 On May 12, 2011 4:20 PM, Henrique Boregio hbore...@gmail.com wrote:
  Hey, just wanted to let you guys know that with the help of this
  community, I was able to build my first real website using wicket.
 
  Thanks everyone for the support in always trying answering the
  questions I've answered. I look forward to using wicket in other
  projects.
 
  Oh, its spekios.com if anyone is interested. Thanks once again :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org