Re: OutOfMemoryError: Java heap space when i try to upload and show a hundred 100kb pics

2013-09-02 Thread Michael Mosmann


Am 01.09.13 10:53, schrieb Giovanni:

Martin Grigorov-4 wrote

Hi,
Read about Java memory settings (-Xms, -Xmx)

Yes, I can increase heap space by settings, but is this a good approach? If
displaying one 10Mb pic consumes 1.5Gb heap space - is this normal? Maybe
there are other ways to solve this problem without increasing heap space by
settings?
I think there is a better solution if you do not have unlimited memory 
:). See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ 
. You generate every image in your page render loop. This way the image 
data is stored in your page (which is bad). If you use a 
DynamichImageResource the image is created when the image request comes 
in. But you have to store your images somewhere else (remove this static 
list of buffered images) and refer to them with an ID.


Michael

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



Re: WebSockets / Atmosphere with Glassfish 4.0?

2013-09-02 Thread Martin Grigorov
On Sat, Aug 31, 2013 at 9:38 AM, Phill Ashworth ph...@inversebit.comwrote:

 Thanks Martin, that saves me some pain.
 I'd be all for a bit of extra Wicket configuration rather than hope the GF
 team acts on your request.


OK. I'll do it soon.




 On 30 Aug 2013, at 10:46, Martin Grigorov wrote:

  Hi,

 I've tried to make a module for GF 3 for Native WebSockets when Native WS
 module has been introduced -
 https://github.com/apache/**wicket/tree/sandbox/wicket-**
 native-websocket-glassfishhttps://github.com/apache/wicket/tree/sandbox/wicket-native-websocket-glassfish
 But it didn't work well because of: bugs in GF 3, lack of demo apps, lack
 of interest.

 Recently I've added JSR356 based implementation to Wicket 7 -
 https://github.com/apache/**wicket/tree/master/wicket-**
 experimental/wicket-native-**websocket/wicket-native-**websocket-javaxhttps://github.com/apache/wicket/tree/master/wicket-experimental/wicket-native-websocket/wicket-native-websocket-javax
 But again this doesn't work on GF 4 :-/ due to
 https://java.net/jira/browse/**WEBSOCKET_SPEC-181https://java.net/jira/browse/WEBSOCKET_SPEC-181.
 The impl works with Tomcat
 8, and Tomcat 7 (next release will have the JSR based impl backported).
 This can be improved by moving the WebSocket Endpoint creation logic to a
 ServletContextListener instead of a Filter but this will require
 additional
 setup steps that I'd like to avoid.



  Has anyone managed to use Wicket + native WebSockets or Atmosphere on
 Glassfish 4.0?
 Neither of the current modules work out of the box on Glassfish 4.0, just
 wondering if anyone has had any success with this combination or can give
 me any time saving pointers.
 -Phill

 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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



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




Re: jQuery reference with context relative path

2013-09-02 Thread Martin Grigorov
Hi,

You can use :
new ResourceReference() {
  @Override IResource getResource() {return new
org.apache.wicket.request.resource.ContextRelativeResource(
scripts/libs/jquery-1.8.3/jquery-1.8.3.custom.min.js)}
}


On Fri, Aug 30, 2013 at 8:30 PM, divad91 diva...@hotmail.com wrote:

 Hi, I am using wicket 6.8.0.

 I need to use a custom jquery reference. My custom js file is in my
 webapp/scripts/lib folder.
 I cannot figure out how to create a ResourceReference base on a url  like
 HeaderItem.

 *Application.init:*

 getJavaScriptLibrarySettings().setJQueryReference(SwtuJqueryResourceReference.get());

 *HeaderItem base on a url:*

 JavaScriptHeaderItem.forUrl(scripts/libs/jquery-1.8.3/jquery-1.8.3.custom.min.js);

 If I use a UrlResourceReference, every time my page is accessed with an
 optional parameter, my reference to my js file don't work.

 Thanks
 Dav



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/jQuery-reference-with-context-relative-path-tp4661155.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: Styling label tags

2013-09-02 Thread Martin Grigorov
On Sat, Aug 31, 2013 at 10:18 AM, Lucio Crusca lu...@sulweb.org wrote:

 In data venerdì 30 agosto 2013 10:48:35, Martin Grigorov ha scritto:
  Hi Lucio,
 
  The suggested solution should work.

 Which one? I think I've tried all of them and reported issues here, but
 maybe
 I missed one.


FormComponentLabel + AttributeModifier




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




Re: Image Tag Wicket Processing

2013-09-02 Thread Abigail
Hi,How about your code?If there is something wrong,then you can check your
code .Or you can create a .NET image SDK,which can  process image
http://www.rasteredge.com/how-to/csharp-imaging/process-online/   as you
wish



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-Tag-Wicket-Processing-tp3258703p4661168.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: Styling label tags

2013-09-02 Thread tan_packt
Hi..There is a new Apache Wicket book. Instant Apache Wicket 6 by João
Sávio Ceregatti Longo and Felipe Fedel Pinto. In case you'd be interested in
getting an ebook copy and writing a review on your
blog/website/amazon.com/goodreads.com. Please contact me at:
tan...@packtpub.com 
Here is the link of the book for your convenience: http://bit.ly/15w4LEI 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Styling-label-tags-tp4661070p4661167.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



AutoCompleteTextField ajax update problem

2013-09-02 Thread jchappelle
I am in the process of migrating our app from wicket 1.5.10 to 6.10.0. I have
a panel that uses an AutoCompleteTextField with an
AjaxFormComponentUpdatingBehavior(onchange) behavior attached. It works
fine the first time I type something and select it, but it does not fire the
onchange event after that. I'm adding the entire panel that contains the
AutoCompleteTextField to the AjaxRequestTarget. If I only add the label that
displays the selection, then it works. I know javascript event registration
changed in wicket 6 and I'm assuming it has something to do with that.

This worked in 1.5.10. I can post my quickstart or just my code since it is
a very small amount. I've seen other posts similar to this but I could not
find my exact use case.

Any help is greatly appreciated.

Thanks,

Josh



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176.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