Re: Problem with Crypted URL

2008-11-24 Thread francisco treacy
i updated to rc1 i'm still getting stacktraces in logs with
CryptedUrlWebRequestCodingStrategy


ERROR 2008-11-23 13:52:17,964 [http-8080-Processor25] Invalid URL:
?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA
org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
'??G?K???^D?O???^G^W!^E??I?^C$'Dc5^N8^P^L'
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
at org.apache.wicket.Request.getRequestParameters(Request.java:172)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
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)
Caused by: javax.crypto.BadPaddingException: Given final block not
properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA13*..)
at 
com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:141)
... 27 more
ERROR 2008-11-23 13:52:17,966 [http-8080-Processor25] Invalid URL
Invalid URL
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:279)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:286)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:265)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
at org.apache.wicket.Request.getRequestParameters(Request.java:172)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)


could it be a bug?

 ?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA  doesn't
seem to be modified be someone else than 

Re: Problem with Crypted URL

2008-11-24 Thread francisco treacy
johan, i'm not sure i understand correctly.

you mean that it should have been in 1.4-rc1 but it is not?  so i
could expect this to be fixed in 1.4-rc2 or 1.4 final?

francisco

On Mon, Nov 24, 2008 at 5:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 hmm weird, wasnt merged yet with 4.1
 thought i did that with the big merge.

 On Mon, Nov 24, 2008 at 10:57 AM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 i updated to rc1 i'm still getting stacktraces in logs with
 CryptedUrlWebRequestCodingStrategy


 ERROR 2008-11-23 13:52:17,964 [http-8080-Processor25] Invalid URL:
 ?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA
 org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
 '??G?K???^D?O???^G^W!^E??I?^C$'Dc5^N8^P^L'
 at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
 at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
 at org.apache.wicket.Request.getRequestParameters(Request.java:172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
 org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
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)
 Caused by: javax.crypto.BadPaddingException: Given final block not
 properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA13*..)
at
 com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at
 org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:141)
... 27 more
 ERROR 2008-11-23 13:52:17,966 [http-8080-Processor25] Invalid URL
 Invalid URL
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:279)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:286)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:265)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
 at org.apache.wicket.Request.getRequestParameters(Request.java:172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request

Re: Problem with Crypted URL

2008-11-28 Thread francisco treacy
yup, i suppose this happens when sessions expire. we've been having an
increasing number of visitors and logs are really hard to read when
you try to find an (important) exception.

so i guess i'm still up for the fix :)

francisco

On Fri, Nov 28, 2008 at 6:35 PM, Marcus Mattila
[EMAIL PROTECTED] wrote:
 We are also getting this when sessions expire. No big deal but would
 still like a fix. Will it be fixed in the 1.3.x branch also? Pls make
 it :)

 br,
 Marcus


 On Mon, Nov 24, 2008 at 7:30 PM, francisco treacy
 [EMAIL PROTECTED] wrote:
 johan, i'm not sure i understand correctly.

 you mean that it should have been in 1.4-rc1 but it is not?  so i
 could expect this to be fixed in 1.4-rc2 or 1.4 final?

 francisco

 On Mon, Nov 24, 2008 at 5:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 hmm weird, wasnt merged yet with 4.1
 thought i did that with the big merge.

 On Mon, Nov 24, 2008 at 10:57 AM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 i updated to rc1 i'm still getting stacktraces in logs with
 CryptedUrlWebRequestCodingStrategy


 ERROR 2008-11-23 13:52:17,964 [http-8080-Processor25] Invalid URL:
 ?x=5M5HhZnN1b1LpMPMBO5Pmr*YBxchBZCmSdUDJCdEYzUOOBDF1Zr0DA
 org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
 '??G?K???^D?O???^G^W!^E??I?^C$'Dc5^N8^P^L'
 at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
 at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:99)
 at org.apache.wicket.Request.getRequestParameters(Request.java:172)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
 org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
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)
 Caused by: javax.crypto.BadPaddingException: Given final block not
 properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA13*..)
at
 com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at
 org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:141)
... 27 more
 ERROR 2008-11-23 13:52:17,966 [http-8080-Processor25] Invalid URL
 Invalid URL
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:279)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.onError(CryptedUrlWebRequestCodingStrategy.java:286

Re: wicketstuff-core migration guide on wiki

2008-11-28 Thread francisco treacy
great work jeremy!

this cleanup was much needed, and the side effects are neat too!

francisco


On Fri, Nov 28, 2008 at 8:52 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 I have created a guide to migrating your project under the new
 wicketstuff-core parent project.  If you own a WS project, you should
 consider doing this as soon as possible so that your project will be
 included in the 1.4 release (and even earlier in the RC2 release) when
 Wicket releases the same - we will be releasing all projects under
 wicketstuff-core in sync with Wicket's release.

 *
 http://wicketstuff.org/confluence/display/STUFFWIKI/WicketStuff+Core+-+Migration+Guide
 *http://wicketstuff.org/confluence/display/STUFFWIKI/NEW+-+WicketStuff+Core+-+Migration+Guide

 Let me know if you see any additions that need to be made.
 PS - One really nice thing about restructuring everything to follow
 conventions is that we will be able to utilize maven plugins such as the
 site plugin.  Here's an example of a current site generated for all the
 wicketstuff-core projects:
 http://www.wickettraining.com/wicketstuff-core/

 Here's a link for the build server building wicketstuff-core:
 http://www.wickettraining.com/continuum/projectGroupSummary.action?projectGroupId=12

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


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



Re: avoid ajax response evaluate javascript

2008-12-04 Thread francisco treacy
i've been using the aforementioned toggle behavior almost always in
ajaxy pages, and in that case they work fine.

basically that means i add toggle behaviors to components in a page.
when i call an ajax link, toggle works ok  because the isTemporary()
method of the behavior returns *true* (otherwise it would attach the
toggle effect contribution to the header-contribution part of the
response and it would blow things up - i.e. triggering more than once
a certain toggle effect).

however, i now started using that in pages that use normal links (not
ajax). so when i get the (non ajax) response for the linked page, as
the behavior is temporary, it won't contribute to the header anymore.
thus breaking the effect.

say page1 links to page1b [a new version of page1] when i diff page1
page1b  i roughly get this:

24,28d23
 script type=text/javascript
src=resources/myapp.wicket.components.jquery.JQueryEffectCoreResourceReference/jquery-1.2.6.effects.core.js/script
 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
$('#optionalInfoLink58').click(function() {
$('#OptionalInfoArea59').slideToggle(450); }) ;});
 /*--]]*//script

i.e. the toggle effect won't work in page1b because function() {
$('#optionalInfoLink58').click(function() {
$('#OptionalInfoArea59').slideToggle(450); }) ;} is not present in
that page at all. note this doesn't pose a problem if i refresh
certain components via ajax because the original page still contains
this javascript listener in the header.

my question: is there a way to tell inside isTemporary() whether the
request was ajax or normal, to return true or false according to that?
other suggestions?

francisco


On Thu, Nov 6, 2008 at 2:45 PM, francisco treacy
[EMAIL PROTECTED] wrote:
 It did.. You could try the isTemporary (return true) on the behavior, it

 thanks nino... that *is* the solution, works like a charm

 my mistake for not paying attention to the last bits of the javadoc
 ibehavior page :)

 boolean isTemporary()

Specifies whether or not this behavior is temporary. Temporary
 behaviors are removed at the end of request. Such behaviors are useful
 for modifying component rendering only when it renders next. Usecases
 include javascript effects, initial clientside dom setup, etc. 

 ... couldn't be more clear...

 cheers,

 francisco

 On Thu, Nov 6, 2008 at 2:22 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
 Hi Francisco

 It did.. You could try the isTemporary (return true) on the behavior, it
 could mean that it will only add the behavior for that request, but I am not
 sure.. Or you could try creating a new markupcontainer
 (listOfCommentsContainer), it'll give it a new id..

 Or you could stuff in some logic as a ajaxcalldecorator on your link, that
 will clean it up in pure js...

 I had some difficulties with exactly this when I did the wicket reaction
 game.

 I hope this helpes..

 francisco treacy wrote:

 want to not output the list with wicket's ordinary ajax replace method?


 hmmm... wicket's ordinary ajax replace method?

 the basic problem here is:
 -when the page is first rendered, the following is added to the dom
 (it's the behaviour responsible for this):

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 -when i click on the trigger link (numberOfCommentsLink24) i fire an
 ajax request, and add a webmarkupcontainer (listOfCommentsContainer25)
 i want to refresh:

 target.addComponent(listOfCommentsContainer);

 -the ajax response is: *not only* the updated
 listOfCommentsContainer25, but *also* an evaluate section in the
 ajax response, that includes:

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 (of course, because the behaviour has been added to the
 listOfCommentsContainer).


 -... that means, i now have loaded in the dom *twice* :

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 so with *one* click on the numberOfCommentsLink24 , i get *two* calls
 to  $('#listOfCommentsContainer25').slideToggle(450);

 which basically slides up, and immediately down. that is, slide toggle
 means it goes up (hides) if it was down (visible), it goes down
 (shows) if it was up (hidden).

 i want to avoid this behaviour by stopping the ajax response from
 spitting back the javascript code for a second time. perhaps do
 something inside the behaviour class?

 hope it clarifies! thanks,

 francisco



 On Thu, Nov 6, 2008 at 1:53 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 Im not sure I understand then..? Could you explain another way? You would
 want to not output the list with wicket's ordinary ajax replace method?

 francisco treacy wrote:


 yes, i'm aware of those. but i'd want to 'remove' things from the
 ajaxRequestTarget rather than append...

 or, some way of attaching/executing behaviours only

Re: avoid ajax response evaluate javascript

2008-12-04 Thread francisco treacy
thanks for the hint, martin.

ServletWebRequest request = (ServletWebRequest) RequestCycle.get().getRequest();

if (!request.isAjax()) {
response.renderJavascriptReference(new 
JQueryEffectCoreResourceReference());
(...)
}

in renderHead() seems to do the trick.

francisco


On Thu, Dec 4, 2008 at 12:56 PM, Martin Makundi
[EMAIL PROTECTED] wrote:
 There is ServletWebRequest.isAjax

 **
 Martin

 2008/12/4 francisco treacy [EMAIL PROTECTED]:
 i've been using the aforementioned toggle behavior almost always in
 ajaxy pages, and in that case they work fine.

 basically that means i add toggle behaviors to components in a page.
 when i call an ajax link, toggle works ok  because the isTemporary()
 method of the behavior returns *true* (otherwise it would attach the
 toggle effect contribution to the header-contribution part of the
 response and it would blow things up - i.e. triggering more than once
 a certain toggle effect).

 however, i now started using that in pages that use normal links (not
 ajax). so when i get the (non ajax) response for the linked page, as
 the behavior is temporary, it won't contribute to the header anymore.
 thus breaking the effect.

 say page1 links to page1b [a new version of page1] when i diff page1
 page1b  i roughly get this:

 24,28d23
  script type=text/javascript
 src=resources/myapp.wicket.components.jquery.JQueryEffectCoreResourceReference/jquery-1.2.6.effects.core.js/script
  script type=text/javascript !--/*--![CDATA[/*!--*/
  Wicket.Event.add(window, domready, function() {
 $('#optionalInfoLink58').click(function() {
 $('#OptionalInfoArea59').slideToggle(450); }) ;});
  /*--]]*//script

 i.e. the toggle effect won't work in page1b because function() {
 $('#optionalInfoLink58').click(function() {
 $('#OptionalInfoArea59').slideToggle(450); }) ;} is not present in
 that page at all. note this doesn't pose a problem if i refresh
 certain components via ajax because the original page still contains
 this javascript listener in the header.

 my question: is there a way to tell inside isTemporary() whether the
 request was ajax or normal, to return true or false according to that?
 other suggestions?

 francisco


 On Thu, Nov 6, 2008 at 2:45 PM, francisco treacy
 [EMAIL PROTECTED] wrote:
 It did.. You could try the isTemporary (return true) on the behavior, it

 thanks nino... that *is* the solution, works like a charm

 my mistake for not paying attention to the last bits of the javadoc
 ibehavior page :)

 boolean isTemporary()

Specifies whether or not this behavior is temporary. Temporary
 behaviors are removed at the end of request. Such behaviors are useful
 for modifying component rendering only when it renders next. Usecases
 include javascript effects, initial clientside dom setup, etc. 

 ... couldn't be more clear...

 cheers,

 francisco

 On Thu, Nov 6, 2008 at 2:22 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
 Hi Francisco

 It did.. You could try the isTemporary (return true) on the behavior, it
 could mean that it will only add the behavior for that request, but I am 
 not
 sure.. Or you could try creating a new markupcontainer
 (listOfCommentsContainer), it'll give it a new id..

 Or you could stuff in some logic as a ajaxcalldecorator on your link, that
 will clean it up in pure js...

 I had some difficulties with exactly this when I did the wicket reaction
 game.

 I hope this helpes..

 francisco treacy wrote:

 want to not output the list with wicket's ordinary ajax replace method?


 hmmm... wicket's ordinary ajax replace method?

 the basic problem here is:
 -when the page is first rendered, the following is added to the dom
 (it's the behaviour responsible for this):

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 -when i click on the trigger link (numberOfCommentsLink24) i fire an
 ajax request, and add a webmarkupcontainer (listOfCommentsContainer25)
 i want to refresh:

 target.addComponent(listOfCommentsContainer);

 -the ajax response is: *not only* the updated
 listOfCommentsContainer25, but *also* an evaluate section in the
 ajax response, that includes:

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 (of course, because the behaviour has been added to the
 listOfCommentsContainer).


 -... that means, i now have loaded in the dom *twice* :

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 so with *one* click on the numberOfCommentsLink24 , i get *two* calls
 to  $('#listOfCommentsContainer25').slideToggle(450);

 which basically slides up, and immediately down. that is, slide toggle
 means it goes up (hides) if it was down (visible), it goes down
 (shows) if it was up (hidden).

 i want to avoid this behaviour by stopping the ajax response from
 spitting back the javascript code for a second time. perhaps do

Re: [OT] wicket users around the world

2008-12-12 Thread francisco treacy
wow we're three argentinians in the list so far... pretty high in the ranking :)

anyway, thanks for getting back - pretty interesting feedback (btw,
all continents represented but asia!). we should all leave our mark on
http://www.frappr.com/wicket

francisco


On Fri, Dec 12, 2008 at 4:18 PM, Wadi Jalil Maluf wad...@yahoo.com.ar wrote:
 Argentinians working on wicket and mobile apps integration
 Wadi

 -Mensaje original-
 De: Nino Saturnino Martinez Vazquez Wael [mailto:nino.marti...@jayway.dk]
 Enviado el: viernes, 12 de diciembre de 2008 5:48
 Para: users@wicket.apache.org
 Asunto: Re: [OT] wicket users around the world

 Work in Denmark pimping wicket at every opportunity i get, lived all my
 life in Denmark, so half from Denmark and half from Spain :)

 francisco treacy wrote:
 to know a little bit more of our great (and vast) community, i was
 just wondering if you're keen on sharing where you come from and/or
 where you work with wicket...

 for instance, here argentinian/belgian working with wicket in antibes,
 france

 francisco

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



 --
 -Wicket for love

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


 -
 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 3686 (20081212) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 3686 (20081212) __

 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



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



Re: [OT] wicket users around the world

2008-12-12 Thread francisco treacy
of course it is not necessary, it's just a bit of fresh air in a
technical mailing list. not a deal for me at all, because i'm using
gmail that groups mails in a conversation.

anyhow, fair point. we may now want to switch to frappr to express all
this information...

francisco


On Fri, Dec 12, 2008 at 5:52 PM, Thies Edeling th...@rrm.net wrote:
 Although it is quite interesting to see where everyone comes from, is this
 thread really necessary on an already busy mailing list ?

 francisco treacy wrote:

 to know a little bit more of our great (and vast) community, i was
 just wondering if you're keen on sharing where you come from and/or
 where you work with wicket...

 for instance, here argentinian/belgian working with wicket in antibes,
 france

 francisco

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




 -
 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: CryptedUrlWebRequestCodingStrategy/Session invalidate with Wicket 1.3.5

2008-12-12 Thread francisco treacy
have a look and see if Problem with Crypted URL thread helps.

francisco

On Fri, Dec 12, 2008 at 12:12 AM, Timm Helbig
timm.hel...@th-hosting.net wrote:
 Hello everyone,

 For logout from the Application I use the following Code.

getSession().invalidate();
setResponsePage(LoginPage.class);
getRequestCycle().setRedirect(true);

 When using CryptedUrlWebRequestCodingStrategy the above will not work and runs
 into a RuntimeException (WicketMessage: Invalid URL Root cause: Invalid URL).

 The Log says:

org.apache.wicket.WicketRuntimeException: Unable to decrypt the text 
 'garbled
 text here'
 at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at
 org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:250)
at
 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
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)
 ... many more.

 This worked fine with any Wicket 1.3.x release, but not 1.3.5.

 Did I missed a change here?

 Regards,
 Timm

 -
 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



wickethub.org

2008-12-13 Thread francisco treacy
i came up with an idea during the last weeks, having some trouble
finding wicket resources.

although we have wicketstuff (which is great, and even more now with
jeremy's awesome job of reorganizing it)  i feel there are still lots
of components, plugins or tools that are lost in cyberspace. thought
it would be neat to keep a sort of registry with useful information
for wicket developers.

so i decided to quickly put some bits together from an old project and
rebaptised it as the wicket hub - a simple prototype @
http://wickethub.org.
it's meant to be flexible, so except for the title there are no
required fields when you add/edit a module. there are already some
examples.

let me know what you think about features, its relation with
wicketstuff and if it's usable, etc. or even if the whole thing makes
no sense - any suggestions appreciated.

francisco

ps: goes without saying, but [disclaimer: it's completely
experimental] and be aware the place it's hosted is more like a
shoebox than a server :)

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



Re: wickethub.org

2008-12-15 Thread francisco treacy
thanks daniel for the input.

wickethub ideally could also be used to keep track of abandoned
projects, so i might add a date of last activity -something like that-
if it makes sense.

how many times you don't really know where you're standing with a
wicket integration with [put sth here] (code quality, updates,
compatibility and so on) ?

anyway, before adding features and fixing stuff  i'd like to make sure
people are interested.

francisco


On Sun, Dec 14, 2008 at 1:42 PM, dtoffe dto...@yahoo.com.ar wrote:

I like your idea, there are many wicket related projects in sourceforge
 and googlecode, some are empty but some are very interesting. Added three
 links.
Please check the Topics field, I cannot modify a value and have the old
 values erased, they keep appearing and acumulating with the new values.

 Cheers,

 Daniel


 francisco treacy-2 wrote:

 i came up with an idea during the last weeks, having some trouble
 finding wicket resources.

 although we have wicketstuff (which is great, and even more now with
 jeremy's awesome job of reorganizing it)  i feel there are still lots
 of components, plugins or tools that are lost in cyberspace. thought
 it would be neat to keep a sort of registry with useful information
 for wicket developers.

 so i decided to quickly put some bits together from an old project and
 rebaptised it as the wicket hub - a simple prototype @
 http://wickethub.org.
 it's meant to be flexible, so except for the title there are no
 required fields when you add/edit a module. there are already some
 examples.

 let me know what you think about features, its relation with
 wicketstuff and if it's usable, etc. or even if the whole thing makes
 no sense - any suggestions appreciated.

 francisco

 ps: goes without saying, but [disclaimer: it's completely
 experimental] and be aware the place it's hosted is more like a
 shoebox than a server :)

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




 --
 View this message in context: 
 http://www.nabble.com/wickethub.org-tp20995774p2059.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: Autocomplete text concatenation

2008-12-15 Thread francisco treacy
if i understand correctly you need a multi autocompleter.

do you mean something like this?
http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/
(i have integrated it with wicket, it's indeed used when you edit
topics of a module in wickethub).

francisco


On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight graeme1...@gmail.com wrote:

 Hi.

 Couldn't find an answer but perhaps this is a common thing to want to do:

 Using an AutoCompleteTextField I want to allow the user to select choices as
 he types, then update the text area by appending the selected choice.
 Similar to the way a web mail application would allow a user to type email
 address after email address and see them appended to the text field.

 Is there an easy way to achieve this?

 Many thanks, Graeme.
 --
 View this message in context: 
 http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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: wickethub.org

2008-12-16 Thread francisco treacy
we could cover automatic updates of 'compliant' maven artifacts - and
the rest (non-compliant, svn source code, snippets) maintained
manually.

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

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

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

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

francisco




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


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


 francisco treacy-2 wrote:

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

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

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

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

 francisco


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



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


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

 Maarten




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

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


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




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




 --
 View this message in context: 
 http://www.nabble.com/wickethub.org-tp20995774p21035901.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: newbie help with JavascriptUtils

2008-12-16 Thread francisco treacy
your page should implement IHeaderContributor

or attach a behaviour to your components.

for instance (first snippet i found out there):

private static class MyJSBehavior extends AbstractBehavior {
   private static final long serialVersionUID = 1L;
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderOnDomReadyJavascript(alert('test'););
   }
   }


this is widely documented so you should be able to find better
examples, but that's the way to go

francisco


On Tue, Dec 16, 2008 at 8:51 PM, Marvan Spagnolo marv...@gmail.com wrote:
 Hi,
 I'm trying to write some javascript in a page's markup (subclass of another
 page using wicket:child/wicket:extend mechanism)
 via JavascriptUtils.writeJavascript().

 The fact is it doesn't do anything at all nor I can't find anything related
 in the stack trace (the page displays well with no exceptions nor problems
 at all),
 the expected javascript is simply not in the generated markup.
 Before calling JavascriptUtils I add a form to the page (which works
 normally as expected).

 The actual code looks like:

 ---
 public class MyPage extends MyBasePage
 {
 public MyPage()
 {
 add( new MyForm( formid ));
 String js = ... javascript code here ...;
 JavascriptUtils.writeJavascript( getResponse(), js);
 }
 }
 ---

 Can anyone please help ? Should I maybe use something else instead of
 getResponse() ?
 I expected that the javascript would have been written before the
 /wicket:extend closing tag, or wherever but it's not in the markup at all.
 I'm using wicket 1.3.5 on tomcat 6 and jdk 1.6.

 Reza Marvan Spagnolo


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



Re: When to pass object instance /class type?

2008-12-17 Thread francisco treacy
have a look at http://cwiki.apache.org/WICKET/bookmarkable-pages-and-links.html
, it could help you understand the difference.

francisco


On Sun, Dec 14, 2008 at 9:58 AM, HHB hubaghd...@yahoo.ca wrote:

 Hey,
 What is the difference between:
 setResponsePage(CoolPage.class)
 and
 setResponsePage(new CoolPage())
 ?
 When to use each one?
 Thanks.

 --
 View this message in context: 
 http://www.nabble.com/When-to-pass-object-instance--class-type--tp20998410p20998410.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: wickethub.org

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

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

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

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

francisco


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

 Martijn

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

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

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

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

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

 francisco




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


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


 francisco treacy-2 wrote:

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

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

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

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

 francisco


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



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


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

 Maarten




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

 --
 View

Re: Wicket stuff core, archetypes?

2008-12-20 Thread francisco treacy
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



Re: where to find SpringComponentInjector class

2009-01-07 Thread francisco treacy
download wicket from
http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1 , open the archive
and include the wicket-spring-* jar(s) in your classpath

francisco

On Tue, Jan 6, 2009 at 8:37 PM, rjilani jil...@lifebiosystems.com wrote:

 Hi: can some one tell me which jars holds the class SpringComponentInjector.
 It doesn't look like the part of the core (I am using netbeans id that has
 pre-installed wicket jars). I also appreciate if some one tell me the url
 from where I can download the jar containing SpringComponentInjector.

 Thanks,
 RJ.
 --
 View this message in context: 
 http://www.nabble.com/where-to-find-SpringComponentInjector-class-tp21317448p21317448.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



URL fragment has unmatched key/value pairs

2009-01-07 Thread francisco treacy
hi all,

i'm constantly seeing stuff like:

WARN  2009-01-03 19:48:06,203 [http-8080-14] URL fragment has
unmatched key/value pairs, responding with 404. Fragment:
aide-et-services

in my logs, and don't have a clue where that comes from.

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

so certainly someone is playing around with urls.  i tried to
reproduce this unsuccessfully - does somebody know what url generates
this warning?

thanks,

francisco

-
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: 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-15 Thread francisco treacy
wasn't this someone martijn?

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

i replied 

martijn, banning policies are issued by repository owners. i don't
know which repo you're referring to as the maven repository.
central? apache?

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

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

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

francisco


On Wed, Jan 14, 2009 at 11:40 PM, Jonathan Locke
jonathan.lo...@gmail.com wrote:


 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



-
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-17 Thread francisco treacy
i don't completely agree:

- to be searched by nexus, repo needs to be nexus-aware: i.e.
nexus-maven-repository-index.properties and
nexus-maven-repository-index.zip files need to be deployed to the
/.index folder at maven repository root.

we are mainly talking about wicketstuff projects currently hosted in a
non-indexed (nothing at
http://wicketstuff.org/maven/repository/.index/) community-owned repo.
as far as i know, there are no wicket components in maven central
repo.
 i insist, so long as wicketstuff is *our repo* we can do whatever we
want with it. we can decide *not to ban* wickethub's crawler (our
crawler). we still can use nexus though, but we're not forced to do so

- moreover, no specific metadata indexed:

Nexus indexer component provides an API to index Maven repository,
merge and download index updates. It also provides an API to search
through registered indexes using various search criteria, including:

* Browse through repository indexes
* Search jars by artifactId and groupId
* Search jars by the packaging type (e.g. to find Maven plugins or
Archetypes)
* Search jars by sha1 (e.g. to identify arbitrary jars with actual
Maven artifacts)
* Search Maven artifacts/jar by class name (e.g. resolve classpath
issues from build errors or class not found exceptions)

...knowing that we need to index specific metadata
(http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata).
by the way, i wouldn't store metadata under META-INF inside the jar; i
would rather include it in the pom file.

let's put an example, let's say we need to display up-to-date url of
screenshots (or examples or whatever)

Screenshots=http://mycomponents.com/slider/screenshots/1.jpg,http://mycomponents.com/slider/screenshots/2.jpg,...

wickethub will somehow need to know about those urls. how could it
grab that out of nexus? i had a look at their lucene api and i'm not
aware of the aforementioned scenario being possible.

wickethub's crawler is a custom solution. it has to be smarter in that
regard - to be able to keep synchronized custom data *we* (but not
everybody) will be using in maven artifacts.

francisco



On Thu, Jan 15, 2009 at 5:37 PM, Jonathan Locke
jonathan.lo...@gmail.com wrote:


 cool. this definitely looks like the right approach to me (assuming it
 indexes most of the big repos)

   jon


 Rodolfo Hansen wrote:

 Yes, you should use the nexus index for the repository
 http://nexus.sonatype.org/

 The indexer api is pretty straight forward:
 http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample

 you could search for artifacts with the appropriate metadata, or search
 inside the jars for some specific file / class (I think)

 On Thu, Jan 15, 2009 at 5:00 AM, francisco treacy 
 francisco.tre...@gmail.com wrote:

 wasn't this someone martijn?

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

 i replied 

 martijn, banning policies are issued by repository owners. i don't
 know which repo you're referring to as the maven repository.
 central? apache?

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

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

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

 francisco


 On Wed, Jan 14, 2009 at 11:40 PM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:
 
 
  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

Re: wickethub.org

2009-01-17 Thread francisco treacy
[update]

i have open sourced the wickethub project, an ongoing effort to keep
track of wicket goodies (snippets, plugins, components -- which are
not all necessarily hosted at wicketstuff).

http://code.google.com/p/wickethub/

first version needs to be polished. top features to develop are:

 * 
http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/ECA681FB-4B9C-4C27-9947-C9901F99E154.html
 (discussion in this thread and
http://www.nabble.com/Wicket-stuff-core%2C-archetypes--td21102842.html)
 * better support for labeling / tagging 'modules'
 * pastebin for snippets
 * full smart lucene search for metadata and content

i'm also keen on design/usability tips (should we call them modules?).
there might be some downtime as i'm moving the webapp to a new server.

if you want to contribute, let me know.

francisco




On Thu, Dec 18, 2008 at 1:54 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 martijn, banning policies are issued by repository owners. i don't
 know which repo you're referring to as the maven repository.
 central? apache?

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

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

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

 francisco


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

 Martijn

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

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

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

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

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

 francisco




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


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


 francisco treacy-2 wrote:

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

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

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

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

 francisco


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



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


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

 Maarten




 Jonathan Locke wrote:
 
 
  this is cool, although i still think this should be auto-updated
 through
 a
  maven registry crawler. if everyone put the right meta information in
  their wicket jars, this resource registry would be entirely automatic,
  always fresh, running demos, etc...
 
 
  francisco treacy-2 wrote:
 
  i came up with an idea during the last weeks, having some trouble
  finding wicket resources.
 
  although we have wicketstuff (which is great, and even more now with
  jeremy's awesome job of reorganizing it)  i feel there are still lots
  of components, plugins or tools that are lost in cyberspace. thought
  it would be neat to keep a sort

Re: Wicket stuff core, archetypes?

2009-01-17 Thread francisco treacy
 you're certainly free to go in whatever direction you want,

to be clear, i fully agree on the decentralized model for:
- people and the development of this app, and data contributed by
wicket users: this should be as democratic as possible
- artifacts / components:

 there may someday be wicket
 components in central or elsewhere, even outside maven repos (downloadable 
 via HTTP
 like matej's inmethod stuff was for a while)

we should support any mavenized or non-mavenized artifacts, wherever
those may live - you're right there (however i thought you said before
you were interested at present only by components delivered by maven).

 parsing the metadata would be done after you download the artifact that you
 found.

okay, fair enough. i have some doubts though:

1. in this scenario, downloading every artifact on earth just to open
it and see if there's some wicket info inside is... impossible.

2.
 you just need to find the artifact with nexus.

in your original blog post you say Basically, I'd like to see us
crawl maven repos looking for JAR'ed Wicket components with a
particular set of meta-data
i don't see how nexus can help there. let's put another example:

i create a mootools integration component, i mavenize it with package
name com.mymootools.wicket and publish it in central repo.  how does
nexus help in finding that, if it doesn't know anything about
META-INF/*.xml?

... *unless* you're planning people to submit their jar urls to
wickethub. that would be a whole other story. but then again, nexus
would be useless as we will already have the urls to components (no
need to crawl or search - only to download the jar, open it up and
update metadata in wickethub)

for screenshots and the internal structure of the xml file, we shall
see later, but i generally agree with you

francisco


 parsing the metadata would be done after you download the artifact that you
 found.
 at that point you can do anything with it, including extracting URLs or even
 embedded
 images (might be a nice option for screenshots).

 putting jar metadata in META-INF is much more appropriate in my mind because
 it's
 not maven-specific. the idea of a wicket component is not a maven-centric
 idea and
 a maven repository is just one way to publish a component. there are
 certainly going
 to be others.

 i do think that it might be a good idea to make the component metadata a
 separate
 xml file in a subfolder of META-INF instead of putting that info directly in
 the existing
 jar properties file.  this is a lot more extensible and would allow multiple
 components
 in a single jar and would also uniquely identify a wicket component and be
 quite
 searchable with nexus by just looking for:

META-INF/wicket/components.xml   // define components in
 this jar (relative reference to metadata files, in this case:
   //
 component1/metadata.xml and component2/metadata.xml)
META-INF/wicket/component1/metadata.xml  // define metadata for
 first component
META-INF/wicket/component2/metadata.xml  // metadata for second
 component
META-INF/wicket/component2/screenshots/1.jpg// embedded screenshots
 for second component
META-INF/wicket/component2/screenshots/2.jpg

 at least as i understand it... if not, maybe nexus needs to be extended...


 francisco treacy-2 wrote:

 i don't completely agree:

 - to be searched by nexus, repo needs to be nexus-aware: i.e.
 nexus-maven-repository-index.properties and
 nexus-maven-repository-index.zip files need to be deployed to the
 /.index folder at maven repository root.

 we are mainly talking about wicketstuff projects currently hosted in a
 non-indexed (nothing at
 http://wicketstuff.org/maven/repository/.index/) community-owned repo.
 as far as i know, there are no wicket components in maven central
 repo.
  i insist, so long as wicketstuff is *our repo* we can do whatever we
 want with it. we can decide *not to ban* wickethub's crawler (our
 crawler). we still can use nexus though, but we're not forced to do so

 - moreover, no specific metadata indexed:

 Nexus indexer component provides an API to index Maven repository,
 merge and download index updates. It also provides an API to search
 through registered indexes using various search criteria, including:

 * Browse through repository indexes
 * Search jars by artifactId and groupId
 * Search jars by the packaging type (e.g. to find Maven plugins or
 Archetypes)
 * Search jars by sha1 (e.g. to identify arbitrary jars with actual
 Maven artifacts)
 * Search Maven artifacts/jar by class name (e.g. resolve classpath
 issues from build errors or class not found exceptions)

 ...knowing that we need to index specific metadata
 (http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata).
 by the way, i wouldn't store metadata under META-INF inside the jar; i
 would rather include

Re: 1.4 Release date

2009-01-19 Thread francisco treacy
i'm also interested

francisco


On Mon, Jan 19, 2009 at 9:57 AM, Jo Voordeckers
jo.voordeck...@gmail.com wrote:
 Hi Wicket team,

 We're very excited with the framework so far and when our project turns out
 to be a success the company standard will move from Spring MVC to Wicket.
 Now since we're using it in a JEE5 environment with Spring, JPA, etc we'd
 like to use 1.4, but as long as it's unreleased, management won't let us
 upgrade to 1.4.

 Can somebody give us an expected release date?

 Thanks!

 --
 - Jo


-
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-19 Thread francisco treacy
hi jon,

 it would be nice to enable other parties to build similar wicket
 component searching technologies that are not linked to wicket hub

definitely

 my simplistic understanding was that nexus could search for jars with
 certain files in them.

not unless you extend it

 it ought to be extended so that it can do that. it would be worth
 talking to them about our needs to see if they could help us

i have contacted them: see the thread
http://nexus.sonatype.org/mailing-list-user-archives.html#nabble-f34835

basically it is technically possible to do what we need with nexus.
the problem is that this wicket-aware extended nexus version has to
be installed in every single repo we may want to synchronize with.  so
once we have done the coding we'll have to contact maven central (and
other) repo owners. so it boils down to diplomacy rather than
programming =)

so: for now i will focus on submit jar url support that we will need
anyway (for non-mavenized wicket components). at the moment this also
will be useful for components in maven repos. and the day we manage to
have an automatic 'discovery' process - people won't be required to
submit wicket-enabled-repo urls anymore.

how does that sound?

francisco



On Sat, Jan 17, 2009 at 10:02 PM, Jonathan Locke
jonathan.lo...@gmail.com wrote:


 i think maven searching is an ideal way to publish and discover wicket
 components at
 present. i never meant to imply that that should be the only way to do this
 or that the
 idea of a wicket component jar should be tied to something like a repository
 or a transport.
 i also don't think it should be tied to a specific repo of discovered meta
 information like
 wicket hub. that creates a centralized architecture and as much as i like
 the idea of wicket
 hub a lot, it would be nice to enable other parties to build similar wicket
 component
 searching technologies that are not linked to wicket hub. for example,
 someone could
 gather wicket components for an IDE plugin, to store in some other type of
 repository
 than maven or to create an index for some future google search plugin.

 my simplistic understanding was that nexus could search for jars with
 certain files in them.
 all we need from nexus is the ability to get a list of jar artifacts which
 contain the file
 META-INF/wicket/components.xml because all such files will be wicket
 component jars
 (subject to downloading and parsing, of course). if nexus can't do that, i
 think that's
 a flaw in nexus and it ought to be extended so that it can do that. it would
 be worth
 talking to them about our needs to see if they could help us. i think that a
 nexus driven
 wicket component repository would be beneficial advertising for the nexus
 project, and
 it should not be too hard to achieve.

  jon


 francisco treacy-2 wrote:

 you're certainly free to go in whatever direction you want,

 to be clear, i fully agree on the decentralized model for:
 - people and the development of this app, and data contributed by
 wicket users: this should be as democratic as possible
 - artifacts / components:

 there may someday be wicket
 components in central or elsewhere, even outside maven repos
 (downloadable via HTTP
 like matej's inmethod stuff was for a while)

 we should support any mavenized or non-mavenized artifacts, wherever
 those may live - you're right there (however i thought you said before
 you were interested at present only by components delivered by maven).

 parsing the metadata would be done after you download the artifact that
 you
 found.

 okay, fair enough. i have some doubts though:

 1. in this scenario, downloading every artifact on earth just to open
 it and see if there's some wicket info inside is... impossible.

 2.
 you just need to find the artifact with nexus.

 in your original blog post you say Basically, I'd like to see us
 crawl maven repos looking for JAR'ed Wicket components with a
 particular set of meta-data
 i don't see how nexus can help there. let's put another example:

 i create a mootools integration component, i mavenize it with package
 name com.mymootools.wicket and publish it in central repo.  how does
 nexus help in finding that, if it doesn't know anything about
 META-INF/*.xml?

 ... *unless* you're planning people to submit their jar urls to
 wickethub. that would be a whole other story. but then again, nexus
 would be useless as we will already have the urls to components (no
 need to crawl or search - only to download the jar, open it up and
 update metadata in wickethub)

 for screenshots and the internal structure of the xml file, we shall
 see later, but i generally agree with you

 francisco


 parsing the metadata would be done after you download the artifact that
 you
 found.
 at that point you can do anything with it, including extracting URLs or
 even
 embedded
 images (might be a nice option for screenshots).

 putting jar metadata in META-INF is much more appropriate in my mind
 because
 it's
 not maven

Re: WicketRuntimeException

2009-01-19 Thread francisco treacy
you may want to focus on the actual errors.

- you're having some trouble in your classpath / wicket jar versions:

Caused by: java.lang.NoSuchMethodError:
org.apache.wicket.markup.html.form.Form.add(Lorg/apache/wicket/
Component;)Lorg/apache/wicket/MarkupContainer;
  at com.jasp.ecommfwk.categoria.PageCategoria.init
(PageCategoria.java:36)

- and check your security settings:

does not permit action RENDER
org.apache.wicket.authorization.UnauthorizedActionException: Component
[Page class = org.apache.wicket.markup.html.pages.ExceptionErrorPage,
id = 1, version = 0] does not permit action RENDER


francisco




On Mon, Jan 19, 2009 at 2:55 PM, Daniel Ferreira Castro
dfcas...@gmail.com wrote:
 Morning all guys,

 I am looking for this error on Google, but till now without success, for the
 reason of why this error occurs..
 Can anyone help me?

 Thanks in advance.

 ==
 Stacktrace
 ==

 11:23:45,500 ERROR RequestCycle:1450 - Can't instantiate page using
 constructor public com.jasp.ecommfwk.categoria.PageCategoria()
 org.apache.wicket.WicketRuntimeException: Can't instantiate page using
 constructor public com.jasp.ecommfwk.categoria.PageCategoria()
   at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java:172)
   at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java:58)
   at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage
 (BookmarkablePageRequestTarget.java:286)
   at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage
 (BookmarkablePageRequestTarget.java:308)
   at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
 (BookmarkablePageRequestTarget.java:223)
   at
 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
 (AbstractRequestCycleProcessor.java:91)
   at org.apache.wicket.RequestCycle.processEventsAndRespond
 (RequestCycle.java:1188)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
   at org.apache.wicket.protocol.http.WicketFilter.doGet
 (WicketFilter.java:444)
   at org.apache.wicket.protocol.http.WicketFilter.doFilter
 (WicketFilter.java:282)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:263)
   at org.apache.coyote.http11.Http11Processor.process
 (Http11Processor.java:844)
   at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.process(Http11Protocol.java:584)
   at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
 447)
   at java.lang.Thread.run(Thread.java:619)
 Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 (DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at org.apache.wicket.session.DefaultPageFactory.newPage
 (DefaultPageFactory.java:153)
   ... 23 more
 Caused by: java.lang.NoSuchMethodError:
 org.apache.wicket.markup.html.form.Form.add(Lorg/apache/wicket/
 Component;)Lorg/apache/wicket/MarkupContainer;
   at com.jasp.ecommfwk.categoria.PageCategoria.init
 (PageCategoria.java:36)
   ... 28 more
 11:23:45,515 ERROR RequestCycle:1321 - unexpected exception when
 handling another exception: Component [Page class =
 org.apache.wicket.markup.html.pages.ExceptionErrorPage, id = 1,
 version = 0] does not permit action RENDER
 org.apache.wicket.authorization.UnauthorizedActionException: Component
 [Page class = org.apache.wicket.markup.html.pages.ExceptionErrorPage,
 id = 1, version = 0] does not permit action RENDER
   at org.apache.wicket.Page.renderPage(Page.java:868)
   at
 

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread francisco treacy
http://code.google.com/p/elephas/source/browse/#svn/trunk

for instance, 
http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/model/Blog.java

francisco

On Thu, Jan 22, 2009 at 6:09 PM, Tauren Mills tau...@tauren.com wrote:
 Francisco,

 Thanks!  Actually, I was just reading that post of Igor's which
 prompted my question.  But I was hoping there might be an integrated
 sample app (or maven archetype would be even better!) to experiment
 with to save me the time of putting it all together.

 Anyone else know of any samples or open projects using this
 combination that I could check out?

 Thanks,
 Tauren

 On Thu, Jan 22, 2009 at 8:46 AM, francisco treacy
 francisco.tre...@gmail.com wrote:
 not an app, but maybe this helps:
 http://wicketinaction.com/2008/09/building-a-smart-entitymodel/

 francisco

 On Thu, Jan 22, 2009 at 5:06 PM, Tauren Mills tau...@tauren.com wrote:
 Can anyone point me to any example applications that are along the
 lines of Wicketstuff Phonebook, but that utilize Salve and Hibernate?
 Does anything like that exist?

 Thanks,
 Tauren

 -
 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-22 Thread francisco treacy
 your plan makes sense to me. it seems like moving ahead with a wicket
 component metadata standard would be a good thing to do in parallel though.

+1

the problem here though is that for things to work in parallel, well,
by definition, you need more than 1 person doing stuff :)

i guess the question is... who wants to move ahead with the component
metadata standard while i develop stuff into wickethub?  it would be
also nice to have at least one example of wicket component with
metadata to play with.

for a list of things i plan to do, check the issues tab of the project
home - and feel free to add.

regards

francisco


On Wed, Jan 21, 2009 at 8:07 AM, Jonathan Locke
jonathan.lo...@gmail.com wrote:


 that's too bad. i was hoping nexus was a centralized index of all known
 public repos.

 your plan makes sense to me. it seems like moving ahead with a wicket
 component metadata standard would be a good thing to do in parallel though.

   jon


 francisco treacy-2 wrote:

 hi jon,

 it would be nice to enable other parties to build similar wicket
 component searching technologies that are not linked to wicket hub

 definitely

 my simplistic understanding was that nexus could search for jars with
 certain files in them.

 not unless you extend it

 it ought to be extended so that it can do that. it would be worth
 talking to them about our needs to see if they could help us

 i have contacted them: see the thread
 http://nexus.sonatype.org/mailing-list-user-archives.html#nabble-f34835

 basically it is technically possible to do what we need with nexus.
 the problem is that this wicket-aware extended nexus version has to
 be installed in every single repo we may want to synchronize with.  so
 once we have done the coding we'll have to contact maven central (and
 other) repo owners. so it boils down to diplomacy rather than
 programming =)

 so: for now i will focus on submit jar url support that we will need
 anyway (for non-mavenized wicket components). at the moment this also
 will be useful for components in maven repos. and the day we manage to
 have an automatic 'discovery' process - people won't be required to
 submit wicket-enabled-repo urls anymore.

 how does that sound?

 francisco



 On Sat, Jan 17, 2009 at 10:02 PM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:


 i think maven searching is an ideal way to publish and discover wicket
 components at
 present. i never meant to imply that that should be the only way to do
 this
 or that the
 idea of a wicket component jar should be tied to something like a
 repository
 or a transport.
 i also don't think it should be tied to a specific repo of discovered
 meta
 information like
 wicket hub. that creates a centralized architecture and as much as i like
 the idea of wicket
 hub a lot, it would be nice to enable other parties to build similar
 wicket
 component
 searching technologies that are not linked to wicket hub. for example,
 someone could
 gather wicket components for an IDE plugin, to store in some other type
 of
 repository
 than maven or to create an index for some future google search plugin.

 my simplistic understanding was that nexus could search for jars with
 certain files in them.
 all we need from nexus is the ability to get a list of jar artifacts
 which
 contain the file
 META-INF/wicket/components.xml because all such files will be wicket
 component jars
 (subject to downloading and parsing, of course). if nexus can't do that,
 i
 think that's
 a flaw in nexus and it ought to be extended so that it can do that. it
 would
 be worth
 talking to them about our needs to see if they could help us. i think
 that a
 nexus driven
 wicket component repository would be beneficial advertising for the nexus
 project, and
 it should not be too hard to achieve.

  jon


 francisco treacy-2 wrote:

 you're certainly free to go in whatever direction you want,

 to be clear, i fully agree on the decentralized model for:
 - people and the development of this app, and data contributed by
 wicket users: this should be as democratic as possible
 - artifacts / components:

 there may someday be wicket
 components in central or elsewhere, even outside maven repos
 (downloadable via HTTP
 like matej's inmethod stuff was for a while)

 we should support any mavenized or non-mavenized artifacts, wherever
 those may live - you're right there (however i thought you said before
 you were interested at present only by components delivered by maven).

 parsing the metadata would be done after you download the artifact that
 you
 found.

 okay, fair enough. i have some doubts though:

 1. in this scenario, downloading every artifact on earth just to open
 it and see if there's some wicket info inside is... impossible.

 2.
 you just need to find the artifact with nexus.

 in your original blog post you say Basically, I'd like to see us
 crawl maven repos looking for JAR'ed Wicket components with a
 particular set of meta-data
 i don't see how

Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
hi cemal,

i am actually very interested in wicket and scala real world apps.
unfortunately i can't make it to london, but i would like to ask you
if the presentation slides will be available for download after the
event.
or should i ask daan, jan, al, ... ?

thanks

francisco



On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com wrote:

 We already have some 35 registered guests (29 confirmed) for our next London
 Wicket Event on the evening of February 4th, at Google (close to Victoria
 station). We have space for 15 more so if you are interested in coming
 http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm your
 place.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 jWeekend wrote:

 Our next London Wicket Event will be on the evening of Wednesday, February
 4th, at Google.
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and Wicket,
 just for fun, and, in some cases, on commercial development projects (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap things
 up as usual.

 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.

 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.

 Full details and registration are at
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email.

 We'd like to thank Google for generously continuing to host our events.

 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend


 --
 View this message in context: 
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.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: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
thank you for the links, cemal.  i'll definitely try to come next time
if i'm not too far away from london!

daan

 Not only real world apps, but also hello world apps...

sure, all is good. (i actually don't know why i put real world --
and with quotes... i guess we should include this one in
http://www.unnecessaryquotes.com/ =)

regards,

francisco


On Tue, Jan 27, 2009 at 12:09 PM, jWeekend jweekend_for...@cabouge.com wrote:

 Francisco,

 Thanks, I hope you can find a good excuse to come and participate in one of
 our events in the future, I'm sure you'd enjoy the experience. We have had
 people come over, sometimes just for the evening, from several countries.

 We are often able to publish slides on one or more of the
 http://www.jweekend.com/dev/ArticlesPage/ jWeekend Resources page , on our
 London Wicket  http://code.google.com/p/londonwicket/ Google code project
 and/or  http://londonwicket.org/ here .

 We have also started experimenting with making video recordings but our
 efforts to date have not done justice to our speakers. We may try again this
 time (that reminds me Marius ... ?!).

 I will be going over the presentation material with Dean, Daan and Jan in
 the next few days and should be able to confirm the above on this list then
 or as soon we have uploaded the material.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 francisco treacy-2 wrote:

 hi cemal,

 i am actually very interested in wicket and scala real world apps.
 unfortunately i can't make it to london, but i would like to ask you
 if the presentation slides will be available for download after the
 event.
 or should i ask daan, jan, al, ... ?

 thanks

 francisco



 On Mon, Jan 26, 2009 at 11:40 AM, jWeekend jweekend_for...@cabouge.com
 wrote:

 We already have some 35 registered guests (29 confirmed) for our next
 London
 Wicket Event on the evening of February 4th, at Google (close to Victoria
 station). We have space for 15 more so if you are interested in coming
 http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm
 your
 place.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 jWeekend wrote:

 Our next London Wicket Event will be on the evening of Wednesday,
 February
 4th, at Google.
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and
 Wicket,
 just for fun, and, in some cases, on commercial development projects
 (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap
 things
 up as usual.

 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and
 Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.

 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.

 Full details and registration are at
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register
 early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email.

 We'd like to thank Google for generously continuing to host our events.

 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend


 --
 View this message in context:
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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





 --
 View this message in context: 
 http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21683444.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: Feedback Panel

2009-01-30 Thread francisco treacy
for example, in your css:

ul .feedbackul {
list-style-type: none;
font-size: 0.7em;
border-top: 1px dashed #BCBAAC;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

li .feedbackPanelERROR {
color: red;
font-size: 1em;
margin-left: 6px;
margin-bottom: 20px;
padding: 0;
width: 90%;
}

francisco

On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl wrote:
 The HTML that is rendered by FeedBackPanel provides enough styling that you
 can do this with CSS.

 Regards,
   Erik.


 Daniel Ferreira Castro wrote:

 Hi,

 I am looking around internet but I still haven´t found what I am looking
 for - (Bono, do not sue me)

 I would like to customize a Feedback Panel in a way that error messages
 are
 displayed as Red, info as Green and Warn as Yellow (I will need to change
 the background of this panel to make it confortable for the eyes also)
  and,
 if possible, when a success message is printed an check icon displays by
 its
 side (This is probably using border, but I am not sure).

 How to do this?



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



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



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



Re: IoC: how to best handle non-serializable fields in wicket

2009-02-06 Thread francisco treacy
another option is to use salve (http://code.google.com/p/salve/).
instead of calling guice's injector as a service locator you use
@Dependency, that will lookup and inject your dependency (behind the
scenes it adds the class a proxy through bytecode instrumentation).

public class myLDM extends LoadableDetachableModel {

 @Dependency myDAO;

 public Object load() {
  return myDAO.get(...);
}

francisco

On Fri, Feb 6, 2009 at 3:06 PM, Martin Grigorov mcgreg...@e-card.bg wrote:
 I have seen such code somewhere:


 public class myLDM extends LoadableDetachableModel {

 transient @SpringBean myDAO;

 public Object load() {
  InjectorHolder.getInjector().inject(this);
  return myDAO.get(...);
 }

 }

 El vie, 06-02-2009 a las 13:21 +0100, Martijn Dashorst escribió:
 How would you inject the dao then?

 Martijn


 On Fri, Feb 6, 2009 at 12:00 PM, Sergey Didenko
 sergey.dide...@gmail.com wrote:
  Hi Andreas,
 
  Well, may be my question is silly, but:
 
  What about making dao a local variable in your component handlers?
  Then you can get rid of that serializing-deserializing of dao as a
  Component member.
 
  Does this approach have too much overhead? Does it make some things 
  impossible?
 
  Cheers, Sergey.
 
  -
  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: IoC: how to best handle non-serializable fields in wicket

2009-02-06 Thread francisco treacy
proxy i meant as in the proxy pattern - it delegates

francisco

On Fri, Feb 6, 2009 at 8:41 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 salve doesnt add a proxy, it removes the field and rewrites any field
 read with a lookup.

 -igor

 On Fri, Feb 6, 2009 at 11:32 AM, francisco treacy
 francisco.tre...@gmail.com wrote:
 another option is to use salve (http://code.google.com/p/salve/).
 instead of calling guice's injector as a service locator you use
 @Dependency, that will lookup and inject your dependency (behind the
 scenes it adds the class a proxy through bytecode instrumentation).

 public class myLDM extends LoadableDetachableModel {

  @Dependency myDAO;

  public Object load() {
  return myDAO.get(...);
 }

 francisco

 On Fri, Feb 6, 2009 at 3:06 PM, Martin Grigorov mcgreg...@e-card.bg wrote:
 I have seen such code somewhere:


 public class myLDM extends LoadableDetachableModel {

 transient @SpringBean myDAO;

 public Object load() {
  InjectorHolder.getInjector().inject(this);
  return myDAO.get(...);
 }

 }

 El vie, 06-02-2009 a las 13:21 +0100, Martijn Dashorst escribió:
 How would you inject the dao then?

 Martijn


 On Fri, Feb 6, 2009 at 12:00 PM, Sergey Didenko
 sergey.dide...@gmail.com wrote:
  Hi Andreas,
 
  Well, may be my question is silly, but:
 
  What about making dao a local variable in your component handlers?
  Then you can get rid of that serializing-deserializing of dao as a
  Component member.
 
  Does this approach have too much overhead? Does it make some things 
  impossible?
 
  Cheers, Sergey.
 
  -
  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



-
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-02-09 Thread francisco treacy
coincidentally, i started working on that again and i was about to
contact you to suggest a draft.

my perspective are (for the moment) data that is to be mapped to
fields currently supported in wicket hub. i put it in a jar metadata
format.

Site-URL: (maps to website url)
License-Name: (maps to license)
Wicket-Versions: (maps to supported wicket versions)
Search-Keywords: (maps to topics)
Publish-Date: (maps to latest publish date)
Author: (maps to author)

i uploaded a new version that has a minimal infrastructure (a running
batch) to support pinging known components. basically it's yet to be
put together (the download, unzip, parse metadata), but it's all
there.

regarding your metadata proposal, i think it's really fine. also, the
xml format makes sense. however i'm not 100% convinced about

requirements
  library name=wicket version=1.3/
  library name=YUI version=4.0/
/requirements

... cause it's duplicating maven functionality, and i'm  pretty sure
maven handles it better. i know that our components are not
necessarily mavenized, but even then we should pay particular
attention to this one.

as i said, i'm ready to get this done on my side - it would be nice if
somebody else could work on a maven plugin or other post-install step
to generate this metadata within jars.

francisco

--
http://wickethub.org

On Mon, Feb 9, 2009 at 9:45 AM, Jonathan Locke jonathan.lo...@gmail.com wrote:


 couldn't sleep tonight, so i did a bit of work on it...

 http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata

 just a quick first sketch. thoughts?


 Jonathan Locke wrote:


 i don't have time to develop the metadata standard, but i could make time
 to review it. there are a few good things on that wiki page, but i'd say a
 bit more thinking could be applied (anyone want to help francisco?) and
 then get review from me and any other core devs who want to chime in. if
 wicket-user/wicket-dev then goes +1 on it, that's the standard.

   jon


 francisco treacy-2 wrote:

 your plan makes sense to me. it seems like moving ahead with a wicket
 component metadata standard would be a good thing to do in parallel
 though.

 +1

 the problem here though is that for things to work in parallel, well,
 by definition, you need more than 1 person doing stuff :)

 i guess the question is... who wants to move ahead with the component
 metadata standard while i develop stuff into wickethub?  it would be
 also nice to have at least one example of wicket component with
 metadata to play with.

 for a list of things i plan to do, check the issues tab of the project
 home - and feel free to add.

 regards

 francisco


 On Wed, Jan 21, 2009 at 8:07 AM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:


 that's too bad. i was hoping nexus was a centralized index of all known
 public repos.

 your plan makes sense to me. it seems like moving ahead with a wicket
 component metadata standard would be a good thing to do in parallel
 though.

   jon


 francisco treacy-2 wrote:

 hi jon,

 it would be nice to enable other parties to build similar wicket
 component searching technologies that are not linked to wicket hub

 definitely

 my simplistic understanding was that nexus could search for jars with
 certain files in them.

 not unless you extend it

 it ought to be extended so that it can do that. it would be worth
 talking to them about our needs to see if they could help us

 i have contacted them: see the thread
 http://nexus.sonatype.org/mailing-list-user-archives.html#nabble-f34835

 basically it is technically possible to do what we need with nexus.
 the problem is that this wicket-aware extended nexus version has to
 be installed in every single repo we may want to synchronize with.  so
 once we have done the coding we'll have to contact maven central (and
 other) repo owners. so it boils down to diplomacy rather than
 programming =)

 so: for now i will focus on submit jar url support that we will need
 anyway (for non-mavenized wicket components). at the moment this also
 will be useful for components in maven repos. and the day we manage to
 have an automatic 'discovery' process - people won't be required to
 submit wicket-enabled-repo urls anymore.

 how does that sound?

 francisco



 On Sat, Jan 17, 2009 at 10:02 PM, Jonathan Locke
 jonathan.lo...@gmail.com wrote:


 i think maven searching is an ideal way to publish and discover wicket
 components at
 present. i never meant to imply that that should be the only way to do
 this
 or that the
 idea of a wicket component jar should be tied to something like a
 repository
 or a transport.
 i also don't think it should be tied to a specific repo of discovered
 meta
 information like
 wicket hub. that creates a centralized architecture and as much as i
 like
 the idea of wicket
 hub a lot, it would be nice to enable other parties to build similar
 wicket
 component
 searching technologies that are not linked to wicket hub

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
i have used digitarald one in wicket hub.

example: http://wickethub.org/add  (try adding topics like
'javascript' or 'persistence')
code: 
http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter

i have not however wrapped it up in a pretty jar yet (and depending on
mootools, etc)

if not, you could take a look at this thread
http://www.nabble.com/AutoCompleteTextField---autocomplete-multiple-fields-td17500271.html

francisco


On Tue, Feb 10, 2009 at 5:48 PM, Ryan Gravener r...@ryangravener.com wrote:
 I'll implement the first one in due time.  It is not as fluid as i would
 hope though.


 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah 
 waarhei...@gmail.comwrote:

 Hi guys,

 Does somebody knows if there is already such a Wicket lib/component where
 you can select more then one value. Something like this one
 http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
 http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
 http://remysharp.com/wp-content/uploads/2007/12/tagging.php


 Kind regards,

 Hbiloo



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



Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
ps: actually, once it's done, we should include it in wicket hub so
next time you can search for it there =)


On Tue, Feb 10, 2009 at 6:57 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 i have used digitarald one in wicket hub.

 example: http://wickethub.org/add  (try adding topics like
 'javascript' or 'persistence')
 code: 
 http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter

 i have not however wrapped it up in a pretty jar yet (and depending on
 mootools, etc)

 if not, you could take a look at this thread
 http://www.nabble.com/AutoCompleteTextField---autocomplete-multiple-fields-td17500271.html

 francisco


 On Tue, Feb 10, 2009 at 5:48 PM, Ryan Gravener r...@ryangravener.com wrote:
 I'll implement the first one in due time.  It is not as fluid as i would
 hope though.


 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah 
 waarhei...@gmail.comwrote:

 Hi guys,

 Does somebody knows if there is already such a Wicket lib/component where
 you can select more then one value. Something like this one
 http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
 http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
 http://remysharp.com/wp-content/uploads/2007/12/tagging.php


 Kind regards,

 Hbiloo




-
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-02-10 Thread francisco treacy
additionally, i think we need to decompose our problem. i see our aims
like this:

1. maintaining an updated registry
   a) keep reference to components and regularly ping/update data
(wicket hub should be able to do this real soon)
   b) automatically discover those components (a whole new story)
2. deploying/running live examples (a whole new story)

let's start with small steps. let's attack (1.a) first.

in terms of mapping current code with wicket-components.xml, what we have is:

private String title;  component OK
private String description;   description OK
private Date lastUpdated;   we grab the timestamp of the
wicket-components.xml file or the jar itself
private String author;  publisher OK

private String topics;   ... search-keywords=slider,ui,java  OK
private String versions;  if we use maven notation for
dependencies, we should be able to easily detect wicket version
used...

private String websiteUrl;   ...
site=http://mycomponents.com/slider; .. OK
private String examplesUrl;  somewhere in resources /
demo class=com.mycomponents.demo.DemoPanel/ , we'll need to obtain
a url where that example is deployed - this is aim #2 and we should
leave it for later

private License license;  make best match of license name=..

we could start with a version 0.1 of wicket-components.xml, make some
experiments with two or three test jars, and see how it goes.

francisco


On Tue, Feb 10, 2009 at 11:17 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 i completely agree with you in that Wicket component jars should be
 fully self-describing, so i think wicket meta information has to be
 independent of any external technology such as maven or osgi.

 however the only practical way nowadays to universally identify a
 component is using its maven coordinates.

 so, to get started, we could just impose specifying deps in
 wicket-components.xml as this (typical maven pom snippet):

 dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4/version
 /dependency

 note that this doesn't restrain you from publishing your non-mavenized
 jar. you will only have to manually set them in that case (assuming
 some day we create a maven post-install to generate
 wicket-components.xml for mavenized ones).

 also, the sources and the example jar should be pointing to external
 resources. for instance in wicketstuff  examples are not packaged with
 the main component.

 francisco



 On Mon, Feb 9, 2009 at 4:06 PM, Jonathan Locke jonathan.lo...@gmail.com 
 wrote:


 using the maven deps is fine.  the purpose i had in mind for the
 requirements and libraries nodes was just to enable display of the
 component's requirements on a page about the component... (whether it's
 built with maven or not).  but using the maven deps would be more detailed
 and more consistent... and most wicket components will be mavenized.


 francisco treacy-2 wrote:

 coincidentally, i started working on that again and i was about to
 contact you to suggest a draft.

 my perspective are (for the moment) data that is to be mapped to
 fields currently supported in wicket hub. i put it in a jar metadata
 format.

 Site-URL: (maps to website url)
 License-Name: (maps to license)
 Wicket-Versions: (maps to supported wicket versions)
 Search-Keywords: (maps to topics)
 Publish-Date: (maps to latest publish date)
 Author: (maps to author)

 i uploaded a new version that has a minimal infrastructure (a running
 batch) to support pinging known components. basically it's yet to be
 put together (the download, unzip, parse metadata), but it's all
 there.

 regarding your metadata proposal, i think it's really fine. also, the
 xml format makes sense. however i'm not 100% convinced about

 requirements
   library name=wicket version=1.3/
   library name=YUI version=4.0/
 /requirements

 ... cause it's duplicating maven functionality, and i'm  pretty sure
 maven handles it better. i know that our components are not
 necessarily mavenized, but even then we should pay particular
 attention to this one.

 as i said, i'm ready to get this done on my side - it would be nice if
 somebody else could work on a maven plugin or other post-install step
 to generate this metadata within jars.

 francisco

 --
 http://wickethub.org

 On Mon, Feb 9, 2009 at 9:45 AM, Jonathan Locke jonathan.lo...@gmail.com
 wrote:


 couldn't sleep tonight, so i did a bit of work on it...

 http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata

 just a quick first sketch. thoughts?


 Jonathan Locke wrote:


 i don't have time to develop the metadata standard, but i could make
 time
 to review it. there are a few good things on that wiki page, but i'd say
 a
 bit more thinking could be applied (anyone want to help francisco?) and
 then get review from me and any other core devs who want to chime in. if
 wicket-user/wicket-dev

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread francisco treacy
totally against pushing wicket as a standard / jsr.

it has already been stated by some of you, but i'd like to highlight
the fact that bureaucracy goes against flexibility.

instead of having wicket to change to please management, why don't we
push to have more managers that think out-of-the-box and choose wicket
for its actual strengths rather than because it wears a jcp badge?

francisco

--
http://wickethub.org



On Fri, Feb 13, 2009 at 10:10 AM, Johan Compagner jcompag...@gmail.com wrote:
 and what would a wicket standard give you?
 Except that those idiotic managers then say its standardized.. now you can
 use it why is that is a standard for ever? dont think so everything dies.
 But would it run on more platforms?
 Would we have multiply implementations? Because thats most of the time a
 JCP/JSR does, it doesnt have an implementation, what wicket is, but a
 description/interfaces what an implementation should do..

 johan


 On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst
 martijn.dasho...@gmail.comwrote:

 Bill Joy from Sun once said: innovation happens elsewhere. I think
 that the where elsewhere isn't, it is the JCP. Standardization is just
 antithetical to innovation. Once something is fixed in brick/mortar
 how can you innovate? Wicket is very comfortably located elsewhere.

 Martijn

 On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  we like the agility that the independence from any sort of a standard
 offers us.
 
  -igor
 
  On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org
 wrote:
  Judging by the responses (or the lack thereof), It seems as though there
 isn't enough support from the Wicket community to push for something like
 this :(
 
  -Original Message-
  From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of
 Thomas Mäder
  Sent: Thursday, February 12, 2009 12:57 PM
  To: users@wicket.apache.org
  Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam
 
  I totally agree that the JSR process is horrid. However, Wicket could
 really use some more corporate credibility (which a JSR would provide).
  The problem, I guess is that there are simply no corporate interests
 behind Wicket that would push the agenda. What wicket need is some
 evangelism, but I guess all the core people have real jobs. What we need is
 less talks titled why wicket is cool and more cut your development costs
 in two with Wicket. From experience, I am totally convinced that you can
 save 50% off your development costs if you switch to wicket (from just about
 any other framework), however, I've yet to find a contracting job here in
 Zürich where wicket is asked for (it's JSF, or even Struts).
 
  Thomas
 
  On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.com
 wrote:
 
  And then come into the horrible voting/administive stuff? Long Release
  cycles that are controlled, features that are discussed over and over.
 
  Hmm
 
  On 12/02/2009, Hoover, William whoo...@nemours.org wrote:
   Just out of curiosity... Are there any plans to push a JSR that
   Wicket could follow. I think there would be a lot more acceptance of
   Wicket if this was to happen :o)
  
   -Original Message-
   From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com]
   On Behalf Of Martijn Dashorst
   Sent: Wednesday, February 11, 2009 5:33 PM
   To: users@wicket.apache.org
   Subject: Wicket at ApacheCon EU'09 in Amsterdam
  
   We're happy to announce a lot of Wicket involvement at the upcoming
   ApacheCon in Amsterdam (23-27 March 2009)
  
   First of all we have 2 training sessions available:
- Introduction to Wicket by Martijn Dashorst on Mon 23 March
   (http://tinyurl.com/aceu09wicket1)
- Behavior-Driving Your Apache Wicket Application by Timo
   Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2)
  
   Both courses are hosted by core members. Martijn has co-authored
   Wicket in Action and Timo has been involved with WicketTester and
   JDave. There is no better team to get you and your team up to speed
   with the finest Java web framework available and start cranking out
   fully tested applications.
  
   Martijn will also present Wicket in Action during the normal
   conference days. A quick introduction to Wicket's core features in
 just one hour.
   But attending the conference will give you much more:
   over 60 sessions covering your favorite Apache projects.
  
   Amsterdam is great, but Wicket meetups in Amsterdam are even better!
   We're attempting to schedule a Wicket meetup during the conference
   at the conference floor. Details will follow soon.
  
   Read more about ApacheCon EU 2009 here:
   http://www.eu.apachecon.com/c/aceu2009/
  
   See you in Amsterdam!
  
   Martijn
  
   
   - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread francisco treacy
this has nothing to do with being open-minded.

i'm pretty sure that most non-trivial projects out there using jpa
with hibernate implementation can go through a big pain if they ever
decide to change jpa vendor.
 now that you talk about jpa, this is an example of how backward a
spec can be: jpa 2.0 draft is only now addressing criteria, when we
should be including statically-typed queries and so on (ala linq /
quaere / jaqu).

granted the process might bring some benefit to wicket, but there are
way too many disadvantages, imo. and i don't really see how wicket
could become a sort of standard that gets different implementations.

anyway, i think we've got waaay out of topic =)

francisco

--
http://wickethub.org



On Fri, Feb 13, 2009 at 2:36 PM, Hoover, William whoo...@nemours.org wrote:
 I hear the arguments and I completely agree with the notion that innovation 
 usually happens elsewhere and a JSR/JCP would slow that process down. I 
 just want to objectively view the other side of the spectrum :o)

 From a developers point-of-view standardization can often be a thorn in our 
 side, but for management it can offer a 
 vendor-independent/implementation-independent solution. Maintaining/upgrading 
 infrastructure is difficult, expensive and time consuming. From the 
 point-of-view of management a standard can often minimize the risk of vender 
 lock-in.

 Another thing to consider is that a broader multi-community involvement could 
 also bread innovation. There may be other innovators from other communities 
 that may have valuable input that could improve Wicket in ways that may have 
 not been previously considered. IMHO, the biggest argument for JSR/JCP is 
 that there is often a broader involvement in the process. Hibernate, for 
 instance, was in a similar position a few years back when they introduced a 
 new persistence concept. They have since become heavily involved in the JPA 
 specification process. When I first worked with Hibernate, like many, I was 
 very impressed (similar to the first time I worked with Wicket :o), but 
 looking back at how Hiberante initially did things to how they do them now 
 there are some huge improvements due to the JPA specification.

 My hope is that the Wicket community can be as open-minded to this notion as 
 they are to the open source code they represent :o)

 -Original Message-
 From: Johan Compagner [mailto:jcompag...@gmail.com]
 Sent: Friday, February 13, 2009 4:10 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam

 and what would a wicket standard give you?
 Except that those idiotic managers then say its standardized.. now you can 
 use it why is that is a standard for ever? dont think so everything dies.
 But would it run on more platforms?
 Would we have multiply implementations? Because thats most of the time a 
 JCP/JSR does, it doesnt have an implementation, what wicket is, but a 
 description/interfaces what an implementation should do..

 johan


 On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst
 martijn.dasho...@gmail.comwrote:

 Bill Joy from Sun once said: innovation happens elsewhere. I think
 that the where elsewhere isn't, it is the JCP. Standardization is just
 antithetical to innovation. Once something is fixed in brick/mortar
 how can you innovate? Wicket is very comfortably located elsewhere.

 Martijn

 On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg
 igor.vaynb...@gmail.com
 wrote:
  we like the agility that the independence from any sort of a
  standard
 offers us.
 
  -igor
 
  On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William
  whoo...@nemours.org
 wrote:
  Judging by the responses (or the lack thereof), It seems as though
  there
 isn't enough support from the Wicket community to push for something
 like this :(
 
  -Original Message-
  From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On
  Behalf Of
 Thomas Mäder
  Sent: Thursday, February 12, 2009 12:57 PM
  To: users@wicket.apache.org
  Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam
 
  I totally agree that the JSR process is horrid. However, Wicket
  could
 really use some more corporate credibility (which a JSR would provide).
  The problem, I guess is that there are simply no corporate
  interests
 behind Wicket that would push the agenda. What wicket need is some
 evangelism, but I guess all the core people have real jobs. What we
 need is less talks titled why wicket is cool and more cut your
 development costs in two with Wicket. From experience, I am totally
 convinced that you can save 50% off your development costs if you
 switch to wicket (from just about any other framework), however, I've
 yet to find a contracting job here in Zürich where wicket is asked for (it's 
 JSF, or even Struts).
 
  Thomas
 
  On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner
  jcompag...@gmail.com
 wrote:
 
  And then come into the horrible voting/administive stuff? Long
  Release cycles that are controlled, features that 

Re: Yet another Wicket quick start application...

2009-02-19 Thread francisco treacy
hi richard,

part of your concerns are addressed in wickethub. i launched it a few
weeks ago but time is scarce to maintain it (anyway, it is open source
so anyone can access the code / contribute).

there are still issues and lots of things we want to do. i'm thinking
over the domain model and this will likely change to making the whole
idea more useful.

hopefully this will only get better in the near future.

francisco

--
http://wickethub.org



On Thu, Feb 19, 2009 at 2:10 PM, Richard Allen
richard.l.al...@gmail.com wrote:
 True. And I have no problem with that. I'll update the wiki with what I know
 before the end of the week.

 However, I believe the good management of projects is in large part what
 makes them a success.


 On Wed, Feb 18, 2009 at 11:54 AM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

 Most pages you refer to (apart from those that are in the
 wicket.apache.org style) are WIKI pages. This means *you* can modify
 them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI.

 If you want to contribute text to the main wicket site, you can attach
 it to a JIRA issue. etc.

 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



radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
hi people,

i'm quite puzzled with this little problem:

i have two Radio buttons within a RadioGroup. both radios have an
ajaxeventbehavior(onclick) attached to them, and there are no models
backing those components. this works fine.

my problem is i want the *first* option to be checked by default,
but no matter what the second one gets checked by default in the
browser.
yes, i played around with *checked=checked* in my html but wicket
always outputs *checked=checked* on the second radio button - and
the browser (firefox) interprets that by checking the second one.

code:

final RadioGroupVoid group = new RadioGroupVoid(group);
RadioVoid radio1 = new RadioVoid(radio1);
radio1.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});

RadioVoid radio2 = new RadioVoid(radio2);
radio2.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});
group.add(radio1);
group.add(radio2);
add(group);


span wicket:id=group
input type=radio wicket:id=radio1 
checked=checked / Discussie
input type=radio wicket:id=radio2 / 
Opiniepeiling
/span

wicket outputs:

input type=radio wicket:id=radio1 checked=checked id=radio122
name=tabs:panel:group value=radio63 onclick=var
wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio1:1:IBehaviorListener:0:',null,null,
function() {return Wicket.$('radio122') != null;}.bind(this));/
Discussie
input type=radio wicket:id=radio2 
id=radio223
name=tabs:panel:group value=radio64 checked=checked onclick=var
wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio2:1:IBehaviorListener:0:',null,null,
function() {return Wicket.$('radio223') != null;}.bind(this));/
Opiniepeiling


any ideas of what could be going wrong? thanks in advance,

francisco

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



Re: radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
i was refusing to use models (how stubborn :) but i think you're right
- not a very mean workaround that just works fine.

thanks!

francisco


On Fri, Feb 27, 2009 at 4:41 PM, Jonas barney...@gmail.com wrote:
 Have you tried this: add models to the components (even though you don't use
 on them), and store the value associated with the Radio you want checked
 in the RadioGroup's model:

    final RadioGroupBoolean group = new RadioGroupBoolean(group,
 new Model(Boolean.TRUE));
    RadioBoolean radio1 = new RadioBoolean(radio1, new
 Model(Boolean.TRUE));
    radio1.add(new AjaxEventBehavior(onclick) {
           �...@override
            protected void onEvent(AjaxRequestTarget target) {
                    (do stuff)
            }
    });

    RadioBoolean radio2 = new RadioBoolean(radio2, new
 Model(Boolean.FALSE));
    radio2.add(new AjaxEventBehavior(onclick) {
           �...@override
            protected void onEvent(AjaxRequestTarget target) {
                    (do stuff)
            }
    });
    group.add(radio1);
    group.add(radio2);
    add(group);



 On Fri, Feb 27, 2009 at 4:35 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 hi people,

 i'm quite puzzled with this little problem:

 i have two Radio buttons within a RadioGroup. both radios have an
 ajaxeventbehavior(onclick) attached to them, and there are no models
 backing those components. this works fine.

 my problem is i want the *first* option to be checked by default,
 but no matter what the second one gets checked by default in the
 browser.
 yes, i played around with *checked=checked* in my html but wicket
 always outputs *checked=checked* on the second radio button - and
 the browser (firefox) interprets that by checking the second one.

 code:

                final RadioGroupVoid group = new RadioGroupVoid(group);
                RadioVoid radio1 = new RadioVoid(radio1);
                radio1.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });

                RadioVoid radio2 = new RadioVoid(radio2);
                radio2.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });
                group.add(radio1);
                group.add(radio2);
                add(group);


 span wicket:id=group
                                input type=radio wicket:id=radio1 
 checked=checked / Discussie
                                input type=radio wicket:id=radio2 / 
 Opiniepeiling
                        /span

 wicket outputs:

 input type=radio wicket:id=radio1 checked=checked id=radio122
 name=tabs:panel:group value=radio63 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio1:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio122') != null;}.bind(this));/
 Discussie
                                input type=radio wicket:id=radio2 
 id=radio223
 name=tabs:panel:group value=radio64 checked=checked onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio2:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio223') != null;}.bind(this));/
 Opiniepeiling


 any ideas of what could be going wrong? thanks in advance,

 francisco

 -
 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: Dutch government picks Hippo CMS for all public websites

2009-03-05 Thread francisco treacy
goed nieuws!

this is a great step forward for wicket, a fact that reveals its
quality and maturity  (without having to pass through a JSR, btw).
congratulations to the hippo team!

francisco


On Thu, Mar 5, 2009 at 11:08 AM, jWeekend jweekend_for...@cabouge.com wrote:

 Martijn,

 This really is big news for anyone that wants more people to be aware of
 just how good Wicket is and benefit from building serious systems with it.

 It says a lot about the quality of the framework, the people that have built
 it, and the community that supports it.

 Arje, special congratulations to your team, and thanks for making this
 breakthrough that puts Wicket onto a new level of yes we canness for large
 organisations all over the world.

 Regards - Cemal
 http://jWeekend.com jWeekend




 Martijn Dashorst wrote:

 This is of huge interest for the Wicket community: HippoCMS is a large
 supporter and user of Apache open source software in general, and
 Wicket in particular.

 HippoCMS uses Wicket in large parts of their infrastructure and I am
 excited to hear that Wicket will be at the basis for the Dutch
 government.

 In a publication at the local IT gossip site 'webwereld' it is
 announced that all government websites will be consolidated into one
 portal using the Hippo technology.

 Kudos to the Hippo team!

 Martijn

 [1]
 http://webwereld.nl/nieuws/56024/n-website-gaat-alle-rijksoverheidssites-vervangen.html

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




 --
 View this message in context: 
 http://www.nabble.com/Dutch-government-picks-Hippo-CMS-for-all-public-websites-tp22347866p22348659.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: What IDE best fits with Wicket?

2009-03-10 Thread francisco treacy
i would like to add an ingredient here: scala.

is there anyone successfully using an IDE with wicket/maven/scala
*and* jetty hotswap?

i have always developed wicket/java in eclipse (dead easy to set up -
create quickstart archetype, right click debug Start.java and off you
go). but scala plugin for eclipse was a PIA to work with (stable or
nightly) and i decided to try with netbeans 6.5, where scala plugin is
quite decent. i managed to set up the quickstart with maven, added
some config for scala and all is great... but i really can't figure
out how to have jetty hotswap support.  apparently i should add some
configuration to tell netbeans i want the process-resources goal to
execute each time i save an html file, or compile a scala file.

it is not very convenient to restart the app every time i make a
change.  does anybody have experience with a similar setup?

thanks,

francisco


On Sat, Feb 28, 2009 at 5:45 AM, Brill Pappin br...@pappin.ca wrote:
 It's been a year or two since I tried it... but I couldn't stand it
 unfortunately (m4eclipse was going through some serious issues at the time).

 Glad to see that its improved enough to use!

 - Brill

 On 27-Feb-09, at 6:14 AM, Sergio García wrote:


 I'm using Q4E, and although it has some flaws, it works very good with
 maven

 Brill Pappin wrote:

 What are you using instead?

 - Brill

 On 24-Feb-09, at 12:45 PM, James Carman wrote:

 +1!  We had an awful lot of trouble getting it to work for us.

 On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:

 m2eclipse is absolutely worthless for anything beyond a quickstart.
 It
 is constantly reparsing poms, grinding eclipse to a halt. It failed
 to
 generate the right project dependencies for our multimodule project
 that consists of 2 multimodule child projects. It failed miserably to
 uninstall, needing me to axe my eclipse installation.

 In short: my experience (and that of my co-workers) with m2eclipse is
 that it is far from ready for prime time.

 Martijn

 On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca
 wrote:

 I should add something about the Eclipse maven plugins... don't go
 for the
 official eclipse Q4 plugin... use the Maven Integration 4
 Eclipse plugin
 (and actually the development version if your jiggy with it, it
 works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project
 files for
 you as well (it will do so for eclipse), so you could actually
 flip back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

 +1, I like Wicket Bench. And with M2Eclipse, you have the full
 sources 
 JavaDoc just by adding Wicket as a dependency, which is very
 convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small,
 useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


 -
 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



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




 --
 View this message in context:
 http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22243831.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: Possible to retrieve previous page from PageMap

2009-03-13 Thread francisco treacy
to be honest i haven't read the whole thread, but we are also trying
to achieve roughly the same thing.

as of wicket 1.4-m1 there is a class called PageId that you may want
to consider.

i created a back state holder class that holds a PageId and an
IModelString for the text of the back link. so for every visited
page (in the onBeforeRender - could be placed in the base page), we
set a holder in the session and in our base page we call
Session.get.getHolder.  pretty simple really.
as the PageId class is a unique identifier of the page you can use it
to distinguish between pagemaps, etc. (so navigation doesn't interfere
between tabs / windows)

this fulfills our usecase, as this is just a helper link to go back
where you were. we don't completely rely on this link because we also
do keep traditional navigation links in our pages.

however i still need to solve the double click problem, i.e. if a user
clicks twice on a link, the last rendered page will be the same as the
one he is in. thus, the back link points to the same page.  it is
actually quite tricky to get it right, yet i believe possible. i will
definitely try to avoid the link handing over pageparams in the url
like in the good old days :)

i will post it once i get everything working together.

francisco





On Fri, Mar 13, 2009 at 10:29 AM, pixologe pixol...@mailinator.com wrote:

 Just a thought which I did not think about when implementing this (thus I had
 to change this stuff all over afterwards), perhaps it helps someone avoiding
 the same mistake:

 The latest rendered page is not neccessarily the page that lead the user to
 the current page.
 I.e. retrieving the last page this way might result in strange behavior if
 the user uses two browser windows or tabs simulaneously. Same applies for
 clicking the browser's back button.

 Thus I had to go back to a rather old-fashioned solution, where every link
 hands over a page param :-/ like in the good old days ;-)





 rolandpeng wrote:

 great! after delare a ineer class below:
       class PageIdVersion {
               public int id;
               public int version;
               public PageIdVersion last;
       }
 then the track function works.


 John Patterson wrote:


      // must declare hash map because meta data must be serializable
      private MetaDataKeyHashMapString, PageIdVersion 
 lastPageIdVersionKey
 = new MetaDataKeyHashMapString, PageIdVersion() {};





 --
 View this message in context: 
 http://www.nabble.com/Possible-to-retrieve-previous-page-from-PageMap-tp20861106p22492628.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: Possible to retrieve previous page from PageMap

2009-03-13 Thread francisco treacy
igor, i would agree with you if i wanted to mimic the browser back
button functionality.

but i do not. we intensively use panel swapping and we're only
interested in registering when users click on certain pages (we can
fine-tune pages which pages should be back-clickable).

we actually considered using history.go(-1), but if you want your app
to seriously take into account usability / user experience, it's
useless -- for instance think panel swapping, or rendering links such
as back to your search for ice-cream. personally i'm not someone who
likes complexity just for the sake of it.

francisco


On Fri, Mar 13, 2009 at 3:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 its really a lot of work to duplicate what the back button in the
 browser already does. or a simple a href=#
 onclick=history.go(-1)back/a will do as well.

 -igor

 On Fri, Mar 13, 2009 at 5:02 AM, francisco treacy
 francisco.tre...@gmail.com wrote:
 to be honest i haven't read the whole thread, but we are also trying
 to achieve roughly the same thing.

 as of wicket 1.4-m1 there is a class called PageId that you may want
 to consider.

 i created a back state holder class that holds a PageId and an
 IModelString for the text of the back link. so for every visited
 page (in the onBeforeRender - could be placed in the base page), we
 set a holder in the session and in our base page we call
 Session.get.getHolder.  pretty simple really.
 as the PageId class is a unique identifier of the page you can use it
 to distinguish between pagemaps, etc. (so navigation doesn't interfere
 between tabs / windows)

 this fulfills our usecase, as this is just a helper link to go back
 where you were. we don't completely rely on this link because we also
 do keep traditional navigation links in our pages.

 however i still need to solve the double click problem, i.e. if a user
 clicks twice on a link, the last rendered page will be the same as the
 one he is in. thus, the back link points to the same page.  it is
 actually quite tricky to get it right, yet i believe possible. i will
 definitely try to avoid the link handing over pageparams in the url
 like in the good old days :)

 i will post it once i get everything working together.

 francisco





 On Fri, Mar 13, 2009 at 10:29 AM, pixologe pixol...@mailinator.com wrote:

 Just a thought which I did not think about when implementing this (thus I 
 had
 to change this stuff all over afterwards), perhaps it helps someone avoiding
 the same mistake:

 The latest rendered page is not neccessarily the page that lead the user to
 the current page.
 I.e. retrieving the last page this way might result in strange behavior if
 the user uses two browser windows or tabs simulaneously. Same applies for
 clicking the browser's back button.

 Thus I had to go back to a rather old-fashioned solution, where every link
 hands over a page param :-/ like in the good old days ;-)





 rolandpeng wrote:

 great! after delare a ineer class below:
       class PageIdVersion {
               public int id;
               public int version;
               public PageIdVersion last;
       }
 then the track function works.


 John Patterson wrote:


      // must declare hash map because meta data must be serializable
      private MetaDataKeyHashMapString, PageIdVersion 
 lastPageIdVersionKey
 = new MetaDataKeyHashMapString, PageIdVersion() {};





 --
 View this message in context: 
 http://www.nabble.com/Possible-to-retrieve-previous-page-from-PageMap-tp20861106p22492628.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



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



Re: [NEWBIE] How to do if... else... switch... in wicket html ?

2009-03-17 Thread francisco treacy
div wicket:id=text/div

String text;
if () {
text = ...
} else text = ...

add(new Label(text, text))

if you need different hierarchies (i.e. not just one Label), then use
Panels or Fragments instead

francisco


On Tue, Mar 17, 2009 at 11:21 AM, Ista Pouss ista...@gmail.com wrote:
 Hi,

 What is the best technique to do some if else and so on with wicket ?

 I need a html with something like that (stupid and naïve approch) :

 wicket:if (something = toto)
  div do this thing/div
 wicket:else if (something = foo)
  pa href=error.htmlIt's not good/a/p
 wicket:else if (something = other)
  divrender other/div

 How to do that with wicket ?

 Thanks.

 -
 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+guice+hibernate

2009-03-18 Thread francisco treacy
http://www.cafesolo.com.ar/2008/10/22/wicket-guice-warp-and-hibernate-a-quickstart-project/

francisco


On Wed, Mar 18, 2009 at 4:57 PM,  srividh...@yahoo.com wrote:

 I am a newbie to wicket and guice . I would like to look at some examples of 
 the trio before starting to use them for my project. Can somebody point me to 
 them?
 thanks
 Vidhya





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



Re: maven, eclipse and wicket

2009-03-23 Thread francisco treacy
i'm not sure i'm using m2eclipse (but i think so). to download sources
just right click on your eclipse project, go to maven  download
sources. if we're using the same plugin, this should work.

francisco


On Mon, Mar 23, 2009 at 6:23 PM, Luther Baker lutherba...@gmail.com wrote:
 I am having a slight bit of trouble getting Eclipse to step into the Wicket
 source code while using the m2eclipse plugin.

 The m2eclpse has successfully downloaded the Wicket 1.3.5 distribution. My
 application fires up and works just fine in Eclipse. I have also enabled the
 m2eclipse plugin to download sources - I can see the source jars in the m2
 repository now as well.

 I am trying to implement a security/authentiation/authorization scheme and
 while debugging, anytime I step out of my workspace source code, I get a
 window in Eclipse that says Source not found and a button that says Edit
 Source Lookup Path...

 If I click that button, I can choose to explicitly add:

 *Archive*: a jar or zip in the workspace containing source files
 *External Archive*: a jar or zip in the local file system containing source
 files
 *File System Directory*: a directory in the local file system
 *Java Classpath Variable*: workspace folder, local directory, or archive
 referenced by a variable path
 *Java Library*: a collection of binary archives with attached source
 *Java Project*: source folders in a Java project
 *Project*: a project in the workspace
 *Working Set*:
 *Workspace*: all projects in the workspace
 *Workspace Folder*: a folder in the workspace

 And I can click External Archive and explicitly add every single source jar
 file --- but I was wondering - shouldn't this automatically happen?

 Does anyone have a suggestion? or confirmation that these source jars must
 be manually added to step into Wicket code while using the m2eclipse plugin
 in Eclipse? I think this is probably an m2eclipse question ... but hoping
 someone here has dealt with this already.

 Thanks much,

 -Luther


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



Re: Info sobre el Softphone en Xubuntu

2009-03-25 Thread francisco treacy
ok, i'll try to clarify that a bit :)

javier,

parece que te equivocaste de lista (esta es la de apache wicket, por
lo tanto es improbable que recibas una respuesta a tu problema).
probablemente quieras reenviar el mensaje a quien realmente
corresponda.

saludos

francisco


2009/3/25 Jeremy Thomerson jer...@wickettraining.com:
 Pienso que usted tiene la lista de personas a quienes se mandan propaganda
 incorrecta. Esta lista está para el proyecto del Wicket de Apache (
 http://wicket.apache.org). Usted tendría probablemente mejor éxito en
 http://ubuntuforums.org/

 That was my babelfish translation of:
 I think that you have the wrong mailing list.  This list is for the Apache
 Wicket project (http://wicket.apache.org).  You probably would have better
 success at http://ubuntuforums.org/;


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



 2009/3/19 JaviR javierma...@gmail.com

 Sabes, hize lo que dices para poder hacer funcionar el softphone en linux,
 tengo Xubuntu, estoy usando crossover que es en base a wine emulando el
 vista, pero al hacer la llamada me dice que hay un fallo en la
 negociacion
 cuando contestan la llamada, me puedes ayudar porfa.



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



wicket jobs in toulouse, france?

2008-07-17 Thread francisco treacy
hi guys,

i love wicket and i'm currently searching for employment. i couldn't
actually find any wicket jobs near toulouse.

does somebody by chance knows if there are companies looking for
wicket developers near here?

thanks in advance

francisco

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



wicket + spring + jpa reference example?

2008-08-06 Thread francisco treacy
hi,

i need to develop a project with wicket + spring + jpa. i'm not used
lately to this setup, so i tried to build it up, not without some
trouble.

so my question here is: do you know a current good wicket + spring +
jpa reference/example?

earlier today i checked out qwicket, but there's some really odd
problem that prevents the app to load (no exceptions thrown
whatsoever). also wicket in action, but it is not built with jpa (just
plain hibernate) and i cannot figure out the correct
applicationContext.xml...

thanks!

francisco

ps. argh, i just love my normal setup with wicket + guice + salve +
warp-persist, no xml, works like a charm :)

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



Re: wicket + spring + jpa reference example?

2008-08-06 Thread francisco treacy
it's me again. minutes after the post i found my way out of that
applicationContext maze... but thanks anyway!

francisco

On Wed, Aug 6, 2008 at 11:25 PM, francisco treacy
[EMAIL PROTECTED] wrote:
 hi,

 i need to develop a project with wicket + spring + jpa. i'm not used
 lately to this setup, so i tried to build it up, not without some
 trouble.

 so my question here is: do you know a current good wicket + spring +
 jpa reference/example?

 earlier today i checked out qwicket, but there's some really odd
 problem that prevents the app to load (no exceptions thrown
 whatsoever). also wicket in action, but it is not built with jpa (just
 plain hibernate) and i cannot figure out the correct
 applicationContext.xml...

 thanks!

 francisco

 ps. argh, i just love my normal setup with wicket + guice + salve +
 warp-persist, no xml, works like a charm :)


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



Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
wicket phonebook, yes. i had some trouble yesterday checking it out
from the repo, so i used the download link. but that version (1.2
iirc) is outdated. anyway everything works now :)

i just stumbled upon this:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite .
haven't tried it, though. but next time i will!

francisco

On Wed, Aug 6, 2008 at 11:34 PM, Ryan Gravener [EMAIL PROTECTED] wrote:
 Have you taken a look at wicket-phonebook?

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/

 I have a demo project for wicket+hibernate+spring+flex+blazeds in the works,
 but it is far from perfect:
 http://code.google.com/p/wicket-flex-blazeds/

 On Wed, Aug 6, 2008 at 5:25 PM, francisco treacy [EMAIL PROTECTED]
 wrote:

 hi,

 i need to develop a project with wicket + spring + jpa. i'm not used
 lately to this setup, so i tried to build it up, not without some
 trouble.

 so my question here is: do you know a current good wicket + spring +
 jpa reference/example?

 earlier today i checked out qwicket, but there's some really odd
 problem that prevents the app to load (no exceptions thrown
 whatsoever). also wicket in action, but it is not built with jpa (just
 plain hibernate) and i cannot figure out the correct
 applicationContext.xml...

 thanks!

 francisco

 ps. argh, i just love my normal setup with wicket + guice + salve +
 warp-persist, no xml, works like a charm :)

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




 --
 Ryan Gravener
 http://twitter.com/ryangravener


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



Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
i bought it last year :) and it's excellent, btw. i just wanted a
quick no-brainer example and wicket-lolite could have been the perfect
answer. thanks

francisco

On Thu, Aug 7, 2008 at 8:25 PM, shetc [EMAIL PROTECTED] wrote:

 Buy Wicket In Action from Manning Publishers -- it has a useful Wicket +
 Spring + Hibernate example. Replace Hibernate with the JPA equivalents.
 --
 View this message in context: 
 http://www.nabble.com/wicket-%2B-spring-%2B-jpa-reference-example--tp18859884p18876793.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



wicket-like framework to complement wicket?

2008-08-20 Thread francisco treacy
hi guys,

i started to work on a little utility to glue some libraries that i
already use with wicket. they became a standard stack when i develop
applications: these are guice, salve, warp-persist and neodatis odb.

this utility is meant to work with wicket, so i thought it would be
nice to add some wicket-specific functionality like databinder does,
for example.

just a simple library to bootstrap with wicket, providing
out-of-the-box dependency injection, transactions and persistence to
your domain classes. i imagine neodatis could be easily replaced with
any other database, thanks to warp-persist's pluggable persistence
strategies.

perhaps somebody else is using the same technologies and finds this
idea worthwhile. more here:
http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/

let me know what you think -- even if it's complete nonsense :)  thanks!

francisco

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



Re: wicket-like framework to complement wicket?

2008-08-21 Thread francisco treacy
sure!
when i'm finished with neodatis integration, i'll open source the
whole thing (really small though). we could then create a
wicket-iolite archetype. i'll check if all the dependencies are
available in public maven repos.

i'll keep you updated. i'm looking for a name for this thing... have
already 2 or 3 but suggestions are welcome :)

francisco



On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Really great, now we just need it to get packed with Wicket iolite:)

 francisco treacy wrote:

 hi guys,

 i started to work on a little utility to glue some libraries that i
 already use with wicket. they became a standard stack when i develop
 applications: these are guice, salve, warp-persist and neodatis odb.

 this utility is meant to work with wicket, so i thought it would be
 nice to add some wicket-specific functionality like databinder does,
 for example.

 just a simple library to bootstrap with wicket, providing
 out-of-the-box dependency injection, transactions and persistence to
 your domain classes. i imagine neodatis could be easily replaced with
 any other database, thanks to warp-persist's pluggable persistence
 strategies.

 perhaps somebody else is using the same technologies and finds this
 idea worthwhile. more here:

 http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/

 let me know what you think -- even if it's complete nonsense :)  thanks!

 francisco

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



 --
 -Wicket for love

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


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



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



Re: wicket-like framework to complement wicket?

2008-08-22 Thread francisco treacy
i opened up a googlecode account, where i'll be hosting the project. i
need to write some more tests, sort out a configuration issue and
polish it up. then i will do the first commit.

btw i chose a random name: gluw (pronunced 'glue' and meaning sth like
glue for wicket) because it's all about that :)
http://code.google.com/p/gluw/ , there's no code available yet though.

i'll keep you updated. cheers,

francisco


On Fri, Aug 22, 2008 at 8:48 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Great:)

 No great names pop to my mind now:(

 francisco treacy wrote:

 sure!
 when i'm finished with neodatis integration, i'll open source the
 whole thing (really small though). we could then create a
 wicket-iolite archetype. i'll check if all the dependencies are
 available in public maven repos.

 i'll keep you updated. i'm looking for a name for this thing... have
 already 2 or 3 but suggestions are welcome :)

 francisco



 On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 Really great, now we just need it to get packed with Wicket iolite:)

 francisco treacy wrote:


 hi guys,

 i started to work on a little utility to glue some libraries that i
 already use with wicket. they became a standard stack when i develop
 applications: these are guice, salve, warp-persist and neodatis odb.

 this utility is meant to work with wicket, so i thought it would be
 nice to add some wicket-specific functionality like databinder does,
 for example.

 just a simple library to bootstrap with wicket, providing
 out-of-the-box dependency injection, transactions and persistence to
 your domain classes. i imagine neodatis could be easily replaced with
 any other database, thanks to warp-persist's pluggable persistence
 strategies.

 perhaps somebody else is using the same technologies and finds this
 idea worthwhile. more here:


 http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/

 let me know what you think -- even if it's complete nonsense :)  thanks!

 francisco

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




 --
 -Wicket for love

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


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




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



 --
 -Wicket for love

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


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



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



Re: Session creation

2008-08-23 Thread francisco treacy
with that exact setup in my webapps, if i do something like

   public static MySession get() {
   logger.debug(Session.get());
   return (MySession) Session.get();
   }

i always observe the same session in the logs, for any page that
requests it ([EMAIL PROTECTED]). don't you? you mean
newSession is called several times during the app's lifecycle?

francisco


On Sat, Aug 23, 2008 at 7:48 PM, nate roe [EMAIL PROTECTED] wrote:
 I've created a new Wicket application following the session creation
 pattern illustrated in Wicket in Action, but for reasons not obvious
 to me, every web request returns an entirely new session.

 This is my application:

 public class MyApplication extends WebApplication {
Logger logger = Logger.getLogger(MyApplication.class);

public MyApplication() {
mountBookmarkablePage(verify, VerificationPage.class);
mountBookmarkablePage(register, RegistrationPage.class);
}

public Class getHomePage() {
return LoginPage.class;
}

@Override
public Session newSession(Request request, Response response) {
logger.debug(new session!);

return new MySession(request);
}
 }


 And this is my session:

 public class MySession extends WebSession {

private static final long serialVersionUID = 1L;

private Account account;

public MySession(Request request) {
super(request);
setLocale(Locale.ENGLISH);
}

public static MySession get() {
return (MySession) Session.get();
}

public boolean isAuthenticated() {
return account != null;
}

public Account getAccount() {
return account;
}

public void setAccount(Account account) {
this.account = account;
}
 }

 What have I done wrong?

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



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



Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-24 Thread francisco treacy
one thing you can do is use wicket with guice and hibernate, and have
warp-persist ( http://www.wideplay.com/guicewebextensions2 ) for
transactions.

it's a nice stack that i use, a lightweight alternative to spring. and
no need for java ee containers.

you can have a look here:
http://www.richard-wilkinson.co.uk/2008/04/19/wicket-guice-and-warp-persist/
 and here http://code.google.com/p/warp-persist-sample/ .

francisco



On Sun, Aug 24, 2008 at 5:44 AM, Patrick Angeles [EMAIL PROTECTED] wrote:

 You can use annotations or spring-javaconfig with Spring if you don't want to
 go through too much XML configuration. That criticism is really unwarranted
 these days. The annotation-style configuration is very similar to how Guice
 works, whereas spring-javaconfig is basically like writing the spring.xml
 file in Java code. The latter is nice in that all the wiring is centralized,
 but you still get the benefits of working with a Java IDE, such as
 refactoring or searching for occurences.

 There's probably some easy way to hook Guice up with the Spring transaction
 manager, but I've never tried.

 And yes, you should be able to run Wicket in an EJB3 Container, but you'll
 have to deal with some boilerplate code that will allow you to inject your
 EJB3 services into Wicket components...

 Personally, I would recommend going with Wicket, Spring and Hibernate (or
 JPA) via spring-javaconfig.


 jpswain wrote:

 I'm just curious what everyone is using for transaction management.  I
 have been working with Wicket for a while now (and loving it) on a pet
 project that also uses Hibernate and Guice.
 I'm realizing now that I might need/want transactional support for a
 couple parts of my app.

 I don't have any experience with Spring or Java EE or EJB, but have been
 avoiding Spring because of what I have read and seen online with so much
 XML-coding.  Is it possible to use spring transaction module by itself and
 without too much XML?  I'd really appreciate hearing what y'all are you
 guys using for your transactional needs.

 Also is it possible to run a Wicket-based project inside a JEE container
 like Glassfish or JBoss AS directly to take advantage of EJB  JTA,
 or would that require something like Seam + wicket-seam integration?

 If anyone has recommendations on where to get started with transactions,
 that would be great too.

 Thanks!
 J


 --
 View this message in context: 
 http://www.nabble.com/My-Wicket-%2B-Hibernate-project--Transaction-solutions--Java-EE-w--Wicket--tp19127403p19127522.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: wicket serlization impact on singleton spring bean with a transient property

2008-08-25 Thread francisco treacy
use @SpringBean and don't mark the field transient!

it can actually be serialized without problem because what's injected
is not the actual bean but a proxy of it.

francisco

On Mon, Aug 25, 2008 at 8:38 PM, James Carman
[EMAIL PROTECTED] wrote:
 Have you tried using the @SpringBean annotation?  Check out this WIKI
 page for more information:

 http://cwiki.apache.org/WICKET/spring.html

 On Mon, Aug 25, 2008 at 2:34 PM, miro [EMAIL PROTECTED] wrote:

 I am using wicket, spring, hibernate.  Wicket wants all my objects to be
 serialized.  One on the object in my wicket component is a spring bean and
 it has a setter injection to non serializable  property so I made this
 property transient, the spring bean   is a singleton so only one instance is
 created,now  suppose wicket serialized my spring bean and deserialized, the
 transient property remain null , how to handle this ?

 --
 View this message in context: 
 http://www.nabble.com/wicket-serlization--impact-on--singleton-spring-bean-with-a-transient-property-tp19149229p19149229.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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



Re: Wicketstuff snapshots

2008-08-25 Thread francisco treacy
somehow it doesn't find prototype which is a dependency. you can
install it manually.

svn co 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-prototype
prototype
cd prototype
mvn install

and retry building scriptaculous.

now my problem is; is wicketstuff-scriptaculous broken?

trunk won't compile:

[INFO] Compilation failure
C:\Documents and Settings\m\scriptaculous\src\java\org\wicketstuff\scriptaculous
\dragdrop\SortableListView.java:[46,2] cannot find symbol
symbol  : constructor SortableListView(java.lang.String,java.lang.String,org.apa
che.wicket.model.IModeljava.util.List? extends T)
location: class org.wicketstuff.scriptaculous.dragdrop.SortableListViewT

C:\Documents and Settings\m\scriptaculous\src\java\org\wicketstuff\scriptaculous
\dragdrop\SortableListView.java:[46,2] cannot find symbol
symbol  : constructor SortableListView(java.lang.String,java.lang.String,org.apa
che.wicket.model.IModeljava.util.List? extends T)
location: class org.wicketstuff.scriptaculous.dragdrop.SortableListViewT

i guess this is a problem with wicket generic support -- but what
should i do to get scriptaculous to work?

btw i tried with snapshots from 1.3 and 1.4 and nothing is working
with wicket-1.4m3.

(1.3)
java.lang.NoSuchMethodError:
org.wicketstuff.scriptaculous.dragdrop.SortableListView.add(Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component;
 at 
org.wicketstuff.scriptaculous.dragdrop.SortableListView.init(SortableListView.java:54)
 at 
org.wicketstuff.scriptaculous.dragdrop.SortableListView.init(SortableListView.java:46)

same thing as kaspar with (1.4):

 java.lang.NoSuchMethodError:
org.wicketstuff.scriptaculous.dragdrop.SortableListView.getModelObject()Ljava/lang/Object;

could you give me some hints on how to make this work?

thanks!

francisco

On Tue, Aug 19, 2008 at 3:26 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
 I guess the first error (see below) is not relevant as other projects have
 it, too.

 Regarding the second error: Does anybody have an idea why
 wicketstuff-prototype
 makes the build fail?

 I can see wicketstuff-prototype in the SVN repo but it is not listed on
 http://wicketstuff.org/teamcity/overview.html -- is this normal?

 Being a Maven newbie, I am a lost here. Maybe the problem is that the
 scriptaculous-pom.xml lists the repo as

  repository
idwicket-stuff-repository/id
nameWicket-Stuff Repository/name
urlhttp://www.wicketstuff.org/maven/repository//url
  /repository

 without a

  snapshots
enabledtrue/enabled
  /snapshots

 ? Too many trees in this forest for me ;-)

 On 19.08.2008, at 13:30, Kaspar Fischer wrote:

 Loggin into teamcity as guest, I see Problems with VCS connection:

  Failed for the root 'Wicket Stuff 1.4 repository' #3: Checking changes
 for checkout rule
 'trunk/wicket-contrib-tinymce=trunk/wicket-contrib-tinymce' failed with
 erorr: org.tmatesoft.svn.core.SVNException: svn: PROPFIND request failed on
 '/svnroot/wicket-stuff/trunk/wicket-contrib-tinymce/src/java/wicket/contrib/tinymce/tiny_mce/langs/tw.js'
 svn: Network is unreachable

 and in addition a build error:

 [ERROR] BUILD ERROR
 [12:26:40]: [INFO]
 
 [12:26:40]: [INFO] Failed to resolve artifact.
 [12:26:40]:
 [12:26:40]: Missing:
 [12:26:40]: --
 [12:26:40]: 1) org.wicketstuff:wicketstuff-prototype:jar:1.4-SNAPSHOT
 [12:26:40]:
 [12:26:40]: Try downloading the file manually from the project website.
 [12:26:40]:
 [12:26:40]: Then, install it using the command:
 [12:26:40]: mvn install:install-file -DgroupId=org.wicketstuff
 -DartifactId=wicketstuff-prototype -Dversion=1.4-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file
 [12:26:40]:
 [12:26:40]: Alternatively, if you host your own repository you can deploy
 the file there:
 [12:26:40]: mvn deploy:deploy-file -DgroupId=org.wicketstuff
 -DartifactId=wicketstuff-prototype -Dversion=1.4-SNAPSHOT -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 [12:26:40]:
 [12:26:40]: Path to dependency:
 [12:26:40]: 1) org.wicketstuff:wicketstuff-scriptaculous:jar:1.4-SNAPSHOT
 [12:26:40]: 2) org.wicketstuff:wicketstuff-prototype:jar:1.4-SNAPSHOT
 [12:26:40]:
 [12:26:40]: --
 [12:26:40]: 1 required artifact is missing.
 [12:26:40]:
 [12:26:40]: for artifact:
 [12:26:40]: org.wicketstuff:wicketstuff-scriptaculous:jar:1.4-SNAPSHOT
 [12:26:40]:
 [12:26:40]: from the specified remote repositories:
 [12:26:40]: central (http://repo1.maven.org/maven2),
 [12:26:40]: wicket-stuff-repository
 (http://www.wicketstuff.org/maven/repository/)

 Is the first error the one
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: wicket serlization impact on singleton spring bean with a transient property

2008-08-25 Thread francisco treacy
have you read what james suggested?

http://cwiki.apache.org/WICKET/spring.html

On Mon, Aug 25, 2008 at 8:47 PM, miro [EMAIL PROTECTED] wrote:

 I am uisng  java 1.4 and spring 2.5 ,I cannot use annotations, can this be
 done in jdk 1.4 and spring 1.1   or 2. 5

 francisco treacy-2 wrote:

 use @SpringBean and don't mark the field transient!

 it can actually be serialized without problem because what's injected
 is not the actual bean but a proxy of it.

 francisco

 On Mon, Aug 25, 2008 at 8:38 PM, James Carman
 [EMAIL PROTECTED] wrote:
 Have you tried using the @SpringBean annotation?  Check out this WIKI
 page for more information:

 http://cwiki.apache.org/WICKET/spring.html

 On Mon, Aug 25, 2008 at 2:34 PM, miro [EMAIL PROTECTED] wrote:

 I am using wicket, spring, hibernate.  Wicket wants all my objects to be
 serialized.  One on the object in my wicket component is a spring bean
 and
 it has a setter injection to non serializable  property so I made this
 property transient, the spring bean   is a singleton so only one
 instance is
 created,now  suppose wicket serialized my spring bean and deserialized,
 the
 transient property remain null , how to handle this ?

 --
 View this message in context:
 http://www.nabble.com/wicket-serlization--impact-on--singleton-spring-bean-with-a-transient-property-tp19149229p19149229.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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




 --
 View this message in context: 
 http://www.nabble.com/wicket-serlization--impact-on--singleton-spring-bean-with-a-transient-property-tp19149229p19149432.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Problem compiling SVN trunk: Failed to resolve artifact

2008-08-25 Thread francisco treacy
i ran into the same issue today.

i needed to remove

dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket/artifactId
   classifiertests/classifier
   scopetest/scope
   /dependency

from wicket-extensions. after that  mvn -Dmaven.test.skip=true install
works fine.

francisco



On Tue, May 27, 2008 at 9:34 AM, Frank Bille [EMAIL PROTECTED] wrote:
 Run mvn install in the root directory, not the individual projects.
 Else you need to manually mvn install in all the wicket dependencies
 for a project. It doesn't take very long (1-2min).

 Frank


 On Tue, May 27, 2008 at 9:20 AM, Kaspar Fischer [EMAIL PROTECTED] wrote:
 I have removed from file wicket-trunk/wicket-extensions/pom.xml the
 following
 dependency:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
classifiertests/classifier
scopetest/scope
/dependency

 and now mvn -Dmaven.test.skip=true install works.

 Has somebody succeeded in compiling his/her own build of wicket without
 editing
 the source?

 On 27.05.2008, at 08:49, Kaspar Fischer wrote:

 Anybody?

 I have tried with a fresh install of mvn (2.0.7) by removing my ~/.m2
 directory
 but run into the identical problem.

 On 26.05.2008, at 23:10, Kaspar Fischer wrote:

 I am trying to compile the current SVN trunk version (r660285) of wicket,
 following the instructions

 http://wicket.apache.org/building-from-svn.html

 mvn clean and mvn compile run without problems, but mvn package
 fails with Failed to resolve artifact (see below). Any ideas what I
 am doing wrong? Or do I really have to download something, but if so,
 from where?

 Thanks,
 Kaspar

 --
 [INFO] Building Wicket Extensions
 [INFO]task-segment: [package]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [bundle:manifest {execution: bundle-manifest}]
 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.apache.wicket:wicket:jar:tests:1.4-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.wicket
 -DartifactId=wicket \
-Dversion=1.4-SNAPSHOT -Dclassifier=tests -Dpackaging=jar
 -Dfile=/path/to/file
 Alternatively, if you host your own repository you can deploy the file
 there:   mvn deploy:deploy-file -DgroupId=org.apache.wicket
 -DartifactId=wicket \
-Dversion=1.4-SNAPSHOT -Dclassifier=tests -Dpackaging=jar
 -Dfile=/path/to/file \
 -Durl=[url] -DrepositoryId=[id]

 Path to dependency:
1) org.apache.wicket:wicket-extensions:jar:1.4-SNAPSHOT
2) org.apache.wicket:wicket:jar:tests:1.4-SNAPSHOT

 --
 1 required artifact is missing.

 for artifact:
 org.apache.wicket:wicket-extensions:jar:1.4-SNAPSHOT

 from the specified remote repositories:
 central (http://repo1.maven.org/maven2)


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



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



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



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



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



Re: Displaying HTML formatted text (raw markup) from String

2008-08-26 Thread francisco treacy
setEscapeModelStrings on your Label

francisco

On Tue, Aug 26, 2008 at 11:29 AM, btakacs [EMAIL PROTECTED] wrote:

 Hi

 I would need to display HTML formatted text inside my page. The text is
 stored in the database, so i would need to display it through component. Is
 there a way to do this? I did not find any specific component for that.

 Maybe I could Override the renderAll(MarkupStream markupStream) method of
 MarkupContainer?

 Thanks:
   Bence


 --
 View this message in context: 
 http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158563.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: wicket-like framework to complement wicket?

2008-09-03 Thread francisco treacy
without bells and whistles, i'd like to announce the availability of
gluw, a utility library to glue wicket together with a persistence
stack (guice+salve+warp+neodatis odb).

http://code.google.com/p/gluw/

the idea is to allow for rapid prototype development in a DDD fashion,
because after setup you should be able to get going really fast.

i tested it in two or three of my projects and it seems to work fine
(also with wicket quickstart - no probs so far). if you're willing to
give it a shot let me know your impressions. i must say that it is
quite experimental for the moment -- mainly because of neodatis object
database integration.

nino, do you still think we could make this fit in wicket-iolite or
some other sort of maven archetype? (btw, sorry guys, i'll be
mavenizing the project soon; there are perhaps too many libraries to
handle manually).

francisco


On Fri, Aug 22, 2008 at 1:32 PM, francisco treacy
[EMAIL PROTECTED] wrote:
 i opened up a googlecode account, where i'll be hosting the project. i
 need to write some more tests, sort out a configuration issue and
 polish it up. then i will do the first commit.

 btw i chose a random name: gluw (pronunced 'glue' and meaning sth like
 glue for wicket) because it's all about that :)
 http://code.google.com/p/gluw/ , there's no code available yet though.

 i'll keep you updated. cheers,

 francisco


 On Fri, Aug 22, 2008 at 8:48 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
 Great:)

 No great names pop to my mind now:(

 francisco treacy wrote:

 sure!
 when i'm finished with neodatis integration, i'll open source the
 whole thing (really small though). we could then create a
 wicket-iolite archetype. i'll check if all the dependencies are
 available in public maven repos.

 i'll keep you updated. i'm looking for a name for this thing... have
 already 2 or 3 but suggestions are welcome :)

 francisco



 On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 Really great, now we just need it to get packed with Wicket iolite:)

 francisco treacy wrote:


 hi guys,

 i started to work on a little utility to glue some libraries that i
 already use with wicket. they became a standard stack when i develop
 applications: these are guice, salve, warp-persist and neodatis odb.

 this utility is meant to work with wicket, so i thought it would be
 nice to add some wicket-specific functionality like databinder does,
 for example.

 just a simple library to bootstrap with wicket, providing
 out-of-the-box dependency injection, transactions and persistence to
 your domain classes. i imagine neodatis could be easily replaced with
 any other database, thanks to warp-persist's pluggable persistence
 strategies.

 perhaps somebody else is using the same technologies and finds this
 idea worthwhile. more here:


 http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/

 let me know what you think -- even if it's complete nonsense :)  thanks!

 francisco

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




 --
 -Wicket for love

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


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




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



 --
 -Wicket for love

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


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




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



Re: wicket-like framework to complement wicket?

2008-09-04 Thread francisco treacy
 We really should try to get a common project put together for this
 stuff.

as far as i can see wicketopia and wicket-iolite address the same
(scaffolding) and this is great.  you should see if it's worth to
merge them.

at the same time, what i am trying to do with gluw is to provide
out-of-the-box persistence, which doesn't imply code generation
(something i don't really like from ruby on rails), and can also be
integrated in existing projects.
these are quite orthogonal concepts, even gluw with domdrides, which
you can decide to use it or not in your domain model.

gluw is an alternative persistence stack to, for instance,
spring/jpa/hibernate/mysql, so it could be included in your archetypes
to make it even easier. this will be convenient also from a dependency
management standpoint as it'll force me to mavenize the project :)
well, it would be awesome, in fact.

 to be honest i'm waiting for warp and neodatis communities to publish
their (updated) artifacts. otherwise i could host them myself in some
personal online repo? what do you think?

francisco



  I'm also working on something like this that is based on my
 domdrides library.  It's called wicketopia and you can find it at:

 http://wicketopia.sourceforge.net

 It has minimal functionality right now, but soon it will have:

 1.  Maven goals to generate scaffold-like structures (a la RoR)
 2.  Fully functional archetypes for Hibernate, JPA, and iBATIS which
 have a scaffold set up for an imaginary domain class (Widget
 currently).
 3.  Automatic (fully customizable) form generation.  The metadata
 layer will allow you to plugin your own decorators so you can get
 your metadata from wherever you want (annotations, xml, hibernate
 metadata, etc.).  Wicketopia will provide some useful standard
 implementations of course.
 4.  Components used by the form generation component that you can use
 in your own hand-coded forms (like property labels and property
 editors).
 5.  Editor registry functionality.  So, if you don't like the editor
 that's used to edit stuff (like dates perhaps), then you can register
 your own!

 That's what I've got off the top of my head.

 On Thu, Sep 4, 2008 at 1:49 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 francisco treacy wrote:

 without bells and whistles, i'd like to announce the availability of
 gluw, a utility library to glue wicket together with a persistence
 stack (guice+salve+warp+neodatis odb).

 http://code.google.com/p/gluw/

 the idea is to allow for rapid prototype development in a DDD fashion,
 because after setup you should be able to get going really fast.

 i tested it in two or three of my projects and it seems to work fine
 (also with wicket quickstart - no probs so far). if you're willing to
 give it a shot let me know your impressions. i must say that it is
 quite experimental for the moment -- mainly because of neodatis object
 database integration.

 nino, do you still think we could make this fit in wicket-iolite or
 some other sort of maven archetype?

 Yes defiantly. The idea with Iolite are that it somehow should encapsule an
 embrella of different approaches, and gluw are defiantly one..

  (btw, sorry guys, i'll be
 mavenizing the project soon; there are perhaps too many libraries to
 handle manually).

 francisco


 On Fri, Aug 22, 2008 at 1:32 PM, francisco treacy
 [EMAIL PROTECTED] wrote:


 i opened up a googlecode account, where i'll be hosting the project. i
 need to write some more tests, sort out a configuration issue and
 polish it up. then i will do the first commit.

 btw i chose a random name: gluw (pronunced 'glue' and meaning sth like
 glue for wicket) because it's all about that :)
 http://code.google.com/p/gluw/ , there's no code available yet though.

 i'll keep you updated. cheers,

 francisco


 On Fri, Aug 22, 2008 at 8:48 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 Great:)

 No great names pop to my mind now:(

 francisco treacy wrote:


 sure!
 when i'm finished with neodatis integration, i'll open source the
 whole thing (really small though). we could then create a
 wicket-iolite archetype. i'll check if all the dependencies are
 available in public maven repos.

 i'll keep you updated. i'm looking for a name for this thing... have
 already 2 or 3 but suggestions are welcome :)

 francisco



 On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:



 Really great, now we just need it to get packed with Wicket iolite:)

 francisco treacy wrote:



 hi guys,

 i started to work on a little utility to glue some libraries that i
 already use with wicket. they became a standard stack when i develop
 applications: these are guice, salve, warp-persist and neodatis odb.

 this utility is meant to work with wicket, so i thought it would be
 nice to add some wicket-specific functionality like databinder does,
 for example.

 just a simple library to bootstrap with wicket, providing

Re: wicket-like framework to complement wicket?

2008-09-05 Thread francisco treacy
first off, i admit i didn't know too much about domdrides.

so it seems i was talking about the entity part. e.g. extend
UuidEntity in your domain, that is orthogonal to gluw. concerning
domdrides repository approach, as a quick idea i can imagine
implementing gluw in an adapter pattern manner. not sure about generic
params though.

/**
* A Gluw-based implementation of a person repository.
*/
public class GluwPersonRepository extends
GluwRepositoryPerson,String implements PersonRepository
 {
public GluwPersonRepository()
{
  super(Person.class);
}
}

public abstract class GluwRepositoryEntityType extends
EntityIdType, IdType extends Serializable extends
gluw.repo.RepositoryImplEntityType extends EntityIdType implements
RepositoryEntityType, IdType
 {

protected HibernateRepository(ClassEntityType entityClass)
 {
  super(entityClass); // will have to change constructor's package scope
 }


 // adapt existing methods signatures to super methods

 // new methods such as contains() not found in gluw.repo.Repository,
implement by calling getDB() which provides an instance of ODB
(neodatis)
 // - analogous to spring's HibernateDaoSupport

}

note you won't be taking advantage of the ootb
gluw.repo.RepositoryEntity if you use domdrides approach
(obviously). do you think integration is feasible?

francisco

ps: i should re-examine the way i'm handling getById(Serializable id).
as i don't force the end user to extend any particular domain base
class, i use a string/reflection-style ODB query -- which can cause
trouble if the id field is not present. will have to evaluate
tradeoffs of both approaches

On Fri, Sep 5, 2008 at 12:56 PM, James Carman
[EMAIL PROTECTED] wrote:
 Really?  Would it be easy to implement this interface:

 http://domdrides.sourceforge.net/domdrides-core/apidocs/org/domdrides/repository/Repository.html

 If so, I'd be interested in the code as another submodule to domdrides
 (we've got hibernate, jpa, and iBATIS right now).

 On Fri, Sep 5, 2008 at 1:49 AM, Fernando Wermus
 [EMAIL PROTECTED] wrote:
 Francisco,
   I integrated db4o with wicket.

 bye!

 On Thu, Aug 21, 2008 at 9:25 AM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 sure!
 when i'm finished with neodatis integration, i'll open source the
 whole thing (really small though). we could then create a
 wicket-iolite archetype. i'll check if all the dependencies are
 available in public maven repos.

 i'll keep you updated. i'm looking for a name for this thing... have
 already 2 or 3 but suggestions are welcome :)

 francisco



 On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
  Really great, now we just need it to get packed with Wicket iolite:)
 
  francisco treacy wrote:
 
  hi guys,
 
  i started to work on a little utility to glue some libraries that i
  already use with wicket. they became a standard stack when i develop
  applications: these are guice, salve, warp-persist and neodatis odb.
 
  this utility is meant to work with wicket, so i thought it would be
  nice to add some wicket-specific functionality like databinder does,
  for example.
 
  just a simple library to bootstrap with wicket, providing
  out-of-the-box dependency injection, transactions and persistence to
  your domain classes. i imagine neodatis could be easily replaced with
  any other database, thanks to warp-persist's pluggable persistence
  strategies.
 
  perhaps somebody else is using the same technologies and finds this
  idea worthwhile. more here:
 
 
 http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/
 
  let me know what you think -- even if it's complete nonsense :)  thanks!
 
  francisco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  -Wicket for love
 
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/


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



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



Re: wicket-like framework to complement wicket?

2008-09-05 Thread francisco treacy
fernando,

good! but i personally restrain from using db4o as its license is
quite restrictive. that's why i'm supporting neodatis, which is slowly
gaining momentum.

is your code available? how are you handling transactions? how do you
get references to ObjectContainers in your wicket pages?

chau che

francisco


On Fri, Sep 5, 2008 at 7:49 AM, Fernando Wermus
[EMAIL PROTECTED] wrote:
 Francisco,
   I integrated db4o with wicket.

 bye!

 On Thu, Aug 21, 2008 at 9:25 AM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 sure!
 when i'm finished with neodatis integration, i'll open source the
 whole thing (really small though). we could then create a
 wicket-iolite archetype. i'll check if all the dependencies are
 available in public maven repos.

 i'll keep you updated. i'm looking for a name for this thing... have
 already 2 or 3 but suggestions are welcome :)

 francisco



 On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
  Really great, now we just need it to get packed with Wicket iolite:)
 
  francisco treacy wrote:
 
  hi guys,
 
  i started to work on a little utility to glue some libraries that i
  already use with wicket. they became a standard stack when i develop
  applications: these are guice, salve, warp-persist and neodatis odb.
 
  this utility is meant to work with wicket, so i thought it would be
  nice to add some wicket-specific functionality like databinder does,
  for example.
 
  just a simple library to bootstrap with wicket, providing
  out-of-the-box dependency injection, transactions and persistence to
  your domain classes. i imagine neodatis could be easily replaced with
  any other database, thanks to warp-persist's pluggable persistence
  strategies.
 
  perhaps somebody else is using the same technologies and finds this
  idea worthwhile. more here:
 
 
 http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/
 
  let me know what you think -- even if it's complete nonsense :)  thanks!
 
  francisco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  -Wicket for love
 
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/


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



Re: Gmap2 not visible

2008-09-05 Thread francisco treacy
try firing your app in DEPLOYMENT mode

francisco

On Fri, Sep 5, 2008 at 6:01 PM, normanr [EMAIL PROTECTED] wrote:

 Hi there,

 i'm having a problem with wicket-contrib-gmap2. I compiled the examples and
 everything worked fine. Then i wrote my own app just for testing but when
 i'm looking at the page i only see the 'powered by Google' Logo and the
 Copyright Notice but no map.

 Here's my Code:
 final GMap2 map = new GMap2(contentLocationGMap, GoogleMapsAPIKey);
add(map);

 and here the HTML:

 div wicket:id=contentLocationGMap style=margin-left: auto; margin-right:
 auto; width: 600px; height: 400px;GoogleMap/div

 Had anybody have this problem too?

 Thanks for the answers ;)

 Regards,

 norman
 --
 View this message in context: 
 http://www.nabble.com/Gmap2-not-visible-tp19334325p19334325.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: wicket-mooeditable release + ajax/javascript problem

2008-09-09 Thread francisco treacy
thanks nino,

in fact i copied what i have done with wicket-nicedit textarea. in
this case, it did work with ajax.

i will grab all available wicket textarea editors, and patiently try
to discover what tricks javascript is playing on me.

francisco


On Mon, Sep 8, 2008 at 2:19 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi Francisco



 francisco treacy wrote:

 i have created a basic wicket component that integrates MooEditable, a
 lightweight textarea editor based on mootools.

 http://code.google.com/p/wicket-mooeditable/

 usage (in your form):

TextAreaString textarea = new TextArea(post);
textarea.setOutputMarkupId(true);
textarea.add(new MooEditableBehavior());
form.add(textarea);

(...)

form.add(new MooEditableAjaxButton(submit, form) {

@Override
protected void onSubmit(AjaxRequestTarget arg0,
 Form arg1) {
// stuff here
}

});


 the need for a special button is because the updated contents of the
 textareas have to be saved before submit. MooEditableAjaxButton is an
 AjaxFallbackButton that decorates the submit's onclick, calling
 saveContent() on every mooeditable-enabled textarea.

 input id=submit4 name=:submit onclick=post1.saveContent();
 title2.saveContent(); var wcall=wicketSubmitFormById('form3' (...)) ;
 return false; type=submit value=ok wicket:id=submit/

 the problem here is that it will always fall back to a normal post,
 never an ajax one. if i change my button to
 form.add(new AjaxFallbackButton(submit, form) { ... }  ajax submit
 does work fine.
 but obviously the model binding is not good (post1.saveContent();
 title2.saveContent(); is not added, therefore textarea's contents are
 not updated).


 Looks like it's a mootools thing? You could take a look at YUI editor or
 tinyMCE  and see how they do their form submission...

 my knowledge in javascript is really limited. how can i get to post
 updated contents with pure ajax, not degrading to a normal request?

 thanks,

 francisco

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



 --
 -Wicket for love

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


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



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



Re: Hiding Wicket ID

2008-09-23 Thread francisco treacy
you can hide text in urls by encrypting them, check out
CryptedUrlWebRequestCodingStrategy. this may help reduce wicket
occurrences in your source code.

francisco

On Tue, Sep 23, 2008 at 4:04 PM, walnutmon [EMAIL PROTECTED] wrote:


 The wicket:id tags are stripped, but the javascript has many wicket
 occurences.  Is there a way to get rid of these too?


 igor.vaynberg wrote:

 in deployment mode those tags are stripped

 -igor

 On Tue, Sep 23, 2008 at 10:35 AM, walnutmon [EMAIL PROTECTED]
 wrote:

 Is it possible to hide wicket:id tags?  Doing so in order to hide that
 you
 are using wicket as a server side technology.
 --
 View this message in context:
 http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




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


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



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



illegal relative path element?

2008-09-26 Thread francisco treacy
hi,

i just noticed that a panel that remained untouched for weeks (and
that worked ok) is now failing - sometimes! the panel simply contains
a search form. depending on which checkbox i check, it behaves fine,
or sometimes it doesn't, if i play with the back button it will
eventually work. i'm completely lost with this one. componment
hierarchy changed between rendering and form submission? (i wonder how
could this be done)

note that the panel is rendered in the search page, and re-rendered
with the results (after submission). i am using wicket 1.4-m3

thanks a lot for your help!

francisco

org.apache.wicket.WicketRuntimeException: submitted http post value
[check11] for CheckGroup component [35:recherche:form:niveaux]
contains an illegal relative path element [check11] which does not
point to a Check component. Due to this the CheckGroup component
cannot resolve the selected Check component pointed to by the illegal
value. A possible reason is that componment hierarchy changed between
rendering and form submission.
 at 
org.apache.wicket.markup.html.form.CheckGroup.convertValue(CheckGroup.java:134)
 at 
org.apache.wicket.markup.html.form.CheckGroup.convertValue(CheckGroup.java:59)
 at 
org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1206)
 at 
org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1110)
 at org.apache.wicket.markup.html.form.Form$20.validate(Form.java:1893)
 at 
org.apache.wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:167)
 at 
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:427)
 at 
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrderHelper(FormComponent.java:414)
 at 
org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:391)
 at 
org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1082)
 at 
org.apache.wicket.markup.html.form.Form.validateComponents(Form.java:1884)
 at org.apache.wicket.markup.html.form.Form.validate(Form.java:1873)
 at org.apache.wicket.markup.html.form.Form.process(Form.java:861)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:826)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
 at 
org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:162)
 at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
 at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1169)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)

the panel:

public RecherchePanel(String id, Recherche dto) {
super(id);

FormRecherche form = new FormRecherche(form);
form.setModel(new CompoundPropertyModelRecherche(dto));

form.add(new DropDownChoiceInteger(surfaceMin, tranches));
form.add(new DropDownChoiceInteger(surfaceMax, tranches));

form.add(new EnumCheckGroupPlan.Niveau(niveaux,
Plan.Niveau.values()));
form.add(new EnumCheckGroupPlan.Style(styles,
Plan.Style.values()));

form.add(new Button(submit) {
@Override
public void onSubmit() {
Recherche dto = (Recherche) 
getParent().getDefaultModelObject();
setResponsePage(new CataloguePage(dto));
}

});

add(form);

}


enumcheckgroup:

public class EnumCheckGroupT extends EnumT extends CheckGroupT {

public EnumCheckGroup(String id, T[] values) {
super(id);

ListViewT listview = new ListViewT(items, 
Arrays.asList(values)) {
protected void populateItem(ListItemT item) {
item.add(new CheckT(check, item.getModel()));
item.add(new Label(label, new
ResourceModel(item.getModelObject().name(;
};
}.setReuseItems(true);

add(listview);

}

}


panel html:

wicket:panel

form wicket:id=form

div
h4Surface/h4
select wicket:id=surfaceMin id=surfaceMin/select
label for=surfaceMinmsup2/label
select wicket:id=surfaceMax id=surfaceMax/select
label for=surfaceMaxmsup2/label br /br /

span 

Re: Checkbox and enum value

2008-09-26 Thread francisco treacy
i'm sorry i didn't see this post before-- i came up with a solution a
couple of weeks ago.

i called it EnumCheckGroup (that is, i went for CheckGroup rather than
CheckBox).

usage:

for a given enum:

public static enum Niveau {
etage, mezzanine, sous_sol;
}

   form.add(new EnumCheckGroupPlan.Niveau(niveaux,
Plan.Niveau.values()));


  span wicket:id=niveaux
   span wicket:id=items
   input type=checkbox wicket:id=check /
   span wicket:id=label/spanbr /
   /span
   /span


impl:

public class EnumCheckGroupT extends EnumT extends CheckGroupT {

   public EnumCheckGroup(String id, T[] values) {
   super(id);

   ListViewT listview = new ListViewT(items,
Arrays.asList(values)) {
   protected void populateItem(ListItemT item) {
   item.add(new CheckT(check, item.getModel()));
   item.add(new Label(label, new
ResourceModel(item.getModelObject().name(;
   };
   }.setReuseItems(true);

   add(listview);

   }

}

obviously you must have the keys in your properties file, such as:

etage=Étage
mezzanine=Mezzanine
sous_sol=Sous-sol


francisco


On Fri, Sep 26, 2008 at 4:29 PM, Cédric Thiébault
[EMAIL PROTECTED] wrote:
 Thanks Igor, it was exactly what i needed :-)

 To complete this post, here is the solution I found :
 http://surunairdejava.blogspot.com/2008/09/wicket-checkbox-abstractcheckboxmodel.html

 Sorry it's in french but the code is easy to understand...

 Cedric


 On Wed, Sep 24, 2008 at 2:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see abstractcheckboxmodel

 -igor

 On Wed, Sep 24, 2008 at 11:37 AM, Cédric Thiébault
 [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to use a checkbox to set an enum value on my form object
 but I always get a type mismatch error (boolean is not an enum and
 vice versa).

 My form object has an enum and I want to display a list of checkboxes
 to allow the user to select the value.
 I don't want to use a radio because my enum can be null and I can't
 unselect my radio group once a radio is selected.

 I tried to extends Checkbox to convert teh boolean to the specified
 enum... it works only in one way (to set the enum value) but it does
 not work when my enum has a value and the checkbox need to render
 itself (the value must be a boolean).


 public class CheckBoxEnum extends CheckBox {

  private final Enum? enumValue;

  public CheckBoxEnum(String id, IModel model, String property,
 Enum? enumValue) {
super(id, new PropertyModel(model, property));
this.enumValue = enumValue;
  }

  @Override
  protected void convertInput() {
String value = getValue();
if (value != null  BooleanUtils.toBoolean(value))
 setConvertedInput(enumValue);
  }
 }

 Any ideas ?

 Thanks

 Cedric

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



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



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



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



Re: Checkbox and enum value

2008-09-26 Thread francisco treacy
 Also, you could have a varargs feature so that users could specify
 exactly what they want without having to instantiate an array.

yes, of course there is place for improvements...
public EnumCheckGroup(String id, T... values)

 Why not just pass the enum class into the constructor?

if i pass the enum object itself, how do i actually get the values?

francisco


 On Fri, Sep 26, 2008 at 4:43 PM, francisco treacy
 [EMAIL PROTECTED] wrote:
 i'm sorry i didn't see this post before-- i came up with a solution a
 couple of weeks ago.

 i called it EnumCheckGroup (that is, i went for CheckGroup rather than
 CheckBox).

 usage:

 for a given enum:

public static enum Niveau {
etage, mezzanine, sous_sol;
}

   form.add(new EnumCheckGroupPlan.Niveau(niveaux,
 Plan.Niveau.values()));


  span wicket:id=niveaux
   span wicket:id=items
   input type=checkbox wicket:id=check /
   span wicket:id=label/spanbr /
   /span
   /span


 impl:

 public class EnumCheckGroupT extends EnumT extends CheckGroupT {

   public EnumCheckGroup(String id, T[] values) {
   super(id);

   ListViewT listview = new ListViewT(items,
 Arrays.asList(values)) {
   protected void populateItem(ListItemT item) {
   item.add(new CheckT(check, item.getModel()));
   item.add(new Label(label, new
 ResourceModel(item.getModelObject().name(;
   };
   }.setReuseItems(true);

   add(listview);

   }

 }

 obviously you must have the keys in your properties file, such as:

 etage=Étage
 mezzanine=Mezzanine
 sous_sol=Sous-sol


 francisco


 On Fri, Sep 26, 2008 at 4:29 PM, Cédric Thiébault
 [EMAIL PROTECTED] wrote:
 Thanks Igor, it was exactly what i needed :-)

 To complete this post, here is the solution I found :
 http://surunairdejava.blogspot.com/2008/09/wicket-checkbox-abstractcheckboxmodel.html

 Sorry it's in french but the code is easy to understand...

 Cedric


 On Wed, Sep 24, 2008 at 2:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see abstractcheckboxmodel

 -igor

 On Wed, Sep 24, 2008 at 11:37 AM, Cédric Thiébault
 [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to use a checkbox to set an enum value on my form object
 but I always get a type mismatch error (boolean is not an enum and
 vice versa).

 My form object has an enum and I want to display a list of checkboxes
 to allow the user to select the value.
 I don't want to use a radio because my enum can be null and I can't
 unselect my radio group once a radio is selected.

 I tried to extends Checkbox to convert teh boolean to the specified
 enum... it works only in one way (to set the enum value) but it does
 not work when my enum has a value and the checkbox need to render
 itself (the value must be a boolean).


 public class CheckBoxEnum extends CheckBox {

  private final Enum? enumValue;

  public CheckBoxEnum(String id, IModel model, String property,
 Enum? enumValue) {
super(id, new PropertyModel(model, property));
this.enumValue = enumValue;
  }

  @Override
  protected void convertInput() {
String value = getValue();
if (value != null  BooleanUtils.toBoolean(value))
 setConvertedInput(enumValue);
  }
 }

 Any ideas ?

 Thanks

 Cedric

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



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



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



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




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



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



Re: Checkbox and enum value

2008-09-26 Thread francisco treacy
* i meant enum class

On Fri, Sep 26, 2008 at 7:51 PM, francisco treacy
[EMAIL PROTECTED] wrote:
 Also, you could have a varargs feature so that users could specify
 exactly what they want without having to instantiate an array.

 yes, of course there is place for improvements...
 public EnumCheckGroup(String id, T... values)

 Why not just pass the enum class into the constructor?

 if i pass the enum object itself, how do i actually get the values?

 francisco


 On Fri, Sep 26, 2008 at 4:43 PM, francisco treacy
 [EMAIL PROTECTED] wrote:
 i'm sorry i didn't see this post before-- i came up with a solution a
 couple of weeks ago.

 i called it EnumCheckGroup (that is, i went for CheckGroup rather than
 CheckBox).

 usage:

 for a given enum:

public static enum Niveau {
etage, mezzanine, sous_sol;
}

   form.add(new EnumCheckGroupPlan.Niveau(niveaux,
 Plan.Niveau.values()));


  span wicket:id=niveaux
   span wicket:id=items
   input type=checkbox wicket:id=check /
   span wicket:id=label/spanbr /
   /span
   /span


 impl:

 public class EnumCheckGroupT extends EnumT extends CheckGroupT {

   public EnumCheckGroup(String id, T[] values) {
   super(id);

   ListViewT listview = new ListViewT(items,
 Arrays.asList(values)) {
   protected void populateItem(ListItemT item) {
   item.add(new CheckT(check, item.getModel()));
   item.add(new Label(label, new
 ResourceModel(item.getModelObject().name(;
   };
   }.setReuseItems(true);

   add(listview);

   }

 }

 obviously you must have the keys in your properties file, such as:

 etage=Étage
 mezzanine=Mezzanine
 sous_sol=Sous-sol


 francisco


 On Fri, Sep 26, 2008 at 4:29 PM, Cédric Thiébault
 [EMAIL PROTECTED] wrote:
 Thanks Igor, it was exactly what i needed :-)

 To complete this post, here is the solution I found :
 http://surunairdejava.blogspot.com/2008/09/wicket-checkbox-abstractcheckboxmodel.html

 Sorry it's in french but the code is easy to understand...

 Cedric


 On Wed, Sep 24, 2008 at 2:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 see abstractcheckboxmodel

 -igor

 On Wed, Sep 24, 2008 at 11:37 AM, Cédric Thiébault
 [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to use a checkbox to set an enum value on my form object
 but I always get a type mismatch error (boolean is not an enum and
 vice versa).

 My form object has an enum and I want to display a list of checkboxes
 to allow the user to select the value.
 I don't want to use a radio because my enum can be null and I can't
 unselect my radio group once a radio is selected.

 I tried to extends Checkbox to convert teh boolean to the specified
 enum... it works only in one way (to set the enum value) but it does
 not work when my enum has a value and the checkbox need to render
 itself (the value must be a boolean).


 public class CheckBoxEnum extends CheckBox {

  private final Enum? enumValue;

  public CheckBoxEnum(String id, IModel model, String property,
 Enum? enumValue) {
super(id, new PropertyModel(model, property));
this.enumValue = enumValue;
  }

  @Override
  protected void convertInput() {
String value = getValue();
if (value != null  BooleanUtils.toBoolean(value))
 setConvertedInput(enumValue);
  }
 }

 Any ideas ?

 Thanks

 Cedric

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



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



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



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




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




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



force page reload

2008-10-06 Thread francisco treacy
hi,

i'm integrating a wicket application with an online payment system
provided by a bank.

i have a wicket stateful page (ie shows visa / mastercard icons) which
links to the bank app's payment page. depending on the transaction,
the bank sends us back a result code in an encrypted http url
parameter, appended to the url of our wicket page.

String encrypted =
getWebRequestCycle().getWebRequest().getHttpServletRequest().getParameter(DATA);

according to the bank's response, i decide whether to show a please
pay or a thank you page with wicket variations.

the only problem i am having here is: the wicket page is cached, so no
matter what the  result is, it will show the last seen version in the
pagemap - that is, it won't re-execute the page's java code.

i tried overriding headers

protected void setHeaders(WebResponse response) {
response.setHeader(Pragma, no-cache);
response.setDateHeader(Expires,0);
response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate, no-store);
}

but none of these http headers are seen in the html output whatsoever.

i also tried implementing IMarkupCacheKeyProvider and returning null.
with no success so far.

what should i do to execute the page's code, no matter when it is called?

thanks,

francisco

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



Re: force page reload

2008-10-07 Thread francisco treacy
as it is kind of a workflow and i had all the pages already prepared
by passing imodels along into constructors, i didn't want to have a
bookmarkablepage (whatever you pick: panels/pages/variations, you need
this one to call the page executing the code). but this was the
simpler solution, pass an id to the non wicket server through http
post, get it back and initialize the a detachablemodel again with the
id and the dao.

so i changed a bit my code to fit this no-arg constructor page, which
is responsible of checking the http post params.

imo it is a good idea to use variations. a panel could have also been,
of course, but i wanted to avoid boilerplate for just a thank you. i
finally redirected to the next page. in any case, this is such a small
case that the approach is not so important here.

thanks all!

francisco

On Tue, Oct 7, 2008 at 1:36 AM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 I'd wholeheartedly agree with the panel solution.  Either one would work,
 but I think the panel is really good.



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

 On Mon, Oct 6, 2008 at 9:53 PM, John Krasnay [EMAIL PROTECTED] wrote:

 On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy wrote:
  thanks for your help, serkan.
 
  cool, this works. as a workaround nevertheless:
 
  -i wouldn't want my app to check every single request the existence of
  a parameter which i am going to use in only *one* page anyway
  -what if i have this param passed to another page that doesn't expect
  it? this could easily introduce new bugs
 
  isn't there another easy way to force reloading / not caching a
  page? why isn't setHeaders having any effect? should be
  straightforward - what am i missing here?
 
  thanks again anyone for some pointers!
 
  francisco
 

 It seems to me a bit strange to use markup variant for this. You could
 have your callback page forward to the correct page like this:

 public CallbackPage(PageParameters params) {
if (params.getString(DATA).equals(good)) {
setResponsePage(PaymentGoodPage.class);
} else {
setResponsePage(TryAgainPage.class);
}
 }

 Alternatively, you could instantiate an appropriate panel in your page:

 public CallbackPage(PageParameters params) {
if (params.getString(DATA).equals(good)) {
add(new PaymentGoodPanel(responsePanel));
} else {
add(new TryAgainPanel(responsePanel));
}
 }


 jk

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




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



Re: force page reload

2008-10-07 Thread francisco treacy
yes... the page must be bookmarkable - so i need it anyway.

another question that pops out with your suggestion: when called, are
bookmarkable pages always instantiated? under any circumstance?

just to make sure that calling
http://localhost:8080/myapp/bookmarkable will always trigger the code.
sorry if this is obvious, i just never paid attention :)

francisco

On Tue, Oct 7, 2008 at 2:07 PM, Ryan Gravener [EMAIL PROTECTED] wrote:
 Just throwing this out there:

 http://wicketstuff.org/wicket13doc/org/apache/wicket/Page.html#setStatelessHint(boolean)

 Perhaps that may work.


 Ryan Gravener
 http://twitter.com/ryangravener


 On Tue, Oct 7, 2008 at 12:02 PM, francisco treacy 
 [EMAIL PROTECTED] wrote:

 as it is kind of a workflow and i had all the pages already prepared
 by passing imodels along into constructors, i didn't want to have a
 bookmarkablepage (whatever you pick: panels/pages/variations, you need
 this one to call the page executing the code). but this was the
 simpler solution, pass an id to the non wicket server through http
 post, get it back and initialize the a detachablemodel again with the
 id and the dao.

 so i changed a bit my code to fit this no-arg constructor page, which
 is responsible of checking the http post params.

 imo it is a good idea to use variations. a panel could have also been,
 of course, but i wanted to avoid boilerplate for just a thank you. i
 finally redirected to the next page. in any case, this is such a small
 case that the approach is not so important here.

 thanks all!

 francisco

 On Tue, Oct 7, 2008 at 1:36 AM, Jeremy Thomerson
 [EMAIL PROTECTED] wrote:
  I'd wholeheartedly agree with the panel solution.  Either one would work,
  but I think the panel is really good.
 
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Mon, Oct 6, 2008 at 9:53 PM, John Krasnay [EMAIL PROTECTED] wrote:
 
  On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy wrote:
   thanks for your help, serkan.
  
   cool, this works. as a workaround nevertheless:
  
   -i wouldn't want my app to check every single request the existence of
   a parameter which i am going to use in only *one* page anyway
   -what if i have this param passed to another page that doesn't expect
   it? this could easily introduce new bugs
  
   isn't there another easy way to force reloading / not caching a
   page? why isn't setHeaders having any effect? should be
   straightforward - what am i missing here?
  
   thanks again anyone for some pointers!
  
   francisco
  
 
  It seems to me a bit strange to use markup variant for this. You could
  have your callback page forward to the correct page like this:
 
  public CallbackPage(PageParameters params) {
 if (params.getString(DATA).equals(good)) {
 setResponsePage(PaymentGoodPage.class);
 } else {
 setResponsePage(TryAgainPage.class);
 }
  }
 
  Alternatively, you could instantiate an appropriate panel in your page:
 
  public CallbackPage(PageParameters params) {
 if (params.getString(DATA).equals(good)) {
 add(new PaymentGoodPanel(responsePanel));
 } else {
 add(new TryAgainPanel(responsePanel));
 }
  }
 
 
  jk
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




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



Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
hi,

 One problem I see with this approach is when you need null-checking
 for nested properties:
 eg:  new TextFieldString(city, customer.address.getObject().city );

exactly, that is *the* problem

otherwise we could have
 new AlternativeCompoundPropertyModel(customer.getAddress().getCity());
with this class decomposing the object chain into an el-style
expression: customer.address.city which will be the wicket:id ...
*but*, this can easily lose synchronization with the markup.

another web framework called warp-widgets uses compile-time checking
of expressions in html files with mvel. perhaps this points us in the
right direction...

we were also thinking of something like a compile time annotation
(with logic) such as java's @SuppressWarnings , but not sure if it'll
work though.

any thoughts on this?

francisco




 Let me know what you think about it.

 Maarten


 Thanks for any update if anyone knows anything!
 Wayne





 Johan Compagner wrote:

 no i really dont like that
 then everywhere there code they need to do that, that is not an option.
 and they have to program themselfs agains the proxy api. I dont want that
 developers also have the learn/do that
 This is something commons-proxy needs to do

 On Sat, Mar 8, 2008 at 3:29 PM, James Carman [EMAIL PROTECTED]
 wrote:

 Couldn't you also do:

 ProxyFactory pf = ...;
 new SharedPropertyModelCustomer(pf, customer);

 So, the client tells you what proxy factory implementation to use.

 On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
  I see the JIRA, I'll go ahead and start the discussion on the dev list.
 
 
   On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
On 3/8/08, Johan Compagner [EMAIL PROTECTED] wrote:
   
 for wicket this is a feature it really should have
   now it defeats the purpose i have to make a decission in wicket
 which
   factory i use
   Then i can just as well directly compile against cglib.
   I cant make the api that way that the developer has to give that
 factory to
   use. That would be completely horrible,
 
   
   
You could always implement your own brand of discovery for your
 project (perhaps by using the service discovery feature built into
 the
 jdk).
   
 I like the idea of splitting it (and doing it the slf4j way rather
 than the JCL way).  I have actually suggested that we start an
 exploratory branch of JCL to make it work more like slf4j (we've
 been
 talking about this since 2005).  Anyway, if you file a JIRA issue,
 I'll make sure we have a discussion with the other devs.  For your
 immediate purposes, commons-discovery is available also.
   
 

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





 --
 View this message in context: 
 http://www.nabble.com/CompoundModel-based-on-proxies-tp15317807p20222077.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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



Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
hi maarten

 About the null checking, I will see if I can avoid having nested null values
 in my proof-of-concept project.

thing is the object chain is going to be resolved before it gets
passed in - there's nothing you can do about it inside your class :(
an eventual null pointer exception would be thrown before your
constructor is called.

francisco







 On Wed, Oct 29, 2008 at 10:42 AM, Maarten Bosteels
 [EMAIL PROTECTED]wrote:

  On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope [EMAIL PROTECTED]
 
  wrote:
  
   Hi,
  
   Francisco and I here where discussing whether we could figure a way of
   having some form of static/compile time checking on our
   (Compound)PropertyModels, as I'm a bit concerned long term about some
  nasty
   runtime bugs that might slip through the testing coverage. Francisco
  found
   this thread - I'm wondering what the status is? I had a look at:
   https://issues.apache.org/jira/browse/WICKET-1327
  
   and there doesn't look like any activity since Feb. Anyone been using
  this
   or come up with a different solution?
  
   Ideally I think it would be just great if we had an eclipse plugin that
   could just check for this (a bit like checkstyle or something) but a
  runtime
   solution as proposed above seems really smart as well. However I'd
 rather
   keep is 100% java (ie not cglib) if possible.
 
  Hello,
 
  If you want something 100% java you could copde your domain models like
  this:
 
  public class Customer implements Serializable {
   public final IModelString firstName = new ModelString();
   public final IModelString lastName = new ModelString();
  }
 
  and use it like this:
 
  form.add(new TextFieldString(firstName, customer.firstName));
  form.add(new TextFieldString(lastName, customer.lastName));
 
  = no need to generate ugly getters/setters for all your properties
  = pure java
  = refactoring-safe
  = navigation + code-completion from IDE
  = you can still override setObject() and/or setObject() when needed
 
  In this example I have used wicket's IModel and Model but you could
  also use PropertyString from https://bean-properties.dev.java.net/
  which has a lot of other benefits (a pity that the project is stalled a
  bit).
 
  Note that I haven't used this extensively but I sure do want to test
  it out in the near future..
 
  One problem I see with this approach is when you need null-checking
  for nested properties:
  eg:  new TextFieldString(city, customer.address.getObject().city );
 
  Let me know what you think about it.
 
  Maarten
 
 
   Thanks for any update if anyone knows anything!
   Wayne
  
  
  
  
  
   Johan Compagner wrote:
  
   no i really dont like that
   then everywhere there code they need to do that, that is not an
 option.
   and they have to program themselfs agains the proxy api. I dont want
  that
   developers also have the learn/do that
   This is something commons-proxy needs to do
  
   On Sat, Mar 8, 2008 at 3:29 PM, James Carman 
  [EMAIL PROTECTED]
   wrote:
  
   Couldn't you also do:
  
   ProxyFactory pf = ...;
   new SharedPropertyModelCustomer(pf, customer);
  
   So, the client tells you what proxy factory implementation to use.
  
   On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
I see the JIRA, I'll go ahead and start the discussion on the dev
  list.
   
   
 On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
  On 3/8/08, Johan Compagner [EMAIL PROTECTED] wrote:
 
   for wicket this is a feature it really should have
 now it defeats the purpose i have to make a decission in
  wicket
   which
 factory i use
 Then i can just as well directly compile against cglib.
 I cant make the api that way that the developer has to give
  that
   factory to
 use. That would be completely horrible,
   
 
 
  You could always implement your own brand of discovery for your
   project (perhaps by using the service discovery feature built
  into
   the
   jdk).
 
   I like the idea of splitting it (and doing it the slf4j way
  rather
   than the JCL way).  I have actually suggested that we start an
   exploratory branch of JCL to make it work more like slf4j
 (we've
   been
   talking about this since 2005).  Anyway, if you file a JIRA
  issue,
   I'll make sure we have a discussion with the other devs.  For
  your
   immediate purposes, commons-discovery is available also.
 
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
   --
   View this message in context:
 
 http://www.nabble.com/CompoundModel-based-on-proxies-tp15317807p20222077.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 

Re: using wicket

2008-10-29 Thread francisco treacy
hmm, it depends.
if you upgrade to 1.4 and parameterize models and components, it could
be really tough to go back to 1.3. depending of course on the size of
your app.

francisco

On Wed, Oct 29, 2008 at 9:50 AM, Martin Grigorov [EMAIL PROTECTED] wrote:
 You could download it from Maven repos as any other artefact:
 http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4-m3/wicket-1.4-m3-javadoc.jar

 Since 1.4 is actually 1.3 + generics (and very few other changes) you
 could start with 1.4 and downgrade to 1.3 any time if you are concerned
 that you're using a milestone.

 On Wed, 2008-10-29 at 08:38 +0100, Wayne Pope wrote:
 I cannot comment on the stabiliy, but for the javadoc you'll need to
 download the source and generate the javadoc (use maven for the quickest) as
 I don;t beleive its online anywhere

 On Tue, Oct 28, 2008 at 5:53 PM, miro [EMAIL PROTECTED] wrote:

 
  I am new to wicket and no guru to help me answer questions  , I am starting
  a
  new project , is it ok to work with wicket 1.4 , i mean is it a stable
  release ,of should I use wicket 1.3 ? Please help me , also please point me
  to  java  docs of wicket 1.4 if 1.4 is all teste3d and ready for use
  --
  View this message in context:
  http://www.nabble.com/using-wicket-tp20211179p20211179.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
i agree - that's why i think it would be difficult to avoid an
eventual NPE in something like
customer.getAddress().getCity().getBlabla()  in that case


On Wed, Oct 29, 2008 at 1:09 PM, James Carman
[EMAIL PROTECTED] wrote:
 You shouldn't muddy up your domain with view-specific logic (the
 IModel interface).

 On Wed, Oct 29, 2008 at 5:42 AM, Maarten Bosteels
 [EMAIL PROTECTED] wrote:
 On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope [EMAIL PROTECTED] wrote:

 Hi,

 Francisco and I here where discussing whether we could figure a way of
 having some form of static/compile time checking on our
 (Compound)PropertyModels, as I'm a bit concerned long term about some nasty
 runtime bugs that might slip through the testing coverage. Francisco found
 this thread - I'm wondering what the status is? I had a look at:
 https://issues.apache.org/jira/browse/WICKET-1327

 and there doesn't look like any activity since Feb. Anyone been using this
 or come up with a different solution?

 Ideally I think it would be just great if we had an eclipse plugin that
 could just check for this (a bit like checkstyle or something) but a runtime
 solution as proposed above seems really smart as well. However I'd rather
 keep is 100% java (ie not cglib) if possible.

 Hello,

 If you want something 100% java you could copde your domain models like this:

 public class Customer implements Serializable {
  public final IModelString firstName = new ModelString();
  public final IModelString lastName = new ModelString();
 }

 and use it like this:

 form.add(new TextFieldString(firstName, customer.firstName));
 form.add(new TextFieldString(lastName, customer.lastName));

 = no need to generate ugly getters/setters for all your properties
 = pure java
 = refactoring-safe
 = navigation + code-completion from IDE
 = you can still override setObject() and/or setObject() when needed

 In this example I have used wicket's IModel and Model but you could
 also use PropertyString from https://bean-properties.dev.java.net/
 which has a lot of other benefits (a pity that the project is stalled a bit).

 Note that I haven't used this extensively but I sure do want to test
 it out in the near future..

 One problem I see with this approach is when you need null-checking
 for nested properties:
 eg:  new TextFieldString(city, customer.address.getObject().city );

 Let me know what you think about it.

 Maarten


 Thanks for any update if anyone knows anything!
 Wayne





 Johan Compagner wrote:

 no i really dont like that
 then everywhere there code they need to do that, that is not an option.
 and they have to program themselfs agains the proxy api. I dont want that
 developers also have the learn/do that
 This is something commons-proxy needs to do

 On Sat, Mar 8, 2008 at 3:29 PM, James Carman [EMAIL PROTECTED]
 wrote:

 Couldn't you also do:

 ProxyFactory pf = ...;
 new SharedPropertyModelCustomer(pf, customer);

 So, the client tells you what proxy factory implementation to use.

 On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
  I see the JIRA, I'll go ahead and start the discussion on the dev list.
 
 
   On 3/8/08, James Carman [EMAIL PROTECTED] wrote:
On 3/8/08, Johan Compagner [EMAIL PROTECTED] wrote:
   
 for wicket this is a feature it really should have
   now it defeats the purpose i have to make a decission in wicket
 which
   factory i use
   Then i can just as well directly compile against cglib.
   I cant make the api that way that the developer has to give that
 factory to
   use. That would be completely horrible,
 
   
   
You could always implement your own brand of discovery for your
 project (perhaps by using the service discovery feature built into
 the
 jdk).
   
 I like the idea of splitting it (and doing it the slf4j way rather
 than the JCL way).  I have actually suggested that we start an
 exploratory branch of JCL to make it work more like slf4j (we've
 been
 talking about this since 2005).  Anyway, if you file a JIRA issue,
 I'll make sure we have a discussion with the other devs.  For your
 immediate purposes, commons-discovery is available also.
   
 

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





 --
 View this message in context: 
 http://www.nabble.com/CompoundModel-based-on-proxies-tp15317807p20222077.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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

Re: Hot deployment / Server restart

2008-10-30 Thread francisco treacy
i suggest you use the jetty container for development. you can find a
perfect working example in the wicket quickstart archetype:
http://wicket.apache.org/quickstart.html

francisco

On Thu, Oct 30, 2008 at 10:11 AM, geke [EMAIL PROTECTED] wrote:

 My IDE is eclipse-jee-ganymede.
 Where can I find such information?



 martin-g wrote:

 Wicket doesn't control the lifecycle of the web container.
 There is something else that triggers the restart (maybe the IDE ?!).

 On Thu, 2008-10-30 at 01:46 -0700, geke wrote:
 Hi,

 on every change in my HTML or Java file the tomcat 6.0 server restarts
 completely, for example if I change the css definitions. This is annoying
 and primarily time-consuming.
 Is there a possibility that the server only restarts, if for example the
 method signature in the java file or a tag with wicket:id in the HTML
 file
 changes, and I although see the last changes in the websites?
 The less the server restarts the better.



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




 --
 View this message in context: 
 http://www.nabble.com/Hot-deployment---Server-restart-tp20242820p20243162.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: JavaScript Framework Dependencies

2008-11-02 Thread francisco treacy
afaik there are several projects in wicketstuff. at least for
scriptaculous, jquery and mootools. no idea how good/extense these
implementations are though.

there is also wickext (code.google.com/p/wickext/ ) for jquery.

francisco

On Sun, Nov 2, 2008 at 8:51 PM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 On Sun, Nov 2, 2008 at 7:08 AM, Uwe Schäfer [EMAIL PROTECTED] wrote:
 i´m just wondering why there isn´t a project like
 org.wicketstuff.javascript.mootools/jquery/extjs/whatever

 why? because you havent built it yet. wicketstuff is open for
 participation, feel free.

 -igor

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



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



avoid ajax response evaluate javascript

2008-11-06 Thread francisco treacy
hi,

we're using a home-grown wrapper for integrating jquery into wicket -
specifically for jquery effects.

and i'm having some trouble with ajax updates. i'll explain with an example:


final WebMarkupContainer listOfCommentsContainer = new
WebMarkupContainer(listOfCommentsContainer);
listOfCommentsContainer.setOutputMarkupId(true);
add(listOfCommentsContainer);

AjaxLinkVoid numberOfCommentsLink = new
AjaxLinkVoid(numberOfCommentsLink) {
@Override
public void onClick(AjaxRequestTarget target) {
target.addComponent(listOfCommentsContainer);
}
};

listOfCommentsContainer.add(new JQueryEffectBehavior(new
SlideToggleEffect(), numberOfCommentsLink));

add(numberOfCommentsLink);

this code is basically outputting something like:

script type=text/javascript !--/*--![CDATA[/*!--*/
Wicket.Event.add(window, domready, function() {
$('#numberOfCommentsLink24').click(function() {
$('#listOfCommentsContainer25').slideToggle(450); }) ;});
/*--]]*//script

listOfCommentsContainer25 being the target container to slide,
numberOfCommentsLink24 the trigger.

this works fine per se. now when i click on numberOfCommentsLink24 ,
my list is refreshed (added it to the ajaxrequesttarget) and the
effect behaviour outputting javascript code again...

ajax-responseheader-contribution![CDATA[head
xmlns:wicket=http://wicket.apache.org;script type=text/javascript
src=resources/hub.app.wicket.components.jquery.JQueryResourceReference/jquery-1.2.6.js/script
script type=text/javascript
src=resources/hub.app.wicket.components.jquery.JQueryEffectCoreResourceReference/jquery-1.2.6.effects.core.js/script
/head]]/header-contribution
(...)
evaluate![CDATA[$('#numberOfCommentsLink24').click(function() {
$('#listOfCommentsContainer25').slideToggle(450); })
]]/evaluate/ajax-response

which means that i can visually perceive a very quick slideDown
followed by a slideUp (this is the normal slideToggle functionality).

is there a way not to include the evaluate part?  or detect if the
component has already been rendered in markup to check whether to
execute the behaviour again?
perhaps i'm missing some basic point here... any suggestions?

thanks in advance,

francisco

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



Re: avoid ajax response evaluate javascript

2008-11-06 Thread francisco treacy
 want to not output the list with wicket's ordinary ajax replace method?

hmmm... wicket's ordinary ajax replace method?

the basic problem here is:
-when the page is first rendered, the following is added to the dom
(it's the behaviour responsible for this):

$('#numberOfCommentsLink24').click(function() {
$('#listOfCommentsContainer25').slideToggle(450); })

-when i click on the trigger link (numberOfCommentsLink24) i fire an
ajax request, and add a webmarkupcontainer (listOfCommentsContainer25)
i want to refresh:

target.addComponent(listOfCommentsContainer);

-the ajax response is: *not only* the updated
listOfCommentsContainer25, but *also* an evaluate section in the
ajax response, that includes:

$('#numberOfCommentsLink24').click(function() {
$('#listOfCommentsContainer25').slideToggle(450); })

(of course, because the behaviour has been added to the
listOfCommentsContainer).


-... that means, i now have loaded in the dom *twice* :

$('#numberOfCommentsLink24').click(function() {
$('#listOfCommentsContainer25').slideToggle(450); })

so with *one* click on the numberOfCommentsLink24 , i get *two* calls
to  $('#listOfCommentsContainer25').slideToggle(450);

which basically slides up, and immediately down. that is, slide toggle
means it goes up (hides) if it was down (visible), it goes down
(shows) if it was up (hidden).

i want to avoid this behaviour by stopping the ajax response from
spitting back the javascript code for a second time. perhaps do
something inside the behaviour class?

hope it clarifies! thanks,

francisco



On Thu, Nov 6, 2008 at 1:53 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Im not sure I understand then..? Could you explain another way? You would
 want to not output the list with wicket's ordinary ajax replace method?

 francisco treacy wrote:

 yes, i'm aware of those. but i'd want to 'remove' things from the
 ajaxRequestTarget rather than append...

 or, some way of attaching/executing behaviours only once?


 On Thu, Nov 6, 2008 at 12:58 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 theres a prepend / append js on ajaxRequestTarget, that should work...

 francisco treacy wrote:


 hi,

 we're using a home-grown wrapper for integrating jquery into wicket -
 specifically for jquery effects.

 and i'm having some trouble with ajax updates. i'll explain with an
 example:


 final WebMarkupContainer listOfCommentsContainer = new
 WebMarkupContainer(listOfCommentsContainer);
 listOfCommentsContainer.setOutputMarkupId(true);
 add(listOfCommentsContainer);

 AjaxLinkVoid numberOfCommentsLink = new
 AjaxLinkVoid(numberOfCommentsLink) {
   @Override
   public void onClick(AjaxRequestTarget target) {

  target.addComponent(listOfCommentsContainer);
   }
   };

 listOfCommentsContainer.add(new JQueryEffectBehavior(new
 SlideToggleEffect(), numberOfCommentsLink));

 add(numberOfCommentsLink);

 this code is basically outputting something like:

 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); }) ;});
 /*--]]*//script

 listOfCommentsContainer25 being the target container to slide,
 numberOfCommentsLink24 the trigger.

 this works fine per se. now when i click on numberOfCommentsLink24 ,
 my list is refreshed (added it to the ajaxrequesttarget) and the
 effect behaviour outputting javascript code again...

 ajax-responseheader-contribution![CDATA[head
 xmlns:wicket=http://wicket.apache.org;script type=text/javascript


 src=resources/hub.app.wicket.components.jquery.JQueryResourceReference/jquery-1.2.6.js/script
 script type=text/javascript


 src=resources/hub.app.wicket.components.jquery.JQueryEffectCoreResourceReference/jquery-1.2.6.effects.core.js/script
 /head]]/header-contribution
 (...)
 evaluate![CDATA[$('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })
 ]]/evaluate/ajax-response

 which means that i can visually perceive a very quick slideDown
 followed by a slideUp (this is the normal slideToggle functionality).

 is there a way not to include the evaluate part?  or detect if the
 component has already been rendered in markup to check whether to
 execute the behaviour again?
 perhaps i'm missing some basic point here... any suggestions?

 thanks in advance,

 francisco

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




 --
 -Wicket for love

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


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

Re: avoid ajax response evaluate javascript

2008-11-06 Thread francisco treacy
 It did.. You could try the isTemporary (return true) on the behavior, it

thanks nino... that *is* the solution, works like a charm

my mistake for not paying attention to the last bits of the javadoc
ibehavior page :)

boolean isTemporary()

Specifies whether or not this behavior is temporary. Temporary
behaviors are removed at the end of request. Such behaviors are useful
for modifying component rendering only when it renders next. Usecases
include javascript effects, initial clientside dom setup, etc. 

... couldn't be more clear...

cheers,

francisco

On Thu, Nov 6, 2008 at 2:22 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi Francisco

 It did.. You could try the isTemporary (return true) on the behavior, it
 could mean that it will only add the behavior for that request, but I am not
 sure.. Or you could try creating a new markupcontainer
 (listOfCommentsContainer), it'll give it a new id..

 Or you could stuff in some logic as a ajaxcalldecorator on your link, that
 will clean it up in pure js...

 I had some difficulties with exactly this when I did the wicket reaction
 game.

 I hope this helpes..

 francisco treacy wrote:

 want to not output the list with wicket's ordinary ajax replace method?


 hmmm... wicket's ordinary ajax replace method?

 the basic problem here is:
 -when the page is first rendered, the following is added to the dom
 (it's the behaviour responsible for this):

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 -when i click on the trigger link (numberOfCommentsLink24) i fire an
 ajax request, and add a webmarkupcontainer (listOfCommentsContainer25)
 i want to refresh:

 target.addComponent(listOfCommentsContainer);

 -the ajax response is: *not only* the updated
 listOfCommentsContainer25, but *also* an evaluate section in the
 ajax response, that includes:

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 (of course, because the behaviour has been added to the
 listOfCommentsContainer).


 -... that means, i now have loaded in the dom *twice* :

 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })

 so with *one* click on the numberOfCommentsLink24 , i get *two* calls
 to  $('#listOfCommentsContainer25').slideToggle(450);

 which basically slides up, and immediately down. that is, slide toggle
 means it goes up (hides) if it was down (visible), it goes down
 (shows) if it was up (hidden).

 i want to avoid this behaviour by stopping the ajax response from
 spitting back the javascript code for a second time. perhaps do
 something inside the behaviour class?

 hope it clarifies! thanks,

 francisco



 On Thu, Nov 6, 2008 at 1:53 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:


 Im not sure I understand then..? Could you explain another way? You would
 want to not output the list with wicket's ordinary ajax replace method?

 francisco treacy wrote:


 yes, i'm aware of those. but i'd want to 'remove' things from the
 ajaxRequestTarget rather than append...

 or, some way of attaching/executing behaviours only once?


 On Thu, Nov 6, 2008 at 12:58 PM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:



 theres a prepend / append js on ajaxRequestTarget, that should work...

 francisco treacy wrote:



 hi,

 we're using a home-grown wrapper for integrating jquery into wicket -
 specifically for jquery effects.

 and i'm having some trouble with ajax updates. i'll explain with an
 example:


 final WebMarkupContainer listOfCommentsContainer = new
 WebMarkupContainer(listOfCommentsContainer);
 listOfCommentsContainer.setOutputMarkupId(true);
 add(listOfCommentsContainer);

 AjaxLinkVoid numberOfCommentsLink = new
 AjaxLinkVoid(numberOfCommentsLink) {
  @Override
  public void onClick(AjaxRequestTarget target) {

  target.addComponent(listOfCommentsContainer);
  }
  };

 listOfCommentsContainer.add(new JQueryEffectBehavior(new
 SlideToggleEffect(), numberOfCommentsLink));

 add(numberOfCommentsLink);

 this code is basically outputting something like:

 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); }) ;});
 /*--]]*//script

 listOfCommentsContainer25 being the target container to slide,
 numberOfCommentsLink24 the trigger.

 this works fine per se. now when i click on numberOfCommentsLink24 ,
 my list is refreshed (added it to the ajaxrequesttarget) and the
 effect behaviour outputting javascript code again...

 ajax-responseheader-contribution![CDATA[head
 xmlns:wicket=http://wicket.apache.org;script type=text/javascript



 src=resources/hub.app.wicket.components.jquery.JQueryResourceReference/jquery-1.2.6.js/script
 script type=text

Re: avoid ajax response evaluate javascript

2008-11-06 Thread francisco treacy
yes, i'm aware of those. but i'd want to 'remove' things from the
ajaxRequestTarget rather than append...

or, some way of attaching/executing behaviours only once?


On Thu, Nov 6, 2008 at 12:58 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 theres a prepend / append js on ajaxRequestTarget, that should work...

 francisco treacy wrote:

 hi,

 we're using a home-grown wrapper for integrating jquery into wicket -
 specifically for jquery effects.

 and i'm having some trouble with ajax updates. i'll explain with an
 example:


 final WebMarkupContainer listOfCommentsContainer = new
 WebMarkupContainer(listOfCommentsContainer);
 listOfCommentsContainer.setOutputMarkupId(true);
 add(listOfCommentsContainer);

 AjaxLinkVoid numberOfCommentsLink = new
 AjaxLinkVoid(numberOfCommentsLink) {
@Override
public void onClick(AjaxRequestTarget target) {

  target.addComponent(listOfCommentsContainer);
}
};

 listOfCommentsContainer.add(new JQueryEffectBehavior(new
 SlideToggleEffect(), numberOfCommentsLink));

 add(numberOfCommentsLink);

 this code is basically outputting something like:

 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 $('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); }) ;});
 /*--]]*//script

 listOfCommentsContainer25 being the target container to slide,
 numberOfCommentsLink24 the trigger.

 this works fine per se. now when i click on numberOfCommentsLink24 ,
 my list is refreshed (added it to the ajaxrequesttarget) and the
 effect behaviour outputting javascript code again...

 ajax-responseheader-contribution![CDATA[head
 xmlns:wicket=http://wicket.apache.org;script type=text/javascript

 src=resources/hub.app.wicket.components.jquery.JQueryResourceReference/jquery-1.2.6.js/script
 script type=text/javascript

 src=resources/hub.app.wicket.components.jquery.JQueryEffectCoreResourceReference/jquery-1.2.6.effects.core.js/script
 /head]]/header-contribution
 (...)
 evaluate![CDATA[$('#numberOfCommentsLink24').click(function() {
 $('#listOfCommentsContainer25').slideToggle(450); })
 ]]/evaluate/ajax-response

 which means that i can visually perceive a very quick slideDown
 followed by a slideUp (this is the normal slideToggle functionality).

 is there a way not to include the evaluate part?  or detect if the
 component has already been rendered in markup to check whether to
 execute the behaviour again?
 perhaps i'm missing some basic point here... any suggestions?

 thanks in advance,

 francisco

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



 --
 -Wicket for love

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


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



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



Re: RESTful Web Services with Wicket (and XStream)

2008-11-07 Thread francisco treacy
xstream supports json output

* Alternative output format. The modular design allows other output
formats. XStream ships currently with JSON support and morphing.

francisco

On Fri, Nov 7, 2008 at 11:34 AM, Steve Swinsburg
[EMAIL PROTECTED] wrote:
 Still slightly on topic, but do you know of a fast and efficient way to
 output JSON (some library like XStream perhaps) in the same method, rather
 than XML?


 cheers,
 Steve






 On 7 Nov 2008, at 04:05, Ned Collyer wrote:


 As you probably are aware - this is just outputting XML using XStream.
 This is a one way data feed.

 I'm using XStream - but chose a different tech for our REST components
 because wicket is not RESTy.

 I'd be interested if you can make this 2 way web service, and support
 POST,
 GET, PUT and DELETE.  Good luck :)



 Bruno Borges wrote:

 I've posted on my blog about how to create quickly and simple RESTful
 WebServices with Apache Wicket, using XStream to marshall XML from java
 Objects.

 Take a look!


 http://blog.brunoborges.com.br/2008/11/restful-web-services-with-wicket.html


 --
 View this message in context:
 http://www.nabble.com/RESTful-Web-Services-with-Wicket-%28and-XStream%29-tp20370109p20374470.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: Static injection not working (wicket-guice)

2008-11-12 Thread francisco treacy
hi,

imho this is a wicket (wicket-guice) issue. we are trying to
accomplish the same as edgar, having the same result:

InjectorHolder.getInjector().inject(this);

java.lang.IllegalStateException: InjectorHolder has not been assigned
an injector. Use InjectorHolder.setInjector() to assign an injector.
In most cases this should be done once inside SpringWebApplication
subclass's init() method.
at 
org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:64)

i don't want to use ((GuiceInjectorHolder)
(RequestCycle.get().getApplication().getMetaData(GuiceInjectorHolder.INJECTOR_KEY))).getInjector().injectMembers(this);
because it returns the actual instances - not proxies. and because of
serialization issues this is not desirable in our case.

i tried in my app's init():

InjectorHolder.setInjector(new ConfigurableInjector() {

@Override
protected IFieldValueFactory getFieldValueFactory() {
return new AnnotProxyFieldValueFactory();
}

});

with a basic implementation of AnnotProxyFieldValueFactory (copied
from wicket-spring - i don't really know what i'm doing here):

public class AnnotProxyFieldValueFactory implements IFieldValueFactory {

public Object getFieldValue(Field field, Object fieldOwner) {

if (field.isAnnotationPresent(Inject.class)) {

// had to wrap this one cause it has 
package-private visibility
GuiceBeanLocator locator = new 
GuiceBeanLocator(field.getType(), null);

return 
LazyInitProxyFactory.createProxy(field.getType(), locator);

}
else
{
return null;
}
}

public boolean supportsField(Field field) {
return field.isAnnotationPresent(Inject.class);
}
}


... but i was getting missing binding to guice Provider, so i decided
to stop there :)

are there any workarounds?  kristof and edgar, did you arrive to some
conclusion, perhaps when you emailed privately?
we should be able to use this as we do with spring.  i'm (really)
aware of salve but for some reason we can't use it here.

pointers much appreciated. thanks,

francisco



On Mon, Oct 27, 2008 at 9:27 AM, Kristof Jozsa [EMAIL PROTECTED] wrote:
 Hi Edgar,

 can you share some details with me about what you're trying to
 accomplish? You can write me privately, this doesn't sound like a
 wicket issue so better not load the wicket-users list with the topic.

 Kristof

 On Wed, Oct 22, 2008 at 8:02 AM, Edgar Merino [EMAIL PROTECTED] wrote:
 Hello,

   I've been trying to inject a service to some classes that are not wicket
 components, I've asked here and was suggested to use static injection:
 InjectorHolder.getInjector().inject(this); however this is not working with
 guice, I always get an illegalstateexception, injectorholder has not been
 assigned an injector. I've tried ((GuiceInjectorHolder)
 (RequestCycle.get().getApplication().getMetaData(GuiceInjectorHolder.INJECTOR_KEY))).getInjector().injectMembers(this);
 however that gives me serialization problems, since wicket is not creating a
 proxy for my service. I'm on my way to give salve a try but I'm having some
 problems there too (waiting for a response from the Discussion group), what
 suggestions can you make?

 Thanks in advance,
 Edgar Merino

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



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



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



Re: Problem with Crypted URL

2008-11-17 Thread francisco treacy
something _similar_ happens in my logs.

ERROR 2008-11-17 14:16:49,170 [http-8080-Processor17] Invalid URL
org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
'[EMAIL PROTECTED]'
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
at org.apache.wicket.Request.getRequestParameters(Request.java:172)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:420)

(...)

Caused by: javax.crypto.BadPaddingException: Given final block not
properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA13*..)
at 
com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:141)
... 27 more

but apparently doesn't cause any trouble in the app (eg. no visible
stacktrace or expired page). so i'm just curious.

in this app wicket is 1.4-SNAPSHOT (august 26) (because of a
dependency). will try to switch to rc1 see what i get.

 I already changed the handling of that in trunk so that now a page expired
 is thrown when that happens.

johan when did you exactly change that?  does it also impact my issue?

thanks

francisco



On Mon, Nov 17, 2008 at 10:39 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 i guess this is because we now use sessionid as the seed for the encryption
 of the urls

 So when a session times out and that user makes another request to it we
 cant decrypt it anymore because
 another seed is used.

 I already changed the handling of that in trunk so that now a page expired
 is thrown when that happens.


 On Mon, Nov 17, 2008 at 5:21 AM, Andrew Berman [EMAIL PROTECTED] wrote:

 I upgraded from 1.3.4 to 1.3.5 and now I am seeing this error all over the
 place in my log files..

 [ERROR] 21:44:24 CryptedUrlWebRequestCodingStrategy - Invalid URL:

 foo/?x=kSQEmQImbZiH47lvkBIVh0gnXDVDx7-UQqHufLUVx5IVu10xEJYI8UXQ2B0gQCTDdAzJ7rUByXI
 org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
 '�$^D�^Bm���o�^R^U�H'\5Cǿ�B��|�^Uǒ^U�]1^P�^H�E��^] @$�t^L��^A�r'
at

 org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at

 org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at

 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:250)
at

 org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
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.WicketServlet.doGet(WicketServlet.java:124)

 Anyone have any ideas what in the world is causing the jibberish?  I am
 using JDK 6 and Wicket 1.3.5.

 Thanks,

 Andrew




Re: RequestCycle bug at urlFor?

2009-08-24 Thread francisco treacy
Hi Vytautas,

Honestly I don't know if it's the same problem but I did went through
lots of debugging due to urlFor a couple of months ago. I posted an
issue but actually haven't followed its progress (it's still open).

https://issues.apache.org/jira/browse/WICKET-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Just thought it would be relevant mentioning.

Francisco


2009/8/24 Vytautas Čivilis vytautas.civi...@gmail.com:
 Hi.

 I'm using RequestCycle urlFor method for building my link in this
 fashion: getRequestCycle().urlFor(this, ILinkListener.INTERFACE,
 parameters).

 The idea is to have link with default behavior (implement onclick), but
 with the explicitly set parameters too. The parameters are being asked
 by 3rd party library (in particular - thickbox).

 at RequestCycle 947:
 AppendingStringBuffer buff = new AppendingStringBuffer(url);
 WebRequestEncoder encoder = new WebRequestEncoder(buff);

 This WebRequestEncoder doesn't check, if the parameters are already
 present in the url provided.

 In my case, the url from CharSequence url = encodeUrlFor(target); is
 already like that
 ?wicket:interface=:2:admin:container:tabbedPanel:panel:apartments:0:apartmentAddressEditLink:1:ILinkListener::

 What WebRequestEncoder does when appending parameters provided
 explicitly - it simply appends ? mark and then the parameters list.

 So resulting url is incorrect and doesn't work:
 ?wicket:interface=:2:admin:container:tabbedPanel:panel:apartments:0:apartmentAddressEditLink:1:ILinkListener::?height=300width=300

 (notice leading ?height=300width=300).

 Wicket 1.4.0.

 Am I doing something wrong here? What could be possible solutions to
 overcome this?

 Vytautas

 -
 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



urlFor ResourceStreamRequestTarget returning null

2009-03-31 Thread francisco treacy
hi all,

i can't seem to find the way to get an url for a given RequestTarget.
i'm using wicket 1.4-rc1.

basically i have an SWFComponent : http://paste.pocoo.org/show/110435/

my problem is in line 35, when i call urlFor(target) to the renderHead
method. the target is of type ResourceStreamRequestTarget and when i
dig into the sources for the urlFor call, i end up in
WebRequestCodingStrategy#encode:

// fall through for non-default request targets
url = doEncode(requestCycle, requestTarget);

doEncode javadoc reads:

 * In case you are using custom targets that are not part of the
default target hierarchy, you
 * need to override this method, which will be called after the
defaults have been tried. When
 * this doesn't provide a url either (returns null), an exception
will be thrown by the encode
 * method saying that encoding could not be done.

where am i supposed to override this method?

additionally, wicket doesn't seem to throw an exception as stated - it
silently returns the null value.

any ideas on how to get the url, or improvements to the code i pasted
to make it work?

thank you,

francisco

ps: note that the ResourceStreamRequestTarget works fine. for instance
if i call getRequestCycle().setRequestTarget(target); on renderHead,
the http response streams the swf file.

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



Re: How To Download Excel File?

2009-03-31 Thread francisco treacy
hola wadi

to generate the excel file, have a look at the poi apache project:
http://poi.apache.org/spreadsheet/index.html

then you will need to create a resource for that file / byte array.
you might find some inspiration from this pastie:
http://paste.pocoo.org/show/110449/

finally, use

new ResourceLinkVoid(downloadAsExcel, new PdfResource() {

 (...)

}

declare the link on your html and you're done!

francisco


2009/3/31 Wadi Jalil Maluf wad...@yahoo.com.ar:
 Hi All, I would like to know how can I put a link into a page so when the
 user clicks I fetch some data from database , export it to Excel so the user
 directly downloads an xls file with the content.

 Any help is appreciated,

 Thanks in advance,

 Wadi



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



Re: urlFor ResourceStreamRequestTarget returning null

2009-04-01 Thread francisco treacy
thanks maarten, but i still can't get the url for the resource in the
renderHead method.

in the open flash chart example, there are two types of urls built:
 - resourcereferences (easy peasy to get the url)
 - resource, via RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);

remember, my component is:
public abstract class SWFComponent extends WebMarkupContainer
implements IResourceListener, IHeaderContributor

in my case i need the url to a *resource*, so i tried:

a) RequestCycle.get().urlFor(SWFComponent.this,
IResourceListener.INTERFACE); or urlFor(IResourceListener.INTERFACE);
in the onBeforeRender method
 = it outputs the url to a *bookmarkable page* / not my resource:
?wicket:bookmarkablePage=:app.wicket.project.DocumentPagewicket:interface=:2:docsPanel:viewer:flash::IResourceListener::

b) RequestCycle.get().urlFor(SWFComponent.this,
IResourceListener.INTERFACE); in the renderHead method
 = it outputs the url to another different *bookmarkable page* /
not my resource:
?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::

c) urlFor(IResourceListener.INTERFACE); in the renderHead method
 = *sometimes* it works.

this means *sometimes* it outputs
?wicket:interface=:3:docsPanel:viewer:flash::IResourceListener:: 
(this is correct - it works) , but some other times it outputs 
?wicket:bookmarkablePage=:app.wicket.document.DocumentDetailPagewicket:interface=:10:detailPanel:viewer:flash::IResourceListener::
 (this is not correct - it doesn't work).

this mysterious behaviour hasn't occured just once, it randomly
happened after compilation several times.

is this a bug or why does it behave like that? am i misusing the api?
should the resource, markup container and/or header contributor live
in different classes? suggestions?

thanks again

francisco


2009/3/31 Maarten Bosteels mbosteels@gmail.com:
 Have you seen this page [1], it also features an SWFObject.

 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

 regards,
 Maarten

 On Tue, Mar 31, 2009 at 3:36 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 hi all,

 i can't seem to find the way to get an url for a given RequestTarget.
 i'm using wicket 1.4-rc1.

 basically i have an SWFComponent : http://paste.pocoo.org/show/110435/

 my problem is in line 35, when i call urlFor(target) to the renderHead
 method. the target is of type ResourceStreamRequestTarget and when i
 dig into the sources for the urlFor call, i end up in
 WebRequestCodingStrategy#encode:

 // fall through for non-default request targets
                                url = doEncode(requestCycle, requestTarget);

 doEncode javadoc reads:

         * In case you are using custom targets that are not part of the
 default target hierarchy, you
         * need to override this method, which will be called after the
 defaults have been tried. When
         * this doesn't provide a url either (returns null), an exception
 will be thrown by the encode
         * method saying that encoding could not be done.

 where am i supposed to override this method?

 additionally, wicket doesn't seem to throw an exception as stated - it
 silently returns the null value.

 any ideas on how to get the url, or improvements to the code i pasted
 to make it work?

 thank you,

 francisco

 ps: note that the ResourceStreamRequestTarget works fine. for instance
 if i call getRequestCycle().setRequestTarget(target); on renderHead,
 the http response streams the swf file.

 -
 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: Application IConverterLocator when using Hibernate friends

2009-04-01 Thread francisco treacy
something like this might be of help?

if (entity instanceof HibernateProxy) {
entity = (T) ((HibernateProxy)
entity).getHibernateLazyInitializer().getImplementation();
}

francisco



2009/4/1 Steve Flasby st...@flasby.org:
 Chaps,
        need a hint please.

 I have my own IConverterLocator which provides standard display of
 things like Money, Percentage  other domain types we have invented.

 All is good.

 Today I enhanced it to handle our Country type. This is an @Entity.
 To my surprise the rendering didn't change. It seems I am getting
 a wrapped class back from Hibernate (CGLIB artifact) rather than the
 real type. (I guess I should have known this already).

 The IConverterLocator doesn't know about this class, and can't as it
 is dynamically created. Can anyone suggest a way of handling this?


 Cheers - Steve

 -
 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



  1   2   >