Re: Participating in Wicket

2008-12-18 Thread HHB

Thanks.
My problem is I don't where to start.
Lets say I want to fix that bug, in order to know how to fix it, I have to
be aware of the whole source code of Wicket, am I right?
How to start studying the source code? I mean where to start reviewing?


Scott Swank wrote:
 
 I found this helpful.
 
 http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html
 
 Scott
 
 
 On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:

 Thanks Martijn
 How do you suggest to start studying Wicket core code (I don't mean
 getting
 the source code :) )?
 It is complicated to study and grasp?
 Thanks again.


 Martijn Dashorst wrote:

 Look at jira issues, fix them, create a patch and attach it to the
 jira issue. When we like your code and are tired of applying the fixes
 for you, you might be proposed to become a committer yourself.

 Valuable info:

 http://apache.org/dev/contributors.html#patches

 Martijn

 On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote:

 Hey,
 I really have a great passion toward Wicket framework and I really want
 to
 participate with their core developer teams.
 My problem is that this framework has really great and passion
 developers
 and I can't imagine myself trying to join them (nor they will accept, I
 think) not to mention this great community.
 What do you suggest me to do?
 Thanks for your time.
 --
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




 --
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Redirect to mounted page programmatically

2008-12-18 Thread Newgro

Hi *,

i would like to redirect to a page mounted in application by calling it from
another page.

Application.init
mountBookmarkablePage(PAGE1_ID, Page1.class);

AnyPage.myMethod
redirectTo(PAGE1_ID)

How could a redirectTo(String mountPoint) method look? The normal
redirection by requestcycle is not working because i firstly need a
responsepage. But how should i get it by a MountPointId? A global registry
is not nice in my eyes.

Would be nice if someone can help me out here.

thanks
Per
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-mounted-page-programmatically-tp21068725p21068725.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How can we make runtime templates switching?

2008-12-18 Thread Alex Chew
Yes,I got it.
Border works well

Thanks
Alex


Re: Participating in Wicket

2008-12-18 Thread Stephen Swinsburg
If you want the source code for Wicket, check it out from SVN into  
your own local working copy. You can then build Wicket via maven after  
you have made any local changes to the source code to see if the bug  
has been fixed.


You can then generate a patch and attach it to a Jira issue so the  
developers can review it.


cheers.


On 18/12/2008, at 8:19 AM, HHB wrote:



Thanks.
My problem is I don't where to start.
Lets say I want to fix that bug, in order to know how to fix it, I  
have to

be aware of the whole source code of Wicket, am I right?
How to start studying the source code? I mean where to start  
reviewing?



Scott Swank wrote:


I found this helpful.

http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

Scott


On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:


Thanks Martijn
How do you suggest to start studying Wicket core code (I don't mean
getting
the source code :) )?
It is complicated to study and grasp?
Thanks again.


Martijn Dashorst wrote:


Look at jira issues, fix them, create a patch and attach it to the
jira issue. When we like your code and are tired of applying the  
fixes

for you, you might be proposed to become a committer yourself.

Valuable info:

http://apache.org/dev/contributors.html#patches

Martijn

On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote:


Hey,
I really have a great passion toward Wicket framework and I  
really want

to
participate with their core developer teams.
My problem is that this framework has really great and passion
developers
and I can't imagine myself trying to join them (nor they will  
accept, I

think) not to mention this great community.
What do you suggest me to do?
Thanks for your time.
--
View this message in context:
http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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





--
View this message in context:
http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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





--
View this message in context: 
http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: Dojo 1.1 integration available from wicketstuff

2008-12-18 Thread Stefan Fußenegger

There's now a little bit of documentation online:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1

Cheers, Stefan


Stefan Fußenegger wrote:
 
 Hi folks,
 
 I just shared a new project called wicketstuff-dojo-1.1 [1], an
 integration of the Dojo JavaScript toolkit [2] into Wicket. This project
 is based on wicketstuff-dojo [3] and wicketstuff-push [4] (both based on
 dojo 0.4). However, not all of the components from wicketstuff-dojo have
 been ported to the new dojo version (but feel free to do so). 
 
 Currently, there is no documentation available. I'll add some info to the
 wicketstuff wiki next week. In the meantime, (really) early adopters can
 check it out for review. To build the project, check it out and run `mvn
 clean install`. To build a custom dojo distribution, place your
 profile.profile.js (e.g. foobar.profile.js) in buildDojo/custom-profile/
 and run `mvn -Ddojo.profile=profile clean install`. In your project pom,
 add 
 
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicketstuff-dojo-1.1/artifactId
 version1.3.5-standard-SNAPSHOT/version
 /dependency
 
 or, for the custom profile
 
 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdwicketstuff-dojo-1.1/artifactId
 version1.3.5-profile-SNAPSHOT/version
 /dependency
 
 (Not sure if this versioning strategy is the best choice, but it makes it
 quite easy to use different custom profiles for different projects)
 
 Looking forward to your feedback!
 
 Regards, Stefan
 
 [1]
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1/
 [2] http://dojotoolkit.org/
 [3] http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Dojo
 [4]
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Dojo-1.1-integration-available-from-wicketstuff-tp20625220p21069750.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Participating in Wicket

2008-12-18 Thread HHB

Thank you all guys but maybe I'm expressing my ideas the wrong way.
I don't mean how to get Wicket source and create a patch, I mean what is the
best way to start studying Wicket source code? where to start? which module?


Steve Swinsburg-2 wrote:
 
 If you want the source code for Wicket, check it out from SVN into  
 your own local working copy. You can then build Wicket via maven after  
 you have made any local changes to the source code to see if the bug  
 has been fixed.
 
 You can then generate a patch and attach it to a Jira issue so the  
 developers can review it.
 
 cheers.
 
 
 On 18/12/2008, at 8:19 AM, HHB wrote:
 

 Thanks.
 My problem is I don't where to start.
 Lets say I want to fix that bug, in order to know how to fix it, I  
 have to
 be aware of the whole source code of Wicket, am I right?
 How to start studying the source code? I mean where to start  
 reviewing?


 Scott Swank wrote:

 I found this helpful.

 http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

 Scott


 On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:

 Thanks Martijn
 How do you suggest to start studying Wicket core code (I don't mean
 getting
 the source code :) )?
 It is complicated to study and grasp?
 Thanks again.


 Martijn Dashorst wrote:

 Look at jira issues, fix them, create a patch and attach it to the
 jira issue. When we like your code and are tired of applying the  
 fixes
 for you, you might be proposed to become a committer yourself.

 Valuable info:

 http://apache.org/dev/contributors.html#patches

 Martijn

 On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote:

 Hey,
 I really have a great passion toward Wicket framework and I  
 really want
 to
 participate with their core developer teams.
 My problem is that this framework has really great and passion
 developers
 and I can't imagine myself trying to join them (nor they will  
 accept, I
 think) not to mention this great community.
 What do you suggest me to do?
 Thanks for your time.
 --
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




 --
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 -- 
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/Participating-in-Wicket-tp21050410p21069869.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [OT] wicket users around the world

2008-12-18 Thread Anders
Taipei, Taiwan !!
Taiwan is not part of China~
We are independent for long time ago!

I am using Wicket for production line process.


Re: Participating in Wicket

2008-12-18 Thread James Perry
I'd recommend examining the WicketFilter as your starting point. This is
where wicket requests get intercepted and processed accordingly.

Best,
James.

On Thu, Dec 18, 2008 at 10:07 AM, HHB hubaghd...@yahoo.ca wrote:


 Thank you all guys but maybe I'm expressing my ideas the wrong way.
 I don't mean how to get Wicket source and create a patch, I mean what is
 the
 best way to start studying Wicket source code? where to start? which
 module?


 Steve Swinsburg-2 wrote:
 
  If you want the source code for Wicket, check it out from SVN into
  your own local working copy. You can then build Wicket via maven after
  you have made any local changes to the source code to see if the bug
  has been fixed.
 
  You can then generate a patch and attach it to a Jira issue so the
  developers can review it.
 
  cheers.
 
 
  On 18/12/2008, at 8:19 AM, HHB wrote:
 
 
  Thanks.
  My problem is I don't where to start.
  Lets say I want to fix that bug, in order to know how to fix it, I
  have to
  be aware of the whole source code of Wicket, am I right?
  How to start studying the source code? I mean where to start
  reviewing?
 
 
  Scott Swank wrote:
 
  I found this helpful.
 
  http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html
 
  Scott
 
 
  On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:
 
  Thanks Martijn
  How do you suggest to start studying Wicket core code (I don't mean
  getting
  the source code :) )?
  It is complicated to study and grasp?
  Thanks again.
 
 
  Martijn Dashorst wrote:
 
  Look at jira issues, fix them, create a patch and attach it to the
  jira issue. When we like your code and are tired of applying the
  fixes
  for you, you might be proposed to become a committer yourself.
 
  Valuable info:
 
  http://apache.org/dev/contributors.html#patches
 
  Martijn
 
  On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote:
 
  Hey,
  I really have a great passion toward Wicket framework and I
  really want
  to
  participate with their core developer teams.
  My problem is that this framework has really great and passion
  developers
  and I can't imagine myself trying to join them (nor they will
  accept, I
  think) not to mention this great community.
  What do you suggest me to do?
  Thanks for your time.
  --
  View this message in context:
 
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best:
 http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  View this message in context:
  http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Participating-in-Wicket-tp21050410p21069869.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: [OT] wicket users around the world

2008-12-18 Thread simonm

Tel-Aviv, Israel


francisco treacy-2 wrote:
 
 to know a little bit more of our great (and vast) community, i was
 just wondering if you're keen on sharing where you come from and/or
 where you work with wicket...
 
 for instance, here argentinian/belgian working with wicket in antibes,
 france
 
 francisco
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21070018.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Participating in Wicket

2008-12-18 Thread Peter Ertl
Yeah, just put a breakpoint in WicketFilter, request a page in your  
browser and step through the whole wicket source and try to  
understand. Naturally this takes some time :-)



Am 18.12.2008 um 11:13 schrieb James Perry:

I'd recommend examining the WicketFilter as your starting point.  
This is

where wicket requests get intercepted and processed accordingly.

Best,
James.

On Thu, Dec 18, 2008 at 10:07 AM, HHB hubaghd...@yahoo.ca wrote:



Thank you all guys but maybe I'm expressing my ideas the wrong way.
I don't mean how to get Wicket source and create a patch, I mean  
what is

the
best way to start studying Wicket source code? where to start? which
module?


Steve Swinsburg-2 wrote:


If you want the source code for Wicket, check it out from SVN into
your own local working copy. You can then build Wicket via maven  
after

you have made any local changes to the source code to see if the bug
has been fixed.

You can then generate a patch and attach it to a Jira issue so the
developers can review it.

cheers.


On 18/12/2008, at 8:19 AM, HHB wrote:



Thanks.
My problem is I don't where to start.
Lets say I want to fix that bug, in order to know how to fix it, I
have to
be aware of the whole source code of Wicket, am I right?
How to start studying the source code? I mean where to start
reviewing?


Scott Swank wrote:


I found this helpful.

http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

Scott


On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:


Thanks Martijn
How do you suggest to start studying Wicket core code (I don't  
mean

getting
the source code :) )?
It is complicated to study and grasp?
Thanks again.


Martijn Dashorst wrote:


Look at jira issues, fix them, create a patch and attach it to  
the

jira issue. When we like your code and are tired of applying the
fixes
for you, you might be proposed to become a committer yourself.

Valuable info:

http://apache.org/dev/contributors.html#patches

Martijn

On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca  
wrote:


Hey,
I really have a great passion toward Wicket framework and I
really want
to
participate with their core developer teams.
My problem is that this framework has really great and passion
developers
and I can't imagine myself trying to join them (nor they will
accept, I
think) not to mention this great community.
What do you suggest me to do?
Thanks for your time.
--
View this message in context:

http://www.nabble.com/Participating-in-Wicket- 
tp21050410p21050410.html

Sent from the Wicket - User mailing list archive at Nabble.com.




-

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






--
Become a Wicket expert, learn from the best:

http://wicketinaction.com

Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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





--
View this message in context:

http://www.nabble.com/Participating-in-Wicket- 
tp21050410p21050753.html

Sent from the Wicket - User mailing list archive at Nabble.com.


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




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





--
View this message in context:
http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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





--
View this message in context:
http://www.nabble.com/Participating-in-Wicket- 
tp21050410p21069869.html

Sent from the Wicket - User mailing list archive at Nabble.com.


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





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



Re: Redirect to mounted page programmatically

2008-12-18 Thread Erik van Oosten

Hi Per,

Wicket does not have this feature.

BTW, you do not need a response page instance, just the class is sufficient:
   setResponsePage(Page1.class);

Optionally you can call this as well (since you are talking about 
redirects):

   setRedirect(true);  // or false

Regards,
   Erik.


Newgro wrote:

Hi *,

i would like to redirect to a page mounted in application by calling it from
another page.

Application.init
mountBookmarkablePage(PAGE1_ID, Page1.class);

AnyPage.myMethod
redirectTo(PAGE1_ID)

How could a redirectTo(String mountPoint) method look? The normal
redirection by requestcycle is not working because i firstly need a
responsepage. But how should i get it by a MountPointId? A global registry
is not nice in my eyes.

Would be nice if someone can help me out here.

thanks
Per
  


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



wicket-contrib-examples

2008-12-18 Thread Björn-Peter Tietjens

Hey,
where can I view the sources of the 
http://www.wicket-library.com/wicket-contrib-examples/cdapp; ?

Cheers Björn


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



PropertyColumnLong

2008-12-18 Thread Björn-Peter Tietjens

Hi,

when trying to user a PropertyColumn like this:
...
ListIColumn columns = new ArrayListIColumn();
columns.add(new PropertyColumnLong(new ModelString(ID), id));
columns.add(new PropertyColumnString(new ModelString(First 
Name),firstName,firstName));

...

I keep getting the following error:
...The type PropertyColumn is not generic; it cannot be parameterized 
with arguments Long...


Why is that? What am I doing wrong?

Cheers
Björn


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



updating text in labels using ajax?

2008-12-18 Thread lizz

Hi,
I need to add end user information (progress information) after submit
button is pressed and before being redirected to a new page. I would like to
add this information by updating some labels.
When the user presses the submit button 4 web services are called before I
am redirecting to a new page.
Since each of these calls takes a long time I would like to change the text
(progress info) in a label when each web service call is finished. (So that
the user sees what happends.)

Is there a label with an ajax behevior that can be used?

Use case: 
User presses the submit button
web service method 1 is called
   when method 1 is finished i will update the text on a label component
then web service method 2 is called
   when method 2 is finished i will update the text on the label
etc etc
when all web service methods are finished: setResponsePage - a new page

Any idea?
-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21072083.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: updating text in labels using ajax?

2008-12-18 Thread Michael Sparer

Sure, 

use a simple Label and an AjaxButton, set setOutputMarkupId = true on the
label and add it in the onSubmit method to the ajaxrequesttarget
(target.addComponent(label)). 
But I'd also recommend taking a look at the Progressbar (search the
mailinglist) - that might suits you better

lizz wrote:
 
 Hi,
 I need to add end user information (progress information) after submit
 button is pressed and before being redirected to a new page. I would like
 to add this information by updating some labels.
 When the user presses the submit button 4 web services are called before I
 am redirecting to a new page.
 Since each of these calls takes a long time I would like to change the
 text (progress info) in a label when each web service call is finished.
 (So that the user sees what happends.)
 
 Is there a label with an ajax behevior that can be used?
 
 Use case: 
 User presses the submit button
 web service method 1 is called
when method 1 is finished i will update the text on a label
 component
 then web service method 2 is called
when method 2 is finished i will update the text on the label
 etc etc
 when all web service methods are finished: setResponsePage - a new
 page
 
 Any idea?
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21072177.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wickethub.org

2008-12-18 Thread francisco treacy
martijn, banning policies are issued by repository owners. i don't
know which repo you're referring to as the maven repository.
central? apache?

i suggested setting up or reusing a repo that would be mainly for
wicket components, and owned by the project/ community. advantages:

 - we simply don't ban wickethub's crawler
 - we provide guidelines for wicket developers to easily publish their
artifacts (and possibly check if metadata is present, etc)

as for the rest ('non-compliant'), that would be maintained manually
so no crawling involved.

francisco


On Tue, Dec 16, 2008 at 8:55 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 For perusing the maven repository, one should contact the guys from
 nexus. They have an api for reading/indexing the repository. Don't
 crawl the repository-that will surely get you banned.

 Martijn

 On Tue, Dec 16, 2008 at 8:51 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 we could cover automatic updates of 'compliant' maven artifacts - and
 the rest (non-compliant, svn source code, snippets) maintained
 manually.

 [ compliant = stick to metadata described here:
 http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata
 ]

 from the app side this means developing the discovery process
 mentioned in the idea... thread, which seems really feasible.

 however to start including the aforementioned 'compliant' artifacts,
 it would be actually useful to know where to find already existing
 ones. so, has anyone taken on the maven repo / metadata plugin / etc
 side? is there something available for reuse?

 hopefully if we can provide a dead-easy procedure to package wicket
 components *and* a place to store them (a maven repo -- how about
 apache servers?) , then more and more components will become
 'compliant' ... which means more and more will be eventually
 discovered and registered.
 still, i think it's fair to support non-compliant components as well.
 if people use the app, those are very likely to be modified and kept
 up-to-date.

 francisco




 On Tue, Dec 16, 2008 at 5:00 PM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:


 you have a point.  but while it's true it's not completely general, i'm
 personally only interested in a library of components. and at present
 components delivered by maven.


 francisco treacy-2 wrote:

 interesting post.
 there's also
 http://www.nabble.com/Open-wicket-component-collection-anywhere--td19450431.html

 however sometimes 'automatic' doesn't work simply because people don't
 mavenize their projects, it's just a bunch of files thrown in an svn
 repo, or even a snippet of code. and you can't force them to use a
 certain container, maven plugin, etc. imagine when it doesn't fit (a
 snippet or an ide plugin).

 depending on the projects' structure i'll take a look and try to find
 the way to automatically pick up as much as possible.

 i'm thinking of publishing wickethub's source code so it feels more of
 a community project.

 francisco


 On Tue, Dec 16, 2008 at 10:08 AM, Maarten Bosteels
 mbosteels@gmail.com wrote:
 On Mon, Dec 15, 2008 at 10:43 PM, Jonathan Locke
 jonathan.lo...@gmail.comwrote:



 oh yeah, there's a post where we started figuring out some details about
 how
 this would work somewhere on this list


 Here it is :
 http://www.nabble.com/idea:-automatic-component-repo-to17979177.html

 Maarten




 Jonathan Locke wrote:
 
 
  this is cool, although i still think this should be auto-updated
 through
 a
  maven registry crawler. if everyone put the right meta information in
  their wicket jars, this resource registry would be entirely automatic,
  always fresh, running demos, etc...
 
 
  francisco treacy-2 wrote:
 
  i came up with an idea during the last weeks, having some trouble
  finding wicket resources.
 
  although we have wicketstuff (which is great, and even more now with
  jeremy's awesome job of reorganizing it)  i feel there are still lots
  of components, plugins or tools that are lost in cyberspace. thought
  it would be neat to keep a sort of registry with useful information
  for wicket developers.
 
  so i decided to quickly put some bits together from an old project
 and
  rebaptised it as the wicket hub - a simple prototype @
  http://wickethub.org.
  it's meant to be flexible, so except for the title there are no
  required fields when you add/edit a module. there are already some
  examples.
 
  let me know what you think about features, its relation with
  wicketstuff and if it's usable, etc. or even if the whole thing makes
  no sense - any suggestions appreciated.
 
  francisco
 
  ps: goes without saying, but [disclaimer: it's completely
  experimental] and be aware the place it's hosted is more like a
  shoebox than a server :)
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

 --
 View 

Re: updating text in labels using ajax?

2008-12-18 Thread lizz

But the problem is that the user shouldnt have to press any button to update
the labels... 


Michael Sparer wrote:
 
 Sure, 
 
 use a simple Label and an AjaxButton, set setOutputMarkupId = true on the
 label and add it in the onSubmit method to the ajaxrequesttarget
 (target.addComponent(label)). 
 But I'd also recommend taking a look at the Progressbar (search the
 mailinglist) - that might suits you better
 
 lizz wrote:
 
 Hi,
 I need to add end user information (progress information) after submit
 button is pressed and before being redirected to a new page. I would like
 to add this information by updating some labels.
 When the user presses the submit button 4 web services are called before
 I am redirecting to a new page.
 Since each of these calls takes a long time I would like to change the
 text (progress info) in a label when each web service call is finished.
 (So that the user sees what happends.)
 
 Is there a label with an ajax behevior that can be used?
 
 Use case: 
 User presses the submit button
 web service method 1 is called
when method 1 is finished i will update the text on a label
 component
 then web service method 2 is called
when method 2 is finished i will update the text on the label
 etc etc
 when all web service methods are finished: setResponsePage - a new
 page
 
 Any idea?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21072220.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: updating text in labels using ajax?

2008-12-18 Thread Michael Sparer

alright, so the label should either update itself or updates should be pushed
to the client, right? did you have a look at how ProgressBar works?
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-progressbar

i haven't tried it myself, but AFAIK it uses the approach to updateitself. I
did a lot of stuff however with pushing data from the server to the client
using cometd, but that seems a bit overhead to me for your usecase. but if
you're interested in cometd either take a look at wicketstuff-push and/or
wicketstuff-dojo-1.1

hope that helps

lizz wrote:
 
 But the problem is that the user shouldnt have to press any button to
 update the labels... 
 
 
 Michael Sparer wrote:
 
 Sure, 
 
 use a simple Label and an AjaxButton, set setOutputMarkupId = true on the
 label and add it in the onSubmit method to the ajaxrequesttarget
 (target.addComponent(label)). 
 But I'd also recommend taking a look at the Progressbar (search the
 mailinglist) - that might suits you better
 
 lizz wrote:
 
 Hi,
 I need to add end user information (progress information) after submit
 button is pressed and before being redirected to a new page. I would
 like to add this information by updating some labels.
 When the user presses the submit button 4 web services are called before
 I am redirecting to a new page.
 Since each of these calls takes a long time I would like to change the
 text (progress info) in a label when each web service call is finished.
 (So that the user sees what happends.)
 
 Is there a label with an ajax behevior that can be used?
 
 Use case: 
 User presses the submit button
 web service method 1 is called
when method 1 is finished i will update the text on a label
 component
 then web service method 2 is called
when method 2 is finished i will update the text on the label
 etc etc
 when all web service methods are finished: setResponsePage - a new
 page
 
 Any idea?
 
 
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21072506.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: updating text in labels using ajax?

2008-12-18 Thread Steve Swinsburg
The submit button for your form is the AjaxButton that Michael  
mentioned below. You use that instead of a normal button and in the  
onSubmit method you fire off your web services and any other stuff you  
need. You also have available the AjaxRequestTarget which you then  
'add' the label to the page again, which essentially refreshes the  
label.


very simply:

AjaxButton submitButton = new AjaxButton(submit) {
protected void onSubmit(AjaxRequestTarget target, Form form) {
target.addComponent(yourLabel);

}
};

You'll need to update your label text as well don't forget.

But you could use a progressbar if you wanted as well.


cheers,
Steve






On 18 Dec 2008, at 12:56, lizz wrote:



But the problem is that the user shouldnt have to press any button  
to update

the labels...


Michael Sparer wrote:


Sure,

use a simple Label and an AjaxButton, set setOutputMarkupId = true  
on the

label and add it in the onSubmit method to the ajaxrequesttarget
(target.addComponent(label)).
But I'd also recommend taking a look at the Progressbar (search the
mailinglist) - that might suits you better

lizz wrote:


Hi,
I need to add end user information (progress information) after  
submit
button is pressed and before being redirected to a new page. I  
would like

to add this information by updating some labels.
When the user presses the submit button 4 web services are called  
before

I am redirecting to a new page.
Since each of these calls takes a long time I would like to change  
the
text (progress info) in a label when each web service call is  
finished.

(So that the user sees what happends.)

Is there a label with an ajax behevior that can be used?

Use case:
User presses the submit button
   web service method 1 is called
  when method 1 is finished i will update the text on a label
component
   then web service method 2 is called
  when method 2 is finished i will update the text on the label
   etc etc
   when all web service methods are finished: setResponsePage - a  
new

page

Any idea?






--
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21072220.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





smime.p7s
Description: S/MIME cryptographic signature


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

2008-12-18 Thread leok

Interesting. I wonder if this error occurs when page components are being
modified by Ajax while being serialized, e.g. page.addOrReplace(). If so,
this is kind of an ugly bug. What I don't know yet is how harmful this bug
is, i.e. does this error leave Wicket in a horribly inconsistent state?



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

-- 
View this message in context: 
http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21072905.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: updating text in labels using ajax?

2008-12-18 Thread reiern70

Hi Lizz,

You could use an AjaxSelfUpdatingTimerBehavior to make the label (or some
component containing the label) update itself and when the job is finished
redirect to other page. I use a similar approach when I generate files. The
result looks like:

http://www.nabble.com/file/p21073112/progress.jpg 

I do not redirect to other page but I don't see why that should work as
well..

Best,

Ernesto

 

lizz wrote:
 
 But the problem is that the user shouldnt have to press any button to
 update the labels... 
 
 
 Michael Sparer wrote:
 
 Sure, 
 
 use a simple Label and an AjaxButton, set setOutputMarkupId = true on the
 label and add it in the onSubmit method to the ajaxrequesttarget
 (target.addComponent(label)). 
 But I'd also recommend taking a look at the Progressbar (search the
 mailinglist) - that might suits you better
 
 lizz wrote:
 
 Hi,
 I need to add end user information (progress information) after submit
 button is pressed and before being redirected to a new page. I would
 like to add this information by updating some labels.
 When the user presses the submit button 4 web services are called before
 I am redirecting to a new page.
 Since each of these calls takes a long time I would like to change the
 text (progress info) in a label when each web service call is finished.
 (So that the user sees what happends.)
 
 Is there a label with an ajax behevior that can be used?
 
 Use case: 
 User presses the submit button
 web service method 1 is called
when method 1 is finished i will update the text on a label
 component
 then web service method 2 is called
when method 2 is finished i will update the text on the label
 etc etc
 when all web service methods are finished: setResponsePage - a new
 page
 
 Any idea?
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21073112.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Assigning an Action to an onClick handler

2008-12-18 Thread Arie Fishler
We are using the AnnotationsRoleAuthorizationStrategy class and place
@AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

We need finer-grained authorisation control - we have a class that has 3
AjaxLinks each with their own onClick() handler.  2 of the onClick()
handlers are accessible to everyone but 1 requires an authorised user.  We
have seen it's possible to define a
*org.apache.wicket.authorization.Action*class and allocate it to a
given role BUT how do we associate the given
*Action *to the given onClick() handler?

Many thanks
Arie


Maven Swarm archetype

2008-12-18 Thread ash
Is there somewhere a maven archetype for wicket + swarm?
Kind regards:
al_shopov

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



RE: Assigning an Action to an onClick handler

2008-12-18 Thread Heikki Uotinen
Maybe

MetaDataRoleAuthorizationStrategy.authorize(link3, Component.ENABLE, ADMIN);

-Heikki

-Original Message-
From: Arie Fishler [mailto:arie@gmail.com] 
Sent: 18. joulukuuta 2008 16:08
To: users@wicket.apache.org
Subject: Assigning an Action to an onClick handler

We are using the AnnotationsRoleAuthorizationStrategy class and place
@AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

We need finer-grained authorisation control - we have a class that has 3
AjaxLinks each with their own onClick() handler.  2 of the onClick()
handlers are accessible to everyone but 1 requires an authorised user.  We
have seen it's possible to define a
*org.apache.wicket.authorization.Action*class and allocate it to a
given role BUT how do we associate the given
*Action *to the given onClick() handler?

Many thanks
Arie

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



Re: Assigning an Action to an onClick handler

2008-12-18 Thread Heikki Uotinen
Maybe something like

MetaDataRoleAuthorizationStrategy.authorize(link3, Component.ENABLE, ADMIN);

-Heikki

-Original Message-
From: Arie Fishler [mailto:arie@gmail.com] 
Sent: 18. joulukuuta 2008 16:08
To: users@wicket.apache.org
Subject: Assigning an Action to an onClick handler

We are using the AnnotationsRoleAuthorizationStrategy class and place
@AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

We need finer-grained authorisation control - we have a class that has 3
AjaxLinks each with their own onClick() handler.  2 of the onClick()
handlers are accessible to everyone but 1 requires an authorised user.  We
have seen it's possible to define a
*org.apache.wicket.authorization.Action*class and allocate it to a
given role BUT how do we associate the given
*Action *to the given onClick() handler?

Many thanks
Arie

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



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

2008-12-18 Thread Matej Knopp
This really looks like page being accessed from multiple threads, but
it's quite weird. The serialization is done in request thread and
pagemap is locked during request.

-Matej

On Thu, Dec 18, 2008 at 2:35 PM, leok leo...@gmail.com wrote:

 Interesting. I wonder if this error occurs when page components are being
 modified by Ajax while being serialized, e.g. page.addOrReplace(). If so,
 this is kind of an ugly bug. What I don't know yet is how harmful this bug
 is, i.e. does this error leave Wicket in a horribly inconsistent state?



 Xhelas wrote:

 Same symptoms using wocket 1.4-rc1.

 Regards

 Alexandre


 leok wrote:

 I was poking through some logs, and I noticed a few rare instances of
 this exception:

 java.util.ConcurrentModificationException
   at
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365)
   at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:376)
   at java.util.HashSet.writeObject(HashSet.java:254)
   at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at java.util.HashMap.writeObject(HashMap.java:1328)
   at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
 [..snip..]
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at
 org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:117)
   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:303)
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:278)
   at org.apache.wicket.Page.writeReplace(Page.java:1299)
   at sun.reflect.GeneratedMethodAccessor6627.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004)
 [..snip..]
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
   at
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:811)
   at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)

 I'm using Wicket 1.3.5. It seems there might be some strange racing
 happening while pages are being serialized.

 EDIT: I actually posted before completing my message. I meant to add -
 where would there be non thread-safe modifications to the serialized
 page? I presume that the there must be some sort of lock on the object
 when it's being serialized. More importantly - how harmful is this
 exception?




 --
 View this message in context: 
 http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21072905.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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

Re: Assigning an Action to an onClick handler

2008-12-18 Thread Arie Fishler
Basically we have no problem assigning logic to disable the link when
creating the page. What we want to achieve via the authorization strategy is
a redirect to the sign in page just the same as if a user has accessed a
page with no sufficient roles (so the user signs in and upon successful
signing in he is redirected back to the page he was supposed to get when
clicking initially)

Thanks,
Arie.

On Thu, Dec 18, 2008 at 4:56 PM, Heikki Uotinen 
heikki.uoti...@syncrontech.com wrote:

 Maybe something like

 MetaDataRoleAuthorizationStrategy.authorize(link3, Component.ENABLE,
 ADMIN);

 -Heikki

 -Original Message-
 From: Arie Fishler [mailto:arie@gmail.com]
 Sent: 18. joulukuuta 2008 16:08
 To: users@wicket.apache.org
 Subject: Assigning an Action to an onClick handler

  We are using the AnnotationsRoleAuthorizationStrategy class and place
 @AuthorizeInstantiation(ROLE_USER) on restricted Wicket pages.

 We need finer-grained authorisation control - we have a class that has 3
 AjaxLinks each with their own onClick() handler.  2 of the onClick()
 handlers are accessible to everyone but 1 requires an authorised user.  We
 have seen it's possible to define a
 *org.apache.wicket.authorization.Action*class and allocate it to a
 given role BUT how do we associate the given
 *Action *to the given onClick() handler?

 Many thanks
 Arie

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




indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread miro

I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we have
any ?

-- 
View this message in context: 
http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21074747.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread Michael Sparer

Create your own, it's quite easy. Extend from AjaxFallbackDefaultDataTable
and let it implement IAjaxIndicatorAware, add an WicketAjaxAppender (see
e.g. IndicatingAjaxLink how to do that) and you're done

regards,
Michael


miro wrote:
 
 I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we
 have any ?
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21074864.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket: Testing Request URLs

2008-12-18 Thread walnutmon

bump.


walnutmon wrote:
 
 One thing I am trying to implement in my most recent wicket application is
 a hook in from another site written in JSP.   I'm starting simple, with a
 hand-off URL that gives a few peices of information that allows the user
 to be logged into the wicket app based on crednetials that had them logged
 into the jsp app.
 
 I want to write test cases like follows.
 
 @Test
 public void testLogInUrl()
 {
String loginURL = http://somplace.com/wicket/login/?stuff=otherstuff;;
goToUrl(loginUrl);
assertRenderedPage(UserPage.class);
assertLabel(name, someGuysName);
 }
 
 Anyone have any idea how to approach this?
 

-- 
View this message in context: 
http://www.nabble.com/Wicket%3A-Testing-Request-URLs-tp21035024p21075048.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread miro

Is there any other indicator which disables the page so that user is not
cannot perform any other action ?


Michael Sparer wrote:
 
 Create your own, it's quite easy. Extend from AjaxFallbackDefaultDataTable
 and let it implement IAjaxIndicatorAware, add an WicketAjaxAppender (see
 e.g. IndicatingAjaxLink how to do that) and you're done
 
 regards,
 Michael
 
 
 miro wrote:
 
 I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we
 have any ?
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21075428.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket: Testing Request URLs

2008-12-18 Thread Igor Vaynberg
without doing any work yourself the closest you can come is
wickettester#startpage(class, pageparameters)

-igor

On Thu, Dec 18, 2008 at 8:09 AM, walnutmon justin.m.boy...@gmail.com wrote:

 bump.


 walnutmon wrote:

 One thing I am trying to implement in my most recent wicket application is
 a hook in from another site written in JSP.   I'm starting simple, with a
 hand-off URL that gives a few peices of information that allows the user
 to be logged into the wicket app based on crednetials that had them logged
 into the jsp app.

 I want to write test cases like follows.

 @Test
 public void testLogInUrl()
 {
String loginURL = http://somplace.com/wicket/login/?stuff=otherstuff;;
goToUrl(loginUrl);
assertRenderedPage(UserPage.class);
assertLabel(name, someGuysName);
 }

 Anyone have any idea how to approach this?


 --
 View this message in context: 
 http://www.nabble.com/Wicket%3A-Testing-Request-URLs-tp21035024p21075048.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread James Carman
There's a veil project in wicketstuff-minis


On Thu, Dec 18, 2008 at 11:16 AM, miro miroconn...@yahoo.com wrote:

 Is there any other indicator which disables the page so that user is not
 cannot perform any other action ?


 Michael Sparer wrote:

 Create your own, it's quite easy. Extend from AjaxFallbackDefaultDataTable
 and let it implement IAjaxIndicatorAware, add an WicketAjaxAppender (see
 e.g. IndicatingAjaxLink how to do that) and you're done

 regards,
 Michael


 miro wrote:

 I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we
 have any ?





 --
 View this message in context: 
 http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21075428.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread Ernesto Reinaldo Barreiro
Maybe you use this idea
http://cwiki.apache.org/confluence/display/WICKET/Generic+Busy+Indicator+(for+both+Ajax+and+non-Ajax+submits)

or create some kind of veil that is activated each time you have an AJAX
request.The veil will prevent you from preforming any action while AJAX is
active. I use this last approach.

Ernesto

On Thu, Dec 18, 2008 at 5:16 PM, miro miroconn...@yahoo.com wrote:


 Is there any other indicator which disables the page so that user is not
 cannot perform any other action ?


 Michael Sparer wrote:
 
  Create your own, it's quite easy. Extend from
 AjaxFallbackDefaultDataTable
  and let it implement IAjaxIndicatorAware, add an WicketAjaxAppender (see
  e.g. IndicatingAjaxLink how to do that) and you're done
 
  regards,
  Michael
 
 
  miro wrote:
 
  I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we
  have any ?
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21075428.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: strange 404 error

2008-12-18 Thread Brill Pappin

I'll take a look, but my QA says it's also happening with Tomcat 6.

All in all, it's Wicket that actually has the problem. There is  
something wicket is doing with the URL/ session that is not what  
should be happening.


- Brill Pappin
  Sent from my mobile.


On 17-Dec-08, at 3:25 PM, Matthew Hanlon mrhan...@gmail.com wrote:


This is a Jetty thing...

One way to fix it is to suppress the jsessionid in the url.  Jetty  
allows
you to suppress the jsessionid in the url as a context parameters in  
the
web.xml or webdefault.xml.  Note, if the user does not have cookies  
enabled

this will cause problems.

In your web.xml:

context-param
   param-nameorg.mortbay.jetty.servlet.SessionURL/param-name
   param-valuenone/param-value
/context-param



On Wed, Dec 17, 2008 at 11:33 AM, Brill Pappin br...@pappin.ca  
wrote:


For us its consistent and predictable... it always happens when the  
session

has expired.

- Brill Pappin






On 17-Dec-08, at 12:26 PM, Adriano dos Santos Fernandes wrote:

I'm having similar errors (not 404, but internal error, sorry but  
do not
have stack trace right now, and is not always reproducible). I use  
Wicket

1.4-rc1 and auth-roles with Tomcat6.

It seems that when there is no session, just after the login the  
error

happens. It was a NoMethodFound from IForm*.


Adriano


Brill Pappin escreveu:


We are getting a consistent 404 error during our first login.

it seems to be appending the jsessionid= param and wicket doesn't  
seem to

like it.



This usually happens on the first login of the day:
the app redirects to the login page with the session id appended:

Goto: http://localhost:8080/
Redirected to:
http://localhost:8080/login;jsessionid=1b5axe9wb1o8k
Receive a 404 error:
HTTP ERROR: 404

NOT_FOUND

RequestURI=/login;jsessionid=1b5axe9wb1o8k

Powered by Jetty://

This is happening in your dev Jetty instance and on you  
production Tomcat

6 instance.

It looks to me as if the login system (auth-roles) is getting the  
session
id from something other than the real session, and attempting to  
use it, but

it may also be WIcket not parsing the URI properly.

We're using Wicket 1.4 SNAPSHOT deps.

Does anyone have any idea how to resolve this?

- Brill Pappin


--- 
--

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




--- 
--

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




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





--
Matthew Rollins Hanlon
http://squareoftwo.org
_
Hanlon's Razor:
Never attribute to malice that which can be adequately explained by
stupidity.
http://wikipedia.org/wiki/Hanlon's_razor


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



Dynamic Select and SelectOptions

2008-12-18 Thread homar70

Hi,

I have trouble of finding out how to make dynamic optgroups and options from
the select and selectoptions in wicket-extensions. The same issue is
described in this post
http://www.nabble.com/Select-and-SelectOptions-td11684707.html#a11695243

Any ideas?

-Spratle
-- 
View this message in context: 
http://www.nabble.com/Dynamic-Select-and-SelectOptions-tp21076798p21076798.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread miro

This works very well , in addition  to this can I   disable the page till   I
get the response  ?

reiern70 wrote:
 
 Maybe you use this idea
 http://cwiki.apache.org/confluence/display/WICKET/Generic+Busy+Indicator+(for+both+Ajax+and+non-Ajax+submits)
 
 or create some kind of veil that is activated each time you have an AJAX
 request.The veil will prevent you from preforming any action while AJAX is
 active. I use this last approach.
 
 Ernesto
 
 On Thu, Dec 18, 2008 at 5:16 PM, miro miroconn...@yahoo.com wrote:
 

 Is there any other indicator which disables the page so that user is not
 cannot perform any other action ?


 Michael Sparer wrote:
 
  Create your own, it's quite easy. Extend from
 AjaxFallbackDefaultDataTable
  and let it implement IAjaxIndicatorAware, add an WicketAjaxAppender
 (see
  e.g. IndicatingAjaxLink how to do that) and you're done
 
  regards,
  Michael
 
 
  miro wrote:
 
  I am looking  for   indicating   AjaxFallbackDefaultDataTable  , do we
  have any ?
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21075428.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/indicating---AjaxFallbackDefaultDataTable-tp21074747p21077745.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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

2008-12-18 Thread leok

Forgive my lack of understanding of Wicket internals, but do requests for
Ajax components on a particular page block when that page is being
serialized?


Matej Knopp-2 wrote:
 
 This really looks like page being accessed from multiple threads, but
 it's quite weird. The serialization is done in request thread and
 pagemap is locked during request.
 
 -Matej
 
 On Thu, Dec 18, 2008 at 2:35 PM, leok leo...@gmail.com wrote:

 Interesting. I wonder if this error occurs when page components are being
 modified by Ajax while being serialized, e.g. page.addOrReplace(). If so,
 this is kind of an ugly bug. What I don't know yet is how harmful this
 bug
 is, i.e. does this error leave Wicket in a horribly inconsistent state?



 Xhelas wrote:

 Same symptoms using wocket 1.4-rc1.

 Regards

 Alexandre


 leok wrote:

 I was poking through some logs, and I noticed a few rare instances of
 this exception:

 java.util.ConcurrentModificationException
   at
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365)
   at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:376)
   at java.util.HashSet.writeObject(HashSet.java:254)
   at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1380)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1352)
   at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1295)
   at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1084)
   at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at java.util.HashMap.writeObject(HashMap.java:1328)
   at sun.reflect.GeneratedMethodAccessor3234.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
   at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1344)
 [..snip..]
   at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:307)
   at
 org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:117)
   at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:303)
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:278)
   at org.apache.wicket.Page.writeReplace(Page.java:1299)
   at sun.reflect.GeneratedMethodAccessor6627.invoke(Unknown Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1004)
 [..snip..]
   at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1091)
   at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197)
   at
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:811)
   at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)

 I'm using Wicket 1.3.5. It seems there might be some strange racing
 happening while pages are being serialized.

 EDIT: I actually posted before completing my message. I meant to add -
 where would there be non thread-safe modifications to the serialized
 page? I presume that the there must be some sort of lock on the object
 when it's being serialized. More importantly - how harmful is this
 exception?




 --
 View this message in context:
 http://www.nabble.com/java.util.ConcurrentModificationException-inorg.apache.wicket.protocol.http.SecondLevelCacheSessionStore%24SecondLevelCachePageMap.put-tp21062585p21072905.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

TreeTable text-align

2008-12-18 Thread jchappelle

I have a TreeTable that I would like to have some columns with a text-align:
right; style. I have tried overriding the newCell method on the
PropertyRenderableColumn and returning a Label with an AttributeModifier.
That did not work nor did returning a custom Panel with an
AttributeModifier. 

This should be simple as pie. Is there something I am missing?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/TreeTable-text-align-tp21079163p21079163.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



TreeTable text-align

2008-12-18 Thread jchappelle

I have a TreeTable that I would like to have some columns with a text-align:
right; style. I have tried overriding the newCell method on the
PropertyRenderableColumn and returning a Label with an AttributeModifier.
That did not work nor did returning a custom Panel with an
AttributeModifier. 

This should be simple as pie. Is there something I am missing? 

Thanks, 

Josh
-- 
View this message in context: 
http://www.nabble.com/TreeTable-text-align-tp21079263p21079263.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Have a feature, want to contribute

2008-12-18 Thread Marat Radchenko
Wicket pages/components can be either stateful or stateless. Wicket
manages hem transparently and it is very easy to write any complex
page you want. Stateful pages are much more powerful than stateless.
However that comes at  a cost of using page store for their state. On
highload sites it is usually desired to minimize session-scope data,
and move it to request-scope. That's when Wicket users approach a task
of making stateful pages stateless. However stateless state (sic!) is
very fragile, if you add a single stateful component to a page, it
instantly becomes stateful (and you even might not notice that if your
other page content can work in both modes. And here comes my lovely
feature - @StatelessComponent. It is an annotation that you should put
on components which you want to be stateless. It doesn't do any magic,
it simply uses postComponentOnBeforeRender to assert that annotated
component (and all its children) are stateless. If it doesn't, an
exception is thrown, indicating what component tries to be stateful.

This feature isn't large enough to be put in a separate project (just
one annotation and one listener) but wee find it extremely useful on
our project.

I'd be happy to give it to Wicket project (or wicketstuff?) at
absolutely no cost (tests included) under same license as wicket
itself, if Wicket developers are interested in it.

I'll file a feature request with a patch, if Wicket team finds this
useful in Wicket core.

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



Re: Participating in Wicket

2008-12-18 Thread Nino Martinez
Yeah but some bugs are pretty simple, like plain css etc.. Which not 
necessarily requires deep knowledge.. So scan the bug list and pick the 
easiest one could also be an option...


James Perry wrote:

I'd recommend examining the WicketFilter as your starting point. This is
where wicket requests get intercepted and processed accordingly.

Best,
James.

On Thu, Dec 18, 2008 at 10:07 AM, HHB hubaghd...@yahoo.ca wrote:

  

Thank you all guys but maybe I'm expressing my ideas the wrong way.
I don't mean how to get Wicket source and create a patch, I mean what is
the
best way to start studying Wicket source code? where to start? which
module?


Steve Swinsburg-2 wrote:


If you want the source code for Wicket, check it out from SVN into
your own local working copy. You can then build Wicket via maven after
you have made any local changes to the source code to see if the bug
has been fixed.

You can then generate a patch and attach it to a Jira issue so the
developers can review it.

cheers.


On 18/12/2008, at 8:19 AM, HHB wrote:

  

Thanks.
My problem is I don't where to start.
Lets say I want to fix that bug, in order to know how to fix it, I
have to
be aware of the whole source code of Wicket, am I right?
How to start studying the source code? I mean where to start
reviewing?


Scott Swank wrote:


I found this helpful.

http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

Scott


On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote:
  

Thanks Martijn
How do you suggest to start studying Wicket core code (I don't mean
getting
the source code :) )?
It is complicated to study and grasp?
Thanks again.


Martijn Dashorst wrote:


Look at jira issues, fix them, create a patch and attach it to the
jira issue. When we like your code and are tired of applying the
fixes
for you, you might be proposed to become a committer yourself.

Valuable info:

http://apache.org/dev/contributors.html#patches

Martijn

On Wed, Dec 17, 2008 at 11:13 AM, HHB hubaghd...@yahoo.ca wrote:
  

Hey,
I really have a great passion toward Wicket framework and I
really want
to
participate with their core developer teams.
My problem is that this framework has really great and passion
developers
and I can't imagine myself trying to join them (nor they will
accept, I
think) not to mention this great community.
What do you suggest me to do?
Thanks for your time.
--
View this message in context:



http://www.nabble.com/Participating-in-Wicket-tp21050410p21050410.html


Sent from the Wicket - User mailing list archive at Nabble.com.





-


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





--
Become a Wicket expert, learn from the best:
  

http://wicketinaction.com


Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



  

--
View this message in context:



http://www.nabble.com/Participating-in-Wicket-tp21050410p21050753.html


Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



  

--
View this message in context:
http://www.nabble.com/Participating-in-Wicket-tp21050410p21068635.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



  

--
View this message in context:
http://www.nabble.com/Participating-in-Wicket-tp21050410p21069869.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





  



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

Re: reloading a component with ajax submit button

2008-12-18 Thread Martijn Dashorst
componentToRepainted.setOutputMarkupId(true)

On Thu, Dec 18, 2008 at 10:38 PM, miro miroconn...@yahoo.com wrote:

 I want to reload a component  in my page when the form is submitted , I am
 calling

 target.addComponent(StgAuditSelectionPage.this.get(stgAuditsContainer:stgAuditGeneralTbl));


 in the onSumbit  method , I   assuming just by   adding a component to
 ajaxTarget the component  gets   reloaded or recreated , but its not
 happening , what I have to do to reload a component ?
 --
 View this message in context: 
 http://www.nabble.com/reloading-a-component---with--ajax-submit-button-tp21081404p21081404.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Formatting dates in Inmethod DataGrid

2008-12-18 Thread TahitianGabriel

public class DatePropertyColumn extends PropertyColumn {

/**
 * @see
com.inmethod.grid.column.PropertyColumn#getConverter(java.lang.Class)
 */
@Override
protected IConverter getConverter(final Class? varType) {
return new IConverter() {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;

public Object convertToObject(final String varValue, final
Locale varLocale) {
return null;
}

public String convertToString(final Object varValue, final
Locale varLocale) {
Date date = (Date) varValue;
return new SimpleDateFormat().format(date);
}

};
}
}

Jurek Piasek wrote:
 
 How does one format a date in the inmethod datagrid?
 
 Thanks,
 Jurek.
 
 

-- 
View this message in context: 
http://www.nabble.com/Formatting-dates-in-Inmethod-DataGrid-tp20614026p21084007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket - Ajax(Fallback)Button and Form - possible solution to problem

2008-12-18 Thread bht

Jeremy,

jpswain referred to the gmail signup form. The gmail form initially hides
the check availability elements via div with style=display:none. It only
shows them when it detects that AJAX or JavaScript (don't know exactly) is
available. Would you know how we can implement this with wicket?
-- 
View this message in context: 
http://www.nabble.com/Wicket---Ajax%28Fallback%29Button-and-Form---possible-solution-to-problem-tp20373644p21085893.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Localization - problem with refreshing page

2008-12-18 Thread Milan Křápek
Hi,
  I found this problem and I cannot find any sollution by myself. So I ask you 
for a help.

I localized my application to two languages. To all pages I added links for 
changing localization. The onClick() methods of those links contain just 
getSession.setLocale(requestedLocalization). That works great after click on 
the links all texts in my page are localized to the right language.
The problem occurs when I need to style my page by CSS. I need to add class to 
the generated links for localization to know which language is active. So I 
added new AttributeModifier to those links. But when setLocale() is called, the 
page refreshs only text and I need to reload the localization links component 
too.
I tried to change my localization links to AjaxLinks and in onClick() methos 
add the component to AjaxRequestTarget and then call setLocale(). But when I do 
this the localization links are rerendered as I expected and CSS classes are 
set correctly but the texts are not localized. Please help, how can I do these 
two things together?

thanks for any advice

Milan

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