Re: WicketForge - Wicket Plugin for IDEA

2009-01-14 Thread Serge!

Hi everyone,

I just wanted to notice that I made a fix for WicketForge 0.4.0 to work
under IDEA 8.
It took a while, but features like Class/Markup switching and autocomplete
are working now.

If anyone is interested, I could send a patch or if you open access to
Google Code I can commit it myself.

BTW right now autocomplete runs full rescan of PSI structure every time.
This could possibly be improved.

Regards,
Sergey
-- 
View this message in context: 
http://www.nabble.com/WicketForge---Wicket-Plugin-for-IDEA-tp12287617p21451989.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



User permissions

2009-01-14 Thread itayh

Hi,

I would like to create different users that will have different permissions.
For example if I have a page with several buttons, some users will just see
that page while others will be able to push the buttons.
I read the Wicket-Security at Wicket Stuff site:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
Its look that the security over there is on pages and not on components such
buttons.
Is it also for all components? Is there something more simple that do this? 
Until now we used the AutorizeInstantiation annotation so I wonder if it can
support also the different permissions. 
-- 
View this message in context: 
http://www.nabble.com/User-permissions-tp21452441p21452441.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: User permissions

2009-01-14 Thread Dipu
I think wicket-auth-roles will help you sort this out

take a look at MetaDataRoleAuthorizationStrategy.authorize method

regards
dipu


On Wed, Jan 14, 2009 at 9:19 AM, itayh itay.hi...@attractv.net wrote:

 Hi,

 I would like to create different users that will have different permissions.
 For example if I have a page with several buttons, some users will just see
 that page while others will be able to push the buttons.
 I read the Wicket-Security at Wicket Stuff site:
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
 Its look that the security over there is on pages and not on components such
 buttons.
 Is it also for all components? Is there something more simple that do this?
 Until now we used the AutorizeInstantiation annotation so I wonder if it can
 support also the different permissions.
 --
 View this message in context: 
 http://www.nabble.com/User-permissions-tp21452441p21452441.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



Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson

Hi,

I have developed an application with wicket that has been around for about a
year. A user can have serveral options for payment - Visa, MasterCard, Post
parcel, invoice( several diffrent ) and some banks.

My problem is that if the user choose visa, mastercard then a form should be
filled with data and sent to a servlet not managed by me. For invoice and
banking different data also sent to a servlet and post parcel to a wicket
page.

The user should onlysee a ListView of choices but the code becomes really
spagettyish. Especially since some of the payments requires price updates
and modal window checking for social security number. Some advice on how to
implement this with wicket would be really greatful without a 4000 rows
wicket page. 


-- 
View this message in context: 
http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21452753.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



POST too large

2009-01-14 Thread Piller Sébastien

Hi everybody,

I'm not sure if wicket has anything to do to the following issue, but 
I'll try anyway.


I'm POSTing some large data to a wicket page (yes, there is several MB 
of data in the post). When it is too big, I can see the following 
stacktrace in my logs:


java.lang.IllegalStateException: Post too large
   at 
org.apache.catalina.connector.Request.parseParameters(Request.java:2388)

   at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
   at 
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
   at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)

   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
   at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
   at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

   at java.lang.Thread.run(Thread.java:619)


I don't know exactly who catches this exception without forwarding, but 
my issue is that the page constructor doesn't get called at all (so I 
can't add some code to controll integrity) and the resonse code sent to 
the client is 200. I'm expecting that wicket or tomcat will send a 
response code like 500: Internal error or something else (anything but 200)


Any hint?



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



how to let my class being checked for class instantiation?setStrategyFactory

2009-01-14 Thread wch2001

Dear all,

from
http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+FAQ#SwarmFAQ-q4,
the 2 Why is my component (not) being checked for class instantiation?


I have 3 classes(Aaa.class, Bbb.class, Ccc.class), extends from Panel, I
need it to be checked for class instantiation.

According the above link, i did something like that :

setStrategyFactory(new
SwarmStrategyFactory(Aaa.class,getHiveKey()));
setStrategyFactory(new
SwarmStrategyFactory(Bbb.class,getHiveKey()));
setStrategyFactory(new
SwarmStrategyFactory(Ccc.class,getHiveKey()));

There is exception:

java.lang.IllegalStateException: Can not initialize StrategyFactory more
then once

Then I changed it to only one setStrategyFactory, like
setStrategyFactory(new SwarmStrategyFactory(Aaa.class,getHiveKey()));, 

it also told me the error, How can I do now? can anyone help me?

thanks in advance
-- 
View this message in context: 
http://www.nabble.com/how-to-let-my-class-being-checked-for-class-instantiation-setStrategyFactory-tp21453114p21453114.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: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
What is the problem? I.e., why do you feel it can not be a simple page?

**
Martin

2009/1/14 Mathias P.W Nilsson math...@snyltarna.se:

 Hi,

 I have developed an application with wicket that has been around for about a
 year. A user can have serveral options for payment - Visa, MasterCard, Post
 parcel, invoice( several diffrent ) and some banks.

 My problem is that if the user choose visa, mastercard then a form should be
 filled with data and sent to a servlet not managed by me. For invoice and
 banking different data also sent to a servlet and post parcel to a wicket
 page.

 The user should onlysee a ListView of choices but the code becomes really
 spagettyish. Especially since some of the payments requires price updates
 and modal window checking for social security number. Some advice on how to
 implement this with wicket would be really greatful without a 4000 rows
 wicket page.


 --
 View this message in context: 
 http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21452753.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: POST too large

2009-01-14 Thread Dipu
will this be of any help

http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk

regards
dipu

On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien pi...@hmcrecord.ch wrote:
 Hi everybody,

 I'm not sure if wicket has anything to do to the following issue, but I'll
 try anyway.

 I'm POSTing some large data to a wicket page (yes, there is several MB of
 data in the post). When it is too big, I can see the following stacktrace in
 my logs:

 java.lang.IllegalStateException: Post too large
   at
 org.apache.catalina.connector.Request.parseParameters(Request.java:2388)
   at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
   at
 org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
   at
 org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
   at
 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)
   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
   at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
   at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:619)


 I don't know exactly who catches this exception without forwarding, but my
 issue is that the page constructor doesn't get called at all (so I can't add
 some code to controll integrity) and the resonse code sent to the client is
 200. I'm expecting that wicket or tomcat will send a response code like 500:
 Internal error or something else (anything but 200)

 Any hint?



 -
 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



Help: Graphic link in PagingNavigator

2009-01-14 Thread freak182

Hello,

The clients wants the   and   should be graphic. Is there a way to
do this?

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.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: Help: Graphic link in PagingNavigator

2009-01-14 Thread Dipu
extend the PagingNavigator and provide your own markup with the
graphics you want.

regards
dipu

On Wed, Jan 14, 2009 at 11:04 AM, freak182 eman.noll...@gmail.com wrote:

 Hello,

 The clients wants the   and   should be graphic. Is there a way to
 do this?

 Thanks a lot.
 Cheers.
 --
 View this message in context: 
 http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.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: WicketForge 0.5.0 Available for IDEA 8

2009-01-14 Thread Maarten Bosteels
Hello,

I tried to download http://www.systemmobile.com/code/WicketForge-0.5.0.jar
but it's an empty file (zero bytes)

Thanks,
Maarten

On Wed, Jan 14, 2009 at 6:42 AM, Nick Heudecker nheudec...@gmail.comwrote:

 I'm looking for some people to test WicketForge 0.5.0 with IDEA 8.  As far
 as I can tell, everything seems to be working, but I'd like to get more
 people testing before I publish it to the IDEA plugin site.

 Instructions and download here: http://www.systemmobile.com/?page_id=283

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

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



Re: POST too large

2009-01-14 Thread Dipu
sorry, pass

dipu

On Wed, Jan 14, 2009 at 10:17 AM, Piller Sébastien pi...@hmcrecord.ch wrote:
 Hi,

 thank you for your response. I'm well aware that increasing the post limit
 size may do the trick, but this looks like a hack. What to do when something
 else occurs, ie whatever IllegalStateException may be thrown at this part of
 code?

 I guess the best solution will be to change the response code when such a
 problem occurs.

 For the moment, I will increase the post limit to ~ 25MB, but I guess this
 issue should be solved in another way.

 Does anybody may indicate me who is the offender?

 Dipu a écrit :

 will this be of any help


 http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk

 regards
 dipu

 On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien pi...@hmcrecord.ch
 wrote:


 Hi everybody,

 I'm not sure if wicket has anything to do to the following issue, but
 I'll
 try anyway.

 I'm POSTing some large data to a wicket page (yes, there is several MB of
 data in the post). When it is too big, I can see the following stacktrace
 in
 my logs:

 java.lang.IllegalStateException: Post too large
  at
 org.apache.catalina.connector.Request.parseParameters(Request.java:2388)
  at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
  at

 org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
  at

 org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
  at

 org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)
  at org.apache.wicket.Request.getRequestParameters(Request.java:171)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
  at

 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
  at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at

 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  at

 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
  at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at

 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
  at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  at

 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
  at

 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
  at

 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  at

 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  at

 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  at

 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
  at java.lang.Thread.run(Thread.java:619)


 I don't know exactly who catches this exception without forwarding, but
 my
 issue is that the page constructor doesn't get called at all (so I can't
 add
 some code to controll integrity) and the resonse code sent to the client
 is
 200. I'm expecting that wicket or tomcat will send a response code like
 500:
 Internal error or something else (anything but 200)

 Any hint?



 -
 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



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



Re: Help: Graphic link in PagingNavigator

2009-01-14 Thread Piller Sébastien
Overriding the protected method 
PagingNavigator#newPagingNavigationIncrementLink(String id, IPageable 
pageable, int increment) should do the trick, too.


Dipu a écrit :

extend the PagingNavigator and provide your own markup with the
graphics you want.

regards
dipu

On Wed, Jan 14, 2009 at 11:04 AM, freak182 eman.noll...@gmail.com wrote:
  

Hello,

The clients wants the   and   should be graphic. Is there a way to
do this?

Thanks a lot.
Cheers.
--
View this message in context: 
http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.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


  



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



Re: POST too large

2009-01-14 Thread Piller Sébastien

Hi,

thank you for your response. I'm well aware that increasing the post 
limit size may do the trick, but this looks like a hack. What to do when 
something else occurs, ie whatever IllegalStateException may be thrown 
at this part of code?


I guess the best solution will be to change the response code when such 
a problem occurs.


For the moment, I will increase the post limit to ~ 25MB, but I guess 
this issue should be solved in another way.


Does anybody may indicate me who is the offender?

Dipu a écrit :

will this be of any help

http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk

regards
dipu

On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien pi...@hmcrecord.ch wrote:
  

Hi everybody,

I'm not sure if wicket has anything to do to the following issue, but I'll
try anyway.

I'm POSTing some large data to a wicket page (yes, there is several MB of
data in the post). When it is too big, I can see the following stacktrace in
my logs:

java.lang.IllegalStateException: Post too large
  at
org.apache.catalina.connector.Request.parseParameters(Request.java:2388)
  at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
  at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
  at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
  at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)
  at org.apache.wicket.Request.getRequestParameters(Request.java:171)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
  at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
  at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
  at java.lang.Thread.run(Thread.java:619)


I don't know exactly who catches this exception without forwarding, but my
issue is that the page constructor doesn't get called at all (so I can't add
some code to controll integrity) and the resonse code sent to the client is
200. I'm expecting that wicket or tomcat will send a response code like 500:
Internal error or something else (anything but 200)

Any hint?



-
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



Phonebook Missing

2009-01-14 Thread Kevin Logue

Hi

I'm currently implementing a checkgroup within a datatable. After 
checking nabble, this has been
done within the Wicket Stuff phonebook example but try as I might I 
can't find a recent copy
of it on the SVN repository. Has it been removed or am I running 
dangerously low on caffeine.


Apologies if I should be asking this somewhere else.

Cheers
Kevin

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



Where to process PageParameters

2009-01-14 Thread Jonas505

Hello,

I would like to know, where in my WebPage class PageParameters should be
processed.

I have a page A where you can fill in certain parameters (or select a
predefined set of parameters). Then you submit those parameters which are
given to the business logic to prepare some data. The resulting data is
shown on page B. I would like that the user can bookmark page B with those
parameters encoded in the URL. 

This works fine with page B having a constructor taking PageParameters.
However, right now I call the Business-Logik from the constructor of page B,
which seems strange. Am I missing something or is this the way to go?

Thank you!
Jonas
-- 
View this message in context: 
http://www.nabble.com/Where-to-process-PageParameters-tp21454742p21454742.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: POST too large

2009-01-14 Thread Serkan Camurcuoglu
So what exactly happens in this case, your code is not called at all and 
the current page is redisplayed as is? Anyway if this exception is 
caught and ignored within wicket code it should be a jira issue, but it 
may be tomcat who is ignoring the exception as well.. the stack trace 
gives you enough information to debug wicket  tomcat code if you want to..




Piller Sébastien wrote:

Hi,

thank you for your response. I'm well aware that increasing the post 
limit size may do the trick, but this looks like a hack. What to do 
when something else occurs, ie whatever IllegalStateException may be 
thrown at this part of code?


I guess the best solution will be to change the response code when 
such a problem occurs.


For the moment, I will increase the post limit to ~ 25MB, but I guess 
this issue should be solved in another way.


Does anybody may indicate me who is the offender?

Dipu a écrit :

will this be of any help

http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk 



regards
dipu

On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien 
pi...@hmcrecord.ch wrote:
 

Hi everybody,

I'm not sure if wicket has anything to do to the following issue, 
but I'll

try anyway.

I'm POSTing some large data to a wicket page (yes, there is several 
MB of
data in the post). When it is too big, I can see the following 
stacktrace in

my logs:

java.lang.IllegalStateException: Post too large
  at
org.apache.catalina.connector.Request.parseParameters(Request.java:2388) 

  at 
org.apache.catalina.connector.Request.getParameter(Request.java:1005)

  at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353) 


  at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105) 


  at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198) 


  at org.apache.wicket.Request.getRequestParameters(Request.java:171)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) 


  at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) 


  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 


  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 


  at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) 


  at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 


  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 


  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 


  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 


  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 


  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 


  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 


  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 


  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) 


  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) 


  at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 


  at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 


  at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 


  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) 


  at java.lang.Thread.run(Thread.java:619)


I don't know exactly who catches this exception without forwarding, 
but my
issue is that the page constructor doesn't get called at all (so I 
can't add
some code to controll integrity) and the resonse code sent to the 
client is
200. I'm expecting that wicket or tomcat will send a response code 
like 500:

Internal error or something else (anything but 200)

Any hint?



-
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 

Re: Phonebook Missing

2009-01-14 Thread Martin Funk
look into wicketstuff-core
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/1/14 Kevin Logue ke...@viableoptions.ie

 Hi

 I'm currently implementing a checkgroup within a datatable. After checking
 nabble, this has been
 done within the Wicket Stuff phonebook example but try as I might I
 can't find a recent copy
 of it on the SVN repository. Has it been removed or am I running
 dangerously low on caffeine.

 Apologies if I should be asking this somewhere else.

 Cheers
 Kevin

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




Re: POST too large

2009-01-14 Thread Piller Sébastien

Hi,

in fact, that page hasn't any html representation. It processes the POST 
and then return an xml response (RequestCycle#setRequestTarget).


In the case of a post too big, I don't know exactly what is returned 
(I  hadn't have a look yet), but I will do this evening when going back 
home.


I will try to debug this problem, following the stacktrace. This was 
just a question in case somebody else have already encoutered such a 
situation.


I will add more info here as soon as I have some.

Serkan Camurcuoglu a écrit :
So what exactly happens in this case, your code is not called at all 
and the current page is redisplayed as is? Anyway if this exception is 
caught and ignored within wicket code it should be a jira issue, but 
it may be tomcat who is ignoring the exception as well.. the stack 
trace gives you enough information to debug wicket  tomcat code if 
you want to..




Piller Sébastien wrote:

Hi,

thank you for your response. I'm well aware that increasing the post 
limit size may do the trick, but this looks like a hack. What to do 
when something else occurs, ie whatever IllegalStateException may be 
thrown at this part of code?


I guess the best solution will be to change the response code when 
such a problem occurs.


For the moment, I will increase the post limit to ~ 25MB, but I guess 
this issue should be solved in another way.


Does anybody may indicate me who is the offender?

Dipu a écrit :

will this be of any help

http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk 



regards
dipu

On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien 
pi...@hmcrecord.ch wrote:
 

Hi everybody,

I'm not sure if wicket has anything to do to the following issue, 
but I'll

try anyway.

I'm POSTing some large data to a wicket page (yes, there is several 
MB of
data in the post). When it is too big, I can see the following 
stacktrace in

my logs:

java.lang.IllegalStateException: Post too large
  at
org.apache.catalina.connector.Request.parseParameters(Request.java:2388) 

  at 
org.apache.catalina.connector.Request.getParameter(Request.java:1005)

  at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353) 


  at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105) 


  at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198) 


  at org.apache.wicket.Request.getRequestParameters(Request.java:171)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) 


  at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) 


  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 


  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 


  at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) 


  at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 


  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 


  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 


  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 


  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 


  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 


  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 


  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 


  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) 


  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) 


  at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 


  at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 


  at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 


  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) 


  at java.lang.Thread.run(Thread.java:619)


I don't know exactly who catches this exception without forwarding, 
but my
issue is that the page constructor doesn't get called at all (so I 
can't add
some code to controll integrity) and the resonse code sent to the 
client is
200. I'm expecting that wicket or tomcat will send a response code 
like 500:

Internal error or something else (anything but 200)

Any hint?




Re: anyone can give me some suggestion?thanks

2009-01-14 Thread Thorsten Scherler
El mar, 13-01-2009 a las 17:52 -0800, wch2001 escribió:
 anyone can give me some suggestion?thanks
 

Yeah, 

1) use a subject that is searchable - reflecting the problem you have
and not something general like the one you have chosen here.

2) No top posting! Please do not add your answer to the top of the mail
since it makes it really hard to follow if you read the thread in an
archive. Further it is against the logical flow of a normal
conversation. 

I just answered since it is not the first mail you wrote like this and
you will get better and quicker help if you follow this small basics.

HTH

salu2
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





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



Re: Technologies to use with large scale Wicket application

2009-01-14 Thread dtoffe

I like this a lot, is very flexible and powerful, but it still doesn't
support 1.4 and AFAIK the priority for the developer is in developing WWB
2.0. Anyway I guess patching WWB 1.0 for 1.4 should be far simpler that
rolling your own.
Besides this, there is Wicket RAD:
http://sourceforge.net/projects/wicket-rad, haven't tried it yet but looks
like similar in scope.

hth,

Daniel


tauren wrote:
 
 
 WicketWebBeans
 Might use this for rapid back-end UI development.  Besides rolling my
 own, are there other tools like this?
 
 

-- 
View this message in context: 
http://www.nabble.com/Technologies-to-use-with-large-scale-Wicket-application-tp21447510p21455820.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: Phonebook Missing

2009-01-14 Thread Kevin Logue

Ah think its time for stronger glasses.

Martin Funk wrote:

look into wicketstuff-core
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

mf

2009/1/14 Kevin Logue ke...@viableoptions.ie

  

Hi

I'm currently implementing a checkgroup within a datatable. After checking
nabble, this has been
done within the Wicket Stuff phonebook example but try as I might I
can't find a recent copy
of it on the SVN repository. Has it been removed or am I running
dangerously low on caffeine.

Apologies if I should be asking this somewhere else.

Cheers
Kevin

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







__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3764 (20090114) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


  



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



Re: Where to process PageParameters

2009-01-14 Thread Jonas Hoepfner
Thank you for the quick reply. 

It's already working fine, I was just wondering if it is best practice to call 
business logik from the constructor:

public PageB(PageParameters p) {
  // can throw an exception:
  DataSet result = callMyBusinessLogik(p.getString(param1), 
p.getString(param2));
  preparePageBComponents(result);
}

Jonas

From: Martijn Dashorst
14 Jan 2009 14:24:21 +0100
Subject: Re: Where to process PageParameters

 setResponsePage(PageB.class, parameters);
 
 or use a bookmarkablepagelink
 
 Martijn
 
 On Wed, Jan 14, 2009 at 1:06 PM, Jonas505 jonas.hoepf...@iteratec.de
 wrote:
 
  Hello,
 
  I would like to know, where in my WebPage class PageParameters should be
  processed.
 
  I have a page A where you can fill in certain parameters (or select a
  predefined set of parameters). Then you submit those parameters which are
  given to the business logic to prepare some data. The resulting data is
  shown on page B. I would like that the user can bookmark page B with those
  parameters encoded in the URL.
 
  This works fine with page B having a constructor taking PageParameters.
  However, right now I call the Business-Logik from the constructor of page
 B,
  which seems strange. Am I missing something or is this the way to go?
 
  Thank you!
  Jonas
  --
  View this message in context:
 http://www.nabble.com/Where-to-process-PageParameters-tp21454742p21454742.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.5 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
 
 

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



Re: Where to process PageParameters

2009-01-14 Thread Martijn Dashorst
setResponsePage(PageB.class, parameters);

or use a bookmarkablepagelink

Martijn

On Wed, Jan 14, 2009 at 1:06 PM, Jonas505 jonas.hoepf...@iteratec.de wrote:

 Hello,

 I would like to know, where in my WebPage class PageParameters should be
 processed.

 I have a page A where you can fill in certain parameters (or select a
 predefined set of parameters). Then you submit those parameters which are
 given to the business logic to prepare some data. The resulting data is
 shown on page B. I would like that the user can bookmark page B with those
 parameters encoded in the URL.

 This works fine with page B having a constructor taking PageParameters.
 However, right now I call the Business-Logik from the constructor of page B,
 which seems strange. Am I missing something or is this the way to go?

 Thank you!
 Jonas
 --
 View this message in context: 
 http://www.nabble.com/Where-to-process-PageParameters-tp21454742p21454742.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.5 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: LayoutManager in Wicket

2009-01-14 Thread alexander.elsholz

hi jon,

i didnt have the expectation to generate the frontend-pages based on a
java-pojo component and bind it directly to a jpa-session. i just look for a
way to use layout-templates - so i don't have to code the same html-code for
every webpage. i want to create a form-based approach. i will have a look on
the code of the two frameworks so i can reuse some aspects (to generate
dynamicly html-components).

i dont find your WOW (what a name;-) do you have a svnrepo?

thanks alex




Jonathan Locke wrote:
 
 
 i don't really understand what you are looking for, but it sounds like
 your problem is solvable with some (possibly considerable) effort on your
 part (depending on what exactly you want). 
 
 you should be able to implement some flavor of layout management with
 panels (although other possibilities exist such as some kind of decorator
 pattern involving panels or even using behaviors to place elements on the
 client side), e.g. ColumnLayout extends Panel, etc.  
 
 driving layouts like this from metadata about your model is the goal of my
 WOW project (wicket on wheels or wicket on wings, haven't totally decided
 yet) which is part of my 26 wicket tricks book. it is also already
 implemented in some flavor in wicket-rad and Wicket Web Beans. in fact,
 now that you phrase it this way i'm thinking of changing my package naming
 from view to layout. it's more accurate.
 
jon
 
 
 alexander.elsholz wrote:
 
 Hi,
 
 i read some discussions about using layoutmanagers in wicket like swing
 or gwt.
 
 http://best-practice-software-engineering.blogspot.com/2007/08/tech-wicked-wicket.html
 
 i agree with some arguments like loosing flexibility in layouting, 
 the majority of them tend to look the same or verbosing the javacode
 with layout-information like position, bg-color and so on.
 
 but for business-applications using rich internet technologies with a lot
 of pages manipulating business-objects you want to have a consistent
 layout for a group of pages. you want to define a central template for
 this pages.
 
 makup inheritence and css-layouting is a first step, but you can't
 control the content-part.
 
 the way i see it in a enterprise application you can control 80% of the
 pages with a handful layout-definitions. the other 20% you want to have
 the flexibility you described. 
 
 has someone an idea to design a template-approach creating dynamicly
 html-elements from a metadata-repository with using an existing
 layouttemplate-definition i described above with wicket?
 
 thannks alex
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/LayoutManager-in-Wicket-tp21432407p21457041.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: LayoutManager in Wicket

2009-01-14 Thread Jonathan Locke


yes, but it would still be a similar approach. wow is not public yet, but
you could be a reviewer of my book if you want (when i'm ready, which may be
a few weeks to months).


alexander.elsholz wrote:
 
 hi jon,
 
 i didnt have the expectation to generate the frontend-pages based on a
 java-pojo component and bind it directly to a jpa-session. i just look for
 a way to use layout-templates - so i don't have to code the same html-code
 for every webpage. i want to create a form-based approach. i will have a
 look on the code of the two frameworks so i can reuse some aspects (to
 generate dynamicly html-components).
 
 i dont find your WOW (what a name;-) do you have a svnrepo?
 
 thanks alex
 
 
 
 
 Jonathan Locke wrote:
 
 
 i don't really understand what you are looking for, but it sounds like
 your problem is solvable with some (possibly considerable) effort on your
 part (depending on what exactly you want). 
 
 you should be able to implement some flavor of layout management with
 panels (although other possibilities exist such as some kind of decorator
 pattern involving panels or even using behaviors to place elements on the
 client side), e.g. ColumnLayout extends Panel, etc.  
 
 driving layouts like this from metadata about your model is the goal of
 my WOW project (wicket on wheels or wicket on wings, haven't totally
 decided yet) which is part of my 26 wicket tricks book. it is also
 already implemented in some flavor in wicket-rad and Wicket Web Beans. in
 fact, now that you phrase it this way i'm thinking of changing my package
 naming from view to layout. it's more accurate.
 
jon
 
 
 alexander.elsholz wrote:
 
 Hi,
 
 i read some discussions about using layoutmanagers in wicket like swing
 or gwt.
 
 http://best-practice-software-engineering.blogspot.com/2007/08/tech-wicked-wicket.html
 
 i agree with some arguments like loosing flexibility in layouting, 
 the majority of them tend to look the same or verbosing the javacode
 with layout-information like position, bg-color and so on.
 
 but for business-applications using rich internet technologies with a
 lot of pages manipulating business-objects you want to have a consistent
 layout for a group of pages. you want to define a central template for
 this pages.
 
 makup inheritence and css-layouting is a first step, but you can't
 control the content-part.
 
 the way i see it in a enterprise application you can control 80% of the
 pages with a handful layout-definitions. the other 20% you want to have
 the flexibility you described. 
 
 has someone an idea to design a template-approach creating dynamicly
 html-elements from a metadata-repository with using an existing
 layouttemplate-definition i described above with wicket?
 
 thannks alex
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/LayoutManager-in-Wicket-tp21432407p21457838.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: LayoutManager in Wicket

2009-01-14 Thread alexander.elsholz

yes, i'm happy to agree to review your book.


Jonathan Locke wrote:
 
 
 yes, but it would still be a similar approach. wow is not public yet, but
 you could be a reviewer of my book if you want (when i'm ready, which may
 be a few weeks to months).
 
 
 alexander.elsholz wrote:
 
 hi jon,
 
 i didnt have the expectation to generate the frontend-pages based on a
 java-pojo component and bind it directly to a jpa-session. i just look
 for a way to use layout-templates - so i don't have to code the same
 html-code for every webpage. i want to create a form-based approach. i
 will have a look on the code of the two frameworks so i can reuse some
 aspects (to generate dynamicly html-components).
 
 i dont find your WOW (what a name;-) do you have a svnrepo?
 
 thanks alex
 
 
 
 
 Jonathan Locke wrote:
 
 
 i don't really understand what you are looking for, but it sounds like
 your problem is solvable with some (possibly considerable) effort on
 your part (depending on what exactly you want). 
 
 you should be able to implement some flavor of layout management with
 panels (although other possibilities exist such as some kind of
 decorator pattern involving panels or even using behaviors to place
 elements on the client side), e.g. ColumnLayout extends Panel, etc.  
 
 driving layouts like this from metadata about your model is the goal of
 my WOW project (wicket on wheels or wicket on wings, haven't totally
 decided yet) which is part of my 26 wicket tricks book. it is also
 already implemented in some flavor in wicket-rad and Wicket Web Beans.
 in fact, now that you phrase it this way i'm thinking of changing my
 package naming from view to layout. it's more accurate.
 
jon
 
 
 alexander.elsholz wrote:
 
 Hi,
 
 i read some discussions about using layoutmanagers in wicket like swing
 or gwt.
 
 http://best-practice-software-engineering.blogspot.com/2007/08/tech-wicked-wicket.html
 
 i agree with some arguments like loosing flexibility in layouting, 
 the majority of them tend to look the same or verbosing the javacode
 with layout-information like position, bg-color and so on.
 
 but for business-applications using rich internet technologies with a
 lot of pages manipulating business-objects you want to have a
 consistent layout for a group of pages. you want to define a central
 template for this pages.
 
 makup inheritence and css-layouting is a first step, but you can't
 control the content-part.
 
 the way i see it in a enterprise application you can control 80% of the
 pages with a handful layout-definitions. the other 20% you want to have
 the flexibility you described. 
 
 has someone an idea to design a template-approach creating dynamicly
 html-elements from a metadata-repository with using an existing
 layouttemplate-definition i described above with wicket?
 
 thannks alex
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/LayoutManager-in-Wicket-tp21432407p21458097.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: WicketForge 0.5.0 Available for IDEA 8

2009-01-14 Thread Don Hass

Ditto.

That's just teasing Nick!


Maarten Bosteels wrote:
 
 Hello,
 
 I tried to download http://www.systemmobile.com/code/WicketForge-0.5.0.jar
 but it's an empty file (zero bytes)
 
 Thanks,
 Maarten
 
 On Wed, Jan 14, 2009 at 6:42 AM, Nick Heudecker
 nheudec...@gmail.comwrote:
 
 I'm looking for some people to test WicketForge 0.5.0 with IDEA 8.  As
 far
 as I can tell, everything seems to be working, but I'd like to get more
 people testing before I publish it to the IDEA plugin site.

 Instructions and download here: http://www.systemmobile.com/?page_id=283

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

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

 
 

-- 
View this message in context: 
http://www.nabble.com/WicketForge-0.5.0-Available-for-IDEA-8-tp21450424p21458486.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



ModalWindow with DatePicker

2009-01-14 Thread wilson meier
Hy everyone,

can someone give me an example on how to use ModalWindow with DatePicker
component?

Greets
Wilson


Very Simple Security

2009-01-14 Thread Dane Laverty
I'm currently using Swarm to secure my web application, but I think it
provides a lot more functionality than I really need. Would simply
checking for a User object the session on each page load work as well,
or am I overlooking some major security hole? This way, when the user
logs in successfully, the session would get a User object, but otherwise
it would be null and the application would kick back to the login page.



Re: WicketForge 0.5.0 Available for IDEA 8

2009-01-14 Thread Nick Heudecker
That's what I get for trying to rush things.  You can download it from here:


http://www.systemmobile.com/code/WicketForge-0.5.0.zip

And rename the zip to a jar.  I'll update the instructions page next.

On Wed, Jan 14, 2009 at 7:40 AM, Don Hass donh...@gmail.com wrote:


 Ditto.

 That's just teasing Nick!


 Maarten Bosteels wrote:
 
  Hello,
 
  I tried to download
 http://www.systemmobile.com/code/WicketForge-0.5.0.jar
  but it's an empty file (zero bytes)
 
  Thanks,
  Maarten
 
  On Wed, Jan 14, 2009 at 6:42 AM, Nick Heudecker
  nheudec...@gmail.comwrote:
 
  I'm looking for some people to test WicketForge 0.5.0 with IDEA 8.  As
  far
  as I can tell, everything seems to be working, but I'd like to get more
  people testing before I publish it to the IDEA plugin site.
 
  Instructions and download here:
 http://www.systemmobile.com/?page_id=283
 
  --
  Nick Heudecker
  Professional Wicket Training  Consulting
  http://www.systemmobile.com
 
  Eventful - Intelligent Event Management
  http://www.eventfulhq.com
 
 
 

 --
 View this message in context:
 http://www.nabble.com/WicketForge-0.5.0-Available-for-IDEA-8-tp21450424p21458486.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




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

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


Re: Very Simple Security

2009-01-14 Thread Martijn Dashorst
You could use wicket-auth-roles. Can't think of anything more simpler:
it provides two roles: user and admin. You can secure your pages and
components with annotations. I like it, but be warned: it is simple
and intended to stay that way. If you need something more complex or
different, use it as inspiration or example.

Martijn

On Wed, Jan 14, 2009 at 5:20 PM, Dane Laverty danelave...@chemeketa.edu wrote:
 I'm currently using Swarm to secure my web application, but I think it
 provides a lot more functionality than I really need. Would simply
 checking for a User object the session on each page load work as well,
 or am I overlooking some major security hole? This way, when the user
 logs in successfully, the session would get a User object, but otherwise
 it would be null and the application would kick back to the login page.





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 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: Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson

The main problem is the external form. I need to send the form to an external
server. Since I need wicket to check the form first I need a wicket form and
then a plain html form. The form is submitted when all the data is checked.
Since there is 10 different forms the webpage get's cluttered. Is there a
way to make external form from wicket? 
-- 
View this message in context: 
http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
Why don't you send the query parameters from wicket to the payment
server using QueryStringUrlCodingStrategy

?

**
Martin

2009/1/14 Mathias P.W Nilsson math...@snyltarna.se:

 The main problem is the external form. I need to send the form to an external
 server. Since I need wicket to check the form first I need a wicket form and
 then a plain html form. The form is submitted when all the data is checked.
 Since there is 10 different forms the webpage get's cluttered. Is there a
 way to make external form from wicket?
 --
 View this message in context: 
 http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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: Advice on payment options with wicket

2009-01-14 Thread Scott Swank
Have you considered HttpClient?

http://hc.apache.org/httpclient-3.x/

Scott


On Wed, Jan 14, 2009 at 8:44 AM, Mathias P.W Nilsson
math...@snyltarna.se wrote:

 The main problem is the external form. I need to send the form to an external
 server. Since I need wicket to check the form first I need a wicket form and
 then a plain html form. The form is submitted when all the data is checked.
 Since there is 10 different forms the webpage get's cluttered. Is there a
 way to make external form from wicket?
 --
 View this message in context: 
 http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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



Seam/JSF vs Wicket: performance comparison

2009-01-14 Thread Martijn Dashorst
Peter Thomas wrote a nice article comparing the performance of
Seam/JSF and Wicket.

You can vote for the article at dzone:
http://www.dzone.com/links/seamjsf_vs_wicket_performance_comparison.html

Or read the article directly:
http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/

Many thanks go to Peter for writing this article.

Martijn

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



Re: Where to process PageParameters

2009-01-14 Thread behrica

Hello,

I do something similar in a page constructor, even with accessing the
service layer. I have the same concerns, if this is correct. In general I do
not like if a constructor does any significant (eventually time consuming)
work like database access or other. But I did not find an other solution
neither.
Maybe it could be postponed by using a model which executes the needed
calls to the service layer in an lazy fashion.

Carsten


Jonas505 wrote:
 
 Thank you for the quick reply. 
 
 It's already working fine, I was just wondering if it is best practice to
 call business logik from the constructor:
 
 public PageB(PageParameters p) {
   // can throw an exception:
   DataSet result = callMyBusinessLogik(p.getString(param1),
 p.getString(param2));
   preparePageBComponents(result);
 }
 
 Jonas
 
 From: Martijn Dashorst
 14 Jan 2009 14:24:21 +0100
 Subject: Re: Where to process PageParameters
 
 setResponsePage(PageB.class, parameters);
 
 or use a bookmarkablepagelink
 
 Martijn
 
 On Wed, Jan 14, 2009 at 1:06 PM, Jonas505 jonas.hoepf...@iteratec.de
 wrote:
 
  Hello,
 
  I would like to know, where in my WebPage class PageParameters should
 be
  processed.
 
  I have a page A where you can fill in certain parameters (or select a
  predefined set of parameters). Then you submit those parameters which
 are
  given to the business logic to prepare some data. The resulting data is
  shown on page B. I would like that the user can bookmark page B with
 those
  parameters encoded in the URL.
 
  This works fine with page B having a constructor taking PageParameters.
  However, right now I call the Business-Logik from the constructor of
 page
 B,
  which seems strange. Am I missing something or is this the way to go?
 
  Thank you!
  Jonas
  --
  View this message in context:
 http://www.nabble.com/Where-to-process-PageParameters-tp21454742p21454742.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.5 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
 
 
 
 -
 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/Where-to-process-PageParameters-tp21454742p21460425.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: Advice on payment options with wicket

2009-01-14 Thread Steve Swinsburg
Submit the form as normal in Wicket, validate, etc, then craft a  
request to the external form and send your data that way.



cheers,
Steve







On 14 Jan 2009, at 16:44, Mathias P.W Nilsson wrote:



The main problem is the external form. I need to send the form to an  
external
server. Since I need wicket to check the form first I need a wicket  
form and
then a plain html form. The form is submitted when all the data is  
checked.
Since there is 10 different forms the webpage get's cluttered. Is  
there a

way to make external form from wicket?
--
View this message in context: 
http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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


IllegalstateException with Hybrid strategy

2009-01-14 Thread Mathias P.W Nilsson

I get this error a lot

java.lang.IllegalStateException: URL fragment has unmatched key/value pair:
id/3
9258/sort/refilled/favicon

The favicon must be requested by some user or spider. Anyone know how to get
around this?
-- 
View this message in context: 
http://www.nabble.com/IllegalstateException-with-Hybrid-strategy-tp21460864p21460864.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: Advice on payment options with wicket

2009-01-14 Thread Mathias P.W Nilsson

This is what I'm doing ( via an javascript call from wicket ajax after the
form is validated). Problem is that the model must be emptied when the form
is submitted ( cart, order ) and then the page get's rerendered. It's all
fussy. 

10 forms in the same page. Must be a smarter solution.
-- 
View this message in context: 
http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21461128.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: Seam/JSF vs Wicket: performance comparison

2009-01-14 Thread Nino Martinez
Wild, I did'nt think there was that much of a difference between wicket 
and the seam/jsf stack..


Again wicket stands out as the winner :)

Martijn Dashorst wrote:

Peter Thomas wrote a nice article comparing the performance of
Seam/JSF and Wicket.

You can vote for the article at dzone:
http://www.dzone.com/links/seamjsf_vs_wicket_performance_comparison.html

Or read the article directly:
http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/

Many thanks go to Peter for writing this article.

Martijn

-
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: I also have the question

2009-01-14 Thread UPBrandon

For a while, we were using a solution that allowed us to download generated
PDF's but it only seemed to work in IE and some people had trouble using it
from outside connections.

What I wanted was a way to access dynamic/generated content that:
- Doesn't cause Wicket to be come non-responsive after the request
- Works in at least IE and FF
- Allows a file name to be provided
- Allows a mime type to be provided

After taking another stab at it, I was able to get that working.  Here is
what I ended up with:

public class ByteDataRequestTarget extends ByteArrayResource implements
IRequestTarget {
private String fileName;

public ByteDataRequestTarget(String mimeType, byte[] data, String 
fileName)
{
super(mimeType, data, fileName);
this.fileName = fileName;
}

public void detach(RequestCycle requestCycle) { }

public void respond(RequestCycle requestCycle) {
requestCycle.setRequestTarget(new
ResourceStreamRequestTarget(this.getResourceStream() ) {
public String getFileName() {
return fileName;
}
} );
}
}

And then I subclassed for different common file types like PDF and CSV. 
Those subclasses basically just provide the MIME type for the user and
automatically add the file extension.

public class PdfRequestTarget extends ByteDataRequestTarget {
public PdfRequestTarget(byte[] data, String fileName) {
super(Constants.PDF_MIME_TYPE, data, fileName+.pdf);
}
}

To use the class, you do something like this:

new Button(buttonId, new Model(My Button) ) {
public void onSubmit() {
getRequestCycle().setRequestTarget(new 
PdfRequestTarget(getSomePdfData(),
FileName) );
}
};

I hope that helps.


wch2001 wrote:
 
 UPBrandon,
 Did u find any solution for it?
 
 anyone can help?
 
 thanks
 
 
 UPBrandon wrote:
 
 It's not that I necessary want to see the page refreshed with updated
 form values.  In fact, I would prefer that the user not leave the page at
 all.  All the form contains is a checkgroup of things to include in the
 PDF.  All I want to do when the button is pressed is view/download the
 PDF but the form with the checkgroup needs to be submitted first so I can
 see what was checked when I generate the PDF.
 
 I suppose taking the ResourceReference's and using it in the onload would
 work but it seems like such a hack, not to mention that it might cause
 problems if the user uses the back button.  While working on my
 DynamicWebResource, I was able to download a PDF and continue using my
 application using a link (assigned to either a link or button in HTML.) 
 The only problem is that it doesn't do a submit.  Accessing the
 DynamicWebResource from a button works but makes my app non-responsive. 
 What I would like to do is either make the ResourceLink somehow submit my
 form or, even better, make a button component that handles the request in
 a way that doens't break Wicket.  Ideas/suggestions?
 
 -Brandon
 
 
 igor.vaynberg wrote:
 
 so you want to see the page with updated form values _and_ stream the
 pdf?
 
 why dont you take that url you generated for your resourceref and
 append it to a window.onload javascript that does window.location=url;
 
 -gior
 

  As I mentioned in my previous response, I couldn't use
  getRequestCycle().setRequestTarget() directly because of the way the
 API
  works (you can use a ResourceReference but not a Resource.)  Instead,
 I
  ended up with something like this:

  new AjaxButton(buttonId, form) {
 protected void onSubmit(AjaxRequestTarget target, Form form) {
 ResourceReference pdfReference = new
 ResourceReference() {
 protected Resource newResource() {
 return new BillPdfWebResource(...);
 }
 };
 String url =
 getRequestCycle().get().urlFor(pdfReference).toString();
 getRequestCycle().setRequestTarget(new
 RedirectRequestTarget(url) );
 }
  }

  It works... but only once.  When I click on the button, everything
 works, my
  PDF gets generated and downloaded but then my app becomes
 unresponsive.  I
  can't interact with the site at all until I start over.  Is there a
 better
  way to go about this that wouldn't cause that side effect?  Whatever
  approach I take, I need to be able to submit a form when the PDF is
  generated.  My example doesn't show it but my BillPdfWebResource class
  generates a PDF based on the user's selection and my Form's Model
 needs to
  be updated.  Any suggestions?

  -Brandon

  igor.vaynberg wrote:
  
   onsubmit() {
 getrequestcycle().setrequesttarget(new
   redirectrequesttarget(urlfor(resourceref)));
   }
  
   -igor
  
   On Feb 13, 2008 8:18 AM, UPBrandon bcr...@up.com wrote:
  
   In a project I am working on, I wrote a 

RE: ModalWindow with DatePicker

2009-01-14 Thread Stefan Lindner
What's the problem? Which wicket version? We use the date picker in Wicket 1.4 
trunk inside modal windows and it works fine.

Stefan

-Ursprüngliche Nachricht-
Von: wilson meier [mailto:wilson.me...@googlemail.com] 
Gesendet: Mittwoch, 14. Januar 2009 16:47
An: users@wicket.apache.org
Betreff: ModalWindow with DatePicker

Hy everyone,

can someone give me an example on how to use ModalWindow with DatePicker
component?

Greets
Wilson


Re: PrototipBehaviour problems

2009-01-14 Thread rjohara

 you need to have a scriptaculous dependency in your project's pom.xml

Thanks for the response.  I'm having trouble adding the dependency to my
pom.xml.  Below is my pom.xml dependency definition:

dependency
groupIdorg.wicketstuff/groupId
artifactIdwicketstuff-scriptaculous/artifactId
version1.4-SNAPSHOT/version
/dependency

Has anyone recently added this dependency successfully?  Any help is
appreciated.

Thanks,
Ryan
-- 
View this message in context: 
http://www.nabble.com/PrototipBehaviour-problems-tp21424534p21463033.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: Technologies to use with large scale Wicket application

2009-01-14 Thread Jeremy Thomerson
A few comments from my experience:

Wicket - well, of course.  Are there other options?  :)

Spring / Hibernate - I have used these on every project I've done in the
past four or five years and have been very satisfied with them.

Lucene - Awesome!  I have been extremely impressed with Lucene.  It is easy
to integrate and astoundingly fast and simple.  It is also very flexible,
allowing almost limitless possibilities.  I would recommend it for search as
highly as Wicket for view tier.


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Tue, Jan 13, 2009 at 6:12 PM, Tauren Mills tau...@tauren.com wrote:

 Happy new year!

 My team is in the preliminary stages of designing a large social
 wicket web application and I'm trying to identify a good set of
 existing tools and technologies that can be leveraged to simplify the
 development of this application.  I would love to hear the opinions
 and suggestions of other Wicket users.  Note that I want to use open
 source tools as much as possible.

 Here are some of the tools that I feel might help.  I realize this is
 a big list and may be off-topic, but am still interested in which
 technologies other Wicket developers have found work well with a
 Wicket app. I would appreciate any comments or opinions of these
 technologies as well as suggestions and alternatives that you feel
 would be worth my consideration.

 Wicket
 I assume no one here will object to this.  I plan to use version 1.4.

 MySQL
 First choice for database. I've used it MySQL more than any other
 database and it hasn't let me down.

 PostgreSQL
 Second choice for database.  I've used it less than MySQL, so
 additional time might be required to install, configure, and use it.

 Spring + Hibernate
 I'm comfortable with these technologies as I've been using them for a
 few years with Wicket.  But I'm certainly open to suggestions,
 opinions, etc.

 Hibernate Annotations
 Ive been using HBM files, but I'm thinking I should look into getting
 rid of my mapping files and put the mapping right into the pojos.  Is
 this the right call?

 Salve
 Never used it, but it appears many Wicket developers do.  Is it worth
 looking into?

 WicketWebBeans
 Might use this for rapid back-end UI development.  Besides rolling my
 own, are there other tools like this?

 Brix
 Jackrabbit
 Our application will need some heavy duty CMS features, and this
 project looks powerful enough to do the job.  Jackrabbit is used by
 Brix to store content.

 Lucene
 Hibernate Search
 I will need site-wide and data-wide search that encompasses all of the
 content on the site as well as the data in the application.  I'm not
 sure if these are the best tools for this job, as the content will be
 stored in Jackrabbit.  So I need to be able to search jackrabbit and
 my data and produce unified search results.  Ideas?

 ACEGI
 Spring Security
 I haven't used either of these before so I'm not sure if they will
 solve my problem:
 This application will have many levels of roles and permissions.
 Users will belong to groups and can be assigned roles for a group that
 allow them to perform actions.  For instance, a standard user that
 belongs to a group can only view some data.  But if a user has
 additional roles assigned to them, then they will gain the ability to
 see other data, edit data, and so forth.  A user can belong to
 multiple groups, and may have different roles for each group.

 Shopping Cart
 Any good open source wicket shopping carts?  I have a homemade one
 that I did for a customer that I plan to start with.  But if something
 else exists, I'd love to hear about it.

 Amazon FPS
 This system provides a simple API that can be used to help one user
 pay another user for service, but allow the infrastructure provider
 (me) to take a cut out of the transaction.   It also supports
 micro-payments which I could use. The service fits the needs of my
 business model really well.  I've never used it, so does anyone have
 any horror stories, good things to say, alternative suggestions?

 Google Checkout
 PayPal
 Merchant account
 The system will also allow for the sale of products.  I want to give
 users a choice of method for accepting payments.  They can receive
 payments via Google Checkout, PayPal, or their own merchant account.
 If anyone knows of any tools that would help with this, please let me
 know.  Otherwise, I'll just use the APIs directly available from the
 payment systems.  I've already got Google Checkout integrated into
 another project.

 OpenID
 I want to be able to allow users to log in with an OpenID.  I
 understand Spring Security now has this built in.  But there are other
 ways to do it besides Spring.  Has anyone integrated OpenID before,
 and if so what tools did you use?

 Facebook Developer Program
 Facebook Connect
 I haven't really looked into these programs yet, but I'm looking for
 ways to support Facebook users.  It looks like I can get parts of our
 application to run within facebook.  But I'm 

Re: Where to process PageParameters

2009-01-14 Thread Jeremy Thomerson
Yes - typically it is a good idea to do things like service-layer / database
access inside the model or inside onBeforeRender / isVisible, etc, rather
than doing your business logic and calling setVisible(), etc.

One of the main reasons for this is that if you don't, your page won't work
properly when you click a link that modifies something on the page - because
it doesn't reconstruct the page, and therefore you don't refresh the data in
your components.

On Wed, Jan 14, 2009 at 11:09 AM, behrica carsten.behr...@efsa.europa.euwrote:


 Hello,

 I do something similar in a page constructor, even with accessing the
 service layer. I have the same concerns, if this is correct. In general I
 do
 not like if a constructor does any significant (eventually time consuming)
 work like database access or other. But I did not find an other solution
 neither.
 Maybe it could be postponed by using a model which executes the needed
 calls to the service layer in an lazy fashion.

 Carsten


 Jonas505 wrote:
 
  Thank you for the quick reply.
 
  It's already working fine, I was just wondering if it is best practice to
  call business logik from the constructor:
 
  public PageB(PageParameters p) {
// can throw an exception:
DataSet result = callMyBusinessLogik(p.getString(param1),
  p.getString(param2));
preparePageBComponents(result);
  }
 
  Jonas
 
  From: Martijn Dashorst
  14 Jan 2009 14:24:21 +0100
  Subject: Re: Where to process PageParameters
 
  setResponsePage(PageB.class, parameters);
 
  or use a bookmarkablepagelink
 
  Martijn
 
  On Wed, Jan 14, 2009 at 1:06 PM, Jonas505 jonas.hoepf...@iteratec.de
  wrote:
  
   Hello,
  
   I would like to know, where in my WebPage class PageParameters should
  be
   processed.
  
   I have a page A where you can fill in certain parameters (or select a
   predefined set of parameters). Then you submit those parameters which
  are
   given to the business logic to prepare some data. The resulting data
 is
   shown on page B. I would like that the user can bookmark page B with
  those
   parameters encoded in the URL.
  
   This works fine with page B having a constructor taking
 PageParameters.
   However, right now I call the Business-Logik from the constructor of
  page
  B,
   which seems strange. Am I missing something or is this the way to go?
  
   Thank you!
   Jonas
   --
   View this message in context:
 
 http://www.nabble.com/Where-to-process-PageParameters-tp21454742p21454742.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.5 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
 
 
 
  -
  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/Where-to-process-PageParameters-tp21454742p21460425.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




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Seam/JSF vs Wicket: performance comparison

2009-01-14 Thread Martin Voigt
We did a similar test, and the result where much the same: one use
case, two implementations (jsf/ seam vs wicket). Both apps where
running inside JBoss and used the same persistence/ service layer. We
only did performance tests (no memory analysis), first wicket was
faster by a margin of 7-10, after reconfiguring seam/ jsf it was by a
margin of 2-3.

After analyzing the behaviour with JProfiler we found the problem:
JBoss EL, the expression language (rather a specific implementation of
it) used in JSF pages. Most time was spent in some invokeMethod()
code.

This is a seam issue: https://jira.jboss.org/jira/browse/JBSEAM-1977
which comes from seam using javassist extensivly. Yes, you can
workaround by using some idioms or tricks, but personally I don't like
technologies where dealing with core stuff requires workarounds.

regards,
Martin

2009/1/14 Nino Martinez nino.martinez.w...@gmail.com:
 Wild, I did'nt think there was that much of a difference between wicket and
 the seam/jsf stack..

 Again wicket stands out as the winner :)

 Martijn Dashorst wrote:

 Peter Thomas wrote a nice article comparing the performance of
 Seam/JSF and Wicket.

 You can vote for the article at dzone:
 http://www.dzone.com/links/seamjsf_vs_wicket_performance_comparison.html

 Or read the article directly:

 http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/

 Many thanks go to Peter for writing this article.

 Martijn

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




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



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



Re: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
Honestly, I simply cannot grasp the problem.

Our site works like this:

1. User fills form.
2. User submits form to Wicket site.
3. Wicket site analyzes the submitted form and constructs a PageParameters map.
4. Wicket site redirects the user to a payment processing server using
the PageParameters.

If 10 forms in the same page. are in stage 1-2 it does not matter,
you can make 3-4 as simple as you want.

Maybe you could describe your process in more detail?

**
Martin

2009/1/14 Mathias P.W Nilsson math...@snyltarna.se:

 This is what I'm doing ( via an javascript call from wicket ajax after the
 form is validated). Problem is that the model must be emptied when the form
 is submitted ( cart, order ) and then the page get's rerendered. It's all
 fussy.

 10 forms in the same page. Must be a smarter solution.
 --
 View this message in context: 
 http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21461128.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: Technologies to use with large scale Wicket application

2009-01-14 Thread francisco treacy
 Wicket - well, of course.  Are there other options?  :)

there are other options wy behind :)

 Spring / Hibernate - I have used these on every project I've done in the
 past four or five years and have been very satisfied with them.

i personally think hibernate is... the least worse we've got for orms.
otherwise pretty standard stack that should work fine and has a huge
userbase. you may also want to check out google guice

 Lucene - Awesome!  I have been extremely impressed with Lucene.  It is easy
 to integrate and astoundingly fast and simple.  It is also very flexible,
 allowing almost limitless possibilities.  I would recommend it for search as
 highly as Wicket for view tier.

+1 , i've been using lucene for over a year in 3 different projects
and it absolutely... rocks

 Salve
 Never used it, but it appears many Wicket developers do.  Is it worth
 looking into?

you will need salve if you want to inject dependencies out of the
'injection tree' - very useful in DataProviders, or LDMs. if you use
it in your wicket pages then i suppose you don't need to configure the
component instantiation listener, i wonder if this has some
performance advantage in favor of salve. hats off to igor for a useful
and *very* well coded piece of software.

 Terracotta
 Never used it, but it looks good for clustering.  I need to figure out
 how to build this application in a way that I can run instances not
 only locally, but all across the world if necessary.  Thoughts?

first off you should learn what it is and check if you really need it.
 it's a very smart technology for caching (medium-term data) and
taking out load off your db. i believe there's a wicket integration
module.

 jQuery
 I've used this a lot and am familiar with it.

neat library with good support for wicket (at least 2 quite good
integration packages)

good luck with your venture

francisco


 On Tue, Jan 13, 2009 at 6:12 PM, Tauren Mills tau...@tauren.com wrote:

 Happy new year!

 My team is in the preliminary stages of designing a large social
 wicket web application and I'm trying to identify a good set of
 existing tools and technologies that can be leveraged to simplify the
 development of this application.  I would love to hear the opinions
 and suggestions of other Wicket users.  Note that I want to use open
 source tools as much as possible.

 Here are some of the tools that I feel might help.  I realize this is
 a big list and may be off-topic, but am still interested in which
 technologies other Wicket developers have found work well with a
 Wicket app. I would appreciate any comments or opinions of these
 technologies as well as suggestions and alternatives that you feel
 would be worth my consideration.

 Wicket
 I assume no one here will object to this.  I plan to use version 1.4.

 MySQL
 First choice for database. I've used it MySQL more than any other
 database and it hasn't let me down.

 PostgreSQL
 Second choice for database.  I've used it less than MySQL, so
 additional time might be required to install, configure, and use it.

 Spring + Hibernate
 I'm comfortable with these technologies as I've been using them for a
 few years with Wicket.  But I'm certainly open to suggestions,
 opinions, etc.

 Hibernate Annotations
 Ive been using HBM files, but I'm thinking I should look into getting
 rid of my mapping files and put the mapping right into the pojos.  Is
 this the right call?

 Salve
 Never used it, but it appears many Wicket developers do.  Is it worth
 looking into?

 WicketWebBeans
 Might use this for rapid back-end UI development.  Besides rolling my
 own, are there other tools like this?

 Brix
 Jackrabbit
 Our application will need some heavy duty CMS features, and this
 project looks powerful enough to do the job.  Jackrabbit is used by
 Brix to store content.

 Lucene
 Hibernate Search
 I will need site-wide and data-wide search that encompasses all of the
 content on the site as well as the data in the application.  I'm not
 sure if these are the best tools for this job, as the content will be
 stored in Jackrabbit.  So I need to be able to search jackrabbit and
 my data and produce unified search results.  Ideas?

 ACEGI
 Spring Security
 I haven't used either of these before so I'm not sure if they will
 solve my problem:
 This application will have many levels of roles and permissions.
 Users will belong to groups and can be assigned roles for a group that
 allow them to perform actions.  For instance, a standard user that
 belongs to a group can only view some data.  But if a user has
 additional roles assigned to them, then they will gain the ability to
 see other data, edit data, and so forth.  A user can belong to
 multiple groups, and may have different roles for each group.

 Shopping Cart
 Any good open source wicket shopping carts?  I have a homemade one
 that I did for a customer that I plan to start with.  But if something
 else exists, I'd love to hear about it.

 Amazon FPS
 This system 

Re: Technologies to use with large scale Wicket application

2009-01-14 Thread Tauren Mills
Thanks for the responses to my OT message,

Daniel -- Thanks for your comments and the link to Wicket RAD.  I'll
check it out.  I didn't realize WWB doesn't yet support 1.4 and I
definitely am building this with 1.4.

Jeremy -- It's good to hear that you also recommend these technologies.

I'm really hoping to hear from someone who has used Salve, as I
believe some of the wicket comitters are using it.

Thanks,
Tauren


On Wed, Jan 14, 2009 at 11:24 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 A few comments from my experience:

 Wicket - well, of course.  Are there other options?  :)

 Spring / Hibernate - I have used these on every project I've done in the
 past four or five years and have been very satisfied with them.

 Lucene - Awesome!  I have been extremely impressed with Lucene.  It is easy
 to integrate and astoundingly fast and simple.  It is also very flexible,
 allowing almost limitless possibilities.  I would recommend it for search as
 highly as Wicket for view tier.


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Tue, Jan 13, 2009 at 6:12 PM, Tauren Mills tau...@tauren.com wrote:

 Happy new year!

 My team is in the preliminary stages of designing a large social
 wicket web application and I'm trying to identify a good set of
 existing tools and technologies that can be leveraged to simplify the
 development of this application.  I would love to hear the opinions
 and suggestions of other Wicket users.  Note that I want to use open
 source tools as much as possible.

 Here are some of the tools that I feel might help.  I realize this is
 a big list and may be off-topic, but am still interested in which
 technologies other Wicket developers have found work well with a
 Wicket app. I would appreciate any comments or opinions of these
 technologies as well as suggestions and alternatives that you feel
 would be worth my consideration.

 Wicket
 I assume no one here will object to this.  I plan to use version 1.4.

 MySQL
 First choice for database. I've used it MySQL more than any other
 database and it hasn't let me down.

 PostgreSQL
 Second choice for database.  I've used it less than MySQL, so
 additional time might be required to install, configure, and use it.

 Spring + Hibernate
 I'm comfortable with these technologies as I've been using them for a
 few years with Wicket.  But I'm certainly open to suggestions,
 opinions, etc.

 Hibernate Annotations
 Ive been using HBM files, but I'm thinking I should look into getting
 rid of my mapping files and put the mapping right into the pojos.  Is
 this the right call?

 Salve
 Never used it, but it appears many Wicket developers do.  Is it worth
 looking into?

 WicketWebBeans
 Might use this for rapid back-end UI development.  Besides rolling my
 own, are there other tools like this?

 Brix
 Jackrabbit
 Our application will need some heavy duty CMS features, and this
 project looks powerful enough to do the job.  Jackrabbit is used by
 Brix to store content.

 Lucene
 Hibernate Search
 I will need site-wide and data-wide search that encompasses all of the
 content on the site as well as the data in the application.  I'm not
 sure if these are the best tools for this job, as the content will be
 stored in Jackrabbit.  So I need to be able to search jackrabbit and
 my data and produce unified search results.  Ideas?

 ACEGI
 Spring Security
 I haven't used either of these before so I'm not sure if they will
 solve my problem:
 This application will have many levels of roles and permissions.
 Users will belong to groups and can be assigned roles for a group that
 allow them to perform actions.  For instance, a standard user that
 belongs to a group can only view some data.  But if a user has
 additional roles assigned to them, then they will gain the ability to
 see other data, edit data, and so forth.  A user can belong to
 multiple groups, and may have different roles for each group.

 Shopping Cart
 Any good open source wicket shopping carts?  I have a homemade one
 that I did for a customer that I plan to start with.  But if something
 else exists, I'd love to hear about it.

 Amazon FPS
 This system provides a simple API that can be used to help one user
 pay another user for service, but allow the infrastructure provider
 (me) to take a cut out of the transaction.   It also supports
 micro-payments which I could use. The service fits the needs of my
 business model really well.  I've never used it, so does anyone have
 any horror stories, good things to say, alternative suggestions?

 Google Checkout
 PayPal
 Merchant account
 The system will also allow for the sale of products.  I want to give
 users a choice of method for accepting payments.  They can receive
 payments via Google Checkout, PayPal, or their own merchant account.
 If anyone knows of any tools that would help with this, please let me
 know.  Otherwise, I'll just use the APIs directly available from the
 payment systems.  I've already got Google 

Re: URL fragment has unmatched key/value pairs

2009-01-14 Thread francisco treacy
thanks uwe. i suppose then it's a safely ignorable warning - the
client on the other end must receive a real 404.

 unfortunately, i also see some instances of this with urls, i don´t think
 were generated by guessing:

i'm pretty sure in my case... they're all words related to the admin
account, or bank account and that sort of stuff ... some very bad
people out there :)

francisco


On Thu, Jan 8, 2009 at 9:11 AM, Uwe Schäfer u...@thomas-daily.de wrote:
 francisco treacy schrieb:

 dear francisco

 (i even had Fragment: admin, Fragment: bank-account , and things of the
 sort)

 i´ve seen this too. for instance on hybrid encoding, if you mount a page to
 /foo, /foo/bar/ will bring this error, while /foo/bar/baz wont, because it
 means bar=baz in parameters.

 i think you cannot do anything against someone playing with urls from
 outside.
 unfortunately, i also see some instances of this with urls, i don´t think
 were generated by guessing:

 URL fragment has unmatched key/value pair:
 resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event

 can anyone confirm that?

 cu uwe

 -
 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: Wicket stuff core, archetypes?

2009-01-14 Thread francisco treacy
here it is:

http://code.google.com/p/wickethub/  (source code for the
http://wickethub.org/ webapp)

a small piece of code (with not even unit tests so far) but hopefully
the way to start addressing our ideas:

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

 http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/ECA681FB-4B9C-4C27-9947-C9901F99E154.html
 http://www.nabble.com/wickethub.org-td20995774.html

let me know if you're interested in contributing. i'd particularly
like to find a maven power-user(s) who'd like to help implementing
some of jon's automatic component repo thingy.
nino, what about the archetypes for wicketstuff?

francisco


On Sat, Dec 20, 2008 at 9:00 PM, Nino Martinez
nino.martinez.w...@gmail.com wrote:
 Ahh, no did'nt follow the thing that far, will read up on it now..

 I'll be looking forward to see some stuff in a couple of weeks :)

 francisco treacy wrote:

 hi nino,

 have you seen jon's idea of automatic component , and/or wickethub.org
 thread?  discussion went around providing to wicket component
 developers some sort of archetype that can help to 'standardize'/
 'give more structure'  - also useful to perhaps crawl those artifacts
 (with metadata) and keep them up-to-date in a sort of registry. it
 would be good to join efforts.

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

 http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/ECA681FB-4B9C-4C27-9947-C9901F99E154.html
 http://www.nabble.com/wickethub.org-td20995774.html

 i'd really like to really tackle this one, once i'm back from holidays
 in about 2 weeks. gonna tidy up a bit and open source that wickethub
 code.

 cheers,
 francisco


 On Sat, Dec 20, 2008 at 9:22 AM, Nino Martinez
 nino.martinez.w...@gmail.com wrote:


 Hi

 I were thinking that it would be nice to have archetypes for single
 wicketstuff core project and one with a multi module (the stuff project
 and
 a example one), I guess it would provide event more structure..

 WDYT?

 regards Nino

 -
 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



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



Re: Wicket stuff core, archetypes?

2009-01-14 Thread Jonathan Locke


yeah, you really do need a maven expert's help i think. i was chatting with
someone about this and they said something to the effect of: oh, god no
don't crawl the maven repo. you'll get banned. so there's some more
official way of doing this apparently.


francisco treacy-2 wrote:
 
 here it is:
 
 http://code.google.com/p/wickethub/  (source code for the
 http://wickethub.org/ webapp)
 
 a small piece of code (with not even unit tests so far) but hopefully
 the way to start addressing our ideas:
 
 http://www.nabble.com/idea:-automatic-component-repo-to17979177.html

 http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/ECA681FB-4B9C-4C27-9947-C9901F99E154.html
 http://www.nabble.com/wickethub.org-td20995774.html
 
 let me know if you're interested in contributing. i'd particularly
 like to find a maven power-user(s) who'd like to help implementing
 some of jon's automatic component repo thingy.
 nino, what about the archetypes for wicketstuff?
 
 francisco
 
 
 On Sat, Dec 20, 2008 at 9:00 PM, Nino Martinez
 nino.martinez.w...@gmail.com wrote:
 Ahh, no did'nt follow the thing that far, will read up on it now..

 I'll be looking forward to see some stuff in a couple of weeks :)

 francisco treacy wrote:

 hi nino,

 have you seen jon's idea of automatic component , and/or wickethub.org
 thread?  discussion went around providing to wicket component
 developers some sort of archetype that can help to 'standardize'/
 'give more structure'  - also useful to perhaps crawl those artifacts
 (with metadata) and keep them up-to-date in a sort of registry. it
 would be good to join efforts.

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

 http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/ECA681FB-4B9C-4C27-9947-C9901F99E154.html
 http://www.nabble.com/wickethub.org-td20995774.html

 i'd really like to really tackle this one, once i'm back from holidays
 in about 2 weeks. gonna tidy up a bit and open source that wickethub
 code.

 cheers,
 francisco


 On Sat, Dec 20, 2008 at 9:22 AM, Nino Martinez
 nino.martinez.w...@gmail.com wrote:


 Hi

 I were thinking that it would be nice to have archetypes for single
 wicketstuff core project and one with a multi module (the stuff project
 and
 a example one), I guess it would provide event more structure..

 WDYT?

 regards Nino

 -
 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


 
 -
 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/Wicket-stuff-core%2C-archetypes--tp21102842p21466906.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: FormComponent cookie persistent issue

2009-01-14 Thread Murat Yücel
I have just tried to deploy the application on a tomcat server. There are no
difference. :(

2009/1/11 Murat Yücel kodeperke...@gmail.com

 Hi Serkan

 I havent tried with Tomcat. Will try it and get back to you.

 /Murat

 2009/1/8 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Murat have you tried it with tomcat, maybe it's jetty's bug?




 Murat Yücel wrote:

 Well i have create a jira issue on this problem. Hopefully someone  from
 the
 wicket team will
 have the time to fix this in a near future.
 https://issues.apache.org/jira/browse/WICKET-2011

 /Murat

 2009/1/7 jWeekend jweekend_for...@cabouge.com



 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently
 with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:


 Hi Serkan

 I am using the Start.java located in the test folder to startup the
 project.
 The context path is removed there.
 When I add a context path, then it is working fine. Both cookies is
 created
 with path /myproject.

 But the problem exist if you remove the context path. This is the way i
 run
 it on my server and i guess that
 this should also work for wicket. Can you confirm that you have the
 same
 problem when removing the context
 path.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com



 is your application deployed to the root context (e.g. / ) ? Because


 your


 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm
 using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you
 repeat
 the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http
 headers
 to
 see what's going on..




 Murat Yücel wrote:



 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you
 have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your
 cookies
 and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see
 with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.commailto:
 serkan.camurcuo...@telenity.com


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
   mailto:serkan.camurcuo...@telenity.com


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached
 project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel kodeperke...@gmail.com
   mailto:kodeperke...@gmail.com




   Hi Cemal

   Thanks for the response. I have attached the


 project.


If you uncomment this line:
   mountBookmarkablePage(homepage, HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour.

   /Murat

   2008/12/31 jWeekend jweekend_for...@cabouge.com
   

Re: Back button + dataview problem

2009-01-14 Thread quizzical

Right, sorry its been a while, I had some horrible issues getting tomcat
working properly but I've managed to deploy the project on Tomcat. My
logging setup isn't working perfectly but I'm seeing the same issues with
the back button and a few NotSerializableException lines in tomcat.log. 

The CategoryDAO definition is quite long, is there anything in particular
you wanted to see or shall I just post the whole class?

Cheers
Alex


Jeremy Thomerson-5 wrote:
 
 Right - don't make your DAO serializable - the proxy thing should work.
 Like Igor said, try a different container (run it up in Jetty with the
 quickstart if you can - that should be quick and easy).
 
 Let us know the results.  If it still happens, let us see the code where
 you
 define the category dao.
 
 
 -- 
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 On Thu, Jan 8, 2009 at 9:58 AM, quizzical quixop...@gmail.com wrote:
 

 But if I have understood the docs
 http://cwiki.apache.org/WICKET/spring.html
 here  on the spring - annot project then categoryDao should be injected
 with
 a serializable proxy which can get a categoryDao from spring when needed
 and
 drop it when serialized.



 Serkan Camurcuoglu-3 wrote:
 
  so categoryDao implements java.io.Serializable but it cannot be
  serialized?
 
 
  quizzical wrote:
  Thanks, that seems to be the problem, I'm getting
  NotSerializableException,
  the offending objects are injected using @SpringBean, which I thought
  injected a proxy. I've read the docs online for spring-annot and I
 can't
  see
  why this should be happening.
 
  I'm running glassfish and the log has this to say about the error:
 
  'Cannot serialize session attribute categoryDao for session'
 
  Where categoryDao is the injected variable.
 
  Any idea what I'm doing wrong?
  Cheers
 
 
 
  Serkan Camurcuoglu-3 wrote:
 
  did you check your logs, if you are getting NotSerializableExceptions
 in
  the background you may get page expired errors with back button..
 
 
  quizzical wrote:
 
  Hi everyone,
 
  I'm in the process of writing an example ecommerce app to get to
 know
  wicket
  and am really enjoying the experience.. At the moment I'm working on
 a
  page
  which allows you to browse through a list of items in a database.
 
  For the list of items I created a panel which uses a DataView with a
  SortableDataProvider and some orderByLinks, I also created a panel
 for
  viewing the available categories which controls the data the
 DataView
  is
  working on.
 
  Everything works fine going forwards, I'm running into problems with
  the
  back button. If I click on any of the links in these panels, then
 click
  the
  back button, then try and click another link I get a 'page expired'
  error
  page.
 
  Do I need to addStateChange on one of my components? If so which
 one,
 I
  can't find much info about Change and how it is meant to be used.
 
  If this is a simple problem and someone can answer my question
 easily
  then I
  will be very happy :) I have had a look through the forums but I
  couldn't
  find anything that helped me, it is possible of course that I was
 using
  the
  wrong terms. If there is not enough information here then let me
 know
  and
  I
  will write a test case and post that.
 
  Cheers very much
  Alex
 
 
  -
  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/Back-button-%2B-dataview-problem-tp21348923p21354606.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/Back-button-%2B-dataview-problem-tp21348923p21469340.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: Back button + dataview problem

2009-01-14 Thread Jeremy Thomerson
Don't send the code for your DAO, send the code where you declare the DAO as
a property of a model or component.  Also - do you anywhere in that
component manually assign the DAO by accident?

For example:

MyComponent extends WebMarkupContainer {

@Inject
private CategoryDAO mCategoryDao;

}

On Wed, Jan 14, 2009 at 7:34 PM, quizzical quixop...@gmail.com wrote:


 Right, sorry its been a while, I had some horrible issues getting tomcat
 working properly but I've managed to deploy the project on Tomcat. My
 logging setup isn't working perfectly but I'm seeing the same issues with
 the back button and a few NotSerializableException lines in tomcat.log.

 The CategoryDAO definition is quite long, is there anything in particular
 you wanted to see or shall I just post the whole class?

 Cheers
 Alex


 Jeremy Thomerson-5 wrote:
 
  Right - don't make your DAO serializable - the proxy thing should work.
  Like Igor said, try a different container (run it up in Jetty with the
  quickstart if you can - that should be quick and easy).
 
  Let us know the results.  If it still happens, let us see the code where
  you
  define the category dao.
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
  On Thu, Jan 8, 2009 at 9:58 AM, quizzical quixop...@gmail.com wrote:
 
 
  But if I have understood the docs
  http://cwiki.apache.org/WICKET/spring.html
  here  on the spring - annot project then categoryDao should be injected
  with
  a serializable proxy which can get a categoryDao from spring when needed
  and
  drop it when serialized.
 
 
 
  Serkan Camurcuoglu-3 wrote:
  
   so categoryDao implements java.io.Serializable but it cannot be
   serialized?
  
  
   quizzical wrote:
   Thanks, that seems to be the problem, I'm getting
   NotSerializableException,
   the offending objects are injected using @SpringBean, which I thought
   injected a proxy. I've read the docs online for spring-annot and I
  can't
   see
   why this should be happening.
  
   I'm running glassfish and the log has this to say about the error:
  
   'Cannot serialize session attribute categoryDao for session'
  
   Where categoryDao is the injected variable.
  
   Any idea what I'm doing wrong?
   Cheers
  
  
  
   Serkan Camurcuoglu-3 wrote:
  
   did you check your logs, if you are getting
 NotSerializableExceptions
  in
   the background you may get page expired errors with back button..
  
  
   quizzical wrote:
  
   Hi everyone,
  
   I'm in the process of writing an example ecommerce app to get to
  know
   wicket
   and am really enjoying the experience.. At the moment I'm working
 on
  a
   page
   which allows you to browse through a list of items in a database.
  
   For the list of items I created a panel which uses a DataView with
 a
   SortableDataProvider and some orderByLinks, I also created a panel
  for
   viewing the available categories which controls the data the
  DataView
   is
   working on.
  
   Everything works fine going forwards, I'm running into problems
 with
   the
   back button. If I click on any of the links in these panels, then
  click
   the
   back button, then try and click another link I get a 'page expired'
   error
   page.
  
   Do I need to addStateChange on one of my components? If so which
  one,
  I
   can't find much info about Change and how it is meant to be used.
  
   If this is a simple problem and someone can answer my question
  easily
   then I
   will be very happy :) I have had a look through the forums but I
   couldn't
   find anything that helped me, it is possible of course that I was
  using
   the
   wrong terms. If there is not enough information here then let me
  know
   and
   I
   will write a test case and post that.
  
   Cheers very much
   Alex
  
  
  
 -
   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/Back-button-%2B-dataview-problem-tp21348923p21354606.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/Back-button-%2B-dataview-problem-tp21348923p21469340.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




-- 
Jeremy 

Re: Component with id [[feedback]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.

2009-01-14 Thread Timo Rantalaiho
On Mon, 08 Dec 2008, James Carman wrote:
 I believe you also have to make sure you call setOutputMarkupId(true)
 so that you make sure wicket spits out the markup id (so that it can
 select it as part of the Ajax update).

setOutputMarkupPlaceholderTag(true) already does that (see its
implementation).


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



wicket-datetime DateField generates 2 textfields problem

2009-01-14 Thread Phillip Rhodes

This is my first full day with wicket, so please bear with me.

I am trying to use the DateField to manage a java.util.Date.  My  
problem is that the datafield outputs an extra textfield in my form.   
The picker does work and does set the date value for the 2nd textarea,  
but there is still the extra (first) textfield that does not serve a  
purpose.


I am using wicket 1.3.5 and wicket-datetime 1.3.5

 I have included java snippet/template snippet and the what wicket  
generated.

Thanks, hope for good things to come.


DateField startDateField = new DateField(dateRange.startDate2);
form.add(startDateField);


tr
	tdwicket:message key=startDate[start date]/wicket:message/ 
tdtd

input type=text wicket:id=dateRange.startDate2/

/td
/tr


tr
	tdwicket:message key=startDate[start date]/wicket:message/ 
tdtd
		input type=text wicket:id=dateRange.startDate2  
name=dateRange.startDate2wicket:panel

  span style=white-space: nowrap;
input value= type=text wicket:id=date size=8  
name=dateRange.startDate2:date id=date21/


span class=yui-skin-samnbsp;span  
style=display:none;position:absolute;z-index: 9; id=date21Dp/ 
spanimg style=cursor: pointer; border: none; id=date21Icon  
src=resources/org.apache.wicket.extensions.yui.calendar.DatePicker/ 
icon1.gif alt=//span

  /span
/wicket:panel/input

/td
/tr


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



Re: wicket-datetime DateField generates 2 textfields problem

2009-01-14 Thread Igor Vaynberg
datefield should be attached to a span or a wicket:container tag
rather then an input tag.

so span wicket:id=datefield/span

-igor

On Wed, Jan 14, 2009 at 8:46 PM, Phillip Rhodes
spamsu...@rhoderunner.com wrote:
 This is my first full day with wicket, so please bear with me.

 I am trying to use the DateField to manage a java.util.Date.  My problem is
 that the datafield outputs an extra textfield in my form.  The picker does
 work and does set the date value for the 2nd textarea, but there is still
 the extra (first) textfield that does not serve a purpose.

 I am using wicket 1.3.5 and wicket-datetime 1.3.5

  I have included java snippet/template snippet and the what wicket
 generated.
 Thanks, hope for good things to come.


 DateField startDateField = new DateField(dateRange.startDate2);
 form.add(startDateField);


 tr
tdwicket:message key=startDate[start
 date]/wicket:message/tdtd
input type=text wicket:id=dateRange.startDate2/

 /td
 /tr


 tr
tdwicket:message key=startDate[start
 date]/wicket:message/tdtd
input type=text wicket:id=dateRange.startDate2
 name=dateRange.startDate2wicket:panel
  span style=white-space: nowrap;
input value= type=text wicket:id=date size=8
 name=dateRange.startDate2:date id=date21/

 span class=yui-skin-samnbsp;span
 style=display:none;position:absolute;z-index: 9;
 id=date21Dp/spanimg style=cursor: pointer; border: none;
 id=date21Icon
 src=resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
 alt=//span
  /span
 /wicket:panel/input

 /td
 /tr


 -
 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: Wicket tree

2009-01-14 Thread PSkarthic

I have a new problem in inserting/adding nodes dynamically to tree.

When i inserted/added a node on click, the plus icon appears but it is not
expanded, that is it is not showing the child node i have tried tree.update
but not worked.

My Code
protected void onNodeLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget
target,
javax.swing.tree.TreeNode node){

MyTreeNode nd = (MyTreeNode)node;
//nd.add(new DefaultMutableTreeNode(sample));
System.out.println(node + Ajax Clicked);
nd.insert(new MyTreeNode(node + child), 0);

//this.modelChanged();
//this.nodeExpanded(node);
this.updateTree();


}

Why it is happening like.



Thanks
Karthic
-- 
View this message in context: 
http://www.nabble.com/Wicket-tree-tp21410500p21472531.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