Re: java.util.ConcurrentModificationException inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put

2008-12-17 Thread Xhelas

Same symptoms using wocket 1.4-rc1.

Regards

Alexandre


leok wrote:
 
 I was poking through some logs, and I noticed a few rare instances of this
 exception:
 
 java.util.ConcurrentModificationException
   at
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365)
   at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:376)
   at java.util.HashSet.writeObject(HashSet.java:254)
   at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at java.util.HashMap.writeObject(HashMap.java:1328)
   at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
 [..snip..]
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at
 org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:117)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:303)
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:278)
   at org.apache.wicket.Page.writeReplace(Page.java:1299)
   at sun.reflect.GeneratedMethodAccessor6627.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004)
 [..snip..]
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
   at
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:811)
   at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
 
 I'm using Wicket 1.3.5. It seems there might be some strange racing
 happening while pages are being serialized.
 
 EDIT: I actually posted before completing my message. I meant to add -
 where would there be non thread-safe modifications to the serialized page?
 I presume that the there must be some sort of lock on the object when it's
 being serialized. More importantly - how harmful is this exception?
 

-- 
View this message in context: 
http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21065024.html
Sent from the Wicket - User 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: What is your experience on the time of development ?

2009-01-04 Thread Xhelas

This is a very interesting and surprising post in this forum. Do you have
further explanation about your superior productivity using Grails? Is this
due to the kind of applications you developp or to special tools that comes
with this framework? Is the key stone groovy?
Thanks for your enlighments!


Curtis Cooley-2 wrote:
 
 Martin Sachs wrote:
 pI'm looking for a little comparison of the development-time for
 Applications in Wicket against other Technologies. /p
 p
 I think the development with Wicket is two times faster than Struts. But
 what are your experiences on JSF, Rails/Grails, SpringMVC/SpringWebFlow.
 /p
 Anyone you know the development-time from experience ?
 br

 (P.S.: The applications must use AJAX and many custom components or tags
 in JSP, not just a hello world sample)

 
 I built a small database driven application in about 4 days using Grails
 then my boss freaked about using a 4GL and made me rewrite it in
 Wicket. That took me about 3 weeks.
 
 Now, I started at 0 with both frameworks and used
 Wicket+Spring+Hibernate which I got Spring and Hibernate wiring for free
 with Grails. My Spring and Hibernate experience was 0, so grails really
 pulled through in that area. I also have experience with Ruby and Rails
 which helped with the Grails work, but I'd also built a few (4-5) Wicket
 pages for another app, so I think that about balances starting points.
 
 My really rough guess is that I'd be 50 to 75 percent more effective in
 Grails than Wicket now that I know what I learned during the three weeks
 of Wicket work.
 
 If I had my druthers, I'd build our app using Grails. I much prefer
 Groovy/Ruby to Java, and I've been writing Java since 1.1!
 
 
 
 Confidential/Privileged information may be contained in this email. If you
 are not the intended recipient, please do not copy, distribute or use it
 for any purpose, nor disclose its contents to any other person. Please
 notify the sender immediately if you receive this in error.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

-- 
View this message in context: 
http://www.nabble.com/What-is-your-experience-on-the-time-of-development---tp20971605p21280228.html
Sent from the Wicket - User 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: Google Adsense.

2009-01-31 Thread Xhelas

I have no problem with this using wicket 1.4.rc1. And i never had problem
using previous versions. 
Regards
Alexandre

ej595 wrote:
 
 Hi all,
 im not sure if anyone else has any experience of using google adsense
 within your wicket html, but i seem to be finding that it interferes with
 the rendering of the wicket pages. By that i mean, if i include the
 adsense code in the html, when wicket renders the page i get this
 intermittent 'unable to find component X' error. It seems to be something
 to do with the time it takes to retrieve the actual advert and the
 rendering of the page via wicket. It never happens on localhost, but once
 the war has been deployed to a web environment, the logs are littered with
 this error and the html stack traces.
 
 Im not entirely sure what to do other than to remove the ad. Once i remove
 the ad, the page is fine. Id appreciate if anyone has any experience in
 this area of adsense and wicket.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Google-Adsense.-tp21764673p21765776.html
Sent from the Wicket - User 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



Accessing IFrame field from parent

2009-02-13 Thread Xhelas

I have a page and an IFrame is this page. I try to access in javascript, from
the parent page, a field from the Iframe page. But firefox gives me a
security exception. I understands that the URI of the IFrame and of the
parent page are not the same, and that is why I get this exception. The
paretn page is bookmarkable, and I could not have the IFrame page to be
bookmarkable in order to have it having a sub URI with regard to the parent
page. Is it possible to have control on the URI of an IFrame? 

Thank you for your attention.

Alexandre
-- 
View this message in context: 
http://www.nabble.com/Accessing-IFrame-field-from-parent-tp22007523p22007523.html
Sent from the Wicket - User 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: bookmarkable URL and sortable data table

2008-09-24 Thread Xhelas

I have encountered the same problem as you. 
I have solved it thsi way:

The page that contains the table has parameters that reflects the state of
the table. 
Then I created the class :
public class BookmarkableOrderByBorder extends Border

that is created by the overriden newSortableHader of mytable. 

This BookmarkableOrderByBorder includes a BookmarkablePageLink that include
the sort state of my
BookmarkableTable. I don't know if this is the ideal solution. 

Well, you can check the result here where several BookmarkableTables can be
in a page:

http://cubefactory.selfip.com/globalparanoia/clan.html/clan/PARANOIA/
http://cubefactory.selfip.com/globalparanoia/clan.html/clan/PARANOIA/ 

I hope you get the idea. I found it by carefully reading the wicket code. 

Regards

Alexandre


Monica D'Arcy wrote:
 
 Hi,
 
 I have an application that uses primarily Bookmarkable pages.  On the  
 main Search page there is also a DefaultDataTable that uses a  
 SortableDataProvider.  When clicking on  sortable column, the URL  
 becomes wicketized.  Is there a way to easily override this  
 behavior so that the URLs produced by sorting data in the DataTable  
 are also of a Bookmarkable form.
 
 Thanks in advance for any help,
 Monica
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/bookmarkable-URL-and-sortable-data-table-tp19518388p19659583.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javadoc for wicket 1.3.5 - how to include it in eclipse

2008-10-31 Thread Xhelas

You have run run mvn javadoc:javadoc at the root of the source directory.
This will generated all the javadoc. Then you have to associate each jar
with its corresponding javadoc root directory. 

Regards,

Alexandre


Pieter Claassen wrote:
 
 What is the most effective way to get the documentation available offline
 for wicket 1.3.5 in Eclipse. I notice that mvn eclipse:eclipse
 -Ddownloadsources=true does not give javadocs.
 
 Regards,
 Pieter
 
 

-- 
View this message in context: 
http://www.nabble.com/Javadoc-for-wicket-1.3.5---how-to-include-it-in-eclipse-tp20261585p20261864.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax busy indicator never stops in IE

2008-11-14 Thread Xhelas

All the same for me with 1.4-rc1.


miro wrote:
 
 My  page has IndicatingAjaxLinkWhen user clicks on this  link   the
 busy indicator never stops , it works fine in firefox 
 
 here some html
 
   tbody 
 wicket:id=auditInfoContainer
 style=width:100%;height:556;overflow:auto; 
   wicket:container 
 wicket:id=auditInfos
   tr 
 wicket:id=auditInfo  height=10 
   
 td
   
 
   
 /td   
   
 td
   
 
   
 /td   
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   
 td
   
 
   
 /td
   /tr
   /wicket:container 
   /tbody
 auditInfo   is the link .
 
 I am using wicket 1.3.5  
 

-- 
View this message in context: 
http://www.nabble.com/ajax-busy-indicator-never-stops-in-IE-tp20485948p20496470.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket upload example in latest snapshot (1.4) has exception

2008-11-14 Thread Xhelas

This indeed happens in 1.4-rc1 and it did not happened in 1.4-m3. Another fix
is to override the updateModel method of FileUploadField in neutralize it.

Regards.

Alexandre


NickCanada wrote:
 
 Apologies  -after a more thorough search of the issue the following thread
 addresses the issue:
 http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--td19283571.html#a19312573
 
 from UploadPage.java in the examples:
 
 add(fileUploadField = new FileUploadField(fileInput));
 
 changing the line to something like 
 
 add(fileUploadField = new FileUploadField(fileInput,new Model()));
 
 makes it work
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-upload-example-in-latest-snapshot-%281.4%29-has-exception-tp20469979p20498026.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax busy indicator never stops in IE

2008-11-14 Thread Xhelas

Thank you for the clue on the clue! There are indeed some likely usefull
information (with errors on IE7) in the ajax console, but it is not easy to
understand it. I will compare it with firefox generated logs... 


igor.vaynberg wrote:
 
 why dont you check *why* it is not hiding. ajax console should give you a
 clue.
 
 -igor
 
 On Fri, Nov 14, 2008 at 6:43 AM, miro [EMAIL PROTECTED] wrote:

 did nobody faced this problem whats the solution for this ?

 miro wrote:

 My  page has IndicatingAjaxLinkWhen user clicks on this  link   the
 busy indicator never stops , it works fine in firefox

 here some html

   tbody
 wicket:id=auditInfoContainer
 style=width:100%;height:556;overflow:auto;
   wicket:container
 wicket:id=auditInfos
   tr
 wicket:id=auditInfo  height=10 
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
 
  
 td

 
  
 /td
   /tr
  
 /wicket:container
   /tbody
 auditInfo   is the link .

 I am using wicket 1.3.5


 --
 View this message in context:
 http://www.nabble.com/ajax-busy-indicator-never-stops-in-IE-tp20485948p20501752.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ajax-busy-indicator-never-stops-in-IE-tp20485948p20506809.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Good practice for temporary resource reference

2009-03-29 Thread Xhelas

I am doing an application with a lot of dynamical image creation. These
images need to be cached client side, but their life time is bounded by the
suer session's lifetime. So I create a lot of image resource references
which url is used but the client. What I did not get in the APi is the way
do forget those references, to unbind them to the application. 
Is there a canonical way to do so?

Thanks for your reading.

Alexandre
-- 
View this message in context: 
http://www.nabble.com/Good-practice-for-temporary-resource-reference-tp22773495p22773495.html
Sent from the Wicket - User 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: Good practice for temporary resource reference

2009-04-19 Thread Xhelas

Well, nobody has the same probelm as me? Is that a stupid question?


Xhelas wrote:
 
 I am doing an application with a lot of dynamical image creation. These
 images need to be cached client side, but their life time is bounded by
 the suer session's lifetime. So I create a lot of image resource
 references which url is used but the client. What I did not get in the APi
 is the way do forget those references, to unbind them to the
 application. 
 Is there a canonical way to do so?
 
 Thanks for your reading.
 
 Alexandre
 

-- 
View this message in context: 
http://www.nabble.com/Good-practice-for-temporary-resource-reference-tp22773495p23128552.html
Sent from the Wicket - User 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: Good practice for temporary resource reference

2009-04-19 Thread Xhelas

Yes it could. I figured out to override newSessionStore in the application to
have control over the undbind session call. I would have then remove the
request references registred in the session during its life time at this
time. I beleive that I have to remove my ResourceReference from the
SharedResources of the application. 
I don't know if it it the correct way to do this. I found it by browsing the
wicket source code (thanks it is open source).

Anyone has tried to do something like that?

Regards

Alexandre


Scott Swank wrote:
 
 Does it make sense to just store them in the Wicket Session?
 
 Scott
 
 
 On Sun, Apr 19, 2009 at 4:38 PM, Xhelas xhe...@yahoo.fr wrote:

 Well, nobody has the same probelm as me? Is that a stupid question?


 Xhelas wrote:

 I am doing an application with a lot of dynamical image creation. These
 images need to be cached client side, but their life time is bounded by
 the suer session's lifetime. So I create a lot of image resource
 references which url is used but the client. What I did not get in the
 APi
 is the way do forget those references, to unbind them to the
 application.
 Is there a canonical way to do so?

 Thanks for your reading.

 Alexandre


 --
 View this message in context:
 http://www.nabble.com/Good-practice-for-temporary-resource-reference-tp22773495p23128552.html
 Sent from the Wicket - User 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Good-practice-for-temporary-resource-reference-tp22773495p23129153.html
Sent from the Wicket - User 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