Re: Any Example or doucument of Rich Edit, such as YUI,FCK

2008-01-28 Thread Kees van den Berg
2008/1/28, Mead [EMAIL PROTECTED]:
 Hello Igor Vaynberg,
The YUI-example get a Exception:
 org.apache.wicket.WicketRuntimeException:Application class
 org.wicketstuff.yui.example.pages.YuiApplication must be a subclass of
 WebApplication
 Well, I have run the cmd mvn install, and everything is run ok.
 Than, I copy the *.war to webapp directory.
 What's wrong with that?


 Best regards,

 === At 2008-01-28, 09:46:37 you wrote: ===

 after you check out the source run mvn install - that will fetch the
 necessary jars.
 
 -igor
 
 
 On Jan 27, 2008 5:44 PM, Mead [EMAIL PROTECTED] wrote:
  Hello Igor Vaynberg,
 I have check the code from wicket stuff's svn
  (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/ )
  both the example and source of YUI  TinyMCE!
  but there are too many error,  most is missing the jar.
  How to get the correlation jar?
  I have no clue at all!
 
 
 
  Best regards,
 
  === At 2008-01-26, 01:05:21 you wrote: ===
 
 
  there is wicket-contrib-tinymce in wicketstuff
  
  -igor
  
  
  On Jan 25, 2008 1:59 AM, Mead [EMAIL PROTECTED] wrote:
   Hello All,
 Any Example or doucument of Rich Edit, such as YUI,FCK
   How to integration with wicket?
   There is so little doc about that's
   thanks to provide help
  
   Best regards,
   Mead
   [EMAIL PROTECTED]
   2008-01-25
  
  
  
   -
   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]
  
  .
 
  = = = = = = = = = = = = = = = = = = = =
 
  Mead
  [EMAIL PROTECTED]
  2008-01-28
 
 
 
 
 
  -
  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]
 

 = = = = = = = = = = = = = = = = = = = =
   
 Mead
 [EMAIL PROTECTED]
 2008-01-28




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



Re: WicketTester Doesn't Support setDefaultFormProcessing(false)

2008-01-28 Thread Federico Fanton
On Tue, 15 Jan 2008 23:45:42 +0100
Martijn Dashorst [EMAIL PROTECTED] wrote:

 Probably a missing feature. Could you open a JIRA issue please?

For reference: http://issues.apache.org/jira/browse/WICKET-1291
I'm interested in this issue too, if there's some way I could help..


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



Could TinyMCE Upload pictures or files

2008-01-28 Thread Mead
Hello All,
   Could TinyMCE upload pictures or files?
I run the example of TinyMCE(from wicket stuff), and find the demo there could 
not upload any files or images, but only insert the URL of picture 

Best regards, 
  
Mead
[EMAIL PROTECTED]
2008-01-28



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



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Frank Bille
Yes sounds good. 16.00 is ok for me. not earlier.

Frank

On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 29 january at jayway copenhagen office... will we start at 16:00?

 Guðmundur Bjarni wrote:
  Hey,
 
  Sounds good. Where and when exactly will it be then? :)
 
  regards,
  Guðmundur Bjarni Ólafsson
 
 
 
  Nino.Martinez wrote:
 
  Cancel previous message. Meeting will be held at same time next week.
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
  Hi
 
  We are gonna reschedule the meeting, Flemmings getting one up to hold
  a course for their firm internally, but it's our hope that instructor
  will participate in our meeting.
 
  Information will follow asap. This makes it an even greater reason to
  come and check out wicket if youre a newcommer..
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
Im currently on the hospital, my daughter are sick. We will have to 
reschedule. Im sorry for this.



regards Nino

Frank Bille wrote:

Yes sounds good. 16.00 is ok for me. not earlier.

Frank

On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

29 january at jayway copenhagen office... will we start at 16:00?

Guðmundur Bjarni wrote:


Hey,

Sounds good. Where and when exactly will it be then? :)

regards,
Guðmundur Bjarni Ólafsson



Nino.Martinez wrote:

  

Cancel previous message. Meeting will be held at same time next week.

Nino Saturnino Martinez Vazquez Wael wrote:



Hi

We are gonna reschedule the meeting, Flemmings getting one up to hold
a course for their firm internally, but it's our hope that instructor
will participate in our meeting.

Information will follow asap. This makes it an even greater reason to
come and check out wicket if youre a newcommer..


  

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





  

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Could TinyMCE Upload pictures or files

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
Add a upload field to the page.. And reference that from tinymce?

Mead wrote:
 Hello All,
Could TinyMCE upload pictures or files?
 I run the example of TinyMCE(from wicket stuff), and find the demo there 
 could not upload any files or images, but only insert the URL of picture 

 Best regards, 
   
 Mead
 [EMAIL PROTECTED]
 2008-01-28



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


   

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



*Wicket users copenhagen* reschedule!

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
Im currently on the hospital, my daughter are sick. We will have to 
reschedule. Im sorry for this.


Alternately, you can go ahead with the meeting. But as im not a jayway, 
it's not possible to hold the meeting there...


I've pointed this out in the old thread also..

regards Nino

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: *Wicket users copenhagen* reschedule!

2008-01-28 Thread Frank Bille
It's fine by me to reschedule.

What about somewhere in med-february?

Frank


On Jan 28, 2008 2:00 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Im currently on the hospital, my daughter are sick. We will have to
 reschedule. Im sorry for this.

 Alternately, you can go ahead with the meeting. But as im not a jayway,
 it's not possible to hold the meeting there...

 I've pointed this out in the old thread also..

 regards Nino

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Dynamic DataTable columns

2008-01-28 Thread UPBrandon

I was wondering if there is any way to change the columns of a DataTable once
it has been declared.  On my page, I pass an IModel into a Panel that
contains my DataTable.  As the user users the page, the contents of the
model will change and I would like for that to affect which columns are
shown in the table.  The problem is that DataTables take an array of
IColumns (instead of a List, which could be manipulated after
instantiation.)  I would override the DataTable's getColumns() method to
return the appropriate columns but it is final.  Is there any
technical/design reason why getColumns() is final?  To me, it seems
unnecessary and is very annoying in an OO framework.

Does anyone know of any way I could make the columns in my table dynamic
without setting the visibility of th's and td's from inside my IColumns? 
Any help would be appreciated.

-Brandon
-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15142596.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 and session synch

2008-01-28 Thread Johan Compagner
Where do we sync around the session?
We sync around a pagemap of the request page. The session shouldnt be
done anymore.

On 1/28/08, Siddharth Agarwal [EMAIL PROTECTED] wrote:
 Hi,

 I'm new to Wicket and I downloaded the source code and tried reading the
 code - i have a question here - I want to understand why wicket synchronizes
 around session object. I tried searching the list archive and i saw several
 references to the synchronization but am not able to find a post that
 explains the reason for the synch.
 What would happen if wicket were not to synch around the session?

 thanks!
 - Siddharth


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



Re: Dynamic DataTable columns

2008-01-28 Thread Igor Vaynberg
are you sure that will help you? does datatable refresh the component
hierarchy that defines the toolbars on every requests?

-igor


On Jan 28, 2008 11:32 AM, UPBrandon [EMAIL PROTECTED] wrote:

 Is there any chance simply removing the final modifier could make it into a
 1.3.1 type of release?


 igor.vaynberg wrote:
 
  you will have to roll your own for now. we might fix this in 1.4 if
  you add this to the wiki wishlist for 1.4 page.
 
  -igor
 
  I was wondering if there is any way to change the columns of a DataTable
  once
  it has been declared.  On my page, I pass an IModel into a Panel that
  contains my DataTable.  As the user users the page, the contents of the
  model will change and I would like for that to affect which columns are
  shown in the table.  The problem is that DataTables take an array of
  IColumns (instead of a List, which could be manipulated after
  instantiation.)  I would override the DataTable's getColumns() method to
  return the appropriate columns but it is final.  Is there any
  technical/design reason why getColumns() is final?  To me, it seems
  unnecessary and is very annoying in an OO framework.
 
  Does anyone know of any way I could make the columns in my table dynamic
  without setting the visibility of th's and td's from inside my
  IColumns?
  Any help would be appreciated.
 
  -Brandon
 

 --
 View this message in context: 
 http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15143304.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]



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael

I dont think so, it's pneumonia and diarra (although pretty severe).

regards Nino

Frank Bille wrote:

No problem of cause. Don't hope it's serious.

Best wishes,
Frank

On Jan 28, 2008 1:23 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Im currently on the hospital, my daughter are sick. We will have to
reschedule. Im sorry for this.


regards Nino

Frank Bille wrote:


Yes sounds good. 16.00 is ok for me. not earlier.

Frank

On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:


  

29 january at jayway copenhagen office... will we start at 16:00?

Guðmundur Bjarni wrote:



Hey,

Sounds good. Where and when exactly will it be then? :)

regards,
Guðmundur Bjarni Ólafsson



Nino.Martinez wrote:


  

Cancel previous message. Meeting will be held at same time next week.

Nino Saturnino Martinez Vazquez Wael wrote:




Hi

We are gonna reschedule the meeting, Flemmings getting one up to
  

hold


a course for their firm internally, but it's our hope that
  

instructor


will participate in our meeting.

Information will follow asap. This makes it an even greater reason
  

to


come and check out wicket if youre a newcommer..



  

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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







--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Article: Introducing Apache Wicket

2008-01-28 Thread Nick Heudecker
It's finally up:
http://www.theserverside.com/news/thread.tss?thread_id=48234

Thanks to the various reviewers that helped improve both the content and
quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios.

-- 
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


how to add check listener?

2008-01-28 Thread Beyonder Unknown

Hi All,

Have anybody tried  adding a check listener to the Check component (Not 
CheckBox ) ?

Thanks in advance!

Regards,
Wen Tong
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: *Wicket users copenhagen* reschedule!

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
sure. We could take a look at the hibernate-jpa-spring-archetype 
then(hopefully):)


Frank Bille wrote:

It's fine by me to reschedule.

What about somewhere in med-february?

Frank


On Jan 28, 2008 2:00 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Im currently on the hospital, my daughter are sick. We will have to
reschedule. Im sorry for this.

Alternately, you can go ahead with the meeting. But as im not a jayway,
it's not possible to hold the meeting there...

I've pointed this out in the old thread also..

regards Nino

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread James Carman
Ok, I think I speak for the rest of us when I say that I think this
should be taken off-line.  Although I'm sure we all hope your daughter
gets better, I don't think this is the proper forum to discuss her
pneumonia and diarrhea.

Doesn't the user group have their own mailing list they can use?

On 1/28/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 I dont think so, it's pneumonia and diarra (although pretty severe).

 regards Nino

 Frank Bille wrote:
  No problem of cause. Don't hope it's serious.
 
  Best wishes,
  Frank
 
  On Jan 28, 2008 1:23 PM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
 
  Im currently on the hospital, my daughter are sick. We will have to
  reschedule. Im sorry for this.
 
 
  regards Nino
 
  Frank Bille wrote:
 
  Yes sounds good. 16.00 is ok for me. not earlier.
 
  Frank
 
  On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
 
 
  29 january at jayway copenhagen office... will we start at 16:00?
 
  Guðmundur Bjarni wrote:
 
 
  Hey,
 
  Sounds good. Where and when exactly will it be then? :)
 
  regards,
  Guðmundur Bjarni Ólafsson
 
 
 
  Nino.Martinez wrote:
 
 
 
  Cancel previous message. Meeting will be held at same time next week.
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
 
 
  Hi
 
  We are gonna reschedule the meeting, Flemmings getting one up to
 
  hold
 
  a course for their firm internally, but it's our hope that
 
  instructor
 
  will participate in our meeting.
 
  Information will follow asap. This makes it an even greater reason
 
  to
 
  come and check out wicket if youre a newcommer..
 
 
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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



Re: Dynamic DataTable columns

2008-01-28 Thread UPBrandon

Hmm... looking at the code a bit, I don't think making getColumns() non-final
it will help after all.  I assumed that getColumns() was used internally by
DataTable but it doesn't appear to be.  What would really be nice is if
DataTable took a List (or a model wrapping a list) instead of an IColumn
array but I agree that would be a much bigger change.

Although, in the mean time, I still have the same problem - not being able
to change change the columns after the DataTable has been declared, at
render time.  Any suggestions?

-Brandon


igor.vaynberg wrote:
 
 are you sure that will help you? does datatable refresh the component
 hierarchy that defines the toolbars on every requests?
 
 -igor
 
 
 On Jan 28, 2008 11:32 AM, UPBrandon [EMAIL PROTECTED] wrote:

 Is there any chance simply removing the final modifier could make it
 into a
 1.3.1 type of release?


 igor.vaynberg wrote:
 
  you will have to roll your own for now. we might fix this in 1.4 if
  you add this to the wiki wishlist for 1.4 page.
 
  -igor
 
  I was wondering if there is any way to change the columns of a
 DataTable
  once
  it has been declared.  On my page, I pass an IModel into a Panel that
  contains my DataTable.  As the user users the page, the contents of
 the
  model will change and I would like for that to affect which columns
 are
  shown in the table.  The problem is that DataTables take an array of
  IColumns (instead of a List, which could be manipulated after
  instantiation.)  I would override the DataTable's getColumns() method
 to
  return the appropriate columns but it is final.  Is there any
  technical/design reason why getColumns() is final?  To me, it seems
  unnecessary and is very annoying in an OO framework.
 
  Does anyone know of any way I could make the columns in my table
 dynamic
  without setting the visibility of th's and td's from inside my
  IColumns?
  Any help would be appreciated.
 
  -Brandon
 

 --
 View this message in context:
 http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15143304.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/Dynamic-DataTable-columns-tp15142596p15144865.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 Security - runtime ACLs and Roles help plz

2008-01-28 Thread mnwicket

Ned,

I went through the same type of situation and came to the simple conclusion,
wicket security just does not cut it for complicated security structures. 
In the end I rolled my own and it seems to work quite nice.  I think the
only difference between what I did and you are saying is that my application
couldn't create permissions on the fly, basically there is a defined set of
createBlah, editBlah permissions that were attached to extended security
components, ie links...but from there the users of the application could
create as many roles attached to as many different permissions as needed.



Ned Collyer wrote:
 
 With wicket security (either wasp/swarm, or wicket-auth-roles) can things
 like Roles and Permissions be created through a web interface?
 
 Eg,
 I need a system whereby I can add new roles (or principals) through the
 web interface, and define their permission to a ACLs which are determined
 by which which plugins the system is configured to use.
 
 Each plugin will implement some interface, and expose the ACLs that it has
 available. - these will not be manually configured, and should not require
 any java code change when I add a plugin to the system.
 
 I'm having trouble mapping this to either swarm or wicket-auth-roles. (and
 trouble explaining it well ;))
 
 I believe wicket-auth-roles is more component oriented, but reading about
 this stuff makes my head swim.
 
 Can anyone either steer me in the right direction, or point at an example
 that gets these ACLs and roles from a datastore at run time.
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Security---runtime-ACLs-and-Roles-help-plz-tp15115011p15141818.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 Security - runtime ACLs and Roles help plz

2008-01-28 Thread Maurice Marrink
Would you mind elaborating on what did not cut it?
It probably is not going to help you but i would like to know what you
felt you could not solve with swarm, maybe i can point others with a
similar problem in the right direction or make some changes so future
versions will be able to do that.

Maurice

On Jan 28, 2008 7:25 PM, mnwicket [EMAIL PROTECTED] wrote:

 Ned,

 I went through the same type of situation and came to the simple conclusion,
 wicket security just does not cut it for complicated security structures.
 In the end I rolled my own and it seems to work quite nice.  I think the
 only difference between what I did and you are saying is that my application
 couldn't create permissions on the fly, basically there is a defined set of
 createBlah, editBlah permissions that were attached to extended security
 components, ie links...but from there the users of the application could
 create as many roles attached to as many different permissions as needed.



 Ned Collyer wrote:
 
  With wicket security (either wasp/swarm, or wicket-auth-roles) can things
  like Roles and Permissions be created through a web interface?
 
  Eg,
  I need a system whereby I can add new roles (or principals) through the
  web interface, and define their permission to a ACLs which are determined
  by which which plugins the system is configured to use.
 
  Each plugin will implement some interface, and expose the ACLs that it has
  available. - these will not be manually configured, and should not require
  any java code change when I add a plugin to the system.
 
  I'm having trouble mapping this to either swarm or wicket-auth-roles. (and
  trouble explaining it well ;))
 
  I believe wicket-auth-roles is more component oriented, but reading about
  this stuff makes my head swim.
 
  Can anyone either steer me in the right direction, or point at an example
  that gets these ACLs and roles from a datastore at run time.
 

 --
 View this message in context: 
 http://www.nabble.com/Wicket-Security---runtime-ACLs-and-Roles-help-plz-tp15115011p15141818.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]



Re: Dynamic DataTable columns

2008-01-28 Thread UPBrandon

Is there any chance simply removing the final modifier could make it into a
1.3.1 type of release?


igor.vaynberg wrote:
 
 you will have to roll your own for now. we might fix this in 1.4 if
 you add this to the wiki wishlist for 1.4 page.
 
 -igor
 
 I was wondering if there is any way to change the columns of a DataTable
 once
 it has been declared.  On my page, I pass an IModel into a Panel that
 contains my DataTable.  As the user users the page, the contents of the
 model will change and I would like for that to affect which columns are
 shown in the table.  The problem is that DataTables take an array of
 IColumns (instead of a List, which could be manipulated after
 instantiation.)  I would override the DataTable's getColumns() method to
 return the appropriate columns but it is final.  Is there any
 technical/design reason why getColumns() is final?  To me, it seems
 unnecessary and is very annoying in an OO framework.

 Does anyone know of any way I could make the columns in my table dynamic
 without setting the visibility of th's and td's from inside my
 IColumns?
 Any help would be appreciated.

 -Brandon
 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15143304.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: Article: Introducing Apache Wicket

2008-01-28 Thread Eelco Hillenius
Very cool Nick, thanks a lot.

Eelco

On Jan 28, 2008 11:02 AM, Nick Heudecker [EMAIL PROTECTED] wrote:
 It's finally up:
 http://www.theserverside.com/news/thread.tss?thread_id=48234

 Thanks to the various reviewers that helped improve both the content and
 quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios.

 --
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com

 Eventful - Intelligent Event Management
 http://www.eventfulhq.com


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



Re: Dynamic DataTable columns

2008-01-28 Thread Igor Vaynberg
you will have to roll your own for now. we might fix this in 1.4 if
you add this to the wiki wishlist for 1.4 page.

-igor


On Jan 28, 2008 11:01 AM, UPBrandon [EMAIL PROTECTED] wrote:

 I was wondering if there is any way to change the columns of a DataTable once
 it has been declared.  On my page, I pass an IModel into a Panel that
 contains my DataTable.  As the user users the page, the contents of the
 model will change and I would like for that to affect which columns are
 shown in the table.  The problem is that DataTables take an array of
 IColumns (instead of a List, which could be manipulated after
 instantiation.)  I would override the DataTable's getColumns() method to
 return the appropriate columns but it is final.  Is there any
 technical/design reason why getColumns() is final?  To me, it seems
 unnecessary and is very annoying in an OO framework.

 Does anyone know of any way I could make the columns in my table dynamic
 without setting the visibility of th's and td's from inside my IColumns?
 Any help would be appreciated.

 -Brandon
 --
 View this message in context: 
 http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15142596.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]



Re: Article: Introducing Apache Wicket

2008-01-28 Thread karthik Guru
This is really nice - covers the basics so well unlike the one that I posted
:) - actually thanks to martijn, cemal, i added a little bit of context to
my post. I think it makes sense to link to this article first when writing a
blog post - it just clears up the basics so nicely.
One nice addition to the article IMHO could be a reference of some kind to
wicket behavior-s.

regards,
Karthik


On Jan 28, 2008 1:02 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

 It's finally up:
 http://www.theserverside.com/news/thread.tss?thread_id=48234

 Thanks to the various reviewers that helped improve both the content and
 quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios.

 --
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com

 Eventful - Intelligent Event Management
 http://www.eventfulhq.com




-- 
-- karthik --


Re: Article: Introducing Apache Wicket

2008-01-28 Thread Martijn Dashorst
On 1/28/08, Nick Heudecker [EMAIL PROTECTED] wrote:

 It's finally up:
 http://www.theserverside.com/news/thread.tss?thread_id=48234


It took them a while... though nice timing IMO. news about 1.3 was getting a
bit old, so...

Thanks for writing it!

Martijn


Thanks to the various reviewers that helped improve both the content and
 quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios.

 --
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com

 Eventful - Intelligent Event Management
 http://www.eventfulhq.com




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
Without knowing any details at all. Could it have something todo with 
wicketAjaxGet, not that the wicketAjaxGet fails but that it's setup 
wrongly from scriptaulous?


Looking at the internals it looks like wicketAjaxGet encapsules a new 
method inorder to support backwards compability or something along these 
lines.


regards Nino

Lan Boon Ping wrote:

Hi,

I have encountered a DragNDrop problem using wicketStuff-scriptaculous
in IE6/IE7. The DragNDrop only work for the first time, but
subsequently, the draggable object is no longer draggable. FYI, this
problem doesn't exist in Firefox and it can be reproduced in
wicket-contrib-scriptaculous-examples.

Any hints?

Thanks in advance.

Regards
Boon Ping.

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


  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Frank Bille
No problem of cause. Don't hope it's serious.

Best wishes,
Frank

On Jan 28, 2008 1:23 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Im currently on the hospital, my daughter are sick. We will have to
 reschedule. Im sorry for this.


 regards Nino

 Frank Bille wrote:
  Yes sounds good. 16.00 is ok for me. not earlier.
 
  Frank
 
  On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
  [EMAIL PROTECTED] wrote:
 
 
  29 january at jayway copenhagen office... will we start at 16:00?
 
  Guðmundur Bjarni wrote:
 
  Hey,
 
  Sounds good. Where and when exactly will it be then? :)
 
  regards,
  Guðmundur Bjarni Ólafsson
 
 
 
  Nino.Martinez wrote:
 
 
  Cancel previous message. Meeting will be held at same time next week.
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
 
  Hi
 
  We are gonna reschedule the meeting, Flemmings getting one up to
 hold
  a course for their firm internally, but it's our hope that
 instructor
  will participate in our meeting.
 
  Information will follow asap. This makes it an even greater reason
 to
  come and check out wicket if youre a newcommer..
 
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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




Re: Article: Introducing Apache Wicket

2008-01-28 Thread Nick Heudecker
Thanks.  I didn't want to bog the reader down with too many concepts at
once.  I'm hoping to make this a series on TSS to allow for more in-depth
coverage.

On Jan 28, 2008 3:44 PM, karthik Guru [EMAIL PROTECTED] wrote:

 This is really nice - covers the basics so well unlike the one that I
 posted
 :) - actually thanks to martijn, cemal, i added a little bit of context to
 my post. I think it makes sense to link to this article first when writing
 a
 blog post - it just clears up the basics so nicely.
 One nice addition to the article IMHO could be a reference of some kind to
 wicket behavior-s.

 regards,
 Karthik


 On Jan 28, 2008 1:02 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

  It's finally up:
  http://www.theserverside.com/news/thread.tss?thread_id=48234
 
  Thanks to the various reviewers that helped improve both the content and
  quality of the article, including Martijn, Eelco, Igor, Gerolf and
 Talios.
 
  --
  Nick Heudecker
  Professional Wicket Training  Consulting
  http://www.systemmobile.com
 
  Eventful - Intelligent Event Management
  http://www.eventfulhq.com
 



 --
 -- karthik --




-- 
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


Update problem with AutoCompleteTextField

2008-01-28 Thread Michael Mehrle
Hi guys - started working with Wicket a few weeks ago and I'm new to
this list. BTW, I haven't had that much fun coding client/server stuff
in a long time - never liked JSP/JSTL, etc. much. 

 

Anyway, I'm running into a little update problem with
AutoCompleteTextField - for some reason when I start typing the field
only shows a subset of the available options. My log output indicates
that the Iterator returned by getChoices(String input) contains all the
data. Also, when I start deleting characters in the text field, the
Iterator again contains an increasing amount of possible options for the
fewer remaining characters, however the field only shows the number of
options that were previously available. This is tough to explain, let me
give an example - if I type 'United' I get three options:

 

-  United Arab Emirates

-  United Kingdom

-  United States

 

Now, when I delete all characters except the 'U' I get:

 

-  Ukraine

-  United Arab Emirates

-  United Kingdom

 

When I now delete all chars in the field and then only type 'U' I get:

 

-  Ukraine

-  United Arab Emirates

-  United Kingdom

-  United States

-  Urugay

 

BTW, the very first time I simply type 'U' I get nothing - it takes
several characters until the auto-complete kicks in.

 

FYI - I'm autopopulating a simple list with Locales, which is what
drives the component. My log statement in the method that serves the
data to the overridden getChoices method does print the right data. It
seems it's the component that's somehow broken.

 

Any input would be very welcome.

 

Thanks!

 

Michael



Re: wicket and session synch

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael

This was written without knowing about internals btw..

Nino Saturnino Martinez Vazquez Wael wrote:
probally would be bad. But the great thing are that you do not need to 
worry about this, it's the internals of wicket.. Im not sure if you've 
grasped the wicket spirit or not, but some of it is letting go of a 
bit control:)



regards Nino

Siddharth Agarwal wrote:

Hi,

I'm new to Wicket and I downloaded the source code and tried reading the
code - i have a question here - I want to understand why wicket 
synchronizes
around session object. I tried searching the list archive and i saw 
several

references to the synchronization but am not able to find a post that
explains the reason for the synch.
What would happen if wicket were not to synch around the session?

thanks!
- Siddharth

  




--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Igor Vaynberg
cant we thread.interrupt() ? or will that actually kill the servlet
thread without restarting it? havent throught this through all the
way, just brainstorming.

-igor


On Jan 28, 2008 3:11 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 how do you kill a current request?
 you can't shoot down the thread, and we dont have any control of what
 somebody is doing..
 Ofcourse when it comes back at an wicket entry point at some time at some
 place we could check
 for a specific boolean and just throw an exception... But that is pretty
 error prone i think.


 On Jan 28, 2008 11:57 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

  maybe instead of waiting on the page to finish we should have an
  option to kill it, rollback, and start again with the new request?
  with the diskstore we have the old version serialized...
 
  -igor
 
 
  On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
shared resources are not synced thats one way of going round it.
  
   the other way is as igor describes. do the search in a seperate thread.
   If it really takes that long then you do know that browsers also can
  just
   time out after they don't get anything for a while?
  
   If it really takes that long then you should build a page where people
  can
   fire searches to the system
   and the page is just displayig the searches they did and then if the
  search
   is finished that page can bring them to the result
  
   johan
  
  
  
  
   On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:
  
   
that's nice to have but is there a way to work around this issue? Our
application for customer service and they perform a lot search on a
  huge
database, in some cases, customer service would like to start new
  search.
Since wicket is locked by page path, there is no way for CSR to start
  a
new
request until previous one is finished.
   
   
igor.vaynberg wrote:

 the pages are locked on the pagemap. so you cannot have two
  concurrent
 requests from the same user to the same pagemap. this is so when you
 are coding your pages you can use the much simpler single-threaded
 model.

 every have fields in your servlet implementation? those have to be
 synchronized or you will run into threading issues. this is the
  stuff
 we make sure you dont have to worry about.

 the trade off is that if you have long running requests you should
 probably process them in a different thread and let the UI poll for
 status.

 -igor


 On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED]
  wrote:

 So I developed my first wicket application and I kept getting
  exception
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and
regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 minutes. I hit submit, then stop
  the
 request on browser and submit another request.  then result to a
internal
 error page. Why can't wicket handle mutiple submit? i dont' get it,
 shouldn't wicket process the new require like how servlet works?
Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] -
  After
1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to
  get
 the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the
  Pagemap
null
 is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main],
  giving
up
 trying to get the page for path: 5
 at org.apache.wicket.Session.getPage(Session.java:734)
 at

   
  org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
(AbstractRequestCycleProcessor.java:443)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java
  :1152)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java
  :1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java
:489)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(
  WicketFilter.java
:354)
 at
 org.apache.wicket.protocol.http.WicketServlet.doGet(
  WicketServlet.java
:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java
  :115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java
  :92)
 

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Johan Compagner
you can do that polling with an ajax request
and if the searches take that long anyway polling every second doesn't make
sense to me anyway
you can do that every 5 or 10 seconds, because if a search can take much
more then a minute a few more seconds doesn't matter...

johan



On Jan 29, 2008 12:07 AM, cemeterygate [EMAIL PROTECTED] wrote:


 as for pulling, the page need to constantly refresh to check for new data
 and
 i also need to manage order of the requests. shared resources sounds like
 more close to how servlet would work. i am still new with wicket, is there
 any example out there i can use as reference?

 thanks for answering all the puzzles in my head.


 Johan Compagner wrote:
 
  shared resources are not synced thats one way of going round it.
 
  the other way is as igor describes. do the search in a seperate thread.
  If it really takes that long then you do know that browsers also can
 just
  time out after they don't get anything for a while?
 
  If it really takes that long then you should build a page where people
 can
  fire searches to the system
  and the page is just displayig the searches they did and then if the
  search
  is finished that page can bring them to the result
 
  johan
 
 
 
  On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:
 
 
  that's nice to have but is there a way to work around this issue? Our
  application for customer service and they perform a lot search on a
 huge
  database, in some cases, customer service would like to start new
 search.
  Since wicket is locked by page path, there is no way for CSR to start a
  new
  request until previous one is finished.
 
 
  igor.vaynberg wrote:
  
   the pages are locked on the pagemap. so you cannot have two
 concurrent
   requests from the same user to the same pagemap. this is so when you
   are coding your pages you can use the much simpler single-threaded
   model.
  
   every have fields in your servlet implementation? those have to be
   synchronized or you will run into threading issues. this is the stuff
   we make sure you dont have to worry about.
  
   the trade off is that if you have long running requests you should
   probably process them in a different thread and let the UI poll for
   status.
  
   -igor
  
  
   On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:
  
   So I developed my first wicket application and I kept getting
  exception
   below
   as soon as i point my application to production database.
  
   Can someone tell me why wicket can't handle concurrent request?
  
   to replicate this issue, i have a page with a form component and
  regular
   submit button.
   on the onSubmit method,
protected void onSubmit() {
   try {
   Thread.sleep(3 * 60 * 1000);
   } catch (InterruptedException e) {
   }
}
  
   i put the thread into sleep for 3 minutes. I hit submit, then stop
 the
   request on browser and submit another request.  then result to a
  internal
   error page. Why can't wicket handle mutiple submit? i dont' get it,
   shouldn't wicket process the new require like how servlet works?
  Someone
   please tell me how to work around this issue. Thanks in advance.
  
  
   2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] -
  After
  1
   minute the Pagemap null is still locked by:
   Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to
 get
   the
   page for path: 5
   org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
  null
   is
   still locked by: Thread[resin-tcp-connection-*:8080-45,5,main],
 giving
  up
   trying to get the page for path: 5
   at org.apache.wicket.Session.getPage(Session.java:734)
   at
  
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
  (AbstractRequestCycleProcessor.java:443)
   at
   org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
  WebRequestCycleProcessor.java:139)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java
 :1152)
   at
  org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java
  :489)
   at
   org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
  :354)
   at
   org.apache.wicket.protocol.http.WicketServlet.doGet(
 WicketServlet.java
  :121)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :92)
   at
   com.caucho.server.dispatch.ServletFilterChain.doFilter(
  ServletFilterChain.java:106)
   --
   View this message in context:
  
 
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
   Sent from the Wicket - User mailing list archive at
  Nabble.com http://nabble.com/http://nabble.com/
  .
  
  
  
 

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Johan Compagner
do you have request that take more then 1 minute?

Wicket has to do that to make sure that you as a developer doesnt have to
think about multi threaded
programming and we as a framework also doesn't have to worry about 2 render
cycles at the same
time of the same page.

johan



On Jan 28, 2008 11:08 PM, cemeterygate [EMAIL PROTECTED] wrote:


 So I developed my first wicket application and I kept getting exception
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
try {
Thread.sleep(3 * 60 * 1000);
} catch (InterruptedException e) {
}
  }

 i put the thread into sleep for 3 minutes. I hit submit, then stop the
 request on browser and submit another request.  then result to a internal
 error page. Why can't wicket handle mutiple submit? i dont' get it,
 shouldn't wicket process the new require like how servlet works? Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null
 is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up
 trying to get the page for path: 5
at org.apache.wicket.Session.getPage(Session.java:734)
at

 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
 (AbstractRequestCycleProcessor.java:443)
at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
 WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
at
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
 com.caucho.server.dispatch.ServletFilterChain.doFilter(
 ServletFilterChain.java:106)
 --
 View this message in context:
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
 Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread cemeterygate

as for pulling, the page need to constantly refresh to check for new data and
i also need to manage order of the requests. shared resources sounds like
more close to how servlet would work. i am still new with wicket, is there
any example out there i can use as reference? 

thanks for answering all the puzzles in my head.


Johan Compagner wrote:
 
 shared resources are not synced thats one way of going round it.
 
 the other way is as igor describes. do the search in a seperate thread.
 If it really takes that long then you do know that browsers also can just
 time out after they don't get anything for a while?
 
 If it really takes that long then you should build a page where people can
 fire searches to the system
 and the page is just displayig the searches they did and then if the
 search
 is finished that page can bring them to the result
 
 johan
 
 
 
 On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:
 

 that's nice to have but is there a way to work around this issue? Our
 application for customer service and they perform a lot search on a huge
 database, in some cases, customer service would like to start new search.
 Since wicket is locked by page path, there is no way for CSR to start a
 new
 request until previous one is finished.


 igor.vaynberg wrote:
 
  the pages are locked on the pagemap. so you cannot have two concurrent
  requests from the same user to the same pagemap. this is so when you
  are coding your pages you can use the much simpler single-threaded
  model.
 
  every have fields in your servlet implementation? those have to be
  synchronized or you will run into threading issues. this is the stuff
  we make sure you dont have to worry about.
 
  the trade off is that if you have long running requests you should
  probably process them in a different thread and let the UI poll for
  status.
 
  -igor
 
 
  On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:
 
  So I developed my first wicket application and I kept getting
 exception
  below
  as soon as i point my application to production database.
 
  Can someone tell me why wicket can't handle concurrent request?
 
  to replicate this issue, i have a page with a form component and
 regular
  submit button.
  on the onSubmit method,
   protected void onSubmit() {
  try {
  Thread.sleep(3 * 60 * 1000);
  } catch (InterruptedException e) {
  }
   }
 
  i put the thread into sleep for 3 minutes. I hit submit, then stop the
  request on browser and submit another request.  then result to a
 internal
  error page. Why can't wicket handle mutiple submit? i dont' get it,
  shouldn't wicket process the new require like how servlet works?
 Someone
  please tell me how to work around this issue. Thanks in advance.
 
 
  2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] -
 After
 1
  minute the Pagemap null is still locked by:
  Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
  the
  page for path: 5
  org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
 null
  is
  still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving
 up
  trying to get the page for path: 5
  at org.apache.wicket.Session.getPage(Session.java:734)
  at
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
 (AbstractRequestCycleProcessor.java:443)
  at
  org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
 WebRequestCycleProcessor.java:139)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
  at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java
 :489)
  at
  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
 :354)
  at
  org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :121)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
  at
  com.caucho.server.dispatch.ServletFilterChain.doFilter(
 ServletFilterChain.java:106)
  --
  View this message in context:
 
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
  Sent from the Wicket - User mailing list archive at
 Nabble.comhttp://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:
 

Re: Wicket Security - runtime ACLs and Groups help plz

2008-01-28 Thread Ned Collyer

Thank you for the detail of your answer.

I'll have a look into it asap - other work matters are pressing :(




Mr Mean wrote:
 
 There is no example application (that i know of) showing what you want.
 
 Let me recap what i think you want:
 You have an application (probably with a basic set of roles)
 You want to add plugins (probably containing several pages each
 requiring there own special permissions to do stuff)
 The extra permissions for the plugin need to be picked up dynamically
 from the plugin itself.
 
 Let me know if this comes close to what you wanted and if it helps you or
 not.
 
 Maurice
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Security---runtime-ACLs-and-Roles-help-plz-tp15115011p15148182.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]



Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
This is a simple question - I have do make an http call to an external
website inside my DAO - it's like a webservice call. The resulting XML
then needs to be parsed and used to populate my Wicket form. I was
thinking of using the Jakarta Commons HttpClient to retrieve the XML,
but was wondering if there is a preferred way of doing stuff like this
in Wicket.

Thanks!

Michael

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



Re: wicket and session synch

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
probally would be bad. But the great thing are that you do not need to 
worry about this, it's the internals of wicket.. Im not sure if you've 
grasped the wicket spirit or not, but some of it is letting go of a bit 
control:)



regards Nino

Siddharth Agarwal wrote:

Hi,

I'm new to Wicket and I downloaded the source code and tried reading the
code - i have a question here - I want to understand why wicket synchronizes
around session object. I tried searching the list archive and i saw several
references to the synchronization but am not able to find a post that
explains the reason for the synch.
What would happen if wicket were not to synch around the session?

thanks!
- Siddharth

  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread cemeterygate

btw, thank you for answer the question.


cemeterygate wrote:
 
 that's nice to have but is there a way to work around this issue? Our
 application for customer service and they perform a lot search on a huge
 database, in some cases, customer service would like to start new search.
 Since wicket is locked by page path, there is no way for CSR to start a
 new request until previous one is finished. 
 
 
 igor.vaynberg wrote:
 
 the pages are locked on the pagemap. so you cannot have two concurrent
 requests from the same user to the same pagemap. this is so when you
 are coding your pages you can use the much simpler single-threaded
 model.
 
 every have fields in your servlet implementation? those have to be
 synchronized or you will run into threading issues. this is the stuff
 we make sure you dont have to worry about.
 
 the trade off is that if you have long running requests you should
 probably process them in a different thread and let the UI poll for
 status.
 
 -igor
 
 
 On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:

 So I developed my first wicket application and I kept getting exception
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 minutes. I hit submit, then stop the
 request on browser and submit another request.  then result to a
 internal
 error page. Why can't wicket handle mutiple submit? i dont' get it,
 shouldn't wicket process the new require like how servlet works? Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After
 1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
 the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
 null is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving
 up
 trying to get the page for path: 5
 at org.apache.wicket.Session.getPage(Session.java:734)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:443)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
 at
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
 at
 com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
 --
 View this message in context:
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.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/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15147759.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]



Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread cemeterygate

So I developed my first wicket application and I kept getting exception below
as soon as i point my application to production database.

Can someone tell me why wicket can't handle concurrent request?

to replicate this issue, i have a page with a form component and regular
submit button.
on the onSubmit method,
 protected void onSubmit() {
try {
Thread.sleep(3 * 60 * 1000);
} catch (InterruptedException e) {
}
 }

i put the thread into sleep for 3 minutes. I hit submit, then stop the
request on browser and submit another request.  then result to a internal
error page. Why can't wicket handle mutiple submit? i dont' get it,
shouldn't wicket process the new require like how servlet works? Someone
please tell me how to work around this issue. Thanks in advance.


2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1
minute the Pagemap null is still locked by:
Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the
page for path: 5
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is
still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up
trying to get the page for path: 5
at org.apache.wicket.Session.getPage(Session.java:734)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:443)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
-- 
View this message in context: 
http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.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]



wicket and session synch

2008-01-28 Thread Siddharth Agarwal
Hi,

I'm new to Wicket and I downloaded the source code and tried reading the
code - i have a question here - I want to understand why wicket synchronizes
around session object. I tried searching the list archive and i saw several
references to the synchronization but am not able to find a post that
explains the reason for the synch.
What would happen if wicket were not to synch around the session?

thanks!
- Siddharth


Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread cemeterygate

that's nice to have but is there a way to work around this issue? Our
application for customer service and they perform a lot search on a huge
database, in some cases, customer service would like to start new search.
Since wicket is locked by page path, there is no way for CSR to start a new
request until previous one is finished. 


igor.vaynberg wrote:
 
 the pages are locked on the pagemap. so you cannot have two concurrent
 requests from the same user to the same pagemap. this is so when you
 are coding your pages you can use the much simpler single-threaded
 model.
 
 every have fields in your servlet implementation? those have to be
 synchronized or you will run into threading issues. this is the stuff
 we make sure you dont have to worry about.
 
 the trade off is that if you have long running requests you should
 probably process them in a different thread and let the UI poll for
 status.
 
 -igor
 
 
 On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:

 So I developed my first wicket application and I kept getting exception
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 minutes. I hit submit, then stop the
 request on browser and submit another request.  then result to a internal
 error page. Why can't wicket handle mutiple submit? i dont' get it,
 shouldn't wicket process the new require like how servlet works? Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
 the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null
 is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up
 trying to get the page for path: 5
 at org.apache.wicket.Session.getPage(Session.java:734)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:443)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
 at
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
 at
 com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
 --
 View this message in context:
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.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/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15147756.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: Web service call inside Wicket?

2008-01-28 Thread Ryan Sonnek
If your service (http, webservice, whatever) returns some kind of
business object, it'll be very easy to bind it to form values.

MyObject object = service.find();

add(new TextField(name, new PropertyModel(object, name));

make sense?

On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
 This is a simple question - I have do make an http call to an external
 website inside my DAO - it's like a webservice call. The resulting XML
 then needs to be parsed and used to populate my Wicket form. I was
 thinking of using the Jakarta Commons HttpClient to retrieve the XML,
 but was wondering if there is a preferred way of doing stuff like this
 in Wicket.

 Thanks!

 Michael

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



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Nino Saturnino Martinez Vazquez Wael
NO. And as it was my only means of discussing the meetup, I put it here. 
As we were going to hold the meetup at my work. Where im not at, since 
im at the hospital.


And when Frank wrote I answered here since others could be interested in 
knowing why we'd reschedule..


If you'd rather not hear about the different meetups, I'd suggest you 
put a filter up for now. Im not sure if it would be a good idea in 
splitting the mailing list up into countries?


regards Nino

James Carman wrote:

Ok, I think I speak for the rest of us when I say that I think this
should be taken off-line.  Although I'm sure we all hope your daughter
gets better, I don't think this is the proper forum to discuss her
pneumonia and diarrhea.

Doesn't the user group have their own mailing list they can use?

On 1/28/08, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
  

I dont think so, it's pneumonia and diarra (although pretty severe).

regards Nino

Frank Bille wrote:


No problem of cause. Don't hope it's serious.

Best wishes,
Frank

On Jan 28, 2008 1:23 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:


  

Im currently on the hospital, my daughter are sick. We will have to
reschedule. Im sorry for this.


regards Nino

Frank Bille wrote:



Yes sounds good. 16.00 is ok for me. not earlier.

Frank

On Jan 24, 2008 5:41 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:



  

29 january at jayway copenhagen office... will we start at 16:00?

Guðmundur Bjarni wrote:




Hey,

Sounds good. Where and when exactly will it be then? :)

regards,
Guðmundur Bjarni Ólafsson



Nino.Martinez wrote:



  

Cancel previous message. Meeting will be held at same time next week.

Nino Saturnino Martinez Vazquez Wael wrote:





Hi

We are gonna reschedule the meeting, Flemmings getting one up to

  

hold



a course for their firm internally, but it's our hope that

  

instructor



will participate in our meeting.

Information will follow asap. This makes it an even greater reason

  

to



come and check out wicket if youre a newcommer..




  

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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








--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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






--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread cemeterygate

sounds like wicket need Optimistic concurrency control =) i will try what you
guys suggested. I still feel weird, maybe i am thinking too much in servlet
world.


igor.vaynberg wrote:
 
 cant we thread.interrupt() ? or will that actually kill the servlet
 thread without restarting it? havent throught this through all the
 way, just brainstorming.
 
 -igor
 
 
 On Jan 28, 2008 3:11 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 how do you kill a current request?
 you can't shoot down the thread, and we dont have any control of what
 somebody is doing..
 Ofcourse when it comes back at an wicket entry point at some time at some
 place we could check
 for a specific boolean and just throw an exception... But that is pretty
 error prone i think.


 On Jan 28, 2008 11:57 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

  maybe instead of waiting on the page to finish we should have an
  option to kill it, rollback, and start again with the new request?
  with the diskstore we have the old version serialized...
 
  -igor
 
 
  On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
shared resources are not synced thats one way of going round it.
  
   the other way is as igor describes. do the search in a seperate
 thread.
   If it really takes that long then you do know that browsers also can
  just
   time out after they don't get anything for a while?
  
   If it really takes that long then you should build a page where
 people
  can
   fire searches to the system
   and the page is just displayig the searches they did and then if the
  search
   is finished that page can bring them to the result
  
   johan
  
  
  
  
   On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED]
 wrote:
  
   
that's nice to have but is there a way to work around this issue?
 Our
application for customer service and they perform a lot search on a
  huge
database, in some cases, customer service would like to start new
  search.
Since wicket is locked by page path, there is no way for CSR to
 start
  a
new
request until previous one is finished.
   
   
igor.vaynberg wrote:

 the pages are locked on the pagemap. so you cannot have two
  concurrent
 requests from the same user to the same pagemap. this is so when
 you
 are coding your pages you can use the much simpler
 single-threaded
 model.

 every have fields in your servlet implementation? those have to
 be
 synchronized or you will run into threading issues. this is the
  stuff
 we make sure you dont have to worry about.

 the trade off is that if you have long running requests you
 should
 probably process them in a different thread and let the UI poll
 for
 status.

 -igor


 On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED]
  wrote:

 So I developed my first wicket application and I kept getting
  exception
 below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and
regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 minutes. I hit submit, then
 stop
  the
 request on browser and submit another request.  then result to a
internal
 error page. Why can't wicket handle mutiple submit? i dont' get
 it,
 shouldn't wicket process the new require like how servlet works?
Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] -
  After
1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying
 to
  get
 the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the
  Pagemap
null
 is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main],
  giving
up
 trying to get the page for path: 5
 at org.apache.wicket.Session.getPage(Session.java:734)
 at

   
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
(AbstractRequestCycleProcessor.java:443)
 at

 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java
  :1152)
 at
 org.apache.wicket.RequestCycle.steps(RequestCycle.java
  :1245)
 at
 org.apache.wicket.RequestCycle.request(RequestCycle.java
:489)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(
  WicketFilter.java
:354)
 at
 

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Igor Vaynberg
yeah, if it takes a while the browser will timeout and you are screwed
anyways...

what do you mean they cant start a new search? you mean they no longer
for the results of the currently running search and just press the
search button again?

if they would open a new tab with the search page, and you had
automultiwindowsupport option enabled that new opened page would be
created in a new pagemap, and so you wouldnt have a locking problem...

-igor


On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 shared resources are not synced thats one way of going round it.

 the other way is as igor describes. do the search in a seperate thread.
 If it really takes that long then you do know that browsers also can just
 time out after they don't get anything for a while?

 If it really takes that long then you should build a page where people can
 fire searches to the system
 and the page is just displayig the searches they did and then if the search
 is finished that page can bring them to the result

 johan




 On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:

 
  that's nice to have but is there a way to work around this issue? Our
  application for customer service and they perform a lot search on a huge
  database, in some cases, customer service would like to start new search.
  Since wicket is locked by page path, there is no way for CSR to start a
  new
  request until previous one is finished.
 
 
  igor.vaynberg wrote:
  
   the pages are locked on the pagemap. so you cannot have two concurrent
   requests from the same user to the same pagemap. this is so when you
   are coding your pages you can use the much simpler single-threaded
   model.
  
   every have fields in your servlet implementation? those have to be
   synchronized or you will run into threading issues. this is the stuff
   we make sure you dont have to worry about.
  
   the trade off is that if you have long running requests you should
   probably process them in a different thread and let the UI poll for
   status.
  
   -igor
  
  
   On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:
  
   So I developed my first wicket application and I kept getting exception
   below
   as soon as i point my application to production database.
  
   Can someone tell me why wicket can't handle concurrent request?
  
   to replicate this issue, i have a page with a form component and
  regular
   submit button.
   on the onSubmit method,
protected void onSubmit() {
   try {
   Thread.sleep(3 * 60 * 1000);
   } catch (InterruptedException e) {
   }
}
  
   i put the thread into sleep for 3 minutes. I hit submit, then stop the
   request on browser and submit another request.  then result to a
  internal
   error page. Why can't wicket handle mutiple submit? i dont' get it,
   shouldn't wicket process the new require like how servlet works?
  Someone
   please tell me how to work around this issue. Thanks in advance.
  
  
   2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After
  1
   minute the Pagemap null is still locked by:
   Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
   the
   page for path: 5
   org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
  null
   is
   still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving
  up
   trying to get the page for path: 5
   at org.apache.wicket.Session.getPage(Session.java:734)
   at
  
  org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
  (AbstractRequestCycleProcessor.java:443)
   at
   org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
  WebRequestCycleProcessor.java:139)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java
  :489)
   at
   org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
  :354)
   at
   org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
  :121)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
   at
   com.caucho.server.dispatch.ServletFilterChain.doFilter(
  ServletFilterChain.java:106)
   --
   View this message in context:
  
  http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
   Sent from the Wicket - User mailing list archive at 
   Nabble.comhttp://nabble.com/
  .
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Igor Vaynberg
maybe instead of waiting on the page to finish we should have an
option to kill it, rollback, and start again with the new request?
with the diskstore we have the old version serialized...

-igor


On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 shared resources are not synced thats one way of going round it.

 the other way is as igor describes. do the search in a seperate thread.
 If it really takes that long then you do know that browsers also can just
 time out after they don't get anything for a while?

 If it really takes that long then you should build a page where people can
 fire searches to the system
 and the page is just displayig the searches they did and then if the search
 is finished that page can bring them to the result

 johan




 On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:

 
  that's nice to have but is there a way to work around this issue? Our
  application for customer service and they perform a lot search on a huge
  database, in some cases, customer service would like to start new search.
  Since wicket is locked by page path, there is no way for CSR to start a
  new
  request until previous one is finished.
 
 
  igor.vaynberg wrote:
  
   the pages are locked on the pagemap. so you cannot have two concurrent
   requests from the same user to the same pagemap. this is so when you
   are coding your pages you can use the much simpler single-threaded
   model.
  
   every have fields in your servlet implementation? those have to be
   synchronized or you will run into threading issues. this is the stuff
   we make sure you dont have to worry about.
  
   the trade off is that if you have long running requests you should
   probably process them in a different thread and let the UI poll for
   status.
  
   -igor
  
  
   On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:
  
   So I developed my first wicket application and I kept getting exception
   below
   as soon as i point my application to production database.
  
   Can someone tell me why wicket can't handle concurrent request?
  
   to replicate this issue, i have a page with a form component and
  regular
   submit button.
   on the onSubmit method,
protected void onSubmit() {
   try {
   Thread.sleep(3 * 60 * 1000);
   } catch (InterruptedException e) {
   }
}
  
   i put the thread into sleep for 3 minutes. I hit submit, then stop the
   request on browser and submit another request.  then result to a
  internal
   error page. Why can't wicket handle mutiple submit? i dont' get it,
   shouldn't wicket process the new require like how servlet works?
  Someone
   please tell me how to work around this issue. Thanks in advance.
  
  
   2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After
  1
   minute the Pagemap null is still locked by:
   Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
   the
   page for path: 5
   org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
  null
   is
   still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving
  up
   trying to get the page for path: 5
   at org.apache.wicket.Session.getPage(Session.java:734)
   at
  
  org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
  (AbstractRequestCycleProcessor.java:443)
   at
   org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
  WebRequestCycleProcessor.java:139)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java
  :489)
   at
   org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
  :354)
   at
   org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
  :121)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
   at
   com.caucho.server.dispatch.ServletFilterChain.doFilter(
  ServletFilterChain.java:106)
   --
   View this message in context:
  
  http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
   Sent from the Wicket - User mailing list archive at 
   Nabble.comhttp://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:
  

Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread Frank Bille
On Jan 28, 2008 10:09 PM, James Carman [EMAIL PROTECTED] wrote:

 Ok, I think I speak for the rest of us when I say that I think this
 should be taken off-line.


Ok, I can only speak for myself, but I'm not part of those rest. Even if I
were not part of this thread I would still disagree. Even if it had went on
for days in this thread I still wouldn't care. I don't think this mailing
list is overrun by these kind of subjects


 Although I'm sure we all hope your daughter
 gets better,


+1


I don't think this is the proper forum to discuss her
 pneumonia and diarrhea.


I fail to see the discussion about it.


Doesn't the user group have their own mailing list they can use?


No, and as long as it's not bigger than it is it's not likely to get one,
unless the Wicket community decides the WUG activity should be splitted of
this mailing list. But at the moment I don't think it makes sense because
the traffic is so low and at least some of the user groups needs as much
publicity as possible to attract interested users from the different
countries.

But again, this is just me. I might be totally out of sync with the rest of
the community.


Regards,
Frank


Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Johan Compagner
shared resources are not synced thats one way of going round it.

the other way is as igor describes. do the search in a seperate thread.
If it really takes that long then you do know that browsers also can just
time out after they don't get anything for a while?

If it really takes that long then you should build a page where people can
fire searches to the system
and the page is just displayig the searches they did and then if the search
is finished that page can bring them to the result

johan



On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:


 that's nice to have but is there a way to work around this issue? Our
 application for customer service and they perform a lot search on a huge
 database, in some cases, customer service would like to start new search.
 Since wicket is locked by page path, there is no way for CSR to start a
 new
 request until previous one is finished.


 igor.vaynberg wrote:
 
  the pages are locked on the pagemap. so you cannot have two concurrent
  requests from the same user to the same pagemap. this is so when you
  are coding your pages you can use the much simpler single-threaded
  model.
 
  every have fields in your servlet implementation? those have to be
  synchronized or you will run into threading issues. this is the stuff
  we make sure you dont have to worry about.
 
  the trade off is that if you have long running requests you should
  probably process them in a different thread and let the UI poll for
  status.
 
  -igor
 
 
  On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:
 
  So I developed my first wicket application and I kept getting exception
  below
  as soon as i point my application to production database.
 
  Can someone tell me why wicket can't handle concurrent request?
 
  to replicate this issue, i have a page with a form component and
 regular
  submit button.
  on the onSubmit method,
   protected void onSubmit() {
  try {
  Thread.sleep(3 * 60 * 1000);
  } catch (InterruptedException e) {
  }
   }
 
  i put the thread into sleep for 3 minutes. I hit submit, then stop the
  request on browser and submit another request.  then result to a
 internal
  error page. Why can't wicket handle mutiple submit? i dont' get it,
  shouldn't wicket process the new require like how servlet works?
 Someone
  please tell me how to work around this issue. Thanks in advance.
 
 
  2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After
 1
  minute the Pagemap null is still locked by:
  Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get
  the
  page for path: 5
  org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
 null
  is
  still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving
 up
  trying to get the page for path: 5
  at org.apache.wicket.Session.getPage(Session.java:734)
  at
 
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
 (AbstractRequestCycleProcessor.java:443)
  at
  org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
 WebRequestCycleProcessor.java:139)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java
 :489)
  at
  org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
 :354)
  at
  org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java
 :121)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
  at
  com.caucho.server.dispatch.ServletFilterChain.doFilter(
 ServletFilterChain.java:106)
  --
  View this message in context:
 
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
  Sent from the Wicket - User mailing list archive at 
  Nabble.comhttp://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/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15147756.html
  Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




RE: Update problem with AutoCompleteTextField

2008-01-28 Thread Michael Mehrle
Never mind guys, I screwed up feeding the data - it's working perfectly
now.

Michael

-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 28, 2008 1:57 PM
To: users@wicket.apache.org
Subject: Update problem with AutoCompleteTextField

Hi guys - started working with Wicket a few weeks ago and I'm new to
this list. BTW, I haven't had that much fun coding client/server stuff
in a long time - never liked JSP/JSTL, etc. much. 

 

Anyway, I'm running into a little update problem with
AutoCompleteTextField - for some reason when I start typing the field
only shows a subset of the available options. My log output indicates
that the Iterator returned by getChoices(String input) contains all the
data. Also, when I start deleting characters in the text field, the
Iterator again contains an increasing amount of possible options for the
fewer remaining characters, however the field only shows the number of
options that were previously available. This is tough to explain, let me
give an example - if I type 'United' I get three options:

 

-  United Arab Emirates

-  United Kingdom

-  United States

 

Now, when I delete all characters except the 'U' I get:

 

-  Ukraine

-  United Arab Emirates

-  United Kingdom

 

When I now delete all chars in the field and then only type 'U' I get:

 

-  Ukraine

-  United Arab Emirates

-  United Kingdom

-  United States

-  Urugay

 

BTW, the very first time I simply type 'U' I get nothing - it takes
several characters until the auto-complete kicks in.

 

FYI - I'm autopopulating a simple list with Locales, which is what
drives the component. My log statement in the method that serves the
data to the overridden getChoices method does print the right data. It
seems it's the component that's somehow broken.

 

Any input would be very welcome.

 

Thanks!

 

Michael


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



Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Igor Vaynberg
the pages are locked on the pagemap. so you cannot have two concurrent
requests from the same user to the same pagemap. this is so when you
are coding your pages you can use the much simpler single-threaded
model.

every have fields in your servlet implementation? those have to be
synchronized or you will run into threading issues. this is the stuff
we make sure you dont have to worry about.

the trade off is that if you have long running requests you should
probably process them in a different thread and let the UI poll for
status.

-igor


On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED] wrote:

 So I developed my first wicket application and I kept getting exception below
 as soon as i point my application to production database.

 Can someone tell me why wicket can't handle concurrent request?

 to replicate this issue, i have a page with a form component and regular
 submit button.
 on the onSubmit method,
  protected void onSubmit() {
 try {
 Thread.sleep(3 * 60 * 1000);
 } catch (InterruptedException e) {
 }
  }

 i put the thread into sleep for 3 minutes. I hit submit, then stop the
 request on browser and submit another request.  then result to a internal
 error page. Why can't wicket handle mutiple submit? i dont' get it,
 shouldn't wicket process the new require like how servlet works? Someone
 please tell me how to work around this issue. Thanks in advance.


 2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] - After 1
 minute the Pagemap null is still locked by:
 Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to get the
 page for path: 5
 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is
 still locked by: Thread[resin-tcp-connection-*:8080-45,5,main], giving up
 trying to get the page for path: 5
 at org.apache.wicket.Session.getPage(Session.java:734)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:443)
 at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
 at
 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
 at
 com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
 --
 View this message in context: 
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.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]



Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Johan Compagner
how do you kill a current request?
you can't shoot down the thread, and we dont have any control of what
somebody is doing..
Ofcourse when it comes back at an wicket entry point at some time at some
place we could check
for a specific boolean and just throw an exception... But that is pretty
error prone i think.

On Jan 28, 2008 11:57 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:

 maybe instead of waiting on the page to finish we should have an
 option to kill it, rollback, and start again with the new request?
 with the diskstore we have the old version serialized...

 -igor


 On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
   shared resources are not synced thats one way of going round it.
 
  the other way is as igor describes. do the search in a seperate thread.
  If it really takes that long then you do know that browsers also can
 just
  time out after they don't get anything for a while?
 
  If it really takes that long then you should build a page where people
 can
  fire searches to the system
  and the page is just displayig the searches they did and then if the
 search
  is finished that page can bring them to the result
 
  johan
 
 
 
 
  On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED] wrote:
 
  
   that's nice to have but is there a way to work around this issue? Our
   application for customer service and they perform a lot search on a
 huge
   database, in some cases, customer service would like to start new
 search.
   Since wicket is locked by page path, there is no way for CSR to start
 a
   new
   request until previous one is finished.
  
  
   igor.vaynberg wrote:
   
the pages are locked on the pagemap. so you cannot have two
 concurrent
requests from the same user to the same pagemap. this is so when you
are coding your pages you can use the much simpler single-threaded
model.
   
every have fields in your servlet implementation? those have to be
synchronized or you will run into threading issues. this is the
 stuff
we make sure you dont have to worry about.
   
the trade off is that if you have long running requests you should
probably process them in a different thread and let the UI poll for
status.
   
-igor
   
   
On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED]
 wrote:
   
So I developed my first wicket application and I kept getting
 exception
below
as soon as i point my application to production database.
   
Can someone tell me why wicket can't handle concurrent request?
   
to replicate this issue, i have a page with a form component and
   regular
submit button.
on the onSubmit method,
 protected void onSubmit() {
try {
Thread.sleep(3 * 60 * 1000);
} catch (InterruptedException e) {
}
 }
   
i put the thread into sleep for 3 minutes. I hit submit, then stop
 the
request on browser and submit another request.  then result to a
   internal
error page. Why can't wicket handle mutiple submit? i dont' get it,
shouldn't wicket process the new require like how servlet works?
   Someone
please tell me how to work around this issue. Thanks in advance.
   
   
2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle] -
 After
   1
minute the Pagemap null is still locked by:
Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying to
 get
the
page for path: 5
org.apache.wicket.WicketRuntimeException: After 1 minute the
 Pagemap
   null
is
still locked by: Thread[resin-tcp-connection-*:8080-45,5,main],
 giving
   up
trying to get the page for path: 5
at org.apache.wicket.Session.getPage(Session.java:734)
at
   
  
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
   (AbstractRequestCycleProcessor.java:443)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
   WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java
 :1152)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java
 :1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java
   :489)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(
 WicketFilter.java
   :354)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(
 WicketServlet.java
   :121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java
 :92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(
   ServletFilterChain.java:106)
--
View this message in context:
   
  
 http://www.nabble.com/Pagemap-null-is-still-locked-by-blah-exception%2C-help%21%21-why-does-wicket-have-to-lock-the-pagemap-tp15146763p15146763.html
Sent from the Wicket - User mailing list archive at 

Re: Pagemap null is still locked by blah exception, help!! why does wicket have to lock the pagemap

2008-01-28 Thread Johan Compagner
interrupt() doesn't do much for a thread that isn't in wait/sleep or uses a
special nio interruptiblechannel
and most likely people have a try catch(Exception) around those and just go
on :)

johan

On Jan 29, 2008 12:26 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:

 cant we thread.interrupt() ? or will that actually kill the servlet
 thread without restarting it? havent throught this through all the
 way, just brainstorming.

 -igor


 On Jan 28, 2008 3:11 PM, Johan Compagner [EMAIL PROTECTED] wrote:
  how do you kill a current request?
  you can't shoot down the thread, and we dont have any control of what
  somebody is doing..
  Ofcourse when it comes back at an wicket entry point at some time at
 some
  place we could check
  for a specific boolean and just throw an exception... But that is pretty
  error prone i think.
 
 
  On Jan 28, 2008 11:57 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
   maybe instead of waiting on the page to finish we should have an
   option to kill it, rollback, and start again with the new request?
   with the diskstore we have the old version serialized...
  
   -igor
  
  
   On Jan 28, 2008 2:51 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 shared resources are not synced thats one way of going round it.
   
the other way is as igor describes. do the search in a seperate
 thread.
If it really takes that long then you do know that browsers also can
   just
time out after they don't get anything for a while?
   
If it really takes that long then you should build a page where
 people
   can
fire searches to the system
and the page is just displayig the searches they did and then if the
   search
is finished that page can bring them to the result
   
johan
   
   
   
   
On Jan 28, 2008 11:46 PM, cemeterygate [EMAIL PROTECTED]
 wrote:
   

 that's nice to have but is there a way to work around this issue?
 Our
 application for customer service and they perform a lot search on
 a
   huge
 database, in some cases, customer service would like to start new
   search.
 Since wicket is locked by page path, there is no way for CSR to
 start
   a
 new
 request until previous one is finished.


 igor.vaynberg wrote:
 
  the pages are locked on the pagemap. so you cannot have two
   concurrent
  requests from the same user to the same pagemap. this is so when
 you
  are coding your pages you can use the much simpler
 single-threaded
  model.
 
  every have fields in your servlet implementation? those have to
 be
  synchronized or you will run into threading issues. this is the
   stuff
  we make sure you dont have to worry about.
 
  the trade off is that if you have long running requests you
 should
  probably process them in a different thread and let the UI poll
 for
  status.
 
  -igor
 
 
  On Jan 28, 2008 2:08 PM, cemeterygate [EMAIL PROTECTED]
   wrote:
 
  So I developed my first wicket application and I kept getting
   exception
  below
  as soon as i point my application to production database.
 
  Can someone tell me why wicket can't handle concurrent request?
 
  to replicate this issue, i have a page with a form component
 and
 regular
  submit button.
  on the onSubmit method,
   protected void onSubmit() {
  try {
  Thread.sleep(3 * 60 * 1000);
  } catch (InterruptedException e) {
  }
   }
 
  i put the thread into sleep for 3 minutes. I hit submit, then
 stop
   the
  request on browser and submit another request.  then result to
 a
 internal
  error page. Why can't wicket handle mutiple submit? i dont' get
 it,
  shouldn't wicket process the new require like how servlet
 works?
 Someone
  please tell me how to work around this issue. Thanks in
 advance.
 
 
  2008-01-25 14:45:05,443 ERROR [org.apache.wicket.RequestCycle]
 -
   After
 1
  minute the Pagemap null is still locked by:
  Thread[resin-tcp-connection-*:8080-45,5,main], giving up trying
 to
   get
  the
  page for path: 5
  org.apache.wicket.WicketRuntimeException: After 1 minute the
   Pagemap
 null
  is
  still locked by: Thread[resin-tcp-connection-*:8080-45,5,main],
   giving
 up
  trying to get the page for path: 5
  at org.apache.wicket.Session.getPage(Session.java:734)
  at
 

  
 org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
 (AbstractRequestCycleProcessor.java:443)
  at
 
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
 WebRequestCycleProcessor.java:139)
  at org.apache.wicket.RequestCycle.step(
 RequestCycle.java
   :1152)
  at org.apache.wicket.RequestCycle.steps(
 RequestCycle.java
   :1245)
  at 

RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
Makes complete sense - thanks for your input. I'll stick with HttpClient
then :-)

Michael

-Original Message-
From: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 28, 2008 3:51 PM
To: users@wicket.apache.org
Subject: Re: Web service call inside Wicket?

Wicket's scope is being a web framework for rendering web pages, and be
very
good at that. Connecting to other sites to retrieve data is not inside
that
scope.
HttpClient is a useful library for this kind of thing. There is little
that
we could improve on that (saying that without any knowledge of said
library).

Martijn

On 1/29/08, Michael Mehrle [EMAIL PROTECTED] wrote:

 Yeah, that's my plan - turn the XML into a value bean and use it as my
 form model. However, my question is more related to what happens
before
 that: Make an HTTP call to the external website, retrieve the XML and
 *then* parse it. Again, my first instinct is to HttpClient, but last
 time I used it was several years go - was wondering if there's
anything
 in Wicket I should use instead.

 Michael

 -Original Message-
 From: Ryan Sonnek [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 28, 2008 3:36 PM
 To: users@wicket.apache.org
 Subject: Re: Web service call inside Wicket?

 If your service (http, webservice, whatever) returns some kind of
 business object, it'll be very easy to bind it to form values.

 MyObject object = service.find();

 add(new TextField(name, new PropertyModel(object, name));

 make sense?

 On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:
  This is a simple question - I have do make an http call to an
external
  website inside my DAO - it's like a webservice call. The resulting
XML
  then needs to be parsed and used to populate my Wicket form. I was
  thinking of using the Jakarta Commons HttpClient to retrieve the
XML,
  but was wondering if there is a preferred way of doing stuff like
this
  in Wicket.
 
  Thanks!
 
  Michael
 
 
-
  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]


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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



RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
Yeah, that's my plan - turn the XML into a value bean and use it as my
form model. However, my question is more related to what happens before
that: Make an HTTP call to the external website, retrieve the XML and
*then* parse it. Again, my first instinct is to HttpClient, but last
time I used it was several years go - was wondering if there's anything
in Wicket I should use instead.

Michael

-Original Message-
From: Ryan Sonnek [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 28, 2008 3:36 PM
To: users@wicket.apache.org
Subject: Re: Web service call inside Wicket?

If your service (http, webservice, whatever) returns some kind of
business object, it'll be very easy to bind it to form values.

MyObject object = service.find();

add(new TextField(name, new PropertyModel(object, name));

make sense?

On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
 This is a simple question - I have do make an http call to an external
 website inside my DAO - it's like a webservice call. The resulting XML
 then needs to be parsed and used to populate my Wicket form. I was
 thinking of using the Jakarta Commons HttpClient to retrieve the XML,
 but was wondering if there is a preferred way of doing stuff like this
 in Wicket.

 Thanks!

 Michael

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


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



Re: Copenhagen wicket user meeting: rescheduled

2008-01-28 Thread James Carman
On 1/28/08, Frank Bille [EMAIL PROTECTED] wrote:
 On Jan 28, 2008 10:09 PM, James Carman [EMAIL PROTECTED] wrote:

  Ok, I think I speak for the rest of us when I say that I think this
  should be taken off-line.


I said the conversation should be taken off-line because it was
becoming personal in nature (discussing someone's family member's
health concerns).  It just doesn't belong in a public forum which is
supposed to be used to discuss issues/concerns with the Wicket
framework.


 Ok, I can only speak for myself, but I'm not part of those rest. Even if I
 were not part of this thread I would still disagree. Even if it had went on
 for days in this thread I still wouldn't care. I don't think this mailing
 list is overrun by these kind of subjects


You might not care, but there are those of us out there that subscribe
to quite a few mailing lists and if they all allowed these sort of
personal discussions to go on (especially for days), then it would be
quite unmanageable to weed through.


  Although I'm sure we all hope your daughter
  gets better,


 +1


 I don't think this is the proper forum to discuss her
  pneumonia and diarrhea.
 

 I fail to see the discussion about it.

You didn't see the I dont think so, it's pneumonia and diarra
(although pretty severe). email?



 Doesn't the user group have their own mailing list they can use?
 

 No, and as long as it's not bigger than it is it's not likely to get one,
 unless the Wicket community decides the WUG activity should be splitted of
 this mailing list. But at the moment I don't think it makes sense because
 the traffic is so low and at least some of the user groups needs as much
 publicity as possible to attract interested users from the different
 countries.


Maybe the Wicket site could have a page on the Community section
listing some of the user groups around the world with information
about them (website, mailing lists, etc.).  Mailing lists are very
easy to set up.  You can start a Google Group (for free) to represent
your user group and folks could subscribe to that.  Also, the Wicket
community already has an announcements list which might be a better
place for user group meeting information.

 But again, this is just me. I might be totally out of sync with the rest of
 the community.


 Regards,
 Frank


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



Re: Web service call inside Wicket?

2008-01-28 Thread James Carman
Check out betwixt (http://commons.apache.org/betwixt) also.  It might
help you turn your XML into objects.  If it's a pretty simple
transformation, though, you might just stick with something like
Digester (http://commons.apache.org/digester/) or just parse it
yourself (as suggested).

On 1/28/08, Michael Mehrle [EMAIL PROTECTED] wrote:
 Makes complete sense - thanks for your input. I'll stick with HttpClient
 then :-)

 Michael

 -Original Message-
 From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 28, 2008 3:51 PM
 To: users@wicket.apache.org
 Subject: Re: Web service call inside Wicket?

 Wicket's scope is being a web framework for rendering web pages, and be
 very
 good at that. Connecting to other sites to retrieve data is not inside
 that
 scope.
 HttpClient is a useful library for this kind of thing. There is little
 that
 we could improve on that (saying that without any knowledge of said
 library).

 Martijn

 On 1/29/08, Michael Mehrle [EMAIL PROTECTED] wrote:
 
  Yeah, that's my plan - turn the XML into a value bean and use it as my
  form model. However, my question is more related to what happens
 before
  that: Make an HTTP call to the external website, retrieve the XML and
  *then* parse it. Again, my first instinct is to HttpClient, but last
  time I used it was several years go - was wondering if there's
 anything
  in Wicket I should use instead.
 
  Michael
 
  -Original Message-
  From: Ryan Sonnek [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 28, 2008 3:36 PM
  To: users@wicket.apache.org
  Subject: Re: Web service call inside Wicket?
 
  If your service (http, webservice, whatever) returns some kind of
  business object, it'll be very easy to bind it to form values.
 
  MyObject object = service.find();
 
  add(new TextField(name, new PropertyModel(object, name));
 
  make sense?
 
  On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED]
 wrote:
   This is a simple question - I have do make an http call to an
 external
   website inside my DAO - it's like a webservice call. The resulting
 XML
   then needs to be parsed and used to populate my Wicket form. I was
   thinking of using the Jakarta Commons HttpClient to retrieve the
 XML,
   but was wondering if there is a preferred way of doing stuff like
 this
   in Wicket.
  
   Thanks!
  
   Michael
  
  
 -
   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]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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



RE: Web service call inside Wicket?

2008-01-28 Thread Michael Mehrle
Cool! Thanks a lot - this'll make it easier to parse everything.

Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of James Carman
Sent: Monday, January 28, 2008 4:37 PM
To: users@wicket.apache.org
Subject: Re: Web service call inside Wicket?

Check out betwixt (http://commons.apache.org/betwixt) also.  It might
help you turn your XML into objects.  If it's a pretty simple
transformation, though, you might just stick with something like
Digester (http://commons.apache.org/digester/) or just parse it
yourself (as suggested).

On 1/28/08, Michael Mehrle [EMAIL PROTECTED] wrote:
 Makes complete sense - thanks for your input. I'll stick with
HttpClient
 then :-)

 Michael

 -Original Message-
 From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 28, 2008 3:51 PM
 To: users@wicket.apache.org
 Subject: Re: Web service call inside Wicket?

 Wicket's scope is being a web framework for rendering web pages, and
be
 very
 good at that. Connecting to other sites to retrieve data is not inside
 that
 scope.
 HttpClient is a useful library for this kind of thing. There is little
 that
 we could improve on that (saying that without any knowledge of said
 library).

 Martijn

 On 1/29/08, Michael Mehrle [EMAIL PROTECTED] wrote:
 
  Yeah, that's my plan - turn the XML into a value bean and use it as
my
  form model. However, my question is more related to what happens
 before
  that: Make an HTTP call to the external website, retrieve the XML
and
  *then* parse it. Again, my first instinct is to HttpClient, but last
  time I used it was several years go - was wondering if there's
 anything
  in Wicket I should use instead.
 
  Michael
 
  -Original Message-
  From: Ryan Sonnek [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 28, 2008 3:36 PM
  To: users@wicket.apache.org
  Subject: Re: Web service call inside Wicket?
 
  If your service (http, webservice, whatever) returns some kind of
  business object, it'll be very easy to bind it to form values.
 
  MyObject object = service.find();
 
  add(new TextField(name, new PropertyModel(object, name));
 
  make sense?
 
  On Jan 28, 2008 5:32 PM, Michael Mehrle [EMAIL PROTECTED]
 wrote:
   This is a simple question - I have do make an http call to an
 external
   website inside my DAO - it's like a webservice call. The resulting
 XML
   then needs to be parsed and used to populate my Wicket form. I was
   thinking of using the Jakarta Commons HttpClient to retrieve the
 XML,
   but was wondering if there is a preferred way of doing stuff like
 this
   in Wicket.
  
   Thanks!
  
   Michael
  
  
 -
   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]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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


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



RE: modal window question - opening a modal window on page load

2008-01-28 Thread kenixwong

Hi, Ed

i just read from the forum you sent if you don't mind, can you give more
example ? because i based on the in instruction , i still cant get it. An no
idea for this part

getBodyContainer().addOnLoadModifier(
  new ClickOnceOnLoadModel( modalWindowOpeningLink ), null
);

As my code structure this like this way


public class LastThirtyDaysLineChart extends CommonPage{


// main contructor. Initial the page to show what
public LastThirtyDaysLineChart () {
// 1. display the feedback panel
add(new FeedbackPanel(feedback));
   
// 2. display the component defined in form
add(new LastThirtyDaysLineChartForm(LastThirtyDaysLineChartForm));
}

   
// the form declare the component in order display in the web browser
private class LastThirtyDaysLineChartFormextends Form{
   
// 3. so, is the main source to get the data from Database  in order
to generate the chart
generate Time series chart...
}
}



So, in which part i need to generate the ModalWindow with no onClick event
...Mean  once this page is load, the modal window will auto prompt on
screen...


Can you give some instruction to me ? thanks in advance




Ed_ wrote:
 
 
 Thanks Ryan,
 
 First pass this has worked well for me. Appreciate your detailed
 instructions. Maybe these can be added to the open issue history itself
 for other folks till the issue gets closed.
 
 I assume you have to be developer to make changes to the change history.
 
 -ed
 
 From: [EMAIL PROTECTED]
 Subject: Re: modal window question - opening a modal window on page load
 Date: Sun, 9 Sep 2007 22:24:03 -0700
 To: users@wicket.apache.org
 
 There is an open issue about this: http://issues.apache.org/jira/ 
 browse/WICKET-12
 Read the discussion for some background and possible solutions.
 
 I needed to do the same thing on a couple of pages. First, I tried  
 using getWindowOpenJavascript() on the modal window (called via  
 reflection as it's a private method) to get the needed JS, but I  
 think I ran into a few issues which I've now forgotten (private  
 'shown' variable wasn't set?).
 
 What I ended up doing was to use JavaScript to call the onclick()  
 method of a link that opens the modal window from my page's onload  
 function. Since the modal window is a JavaScript construct anyway I  
 don't think using JS for the auto-open behavior is weird.
 
 
 The following model ensures that a component is clicked only one  
 time, when the page is initially loaded (probably a common use case).  
 If you want to open the modal window on every page load, just check  
 out the JavaScript and the basic concept. This is written for Wicket  
 1.2 but a similar approach should work for 1.3.
 
 public class ClickOnceOnLoadModel extends AbstractReadOnlyModel {
private final Component component;
private boolean clicked = false;
 
 public ClickOnceOnLoadModel(Component component) {
  this.component = component;
}
 
@Override
public Object getObject(Component cmp) {
  if ( !this.clicked ) {
this.clicked = true;
return getClickJs();
  }
  return null;
}
 
private String getClickJs() {
  StringBuilder sb = new StringBuilder( 64 );
  sb.append( var e=document.getElementById(' );
  sb.append( this.component.getMarkupId() );
  sb.append( ');e.onclick(); );
  return sb.toString();
}
 }
 
 
 You would use it like this:
 
 // Page constructor
 public MyPage() {
  getBodyContainer().addOnLoadModifier(
new ClickOnceOnLoadModel( modalWindowOpeningLink ), null );
 }
 
 
 This of course requires a link on your page that opens the same modal  
 window you want to open automatically. If you really don't want such  
 a link, you could always hide it with CSS.
 
 If there are more elegant solutions (and I'm sure there are), you'll  
 probably hear about them soon...
 
 -Ryan
 
 On Sep 9, 2007, at 8:04 PM, Ed _ wrote:
 
 
  I want to bring up a modal window when I load a page, ie without  
  clicking a link. I want to use it to prompt the user to enter some  
  data on the home page before he can proceed. So somehow I have to  
  enable the show function, how do I do that.
 
  I tried to do something as follows -
 
  FormPanel form =  new FormPanel(modal.getContentId(),  
  StoreBasePath, strId, title);
  form.setOutputMarkupId(true);
  modal.setContent(form);
  modal.setTitle(This is modal window with panel  
  content.);
  modal.setCookieName(modalform);
  AjaxRequestTarget target = new AjaxRequestTarget();
  modal.show(target);
 
  java.lang.IllegalStateException: No Page found for component  
  [MarkupContainer [Component id = ModalWindow, page = No Page,  
  path = FormPanel:ModalWindow.ModalWindow]]
   at wicket.Component.getPage(Component.java:1037)
   at 

Re: Dynamic DataTable columns

2008-01-28 Thread Timo Rantalaiho
On Mon, 28 Jan 2008, UPBrandon wrote:
 Although, in the mean time, I still have the same problem - not being able
 to change change the columns after the DataTable has been declared, at
 render time.  Any suggestions?

Roll your own using DataView. You can take ideas from 
DataTable but I doubt that the Column abstraction helps you
if you want to change the columns dynamically; this is 
probably easier done by just changing the row Item creation.

In my experience such high-level components as DataTable
don't work well when you want a lot of control, then their
value is more that of an example.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: IndicatingOrderByBorder?

2008-01-28 Thread Igor Vaynberg
no there isnt, you will have to roll your own...

-igor


On Jan 28, 2008 9:47 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi All,


 Is there such class as IndicatingOrderByBorder? I need to display some 
 progress icon while sorting.

 Thanks,
 Wen Tong

 --
 The only constant in life is change.




   
 
 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs

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



IndicatingOrderByBorder?

2008-01-28 Thread Beyonder Unknown

Hi All,


Is there such class as IndicatingOrderByBorder? I need to display some progress 
icon while sorting.

Thanks,
Wen Tong
 
--
The only constant in life is change.




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

2008-01-28 Thread Lan Boon Ping
Hi Nino,

On Jan 28, 2008 10:31 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Without knowing any details at all. Could it have something todo with
 wicketAjaxGet, not that the wicketAjaxGet fails but that it's setup
 wrongly from scriptaulous?

Not really sure about this. Could you give more information about how
could wicketAjaxGet being setup wrongly?

 Looking at the internals it looks like wicketAjaxGet encapsules a new
 method inorder to support backwards compability or something along these
 lines.

Are you referring to DraggableTarget.onRender() method? Or something
else? If you were referring to DraggableTarget.onRender(), I didn't
see wicketAjaxGet has encapsulated a new method, it seems nothing
wrong there.

Thanks for your help.

Regards
Boon Ping.

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



Ajax Busy Indicator

2008-01-28 Thread Martin Makundi
Hi!

Can anyone help? I am having difficulties showing a bysy indicator
besides the submit button, while the form is being submitted and
processed. I have only found pieces of varying examples and I have
tried to put them work together, but it just does not seem want to
show the indicator. Here is my code:

public class Login extends WebPage {
// ... default constructor contents:
final Form loginForm = new Form(LOGIN_FORM, new Model());
final AjaxIndicatorContainer indicatorContainer = new
AjaxIndicatorContainer();
indicatorContainer.setOutputMarkupId(true);
loginForm.add(indicatorContainer);
  final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) {
/**
 * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
 */
@Override
public void onSubmit() {
  super.onSubmit();
  Thread.sleep(5000); // Simulate form processing
}
  };
  abstract class AjaxFormSubmitIndicator extends
AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
/**
 * Constructor for TODO
 *
 */
public AjaxFormSubmitIndicator() {
  super(onchange); // I have tried onchange and onclick
}
  }
  loginButton.add(new AjaxFormSubmitIndicator() {
@Override
protected void onError(AjaxRequestTarget arg0) {
  // TODO Auto-generated method stub
}

@Override
protected void onSubmit(AjaxRequestTarget arg0) {
  loginButton.onSubmit();
}

public String getAjaxIndicatorMarkupId() {
  return indicatorContainer.getMarkupId();
}
  });
  loginForm.add(loginButton);

// ... etc..

  add(new FeedbackPanel(feedback));
  add(loginForm);
}




public class AjaxIndicatorContainer extends WebMarkupContainer {
  /**
   *
   */
  private static final long serialVersionUID = 5573778050703849297L;
  /**
   *
   */
  public static final String INDICATOR_MARKUP_ID = ajaxIndicator;

  /**
   * Constructor for TODO
   */
  public AjaxIndicatorContainer() {
super(INDICATOR_MARKUP_ID);
  }

  /**
   * @see 
org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
   */
  @Override
  protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
  }




body
wicket:extend
h1Login/h1
span wicket:id=feedbackFeedback messages will be here./span
form wicket:id=loginForm
table border=0 cellspacing=0 cellpadding=2 align=center
trtd NOWRAP width=80 align=right
Username:
/td
tdinput type=text wicket:id=userId/td/tr
trtd NOWRAP align=right
Password: /tdtdinput type=password wicket:id=password/td/tr
trtd align=rightimg src=# border=0
wicket:id=ajaxIndicator style=display:none//tdtd NOWRAP
input type=submit value=Sign in wicket:id=loginButton
/td/tr
/table
/form
/wicket:extend
/body


**
Martin

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