Oracle Coherence as an IDataStore

2012-10-26 Thread Bruno Borges
Hi all,

I've been playing with Coherence for a while and started to code an
implementation of IDataStore.
If there's someone here interested in this, please contact me.
The code will soon be published on GitHub, but I'd like to have someone
using Coherence and/or WebLogic to share ideais and to help me polish the
code.

Thanks,
*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*


Re: Twitter Bootstrap in Wicket

2012-10-11 Thread Bruno Borges
You have to remove though some of the CSS IE conditionals from Twitter
bootstrap.

They are still not correctly processed by Wicket. :-(


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Thu, Oct 11, 2012 at 11:08 PM, Chris Colman chr...@stepaheadsoftware.com
 wrote:

  Is it possible/feasible to 'selectively' use the Twitter bootstrap in
 a
  wicket app?
 
  Scenario: our app serves many different clients. Some will want the
  Twitter Bootstrap look and feel but others will be happy to use any
  number of existing CSS/JS templates that we have created for them
 over
  the years.
 
  Currently we use a combination of Wicket variations and conditional
  header injection to provide different look and feel for customers
 even
  though they all use the same Wicket page classes.
 
  Is it possible to use Twitter Bootstrap in the same way? i.e.
  conditionally use it when rendering a page for one customer but not
  using it when rendering that same page class for another customer?
 
 
 It sounds like you already have the system for this built.  Bootstrap
 is
 just HTML and CSS, so keep doing what you were with the variations and
 different header contributions.  Is there something else that you need?

 Probably not. I guess because it's purely HTML and CSS then it should
 fit in nicely with our existing HTML/CSS selection code.

 
 --
 Jeremy Thomerson
 http://wickettraining.com
 *Need a CMS for Wicket?  Use Brix! http://brixcms.org*

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




Re: Wicket 6 + EJB

2012-09-24 Thread Bruno Borges
Prefer to use the wicket-cdi module.


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Mon, Sep 24, 2012 at 1:33 PM, heapifyman heapify...@gmail.com wrote:

 https://github.com/wicketstuff/core/wiki/Java-EE-Inject
 allows injecting EJBs, etc. in wicket-6 applications.




 2012/9/24 Michael Zhavzharov mzhavzha...@alee.ru

  Hello Everyone.
 
  I have a question about how to include EJB into my wicket web
 application.
  When I was looking for solution for this problem in google, I have found
  two
  ways to solve it:
  1) Extend my Application class from org.jboss.weld.wicket.WeldApplication
  and then simply add @Inject annotation to my bean.
 
  or
 
  2) Use
 
 getComponentInstantiationListeners().add((IComponentInstantiationListener)
  new JavaEEComponentInjector(this)); in init method in my Application
 class
  and then add @EJB annotation to my bean
 
  But libraries that I need to do this became depracated in this version of
  Wicket (v.6) and don't work at all.
 
  Can somebody give me an advice how to solve my problem?
 
  Thank's.
 
  Michael.
 
 
 
  --
  View this message in context:
  http://apache-wicket.1842946.n4.nabble.com/Wicket-6-EJB-tp4652286.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
Jersey is really good, but you also should consider using the spec JAX-RS.
Why not?


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.comwrote:

 I've used wicket-rest before - it got the job done, but I couldn't use it
 for wicket 1.5.

 Since then I've moved my rest services to Jersey - I highly recommend using
 that if you can:

 http://jersey.java.net/

 -Dan

 On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com wrote:

  Good idea...
 
  I would like to use JSON though...
 
  Josh.
 
  On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   I have implemented rest like services by mounting pages and using
 them
  to
   generate XML content instead of HTML.
  
   On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Hi Guys;
   
Is there a way(a sub project may be..) of exposing a wicket web app
 as
  a
REST API ?
   
   
Josh.
   
  
  
  
   --
   Regards - Ernesto Reinaldo Barreiro
   Antilia Soft
   http://antiliasoft.com
  
 



Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
True, but we don't move between impls that often, do we? :-)


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Jersey is really good, but you also should consider using the spec
 JAX-RS.
  Why not?

 Because specs are boring and the compatibility between different impls
 is not as they claim it to be.

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
 wrote:
 
  I've used wicket-rest before - it got the job done, but I couldn't use
 it
  for wicket 1.5.
 
  Since then I've moved my rest services to Jersey - I highly recommend
 using
  that if you can:
 
  http://jersey.java.net/
 
  -Dan
 
  On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
   Good idea...
  
   I would like to use JSON though...
  
   Josh.
  
   On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
I have implemented rest like services by mounting pages and using
  them
   to
generate XML content instead of HTML.
   
On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
   wrote:
   
 Hi Guys;

 Is there a way(a sub project may be..) of exposing a wicket web
 app
  as
   a
 REST API ?


 Josh.

   
   
   
--
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com
   
  
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
I'm just saying that he can opt to use jax-rs... not that he must because
X or Y...

I like jax-rs, it is a good spec, that's why I'm suggesting. :P

Do you think it is not a good spec?


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Fri, Sep 21, 2012 at 5:44 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 11:42 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  True, but we don't move between impls that often, do we? :-)

 Exactly!
 But then why to follow restrictions and not use the full power of the
 specific implementation ?

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Jersey is really good, but you also should consider using the spec
  JAX-RS.
   Why not?
 
  Because specs are boring and the compatibility between different impls
  is not as they claim it to be.
 
  
  
   *Bruno Borges*
   (11) 99564-9058
   *www.brunoborges.com*
  
  
  
   On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
  wrote:
  
   I've used wicket-rest before - it got the job done, but I couldn't
 use
  it
   for wicket 1.5.
  
   Since then I've moved my rest services to Jersey - I highly recommend
  using
   that if you can:
  
   http://jersey.java.net/
  
   -Dan
  
   On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Good idea...
   
I would like to use JSON though...
   
Josh.
   
On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
 I have implemented rest like services by mounting pages and
 using
   them
to
 generate XML content instead of HTML.

 On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau 
 joshnet2...@gmail.com
wrote:

  Hi Guys;
 
  Is there a way(a sub project may be..) of exposing a wicket web
  app
   as
a
  REST API ?
 
 
  Josh.
 



 --
 Regards - Ernesto Reinaldo Barreiro
 Antilia Soft
 http://antiliasoft.com

   
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket as rest backend....

2012-09-20 Thread Bruno Borges
Take a look at the (very outdated) wicket-rest project:
http://code.google.com/p/wicket-rest/

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Thu, Sep 20, 2012 at 2:54 PM, Josh Kamau joshnet2...@gmail.com wrote:

 Hi Guys;

 Is there a way(a sub project may be..) of exposing a wicket web app as a
 REST API ?


 Josh.



Re: conditional css

2012-09-19 Thread Bruno Borges
If you try to use the Twitter's Bootstrap template, it throws an exception
of unclosed tag... :-(

I removed those conditional CSS's and then it worked.

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Wed, Sep 19, 2012 at 2:53 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 What is the problem ?

 On Wed, Sep 19, 2012 at 12:44 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Any updates on this issue on the Wicket 6 release?
 
  I tried to use Twitter's Bootstrap and it failed to load. :-/
 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Tue, Feb 8, 2011 at 10:42 PM, shetc sh...@bellsouth.net wrote:
 
 
  see
 
 
 http://apache-wicket.1842946.n4.nabble.com/If-IE-comments-td1892057.html#a1892058
 
 
 http://apache-wicket.1842946.n4.nabble.com/If-IE-comments-td1892057.html#a1892058
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/conditional-css-tp3276786p3287656.html
  Sent from the Users forum 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
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Bruno Borges
Igor, any update on the Serialization issue?

I'm getting the exception again... :-/

# Running on GlassFish 3.1.2.2 / Wicket 6 + wicket-cdi

SEVERE: Error serializing object class code.webapp.pages.Index
[object=[Page class = code.webapp.pages.Index, id = 3, render count = 1]]
org.apache.wicket.core.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
Field hierarchy is:
  3 [class=code.webapp.pages.Index, path=3]
private code.services.Service code.webapp.pages.Base.service
[class=code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$]
  javassist.util.proxy.MethodHandler
code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$.methodHandler
[class=org.jboss.weld.bean.proxy.ProxyMethodHandler]
private org.jboss.weld.bean.proxy.BeanInstance
org.jboss.weld.bean.proxy.ProxyMethodHandler.beanInstance
[class=org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance]
  private final javassist.util.proxy.MethodHandler
org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.methodHandler
[class=org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler]
private final org.jboss.weld.ejb.api.SessionObjectReference
org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.reference
[class=org.glassfish.weld.ejb.SessionObjectReferenceImpl]
  private java.lang.Object
org.glassfish.weld.ejb.SessionObjectReferenceImpl.ejbRef [class=$Proxy149]
protected java.lang.reflect.InvocationHandler
java.lang.reflect.Proxy.h
[class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
- field that is not serializable
at
org.apache.wicket.core.util.io.SerializableChecker.internalCheck(SerializableChecker.java:411)
at
org.apache.wicket.core.util.io.SerializableChecker.check(SerializableChecker.java:390)



*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Tue, Sep 18, 2012 at 12:29 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Jeremy, the archetype is already on the Gamboa project repository:

 http://github.com/brunoborges/gamboa-project :-)

 It's just not up to date

 *Bruno Borges*
 (11) 99564-9058
 *www.brunoborges.com*



 On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 On Wed, Sep 12, 2012 at 3:59 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:

  This is really great Igor, thanks.
 
  I am preparing my slides for my Wicket/Java EE session at JavaOne, and
 this
  just came in perfect time.
 
  I'll update my archetype and some slides to show this and let everyone
 know
  about =)


 Will you be posting those slides and archetype somewhere non-attendees can
 access when done?

 --
 Jeremy Thomerson
 http://wickettraining.com
 *Need a CMS for Wicket?  Use Brix! http://brixcms.org*





Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Bruno Borges
Yeah, that workaround that I wanted to not do... :-)

But okay, thanks!

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Tue, Sep 18, 2012 at 2:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 no update. the cdi spec does not require ejbs to be serializable
 because they are not in cdi spec.

 if you want to use ejbs inject them into a cdi bean and then inject
 that into wicket.

 -igor

 On Tue, Sep 18, 2012 at 9:56 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Igor, any update on the Serialization issue?
 
  I'm getting the exception again... :-/
 
  # Running on GlassFish 3.1.2.2 / Wicket 6 + wicket-cdi
 
  SEVERE: Error serializing object class code.webapp.pages.Index
  [object=[Page class = code.webapp.pages.Index, id = 3, render count = 1]]
 
 org.apache.wicket.core.util.io.SerializableChecker$WicketNotSerializableException:
  Unable to serialize class:
  com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
  Field hierarchy is:
3 [class=code.webapp.pages.Index, path=3]
  private code.services.Service code.webapp.pages.Base.service
  [class=code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$]
javassist.util.proxy.MethodHandler
 
 code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$.methodHandler
  [class=org.jboss.weld.bean.proxy.ProxyMethodHandler]
  private org.jboss.weld.bean.proxy.BeanInstance
  org.jboss.weld.bean.proxy.ProxyMethodHandler.beanInstance
  [class=org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance]
private final javassist.util.proxy.MethodHandler
  org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.methodHandler
  [class=org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler]
  private final org.jboss.weld.ejb.api.SessionObjectReference
  org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.reference
  [class=org.glassfish.weld.ejb.SessionObjectReferenceImpl]
private java.lang.Object
  org.glassfish.weld.ejb.SessionObjectReferenceImpl.ejbRef
 [class=$Proxy149]
  protected java.lang.reflect.InvocationHandler
  java.lang.reflect.Proxy.h
  [class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
  - field that is not serializable
  at
 
 org.apache.wicket.core.util.io.SerializableChecker.internalCheck(SerializableChecker.java:411)
  at
 
 org.apache.wicket.core.util.io.SerializableChecker.check(SerializableChecker.java:390)
 
 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Tue, Sep 18, 2012 at 12:29 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
 
  Jeremy, the archetype is already on the Gamboa project repository:
 
  http://github.com/brunoborges/gamboa-project :-)
 
  It's just not up to date
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson 
  jer...@wickettraining.com wrote:
 
  On Wed, Sep 12, 2012 at 3:59 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
 
   This is really great Igor, thanks.
  
   I am preparing my slides for my Wicket/Java EE session at JavaOne,
 and
  this
   just came in perfect time.
  
   I'll update my archetype and some slides to show this and let
 everyone
  know
   about =)
 
 
  Will you be posting those slides and archetype somewhere non-attendees
 can
  access when done?
 
  --
  Jeremy Thomerson
  http://wickettraining.com
  *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
 
 
 

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




Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Bruno Borges
Why are the CDI proxies serializable and EJB's proxy aren't? Hell...

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Tue, Sep 18, 2012 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 so join the jsr expert group and emphasize the importance of making
 EJB proxies serializable :)

 On Tue, Sep 18, 2012 at 10:45 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Yeah, that workaround that I wanted to not do... :-)
 
  But okay, thanks!
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Tue, Sep 18, 2012 at 2:26 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  no update. the cdi spec does not require ejbs to be serializable
  because they are not in cdi spec.
 
  if you want to use ejbs inject them into a cdi bean and then inject
  that into wicket.
 
  -igor
 
  On Tue, Sep 18, 2012 at 9:56 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Igor, any update on the Serialization issue?
  
   I'm getting the exception again... :-/
  
   # Running on GlassFish 3.1.2.2 / Wicket 6 + wicket-cdi
  
   SEVERE: Error serializing object class code.webapp.pages.Index
   [object=[Page class = code.webapp.pages.Index, id = 3, render count =
 1]]
  
 
 org.apache.wicket.core.util.io.SerializableChecker$WicketNotSerializableException:
   Unable to serialize class:
   com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
   Field hierarchy is:
 3 [class=code.webapp.pages.Index, path=3]
   private code.services.Service code.webapp.pages.Base.service
  
 [class=code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$]
 javassist.util.proxy.MethodHandler
  
 
 code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$.methodHandler
   [class=org.jboss.weld.bean.proxy.ProxyMethodHandler]
   private org.jboss.weld.bean.proxy.BeanInstance
   org.jboss.weld.bean.proxy.ProxyMethodHandler.beanInstance
   [class=org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance]
 private final javassist.util.proxy.MethodHandler
   org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.methodHandler
   [class=org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler]
   private final
 org.jboss.weld.ejb.api.SessionObjectReference
   org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.reference
   [class=org.glassfish.weld.ejb.SessionObjectReferenceImpl]
 private java.lang.Object
   org.glassfish.weld.ejb.SessionObjectReferenceImpl.ejbRef
  [class=$Proxy149]
   protected java.lang.reflect.InvocationHandler
   java.lang.reflect.Proxy.h
   [class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate]
   - field that is not serializable
   at
  
 
 org.apache.wicket.core.util.io.SerializableChecker.internalCheck(SerializableChecker.java:411)
   at
  
 
 org.apache.wicket.core.util.io.SerializableChecker.check(SerializableChecker.java:390)
  
  
  
   *Bruno Borges*
   (11) 99564-9058
   *www.brunoborges.com*
  
  
  
   On Tue, Sep 18, 2012 at 12:29 AM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
  
   Jeremy, the archetype is already on the Gamboa project repository:
  
   http://github.com/brunoborges/gamboa-project :-)
  
   It's just not up to date
  
   *Bruno Borges*
   (11) 99564-9058
   *www.brunoborges.com*
  
  
  
   On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson 
   jer...@wickettraining.com wrote:
  
   On Wed, Sep 12, 2012 at 3:59 PM, Bruno Borges 
 bruno.bor...@gmail.com
   wrote:
  
This is really great Igor, thanks.
   
I am preparing my slides for my Wicket/Java EE session at JavaOne,
  and
   this
just came in perfect time.
   
I'll update my archetype and some slides to show this and let
  everyone
   know
about =)
  
  
   Will you be posting those slides and archetype somewhere
 non-attendees
  can
   access when done?
  
   --
   Jeremy Thomerson
   http://wickettraining.com
   *Need a CMS for Wicket?  Use Brix! http://brixcms.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: conditional css

2012-09-18 Thread Bruno Borges
Any updates on this issue on the Wicket 6 release?

I tried to use Twitter's Bootstrap and it failed to load. :-/


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Tue, Feb 8, 2011 at 10:42 PM, shetc sh...@bellsouth.net wrote:


 see

 http://apache-wicket.1842946.n4.nabble.com/If-IE-comments-td1892057.html#a1892058

 http://apache-wicket.1842946.n4.nabble.com/If-IE-comments-td1892057.html#a1892058
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/conditional-css-tp3276786p3287656.html
 Sent from the Users forum 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: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-17 Thread Bruno Borges
Jeremy, the archetype is already on the Gamboa project repository:

http://github.com/brunoborges/gamboa-project :-)

It's just not up to date

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 On Wed, Sep 12, 2012 at 3:59 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:

  This is really great Igor, thanks.
 
  I am preparing my slides for my Wicket/Java EE session at JavaOne, and
 this
  just came in perfect time.
 
  I'll update my archetype and some slides to show this and let everyone
 know
  about =)


 Will you be posting those slides and archetype somewhere non-attendees can
 access when done?

 --
 Jeremy Thomerson
 http://wickettraining.com
 *Need a CMS for Wicket?  Use Brix! http://brixcms.org*



Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-12 Thread Bruno Borges
This is really great Igor, thanks.

I am preparing my slides for my Wicket/Java EE session at JavaOne, and this
just came in perfect time.

I'll update my archetype and some slides to show this and let everyone know
about =)


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Wed, Sep 12, 2012 at 12:44 AM, Alexander Morozov 
alexander.v.moro...@gmail.com wrote:

 Great news! Thanks. I'll wait for 6.1.0 :)



 -
 --
 http://www.linkedin.com/in/amorozov
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-CDI-for-Wicket-6-0-0-released-tp4651924p4651935.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




Re: Wicket/Scala where to start?

2012-09-12 Thread Bruno Borges
Why don't you take a look at a work I have been doing, called Gamboa
Project ?

It is a project where I build several Maven archetypes for Wicket/Scala
architectures (integrated with Spring or Java EE) and using JPA, CouchDB,
or MongoDB as the persistent store.

By the way, I'm going be at JavaOne talking about that. You are welcome :-)

https://github.com/brunoborges/gamboa-project

Ideas are welcome too!

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Mon, Sep 10, 2012 at 5:03 AM, Martijn Lindhout 
martijn.lindh...@gmail.com wrote:

 Hi all,

 I'm addicted to Wicket for years, and recently became interested in Scala
 (a bit late? ;-)). Can anyone help me out where to start with integrating
 the two? There are some posts about it on the list, but they're all pretty
 outdated...

 Regards,

 --
 Martijn Lindhout



Re: I'm slighty mad

2012-06-22 Thread Bruno Borges
Crazy little bastard!!

Congratulations on your brave move! :D


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Jun 22, 2012 at 5:23 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 +1! :-)

 next step is to go with a -SNAPSHOT in production ;-)
 Let us know if you face any problems

 On Fri, Jun 22, 2012 at 11:18 AM, coincoinfou olivierandr...@gmail.com
 wrote:
  I've pushed Wicket beta2 in production
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/I-m-slighty-mad-tp4650184.html
  Sent from the Users forum 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
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: I'm slighty mad

2012-06-22 Thread Bruno Borges
Indeed.

+1

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Jun 22, 2012 at 3:35 PM, Per Newgro per.new...@gmx.ch wrote:

 I hope you're not working in a nuclear power plant :-)

 Am 22.06.2012 19:01, schrieb Bruno Borges:

 Crazy little bastard!!

 Congratulations on your brave move! :D


 *Bruno Borges*
 (21) 7672-7099
 *www.brunoborges.com*




 On Fri, Jun 22, 2012 at 5:23 AM, Martin Grigorovmgrigo...@apache.org**
 wrote:

  +1! :-)

 next step is to go with a -SNAPSHOT in production ;-)
 Let us know if you face any problems

 On Fri, Jun 22, 2012 at 11:18 AM, 
 coincoinfouolivierandrejc@**gmail.comolivierandr...@gmail.com
 
 wrote:

 I've pushed Wicket beta2 in production

 --
 View this message in context:

 http://apache-wicket.1842946.**n4.nabble.com/I-m-slighty-mad-**
 tp4650184.htmlhttp://apache-wicket.1842946.n4.nabble.com/I-m-slighty-mad-tp4650184.html

 Sent from the Users forum mailing list archive at Nabble.com.

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



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




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




Re: Spring + MongoDb

2011-12-15 Thread Bruno Borges
Just to let you all know that the Gamboa Project has moved to individual
repositories under the organization Gamboa at http://github.com/gamboa

There are Wicket+Scala archetypes for MongoDB, CouchDB and Java EE 6 (JPA).

The Wicket DSL for Scala is now available too under the wicket-scala
project at wicketstuff.

Martin, thanks for sharing =)

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Mon, Dec 12, 2011 at 6:50 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Here is the Scala project you mention:
 https://github.com/brunoborges/gamboa-project
 If Scala confuses you then all you need is to find pure Java example
 of Spring-Data-Mongodb and another one that uses Spring
 services/repositories from Wicket (e.g. Phonebook example in
 wicketstuff).

 On Mon, Dec 12, 2011 at 6:18 AM, Jeff Schneller j...@mootus.com wrote:
  Has anyone implemented wicket with spring and mongodb.  I saw there was
 a project back in June about scala, wicket, spring, and mongodb but the
 scala portion is a bit confusing.
 
  Looking for a sample implementation/configuration to get going with.
 
  Thanks.
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Bruno Borges
Can't upgrade... :-(

Political issues (read: conservative corporation with terrible decision
makers)

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Thu, Oct 20, 2011 at 9:28 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Tue, Oct 18, 2011 at 3:11 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  After playing with Nested Forms in WIcket 1.4.18, I found out that the
  onSubmit method of these forms is called at the end of the process.
 
  If a parent form has a button and this button is submited, its onSubmit
  method is called before anything.
  Then, parent form's onSubmit method is called.
  Then, it will navigate through all nested forms calling their onSubmit
  method.
  The problem is that I have a nested forms that changes a value in the
 model
  that is associated with the parent form.
 
  My usecase has an AddressPanel with a form inside that manipulates the
  person.address object. This panel is created by informing two
  IModelAddress objects.
  One is to be used as the Person's address. The other one is to be used as
  copy of, because of a CheckBox that states Use the same address as of
  account holder.
 
  On its onSubmit method, is where I clone the account holder address to
 the
  actual person.address.
 
  But because of the order of how Wicket calls onSubmit methods, this
  implementation fails.
 
  Any suggestion?
 
  Should Wicket call all nested forms' onSubmit methods before calling the
  Button's onSubmit (or the parent form onSubmit) ?
 This is how it behaves in Wicket 1.5.
 See org.apache.wicket.markup.html.form.Form.delegateSubmit(IFormSubmitter)

 You are recommended to upgrade! ;-)
 
  Thanks,
 
  *Bruno Borges*
  (21) 7672-7099
  *www.brunoborges.com*
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Nested Forms in 1.4.x - order of calling onSubmit

2011-10-18 Thread Bruno Borges
After playing with Nested Forms in WIcket 1.4.18, I found out that the
onSubmit method of these forms is called at the end of the process.

If a parent form has a button and this button is submited, its onSubmit
method is called before anything.
Then, parent form's onSubmit method is called.
Then, it will navigate through all nested forms calling their onSubmit
method.
The problem is that I have a nested forms that changes a value in the model
that is associated with the parent form.

My usecase has an AddressPanel with a form inside that manipulates the
person.address object. This panel is created by informing two
IModelAddress objects.
One is to be used as the Person's address. The other one is to be used as
copy of, because of a CheckBox that states Use the same address as of
account holder.

On its onSubmit method, is where I clone the account holder address to the
actual person.address.

But because of the order of how Wicket calls onSubmit methods, this
implementation fails.

Any suggestion?

Should Wicket call all nested forms' onSubmit methods before calling the
Button's onSubmit (or the parent form onSubmit) ?

Thanks,

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*


Re: jqWicket or wiQuery

2011-10-11 Thread Bruno Borges
Why don't you implement your use case with both projects and decide which
one was easier/better?

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Tue, Oct 11, 2011 at 3:04 PM, armandoxxx armando@dropchop.comwrote:

 hey guys need your opinion  which you preffer ... I've checked both and
 can't
 decide ... both wrap jQuery ui components ...
 first use case i have is to create date range picker wicket component.

 regards

 Armando

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/jqWicket-or-wiQuery-tp3895432p3895432.html
 Sent from the Users forum 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: [Announce] Wicket Stuff Core 1.5.1 Released

2011-10-08 Thread Bruno Borges
Excelent work Michael, thanks a lot!


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Sat, Oct 8, 2011 at 11:23 PM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hello,

 Following the release of wicket 1.5.1 have cut a matching wicketstuff-core
 release.

 The artifacts have been promoted and are now available in maven central.

 They can be retrieved like this:

 dependency
 groupIdorg.wicketstuff/**groupId
 artifactIdwicketstuff-**annotation/artifactId
 version1.5.1/version
 /dependency

 The release tag is here: https://github.com/**wicketstuff/core/tree/**
 wicketstuff-core-1.5.1https://github.com/wicketstuff/core/tree/wicketstuff-core-1.5.1

 Development on the next release takes place on the master branch here:
 https://github.com/**wicketstuff/corehttps://github.com/wicketstuff/core

 Issues can be reported here: 
 https://github.com/**wicketstuff/core/issueshttps://github.com/wicketstuff/core/issues

 The Project Wiki is available here: https://github.com/**
 wicketstuff/core/wiki https://github.com/wicketstuff/core/wiki

 Changelog between wicketstuff-core-1.45.0 and this release:

 peter (8):
  [closure-compiler] add project
  [closure-compiler] add stats, small fixes
  add [closure-compiler] to core/jdk-1.5-parent/pom.xml
  [closure-compiler] support different compression levels, add externs
 to su
  [closure-compiler] fixed externs, better support for customization
  add artifact jul-to-slf4j (redirect jul over slf4j) to dependency
 manageme
  [closure-compiler] better logging, better error reporting
  [closure-compiler] set default compression to 'simple' since
 'advanced' is

 akiraly (5):
  [closure-compiler] Moved under jdk-1.6-parent as
 googlecode-closure-compil
  [core] Updated logback and ehcache.
  [core] Updated clojure. Triggered some changes in [console-engine]
 clojure
  [inmethod-grid] Cosmetic change to fix a warning.
  [push] Fix unload request check.

 Michael O'Cleirigh (1):
  commit 1.5.1 release pom's

 martin-g (1):
  [inmethod-grid] Change the artifactId of the examples module to be in
 sync


 (This listing was generated using: git shortlog -n wicketstuff-core-1.5.0..
 **wicketstuff-core-1.5.1).

 I will plan to do the next release within one month of today but if you
 commit code and/or need a release cut sooner please file a ticket.

 Regards,

 Mike

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




Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-10-03 Thread Bruno Borges
Could you provide some snippet of your code?

Have you setOutputMarkupId on your PageableListView?

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Wed, Sep 28, 2011 at 9:27 AM, Martin A wml...@gmail.com wrote:

 Thanks, but strangely, clicking on a AjaxNavigationLink returns empty
 response. Do you have any ideas why this happens?

 Thanks!

 On Wed, Sep 28, 2011 at 3:01 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  yes. this is how it works
 
  On Wed, Sep 28, 2011 at 1:54 PM, Martin A wml...@gmail.com wrote:
   Hello,
   I've got a PagingNavigation on a PageableListView, contained in a
 parent
   Page. To me it looks like it renders the whole page when paging its
  assigned
   pageableView. I would like to know if AjaxPagingNavigation would
 refresh
   only its assigned pageableView, because there are other components on
 the
   page that I wouldn't like to get rendered?
  
   Thank you,
   Martin
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Wicket 1.4 redirects to root path

2011-09-26 Thread Bruno Borges
A Wicket 1.4.17 application with its Filter mapped to /foo/* is being
redirect to root path after a form submit.

Does anyone have any idea on what can be going wrong?

Thanks

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*


Re: Glitch in PageParameter API

2011-09-21 Thread Bruno Borges
Well, it could be done in 1.5.x this way:

PageParameters.NamedPairs extends INamedParameters.NamedPairs

In 1.6 then PP.NP  could be dropped.

What about that?


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Wed, Sep 21, 2011 at 12:13 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 cant do in 1.5.x. make a ticket and schedule for 1.6.0

 -igor


 On Wed, Sep 21, 2011 at 8:12 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
  On Wed, Sep 21, 2011 at 6:08 PM, Jorge Gallardo
  jorgeagalla...@gmail.com wrote:
  Folks,
 
  In an attempt to create my own implementation of PageParameterEncoder
 and
  PageParameters, I encountered the following problem with the API:
 
  The interface INamedParameters
 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/mapper/parameter/INamedParameters.html
 
  defines
  the method getAllNamed()
 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/mapper/parameter/INamedParameters.html#getAllNamed()
 
  that
  returns a list of
  NamedPairs
 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/mapper/parameter/PageParameters.NamedPair.html
 
  defined
  as inner class of
  PageParameters
 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/mapper/parameter/PageParameters.html
 
   .
 
  I believe that an interface shouldnt be referencing any element from an
  implementation to be a true extensible interface.
  A quick fix to this could be to convert NamedPair to a standard class
 and
  make it extensible as well.
  Or make it INamedParameters.NamedPair
 
  Thoughts?
 
  --
  Jorge Gallardo
  
  jorgeagalla...@gmail.com
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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




Wicket 1.5 and Google Analytics

2011-09-20 Thread Bruno Borges
With Wicket, versioned pages are being gattered as individual/different
pages at Google Analytics.

For example:

/app/Home has X pageviews
/app/Home?1= has Y pageviews
/app/Home?2= has Z pageviews

And so on.

Does anyone have any idea on how to fix this, except by disabling page
versioning?

Thanks,

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*


Re: Apache Wicket releases Wicket 1.5

2011-09-08 Thread Bruno Borges
Thank you WTeam! =)


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Thu, Sep 8, 2011 at 6:00 AM, rebecca rivka.shis...@gmail.com wrote:

 Thank you wicket team for all your work and effort!!!

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3798223.html
 Sent from the Users forum 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: Login page hangs after custom page-expired error page

2011-08-26 Thread Bruno Borges
I think you must set your page as error page.

Make that change and try again.

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Aug 26, 2011 at 1:27 AM, Scott Reed sr...@avacoda.com wrote:

 A created my own PageExpiredErrorPage. There is a button that is supposed
 to take the user to the login page so they can log in (similar to the button
 on the default page-expired error page). /
 /
 When the user first opens the web site, they see a log in page with URL
 /http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 com.mni.SignInPage?1/http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1/.
 http://192.168.33.20:9002/**rems/wicket/wicket/**bookmarkable/com.mni.**
 SignInPage?1http://192.168.33.20:9002/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1
 

 *Default PageExpiredErrorPage behavior*
 After there is a page timeout and the /default /page-expired error page
 opens, the Return to home page button on the default page expired error
 page reports URL /
http://mydomain.com/rems/**wicket// http://mydomain.com/rems/wicket//
 .

 When the user selects that button they go to the login page with address /
http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 com.mni.SignInPage?0http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?0
 /*and it goes to the home page as expected/desired when the user logs in.*/

 /*My custom page-expired error page behavior*/
 /After there is a page timeout and the /custom /page-expired error page
 opens, the Return to home page button on the default page expired error
 page reports URL /
 //http://mydomain.com/rems/**wicket// http://mydomain.com/rems/wicket//

 When the user selects that button they go to the login page with address
 /http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 com.mni.REMSPageExpiredPage#..**/http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.REMSPageExpiredPage#../..

 /*and it hangs when the user logs in*/./

 *custom page-expired error page HTML
 *

   body
   pThe page you requested has expired./p
   pa wicket:id=homeLinkReturn to home page/a/p
   /body

 *
 Java:
 *

   public class MyPageExpiredPage extends WebPage
   {
  public MyPageExpiredPage()
  {
super();

// link for home page btn
// WebPage#homePageLink returns a BookmarkablePageLink
add( homePageLink(homeLink));
  }
   }

 I would very much appreciate any assistance with this.
  Scott




Re: Login page hangs after custom page-expired error page

2011-08-26 Thread Bruno Borges
But still, why isn't Scott's case working?


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Fri, Aug 26, 2011 at 5:12 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 for 1.6 - yes, I think. unless we find it useful for something

 On Fri, Aug 26, 2011 at 6:54 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  can we remove it then?
 
  -igor
 
  On Fri, Aug 26, 2011 at 8:19 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
  actually #isErrorPage() is not used in current 1.5, so WIA is correct
 
  On Fri, Aug 26, 2011 at 6:15 PM, Scott Reed sr...@avacoda.com wrote:
  Thanks, Bruno. I added isErrorPage() just in case. The docs just say
 This
  can help the framework prevent infinite failure loops. That's also not
  mentioned in Wicket in Action which says creating an error page is no
  different than creating a normal page.
   Scott
 
  On 8/26/2011 9:15 AM, Bruno Borges wrote:
 
  I think you must set your page as error page.
 
  Make that change and try again.
 
  *Bruno Borges*
  (21) 7672-7099
  *www.brunoborges.com*
 
 
 
  On Fri, Aug 26, 2011 at 1:27 AM, Scott Reedsr...@avacoda.com
  wrote:
 
  A created my own PageExpiredErrorPage. There is a button that is
 supposed
  to take the user to the login page so they can log in (similar to the
  button
  on the default page-expired error page). /
  /
  When the user first opens the web site, they see a log in page with
 URL
  /http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 
  com.mni.SignInPage?1/
 http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1/
 .
  
 http://192.168.33.20:9002/**rems/wicket/wicket/**bookmarkable/com.mni.**
 
  SignInPage?1
 http://192.168.33.20:9002/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?1
 
  *Default PageExpiredErrorPage behavior*
  After there is a page timeout and the /default /page-expired error
 page
  opens, the Return to home page button on the default page expired
 error
  page reports URL /
 http://mydomain.com/rems/**wicket//
 http://mydomain.com/rems/wicket//
  .
 
  When the user selects that button they go to the login page with
 address
  /
 http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 
  com.mni.SignInPage?0
 http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.SignInPage?0
  /*and it goes to the home page as expected/desired when the user logs
  in.*/
 
  /*My custom page-expired error page behavior*/
  /After there is a page timeout and the /custom /page-expired error
 page
  opens, the Return to home page button on the default page expired
 error
  page reports URL /
  //http://mydomain.com/rems/**wicket//
 http://mydomain.com/rems/wicket//
 
  When the user selects that button they go to the login page with
 address
  /http://mydomain.com/rems/**wicket/wicket/bookmarkable/**
 
  com.mni.REMSPageExpiredPage#..**/
 http://mydomain.com/rems/wicket/wicket/bookmarkable/com.mni.REMSPageExpiredPage#../
 ..
 
  /*and it hangs when the user logs in*/./
 
  *custom page-expired error page HTML
  *
 
body
pThe page you requested has expired./p
pa wicket:id=homeLinkReturn to home page/a/p
/body
 
  *
  Java:
  *
 
public class MyPageExpiredPage extends WebPage
{
   public MyPageExpiredPage()
   {
 super();
 
 // link for home page btn
 // WebPage#homePageLink returns a BookmarkablePageLink
 add( homePageLink(homeLink));
   }
}
 
  I would very much appreciate any assistance with this.
   Scott
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket and Scala

2011-08-24 Thread Bruno Borges
Define as var

I had some serialization problems with that too.



On Wed, Aug 24, 2011 at 9:55 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Do you experience problems ?
 I see no reason this to fail.
 I think the constant (val/final) should be declared outside of the
 RepeatingView scope and used inside it, then it will be serialized
 with it.

 On Wed, Aug 24, 2011 at 10:45 AM, danisevsky danisev...@gmail.com wrote:
  Hello, I am playing with Scala and Wicket and I am not clear about
  using val and var when I am working with JPA entity objects (which
  are not serializable). For example:
 
 add(new RefreshingView[User](users){
   override def getItemModels(): java.util.Iterator[IModel[User]] = {
 var models = new java.util.ArrayList[IModel[User]]();
 for(user - getAllUsers()){
   models.add(new EntityDetachableModel[User](user))
 }
 models.iterator()
   }
   def populateItem(item: Item[User]) = {
 val user = item.getModelObject // is this the same like final
  User user = item.getModelObject() in Java?
 //...
   }
 })
 
  if val user = item.getModelObject is the same like:
  final User user = item.getModelObject
  then I can't use val for entity objects because they are not
  serializable and outer class (RefreshingView) holds reference on its
  final fields. Is it true?
  So should I use always var for non serializable objects?
 
  Thank you in advance for clarification.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: modal page encoding

2011-08-22 Thread Bruno Borges
We work with projects based on Portuguese and we are having some problems
because of that too. It seems that it is easier to just use UTF-8 instead of
ISO.


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Mon, Aug 22, 2011 at 1:01 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 W3C requires UTF-8

 On Mon, Aug 22, 2011 at 6:56 PM, Anna Simbirtsev asimbirt...@gmail.com
 wrote:
   it seems that Ajax form processing should always be encoded in UTF-8, is
  there alternative way to let Ajax form processing using 'iso-8859-1'
 except
  changing wicket-ajax.js
 
  On Mon, Aug 22, 2011 at 10:51 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  disable your browser caches
  or give more details what exactly is the problem
 
  On Mon, Aug 22, 2011 at 5:39 PM, Anna Simbirtsev asimbirt...@gmail.com
 
  wrote:
   Hi,
  
   Encoding issue in Wicket:
   we want to change encoding from utf-8 to iso-8859-01, after adding
  the
   following codes in application, it works for page, but doesn't work
 with
   modal page, which is still using 'utf-8' encoding.
  
   getRequestCycleSettings().setResponseRequestEncoding(iso-8859-1);
   getMarkupSettings().setDefaultMarkupEncoding(iso-8859-1);
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Anna Simbirtsev
  (416) 729-7331
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Menubar in wicket ?

2011-08-21 Thread Bruno Borges
You can always download de JAR and install in your local maven repository.

http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html

Or, the hard way:

Checkout the source code and run $ mvn install ... :-)


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Sun, Aug 21, 2011 at 1:05 PM, aabfattah 
ahmed.abdelfattah.elshem...@gmail.com wrote:

 More info please ?
 And btw, wicket-menu seems good and has some demos but it's not in maven
 repositories so I have to find some workaround to import it.


 On 21 August 2011 18:01, nino martinez wael [via Apache Wicket] 
 ml-node+3758639-20428132-260...@n4.nabble.com wrote:

  Ive been using jsuperfish with autolinks.
  On Aug 21, 2011 3:12 PM, aabfattah [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3758639i=0
 
  wrote:
   I tried using dropdown-menu from wicketstuff but it didn't work , and
  then
  I
   googled and found out about yui menubar but there were topics reporting
   unsolved problems with it .
  
   Is there any reliable menubar I can use or I should just use the
 ListView
 
   ???
  
   --
   View this message in context:
 
 
 http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758370.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3758639i=1
   For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3758639i=2
  
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758639.html
   To unsubscribe from Menubar in wicket ?, click here
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3758370code=YWhtZWQuYWJkZWxmYXR0YWguZWxzaGVtaXN5QGdtYWlsLmNvbXwzNzU4MzcwfDI4MjAxMzAzNQ==
 .
 
 



 --
 Ahmed Abdelfattah


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Menubar-in-wicket-tp3758370p3758642.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




Re: Wicket 1.4.18: Performance of unit test observation.

2011-08-20 Thread Bruno Borges
Not exactly...

JUnit calls @Before and @After for each test method. That's why...


*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Sat, Aug 20, 2011 at 1:59 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 When you reuse the application instance across tests you are also reusing
 its caches.

 -igor
 On Aug 20, 2011 4:03 AM, cablepuff cablep...@gmail.com wrote:
  Hi can someone explain to me why performance of unit testing is faster
 using
  setUp and destory this way.
 
  @Before
  public void setup() {
  if (this.authenticatedWebApp == null) {
  this.authenticatedWebApp = new AuthenticatedTestApplication();
  }
  if (this.tester == null) {
  this.tester = new WicketTester(this.authenticatedWebApp);
  }
  else {
  this.tester.setupRequestAndResponse(true);
  }
  }
 
  @After
  public void tearDown() {
  if (this.tester != null) {
  this.tester.destroy();
  }
  }
 
  It runs my test case within 2 seconds compare to 25 seconds for this
 below

  @Before
  public void setup() {
  this.authenticatedWebApp = new AuthenticatedTestApplication();
  this.tester = new WicketTester(this.authenticatedWebApp);
  }
 
  @After
  public void tearDown() {
  this.tester = null;
  this.authenticatedWebApp = null;
  }
 
 
 
 
  --
  View this message in context:

 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-18-Performance-of-unit-test-observation-tp3756900p3756900.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



Re: Wicket 1.4.18: Performance of unit test observation.

2011-08-20 Thread Bruno Borges
Oh... sorry Igor... :-)

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Sat, Aug 20, 2011 at 2:20 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 Not exactly...

 JUnit calls @Before and @After for each test method. That's why...


 *Bruno Borges*
 (21) 7672-7099
 *www.brunoborges.com*



 On Sat, Aug 20, 2011 at 1:59 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 When you reuse the application instance across tests you are also reusing
 its caches.

 -igor
 On Aug 20, 2011 4:03 AM, cablepuff cablep...@gmail.com wrote:
  Hi can someone explain to me why performance of unit testing is faster
 using
  setUp and destory this way.
 
  @Before
  public void setup() {
  if (this.authenticatedWebApp == null) {
  this.authenticatedWebApp = new AuthenticatedTestApplication();
  }
  if (this.tester == null) {
  this.tester = new WicketTester(this.authenticatedWebApp);
  }
  else {
  this.tester.setupRequestAndResponse(true);
  }
  }
 
  @After
  public void tearDown() {
  if (this.tester != null) {
  this.tester.destroy();
  }
  }
 
  It runs my test case within 2 seconds compare to 25 seconds for this
 below

  @Before
  public void setup() {
  this.authenticatedWebApp = new AuthenticatedTestApplication();
  this.tester = new WicketTester(this.authenticatedWebApp);
  }
 
  @After
  public void tearDown() {
  this.tester = null;
  this.authenticatedWebApp = null;
  }
 
 
 
 
  --
  View this message in context:

 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-18-Performance-of-unit-test-observation-tp3756900p3756900.html
  Sent from the Users forum 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
 





Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
My Wicket app is mapped to / and because of that, lookups are being done for
static resources under /css, /js, /images and so on.

Is there any way to configure Wicket to not trying to find a RequestHandler
for these specific paths?

These paths are going to be processed by the container.

Thanks,

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
Found...

Add an init-param for WicketFilter named 'ignorePaths' with paths separated
by comma.
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Sun, Aug 14, 2011 at 10:44 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 My Wicket app is mapped to / and because of that, lookups are being done
 for static resources under /css, /js, /images and so on.

 Is there any way to configure Wicket to not trying to find a RequestHandler
 for these specific paths?

 These paths are going to be processed by the container.

 Thanks,

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099




Re: Set RequestCycle to not try RequestHandlers for static resources

2011-08-14 Thread Bruno Borges
I've edited Wiki and added the description for ignorePaths parameter:

https://cwiki.apache.org/confluence/display/WICKET/Best+Practices+and+Gotchas#BestPracticesandGotchas-


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Sun, Aug 14, 2011 at 10:56 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 Found...

 Add an init-param for WicketFilter named 'ignorePaths' with paths separated
 by comma.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Sun, Aug 14, 2011 at 10:44 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 My Wicket app is mapped to / and because of that, lookups are being done
 for static resources under /css, /js, /images and so on.

 Is there any way to configure Wicket to not trying to find a
 RequestHandler for these specific paths?

 These paths are going to be processed by the container.

 Thanks,

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099





Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-12 Thread Bruno Borges
Yes, now I understood. :-) Thanks

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Aug 12, 2011 at 2:56 AM, armandoxxx armando@dropchop.comwrote:

 @IGor: I figured it out .. no need for new features.

 @Bruno: if you cann onAfterInitialize() in onInitialize() you can't be sure
 all components on the page we're
  initialized()


 Regards

 Armando


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3738002.html
 Sent from the Users forum 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: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Finalizing the ExtendedPackageMapper. Usage is as follows:

mount(new ExtendedPackageMapper(${username}/${group}, Info.class) {
ListString VALID_USERS = Arrays.asList(new String[] { foo,
bar, fizz, buzz });

@Override
protected boolean validateParameters(PageParameters parameters) {
String username = parameters.get(username).toString();
String group = parameters.get(group).toString();

return group.equals(admin)  VALID_USERS.contains(username);
}
});

Info.class is the default webpage for that package (in case user types only
/fizz/admin);

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Aug 12, 2011 at 3:56 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Attatched a version that works nicely. Although I haven't tested it yet
 with forms, ajax and other things.

 This version translates nicely :
   ${profile}/Page == packageName/Page?username=${profile}

 And vice-versa

 But I still have to consider extra parameters and Wicket-related
 parameters.

 So this thread remains open. :-) Feel free to contribute.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 3:27 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Attached a quickstart with this case working, but using Redirect to the
 real mountPackage.

 Not exactly what I'm looking for...

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 2:43 AM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:

 if you create a quickstart that people can play with you will get a
 lot more responses...

 -igor

 On Thu, Aug 11, 2011 at 10:38 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Hi all,
 
I've digged into PackageMapper and CryptoMapper trying to achieve a
  Mapper based on user defined URLs, but honestly, it is not easy (at
 least
  for me).
 
The goal is to provide access to pages in package com.mysite.profile
  (pages: Guests, Messages, Wall, Home, etc) through a root path with
 user
  name like:
 
  http://mysite.com/${username}/Guests
 
  And, one user may open as several tabs as he wants, each for different
 user.
  Links should also be easily provided between pages beneath that path.
 
  One workaround came to mind:
 
  - loop through user database and mountPackage for each username
 
  But this seems a little odd to do, so that's why I came to the list.
 
  Anybody with a suggestion?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 

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






Re: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Finished... But still, some optimization can be done.

https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e

https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2eAny
help is welcome.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Aug 12, 2011 at 5:30 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Finalizing the ExtendedPackageMapper. Usage is as follows:

 mount(new ExtendedPackageMapper(${username}/${group}, Info.class) {
  ListString VALID_USERS = Arrays.asList(new String[] { foo,
 bar, fizz, buzz });

 @Override
 protected boolean validateParameters(PageParameters parameters) {
  String username = parameters.get(username).toString();
 String group = parameters.get(group).toString();

 return group.equals(admin)  VALID_USERS.contains(username);
 }
  });

 Info.class is the default webpage for that package (in case user types only
 /fizz/admin);

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 3:56 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Attatched a version that works nicely. Although I haven't tested it yet
 with forms, ajax and other things.

 This version translates nicely :
   ${profile}/Page == packageName/Page?username=${profile}

 And vice-versa

 But I still have to consider extra parameters and Wicket-related
 parameters.

 So this thread remains open. :-) Feel free to contribute.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 3:27 AM, Bruno Borges bruno.bor...@gmail.comwrote:

 Attached a quickstart with this case working, but using Redirect to the
 real mountPackage.

 Not exactly what I'm looking for...

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 2:43 AM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:

 if you create a quickstart that people can play with you will get a
 lot more responses...

 -igor

 On Thu, Aug 11, 2011 at 10:38 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Hi all,
 
I've digged into PackageMapper and CryptoMapper trying to achieve a
  Mapper based on user defined URLs, but honestly, it is not easy (at
 least
  for me).
 
The goal is to provide access to pages in package com.mysite.profile
  (pages: Guests, Messages, Wall, Home, etc) through a root path with
 user
  name like:
 
  http://mysite.com/${username}/Guests
 
  And, one user may open as several tabs as he wants, each for different
 user.
  Links should also be easily provided between pages beneath that path.
 
  One workaround came to mind:
 
  - loop through user database and mountPackage for each username
 
  But this seems a little odd to do, so that's why I came to the list.
 
  Anybody with a suggestion?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 

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







Re: Form looses data

2011-08-12 Thread Bruno Borges
I don't think so.

Its nature already provides that.

Just keep an object instantiated somewhere.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Aug 12, 2011 at 10:21 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 I think wicket needs some sort of conversation scope like Seam
 does... that should cover it.

 **
 Martin

 2011/8/12 Mike Mander wicket-m...@gmx.de:
  But if wicket should support it out of the box there is maybe another
 way.
  If we could get a method onBeforeFormSubmit() in form there would be
  an access point to configure validators in all childs.
  In default nothing is to do - means leave form as configured at creation
  time.
  If it's nessecary i could set a flag or something to validate components
  conditional.
 
  Form.java
  ...
 
  protected void onBeforeFormSubmit() {
   if (findSubmittingButton.getId().equals(mySpecialButton)) {
 setGlobalFlag(true);
   } else {
 setGlobalFlag(false);
   }
  }
 
  and in Validator
  MyValidator.java
  void validate(IValidatableT validatable) {
   if (!getGlobalFlag()) {
 doValidation();
   }
  }
 
  That would make it possibly unnessecary to store the component references
 in
  session.
  Or are there other usecases i don't see for ReuseManager.
 
  AH not to say that I would mind if wicket would handle
  reusemanager itself.. I wonder if it is there in 1.5? Hmm.. I think a
  proposal should be added to the whishlist.
 
  **
  Martin
 
  2011/8/12 Martin Makundimartin.maku...@koodaripalvelut.com:
 
  The Form way is a quirk way to do it in the first place. You are not
  supposed to update model before validation etc. so you will run into
  lots of troubles that way.
 
  Reusemanager simply works like wicket normally works when you validate
  and repaint the screen with rawInput values. It just keeps those
  components and copies the old rawInput value which was persisted
  during incomplete submit.
 
  **
  Martin
 
  2011/8/12 Mike Manderwicket-m...@gmx.de:
 
  Thanks Martin,
 
  now it works as expected. I don't have a clue how but it is.
  I really would be interested in knowing why the reusemanager gets the
  data
  and the form not.
 
  I think i will start a debugging session at weekend :-)
 
  Maybe we should use this scenario and put it in the wiki? Especially
 in
  shop
  environments it's
  a big frustration point if form values is lost only because i want to
  see
  what i typed in last page.
  And ask the user to provide all data until validation passes is
  decreasing
  the conversion rate :-(
  So maybe others will benefit from the found / working solution to.
 
  Thanks again
  Mike
 
  This is how you can do it with reusemanager:
 
 
  HomePage:
  public class HomePage extends WebPage {
 public HomePage(final PageParameters parameters) {
 FormVoidform;
 add(form = new FormVoid(form));
 
 
 
  
 form.add(WicketSession.get().getReuseManager().rememberOrReuseAndProvideFeedback(HomePage.class.getSimpleName()
  + tf, new TextFieldString(tf, Model.of(;
 form.add(new Button(doMemorizeInvalidData) {
 @Override
 public void onSubmit() {
 super.onSubmit();
 setResponsePage(OtherPage.class);
 setRedirect(true);
 };
 }.setDefaultFormProcessing(false));
 form.add(new Button(doUpdateData) {
 @Override
 public void onSubmit() {
 super.onSubmit();
 setResponsePage(OtherPage.class);
 setRedirect(true);
 };
 });
 }
  }
 
 
  Reusemanager holder (can be session, can be something else):
 
  public class WicketSession extends WebSession {
 /**
  *
  */
 private static final long serialVersionUID = 1L;
 
 private final FormComponentReuseManager reuseManager = new
  FormComponentReuseManager();
 
 public FormComponentReuseManager getReuseManager() {
 return reuseManager;
 }
 
 /**
  * @param request
  */
 public WicketSession(Request request) {
 super(request);
 }
 
 /**
  * @return WicketSession
  */
 public static WicketSession get() {
 return (WicketSession) Session.get();
 }
  }
 
 
  **
  Martin
 
  2011/8/12 Mike Manderwicket-m...@gmx.de:
 
  That is not working to. I've created a quickstart for this.
  Scenario is simplified. HomePage gets the data and has two submit
  buttons.
  Do i press the submit and click back on other page data are
 present
  (submitted).
  Do i press the invalid submit and click back on other page data
 are
  lost.
 
  Here is the code
 
  DirtyForm.java
  code
  import org.apache.wicket.markup.html.form.Form;
  import org.apache.wicket.model.IModel;
 
  public class DirtyFormTextends FormT{
 
 public DirtyForm(String id, IModelT

Re: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Indeed :)

Do you think its possible to add that to core?
 On Aug 12, 2011 12:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 amazing how quickly you can help yourself once you have something to
 play with :)

 -igor

 On Fri, Aug 12, 2011 at 2:23 AM, Bruno Borges bruno.bor...@gmail.com
wrote:
 Finished... But still, some optimization can be done.


https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e

 
https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e
Any
 help is welcome.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 5:30 AM, Bruno Borges bruno.bor...@gmail.com
wrote:

 Finalizing the ExtendedPackageMapper. Usage is as follows:

 mount(new ExtendedPackageMapper(${username}/${group}, Info.class) {
  ListString VALID_USERS = Arrays.asList(new String[] { foo,
 bar, fizz, buzz });

 @Override
 protected boolean validateParameters(PageParameters parameters) {
  String username = parameters.get(username).toString();
 String group = parameters.get(group).toString();

 return group.equals(admin)  VALID_USERS.contains(username);
 }
  });

 Info.class is the default webpage for that package (in case user types
only
 /fizz/admin);

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 3:56 AM, Bruno Borges bruno.bor...@gmail.com
wrote:

 Attatched a version that works nicely. Although I haven't tested it yet
 with forms, ajax and other things.

 This version translates nicely :
   ${profile}/Page == packageName/Page?username=${profile}

 And vice-versa

 But I still have to consider extra parameters and Wicket-related
 parameters.

 So this thread remains open. :-) Feel free to contribute.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 3:27 AM, Bruno Borges bruno.bor...@gmail.com
wrote:

 Attached a quickstart with this case working, but using Redirect to
the
 real mountPackage.

 Not exactly what I'm looking for...

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Fri, Aug 12, 2011 at 2:43 AM, Igor Vaynberg 
igor.vaynb...@gmail.comwrote:

 if you create a quickstart that people can play with you will get a
 lot more responses...

 -igor

 On Thu, Aug 11, 2011 at 10:38 PM, Bruno Borges 
bruno.bor...@gmail.com
 wrote:
  Hi all,
 
I've digged into PackageMapper and CryptoMapper trying to achieve
a
  Mapper based on user defined URLs, but honestly, it is not easy (at
 least
  for me).
 
The goal is to provide access to pages in package
com.mysite.profile
  (pages: Guests, Messages, Wall, Home, etc) through a root path with
 user
  name like:
 
  http://mysite.com/${username}/Guests
 
  And, one user may open as several tabs as he wants, each for
different
 user.
  Links should also be easily provided between pages beneath that
path.
 
  One workaround came to mind:
 
  - loop through user database and mountPackage for each username
 
  But this seems a little odd to do, so that's why I came to the
list.
 
  Anybody with a suggestion?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 

 -
 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: Form looses data

2011-08-11 Thread Bruno Borges
Shouldn't you be submitting that button anyway? dfp = true


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 10:44 AM, Mike Mander wicket-m...@gmx.de wrote:

 Hi,

 i've added a domain model globally to my session.

 A form for editing this data is provided on page A. On this i have 2 submit
 buttons. One with setDefaultFormProcessing false (to previous page) and one
 with true (to next step).

 If i press the main submit (next step | dfp = true) then everything works
 as expected. If i press the other (previous page |dfp = false) and redirect
 to Page A all data are lost. I'm absolutely aware of the issue that false in
 defaultFormProcessing is not submitting the data.

 But because i cannot reproduce the input changed part of the form
 processing, i can't submit the invalid data manually. Is there any way to
 achieve my goal?

 Thanks
 Mike

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




Re: CheckGroup updateModel + setrequired (Bug?)

2011-08-11 Thread Bruno Borges
Are you calling super.onValidate() ?

And I think before updating the models, all components must be visitted.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 11:39 AM, delta lsgpimen...@gmail.com wrote:

 When I set the *setRequired(true)* in a CheckGroup and Override the
 *onValidate* of the Form, calling *updateFormComponentModels();* to update
 the Models, a NullPointerException occurs in CheckGroup.updateModel.

 This only occurs when setRequired is setted to true, not happening when not
 setted or when explicitly setted to false.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736032.html
 Sent from the Users forum 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: Component with ListView that adds other Components?

2011-08-11 Thread Bruno Borges
I think that's a case for using Border.

http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/border/Border.html

You may check the migration of Border behaviour in 1.5 at
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-RemovedmagicfromBorderComponent

Cheers,

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Aug 3, 2011 at 8:19 PM, Gary Thomas 7za...@gmail.com wrote:

 Stumped on this, seemed it should simple:

 I am making a component that uses a ListView.
 Two important requirements:

 1) This component will add Components and other markup before the list
 items, which I do not want the page designer or Java coder to worry about
 adding themselves in markup or code.

 2) I want the page designer to be able to specify the markup that will be
 repeated for list items, just like a ListView:

ul
li wicket:id=mylist
Blah blah blah
/li
/ul


 So this Component's usage would look like this:

 ul wicket:id=mycomponent
   li wicket:id=mylist
  Blah blah blah
   /li
 /ul

 Which would generate this (fake markup example):

 ul id=mycomponent
  My Important Stuff
  buttonYadda/button
  form
 ...
  /form

  li
  Blah blah blah
  /li
  li
  Blah blah blah
  /li
  li
  Blah blah blah
  /li
  ...
 /ul


 I was going to use a panel, but realized I have no idea how to grab
 markup to use within the ListView.

 Help?


 Thanks,
 G

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




Re: Form looses data

2011-08-11 Thread Bruno Borges
You want to go back to another page without having to fill the form, but you
also don't want to lose data you typed in in the previous screen? Seems
weird to me.

Have you considered to add Ajax update behaviour? onBlur of components, you
could update the model of each component.
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 11:50 AM, Mike Mander wicket-m...@gmx.de wrote:

 Am 11.08.2011 16:36, schrieb Bruno Borges:

 Shouldn't you be submitting that button anyway? dfp = true


 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de  wrote:

  Hi,

 i've added a domain model globally to my session.

 A form for editing this data is provided on page A. On this i have 2
 submit
 buttons. One with setDefaultFormProcessing false (to previous page) and
 one
 with true (to next step).

 If i press the main submit (next step | dfp = true) then everything works
 as expected. If i press the other (previous page |dfp = false) and
 redirect
 to Page A all data are lost. I'm absolutely aware of the issue that false
 in
 defaultFormProcessing is not submitting the data.

 But because i cannot reproduce the input changed part of the form
 processing, i can't submit the invalid data manually. Is there any way to
 achieve my goal?

 Thanks
 Mike

 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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


  Then i can't goback to previous page without filling the form.

 The scenario is
 1. goto basket
 2. goto checkout (Page A in post) enter some data
 3. goback to basket (dfp = false) validation should be bypassed
 4. goto checkout = all entered data are present

 But until now with this scenario i lost all data in step 4

 Thanks
 Mike

 PS: I use buttons to stay in javascript-less mode :-)


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




Re: CheckGroup updateModel + setrequired (Bug?)

2011-08-11 Thread Bruno Borges
Is that Wicket 1.5 RC5.1 ?

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 12:00 PM, delta lsgpimen...@gmail.com wrote:

 Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked,
 but
 considering this scenario the super.onValidate() should complain about I
 don't have any CheckBox marked in a CheckGroup with serRequired(true),
 that's not what happening. And since this validation don't exists, when
 CheckGroup.updateModel is called I receive a NullPointerException.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736099.html
 Sent from the Users forum 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: CheckGroup updateModel + setrequired (Bug?)

2011-08-11 Thread Bruno Borges
Could you test your app with 1.4.18 ?

Just in case...

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 12:04 PM, delta lsgpimen...@gmail.com wrote:

 It's 1.4.15

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736109.html
 Sent from the Users forum 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: Form looses data

2011-08-11 Thread Bruno Borges
In your GoBack button's submit method (dpf = false), call

   form.updateFormComponentModels()



*Bruno Borges *
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de wrote:

 Am 11.08.2011 16:54, schrieb Bruno Borges:

 You want to go back to another page without having to fill the form, but
 you
 also don't want to lose data you typed in in the previous screen? Seems
 weird to me.

 Have you considered to add Ajax update behaviour? onBlur of components,
 you
 could update the model of each component.
 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de  wrote:

  Am 11.08.2011 16:36, schrieb Bruno Borges:

  Shouldn't you be submitting that button anyway? dfp = true


 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de
 wrote:

  Hi,

 i've added a domain model globally to my session.

 A form for editing this data is provided on page A. On this i have 2
 submit
 buttons. One with setDefaultFormProcessing false (to previous page) and
 one
 with true (to next step).

 If i press the main submit (next step | dfp = true) then everything
 works
 as expected. If i press the other (previous page |dfp = false) and
 redirect
 to Page A all data are lost. I'm absolutely aware of the issue that
 false
 in
 defaultFormProcessing is not submitting the data.

 But because i cannot reproduce the input changed part of the form
 processing, i can't submit the invalid data manually. Is there any way
 to
 achieve my goal?

 Thanks
 Mike

 --**--**--**
 --**-
 To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org
 http://apache.org**
 users-unsubscribe@**wicket.**apache.org http://wicket.apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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


  Then i can't goback to previous page without filling the form.

 The scenario is
 1. goto basket
 2. goto checkout (Page A in post) enter some data
 3. goback to basket (dfp = false) validation should be bypassed
 4. goto checkout =  all entered data are present

 But until now with this scenario i lost all data in step 4

 Thanks
 Mike

 PS: I use buttons to stay in javascript-less mode :-)


 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 
 For additional commands, e-mail: users-h...@wicket.apache.org


  Ajax is not an option - i have to stay javascript-less.


   You want to go back to another page without having to fill the form, but
 you
  also don't want to lose data you typed in in the previous screen? Seems
  weird to me.

 Not the previous screen. The current screen.

 I come from basket. I goto checkout. I start typing. I think oops what was
 the option in basket
 and goback to basket (dfp = false). I check the basket option and think ok
 let's go on checkout.
 And on checkout i think - damn all typed data have gone. So i leave the
 shop.

 That's the scenario i try to catch.


 Thanks
 Mike



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




Re: Form looses data

2011-08-11 Thread Bruno Borges
Models must be updated anyway, and that's solved with
form.updateFormComponentModels()


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 12:21 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Is possible using reuseManager, but you need to keep reference to it
 somewhere.


 http://apache-wicket.1842946.n4.nabble.com/Check-box-loses-checked-state-after-error-td1855690.html

 **
 Martin

 2011/8/11 Bruno Borges bruno.bor...@gmail.com:
  In your GoBack button's submit method (dpf = false), call
 
form.updateFormComponentModels()
 
 
 
  *Bruno Borges *
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de
 wrote:
 
  Am 11.08.2011 16:54, schrieb Bruno Borges:
 
  You want to go back to another page without having to fill the form,
 but
  you
  also don't want to lose data you typed in in the previous screen? Seems
  weird to me.
 
  Have you considered to add Ajax update behaviour? onBlur of components,
  you
  could update the model of each component.
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de
  wrote:
 
   Am 11.08.2011 16:36, schrieb Bruno Borges:
 
   Shouldn't you be submitting that button anyway? dfp = true
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de
  wrote:
 
   Hi,
 
  i've added a domain model globally to my session.
 
  A form for editing this data is provided on page A. On this i have 2
  submit
  buttons. One with setDefaultFormProcessing false (to previous page)
 and
  one
  with true (to next step).
 
  If i press the main submit (next step | dfp = true) then everything
  works
  as expected. If i press the other (previous page |dfp = false) and
  redirect
  to Page A all data are lost. I'm absolutely aware of the issue that
  false
  in
  defaultFormProcessing is not submitting the data.
 
  But because i cannot reproduce the input changed part of the form
  processing, i can't submit the invalid data manually. Is there any
 way
  to
  achieve my goal?
 
  Thanks
  Mike
 
  --**--**--**
  --**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org
  http://apache.org**
  users-unsubscribe@**wicket.**apache.org http://wicket.apache.org
 
  users-unsubscribe@**wicket.apache.org
 users-unsubscr...@wicket.apache.org
  
 
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
   Then i can't goback to previous page without filling the form.
 
  The scenario is
  1. goto basket
  2. goto checkout (Page A in post) enter some data
  3. goback to basket (dfp = false) validation should be bypassed
  4. goto checkout =  all entered data are present
 
  But until now with this scenario i lost all data in step 4
 
  Thanks
  Mike
 
  PS: I use buttons to stay in javascript-less mode :-)
 
 
  --**
  --**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org
 http://apache.org
  users-unsubscribe@**wicket.apache.org
 users-unsubscr...@wicket.apache.org
  
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
   Ajax is not an option - i have to stay javascript-less.
 
 
You want to go back to another page without having to fill the form,
 but
  you
   also don't want to lose data you typed in in the previous screen?
 Seems
   weird to me.
 
  Not the previous screen. The current screen.
 
  I come from basket. I goto checkout. I start typing. I think oops what
 was
  the option in basket
  and goback to basket (dfp = false). I check the basket option and think
 ok
  let's go on checkout.
  And on checkout i think - damn all typed data have gone. So i leave the
  shop.
 
  That's the scenario i try to catch.
 
 
  Thanks
  Mike
 
 
 
 
 --**--**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 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 1.5: Question (or feature request) afterOnInitialize()

2011-08-11 Thread Bruno Borges
Isn't this correct?

onInitialize() {
  super.onInitialize();
  ... // whatever I put here would be the same as overriding
onAfterInitialize();
}

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 12:35 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 On Thu, Aug 11, 2011 at 4:35 AM, armandoxxx armando@dropchop.com
 wrote:
  Igor: thank you for your reply and your solution. Could you please
 discuss
  this case with other developers and let me know what they think?

 this is the place where the developers discuss things. if any of them
 want to chime in they are free to do so. this list is our main means
 of communication.

  In my
  opinion framework should make my job easier not force me to do
 workarounds
  to get what I need. Just a thought.

 nothing i have shown you is a workaround, it is using extension points
 offered by the framework to layer in new functionality specific to
 your usecase.

 -igor


 
  Martin: thank you :D
 
  Kind regards
 
  Armando
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3735601.html
  Sent from the Users forum 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: [Announce] Wicket Stuff Core 1.4.18 Released

2011-08-11 Thread Bruno Borges
Mike, excelent job!!

Thank you very much.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Aug 11, 2011 at 10:56 PM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hello,

 Following the release of wicket 1.4.18 I have cut a matching
 wicketstuff-core release.

 The artifacts have been promoted and should be synced into the maven
 central repository with in a 2-3 hours.

 They can be retrieved like this:

 dependency
 groupIdorg.wicketstuff/**groupId
 artifactIdmodalx/**artifactId
 version1.4.18/version
 /dependency

 The release tag is here: https://github.com/**wicketstuff/core/tree/**
 wicketstuff-core-1.4.18https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.18

 Development on the next release takes place on the core-1.4.x branch here:
 https://github.com/**wicketstuff/core/tree/core-1.**4.xhttps://github.com/wicketstuff/core/tree/core-1.4.x

 Issues can be reported here: 
 https://github.com/**wicketstuff/core/issueshttps://github.com/wicketstuff/core/issues

 The Project Wiki is available here: https://github.com/**
 wicketstuff/core/wiki https://github.com/wicketstuff/core/wiki

 New Modules included in this release:

 ModalX: Extensions to the upstream Wicket ModalWindow component.

 Changelog between wicketstuff-core-1.4.17.3 and this release:

 martin-g (4):
  Add ModalX project.
  Rename packages to org.wicketstuff
  Ignore SBT's project/boot/ folder
  Rename folder css.modalx to css/modalx as it was in SVN export

 Chris Colman (1):
  Added wrapper Form around ModalWindow to comply with Wicket design and

 Michael O'Cleirigh (1):
  commit wicketstuff-core-1.4.18 release pom's

 (This listing was generated using: git shortlog -n
 wicketstuff-core-1.4.18..**wicketstuff-core-1.4.17.3).

 I will plan to do the next release within one month of today but if you
 commit code and/or need a release cut sooner please either contact me
 directly or file a ticket.

 Regards,

 Mike

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




Mapper based on user-defined URLs

2011-08-11 Thread Bruno Borges
Hi all,

   I've digged into PackageMapper and CryptoMapper trying to achieve a
Mapper based on user defined URLs, but honestly, it is not easy (at least
for me).

   The goal is to provide access to pages in package com.mysite.profile
(pages: Guests, Messages, Wall, Home, etc) through a root path with user
name like:

http://mysite.com/${username}/Guests

And, one user may open as several tabs as he wants, each for different user.
Links should also be easily provided between pages beneath that path.

One workaround came to mind:

- loop through user database and mountPackage for each username

But this seems a little odd to do, so that's why I came to the list.

Anybody with a suggestion?

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Fragment caching???

2011-08-06 Thread Bruno Borges
I'm just curious about this: are you having performance issues?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Sat, Aug 6, 2011 at 9:01 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 is there something equivelant to fragment caching in wicket?
 I mean , is there any way to cache the generated markup of a  component,
 and
 on subsequent requests it just render this markup string?
 if so, how one can store these fragments in external store? how that can be
 configured or plugged in? to use some central caching like redis or
 memcached

 thanks

 Joe



Re: Scala DSL for Wicket

2011-08-02 Thread Bruno Borges
Another interesting piece of code with this Scala DSL

// gender radio button
val gender = radioGroup[String](gender)
gender.radio(male, Model.of(Male))
gender.radio(female, Model.of(Female))
gender.setRequired(true)

The HTML:

div wicket:id=sexo
span
input wicket:id=male id=male class=field radio type=radio /
label class=choice for=maleMasculino/label
/span

span
input wicket:id=female id=female class=field radio type=radio /
label class=choice for=femaleFemale/label
/span
/div

This way, the HTMLis exactly the way the designer sent it to me.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Scala DSL for Wicket

2011-08-01 Thread Bruno Borges
The WicketStuff Scala project is the best way to put all this.

The project is more Scala-based components driven, like Fodel/SLabel and
SForm, but I think Scala can offer even more advantages like the one you
propose here.

DSL is the way to go IMO for this Scala-Wicket integration


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Aug 1, 2011 at 2:45 AM, Gary Thomas 7za...@gmail.com wrote:


 I've written some Scala utilities as well, but instead of a DSL I'm using
 implicit conversions via traits, which I've found to be a really nice fit
 with Wicket.

 An example:

 import org.apache.wicket.model.IModel
 import org.apache.wicket.model.**LoadableDetachableModel
 import org.apache.wicket.model.**PropertyModel

 trait WicketConversions {
   // transparent PropertyModel conversion
implicit def tuple2model[T](tuple: (AnyRef, String)): PropertyModel[T] =
 {
new PropertyModel[T](tuple._1, tuple._2)
}

// transparent function/closure to LoadableDetachableModel conversion
implicit def function2model[T](f: = T): IModel[T] = {
new LoadableDetachableModel[T] {
def load: T = f
}
}
 }

 Usage:

 class MyPanel extends Panel(id) with WicketConversions {

// transparent PropertyModel conversion using article.rating):
add(new RatingPanel(rating, article - rating) // so pretty

// transparent LoadableDetachableModel conversion (expects
 IModel[Boolean]):
add(new AjaxCheckBox(selected, { dao.get(id).isAdmin }) {
def onUpdate(target: AjaxRequestTarget) { ... }
})
 }


 I have more code as well for Spring integration, etc.
 If anyone is interested, I could add mine to this or to a new GitHub
 project.


 Thanks,
 Gary



 On 7/29/11 5:22 PM, Ben Tilford wrote:

 For LDM

 class Ldm[T](provider:()=  T) extends LoadableDetachable... {
   def load():T {
 provider()
   }
 }

 object Ldm {
   def apply(provider:()=T) = new Ldm[T](provider)
 }

 could be used as

 ...
 val id = 1
 val model = Ldm(()={dao.get(id)})

 or

 val id = 1
 def provider = dao.get(id)
 val model = Ldm(provider)


 On Fri, Jul 29, 2011 at 6:44 AM, Martin Grigorovmgrigo...@apache.org**
 wrote:

  Bruno,

 Yet another idea for the dsl:

 def ldm[R, ID](id: ID = null, f: (ID) =  R) = {new
 LoadableDetachableModel(id) { override def load() : R = { f(id); } } }

 P.S. Not tested.

 On Thu, Jul 28, 2011 at 9:07 AM, Bruno Borgesbruno.bor...@gmail.com
 wrote:

 Just wanted to share my experience playing a little more with Scala and
 Wicket  A few minutes ago I got this excelent code:

 I know it is too simple, and it can be accomplished as well in Java with
 static imports. But still, for my project it's being great (and cool) to

 do

 such things.

 object btnEditar extends Button(btnEditar) {
   override def onSubmit() = {
 -/* show fields */
 -camposForm.**setVisibilityAllowed(true)
 -btnSalvar.**setVisibilityAllowed(true)
 -cancelar.setVisibilityAllowed(**true)
 -
 -/* hide them */
 -camposTela.**setVisibilityAllowed(false)
 -btnEditar.**setVisibilityAllowed(false)
 +show(camposForm, btnSalvar, cancelar)
 +hide(camposTela, btnEditar)
   }
 }
 add(btnEditar)

 Methods show/hide are imported as import code.DSLWicket._



 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Wed, Jul 27, 2011 at 4:53 PM, Bruno Borgesbruno.bor...@gmail.com
 wrote:

  Thanks Martin,

 There was only a small little problem in your code. The correct syntax

 is:


 def label[T](id: String, model: IModel[T] = null): Label = { val label
 = new Label(id, model); add(label); label }

 The suggestions were updated on Gist.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorovmgrigo...@apache.org

 wrote:


  Idea for simplification: use named parameters.
 For example
 def label[T](id: String, model: IModel[T]): Label = { val label = new
 Label(id, model); add(label); label }
 would become
 def label[T](id: String, model = _ : IModel[T]): Label = { val label =
 new Label(id, model); add(label); label }

 this way you'll have just one declaration of label function which will
 handle the current three

 additionally you may add a pimp:
 implicit def ser2model[S :  Serializable](ser: S): IModel[S] =
 Model.of(ser)

 now even when you pass String as second param to label() it will be
 converted to IModel

 On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorovmgrigo...@apache.org


  wrote:

 Take a look at scala.swing.* sources.

 On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges

 bruno.bor...@gmail.com

 wrote:

 Can some Scala expert help me to make this DSL available as PML

 (pimp

 my

 library)?

 I've tried to code it that way but things didn't quite worked out

 the

 way

 they should.

 The reason is that for every Wicket object I create, I must extend

 the

 trait

 DSLWicket



 *Bruno Borges*
 www.brunoborges.com.br
 +55 21

Re: serialization problem with spring

2011-07-31 Thread Bruno Borges
What version of Wicket are you using?

On older versions you must declare your field as transient.

Newer versions don't required this anymore.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Sun, Jul 31, 2011 at 9:08 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 i have a serialization problem with spring
 My CreatePage class looks like:-

 public class CreatePage extends WebPage{
@SpringBean
AccountManager accountManager;
 }

 as i am using @SpringBean , it should handle creating a serializable proxy
 for me BUT

 i got the following exception



 ERROR - JavaSerializer - Error serializing object class
 com.app.view.account.CreatePage [object=[Page class =
 com.app.view.account.CreatePage, id = 1, render count = 1]]
 java.io.NotSerializableException:
 org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
 at

 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
 at

 org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:77)
 at

 org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:356)
 at

 org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:142)
 at

 org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:377)
 at

 org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
 at

 org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94)
 at

 org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68)
 at

 org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:213)
 at org.apache.wicket.Application$2.onDetach(Application.java:1548)
 at

 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:100)
 at

 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:96)
 at

 org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:121

Re: Scala DSL for Wicket

2011-07-31 Thread Bruno Borges
This is an excellent piece of code.

What I had was similar, but in a trait as a method:

def ldm( loadF() = T ): IModel[T] = {
   ...
}

I guess breaking the DSL will make it easier to maintain. :-) And your
approach is much better


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Jul 29, 2011 at 9:22 PM, Ben Tilford b...@tilford.info wrote:

 For LDM

 class Ldm[T](provider:()= T) extends LoadableDetachable... {
  def load():T {
provider()
  }
 }

 object Ldm {
  def apply(provider:()=T) = new Ldm[T](provider)
 }

 could be used as

 ...
 val id = 1
 val model = Ldm(()={dao.get(id)})

 or

 val id = 1
 def provider = dao.get(id)
 val model = Ldm(provider)


 On Fri, Jul 29, 2011 at 6:44 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Bruno,
 
  Yet another idea for the dsl:
 
  def ldm[R, ID](id: ID = null, f: (ID) = R) = {new
  LoadableDetachableModel(id) { override def load() : R = { f(id); } } }
 
  P.S. Not tested.
 
  On Thu, Jul 28, 2011 at 9:07 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Just wanted to share my experience playing a little more with Scala and
   Wicket A few minutes ago I got this excelent code:
  
   I know it is too simple, and it can be accomplished as well in Java
 with
   static imports. But still, for my project it's being great (and cool)
 to
  do
   such things.
  
   object btnEditar extends Button(btnEditar) {
 override def onSubmit() = {
   -/* show fields */
   -camposForm.setVisibilityAllowed(true)
   -btnSalvar.setVisibilityAllowed(true)
   -cancelar.setVisibilityAllowed(true)
   -
   -/* hide them */
   -camposTela.setVisibilityAllowed(false)
   -btnEditar.setVisibilityAllowed(false)
   +show(camposForm, btnSalvar, cancelar)
   +hide(camposTela, btnEditar)
 }
   }
   add(btnEditar)
  
   Methods show/hide are imported as import code.DSLWicket._
  
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 4:53 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
  
   Thanks Martin,
  
   There was only a small little problem in your code. The correct syntax
  is:
  
   def label[T](id: String, model: IModel[T] = null): Label = { val label
   = new Label(id, model); add(label); label }
  
   The suggestions were updated on Gist.
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
  
   Idea for simplification: use named parameters.
   For example
   def label[T](id: String, model: IModel[T]): Label = { val label = new
   Label(id, model); add(label); label }
   would become
   def label[T](id: String, model = _ : IModel[T]): Label = { val label
 =
   new Label(id, model); add(label); label }
  
   this way you'll have just one declaration of label function which
 will
   handle the current three
  
   additionally you may add a pimp:
   implicit def ser2model[S : Serializable](ser: S): IModel[S] =
   Model.of(ser)
  
   now even when you pass String as second param to label() it will be
   converted to IModel
  
   On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov 
 mgrigo...@apache.org
  
   wrote:
Take a look at scala.swing.* sources.
   
On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
Can some Scala expert help me to make this DSL available as PML
  (pimp
   my
library)?
   
I've tried to code it that way but things didn't quite worked out
  the
   way
they should.
   
The reason is that for every Wicket object I create, I must extend
  the
   trait
DSLWicket
   
   
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
   
Not really.
   
The method onSubmit() of button is void, as well onClick(), so
  there's
   no
need for the function be passed as () = Unit or anything else.
   
I made a few changes to it and updated on Gist.
   
I've also uploaded a page that uses this DSL at
https://gist.github.com/1109919
   
Take a look
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank 
  scott.sw...@gmail.com
   wrote:
   
I think you do want Unit, which as I understand it is closest
equivalent to void in Scala.
   
http://www.scala-lang.org/api/current/scala/Unit.html
   
Scott
   
On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges 
   bruno.bor...@gmail.com
wrote:
 No, the function must return void, not another function
 (unit).

 But there's also the option of () = Nothing. Which one should
 I
   use for
 this case?

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov 
   mgrigo

Re: Scala DSL for Wicket

2011-07-29 Thread Bruno Borges
I thought about this yesterday but maybe overloading the method is better.

Because this way the function must have to be passed as of expecting an id
argument, even if the id argument for ldm() is optional.

I just haven't added yet because of lack of usecase. :-)

But thanks!!

This DSL is saving me a lot of coding, even if is not actually a DSL, but a
way to go. :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Jul 29, 2011 at 9:44 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Bruno,

 Yet another idea for the dsl:

 def ldm[R, ID](id: ID = null, f: (ID) = R) = {new
 LoadableDetachableModel(id) { override def load() : R = { f(id); } } }

 P.S. Not tested.

 On Thu, Jul 28, 2011 at 9:07 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Just wanted to share my experience playing a little more with Scala and
  Wicket A few minutes ago I got this excelent code:
 
  I know it is too simple, and it can be accomplished as well in Java with
  static imports. But still, for my project it's being great (and cool) to
 do
  such things.
 
  object btnEditar extends Button(btnEditar) {
override def onSubmit() = {
  -/* show fields */
  -camposForm.setVisibilityAllowed(true)
  -btnSalvar.setVisibilityAllowed(true)
  -cancelar.setVisibilityAllowed(true)
  -
  -/* hide them */
  -camposTela.setVisibilityAllowed(false)
  -btnEditar.setVisibilityAllowed(false)
  +show(camposForm, btnSalvar, cancelar)
  +hide(camposTela, btnEditar)
}
  }
  add(btnEditar)
 
  Methods show/hide are imported as import code.DSLWicket._
 
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 4:53 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
 
  Thanks Martin,
 
  There was only a small little problem in your code. The correct syntax
 is:
 
  def label[T](id: String, model: IModel[T] = null): Label = { val label
  = new Label(id, model); add(label); label }
 
  The suggestions were updated on Gist.
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  Idea for simplification: use named parameters.
  For example
  def label[T](id: String, model: IModel[T]): Label = { val label = new
  Label(id, model); add(label); label }
  would become
  def label[T](id: String, model = _ : IModel[T]): Label = { val label =
  new Label(id, model); add(label); label }
 
  this way you'll have just one declaration of label function which will
  handle the current three
 
  additionally you may add a pimp:
  implicit def ser2model[S : Serializable](ser: S): IModel[S] =
  Model.of(ser)
 
  now even when you pass String as second param to label() it will be
  converted to IModel
 
  On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov mgrigo...@apache.org
 
  wrote:
   Take a look at scala.swing.* sources.
  
   On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
   Can some Scala expert help me to make this DSL available as PML
 (pimp
  my
   library)?
  
   I've tried to code it that way but things didn't quite worked out
 the
  way
   they should.
  
   The reason is that for every Wicket object I create, I must extend
 the
  trait
   DSLWicket
  
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
  
   Not really.
  
   The method onSubmit() of button is void, as well onClick(), so
 there's
  no
   need for the function be passed as () = Unit or anything else.
  
   I made a few changes to it and updated on Gist.
  
   I've also uploaded a page that uses this DSL at
   https://gist.github.com/1109919
  
   Take a look
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank 
 scott.sw...@gmail.com
  wrote:
  
   I think you do want Unit, which as I understand it is closest
   equivalent to void in Scala.
  
   http://www.scala-lang.org/api/current/scala/Unit.html
  
   Scott
  
   On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
No, the function must return void, not another function (unit).
   
But there's also the option of () = Nothing. Which one should I
  use for
this case?
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov 
  mgrigo...@apache.org
   wrote:
   
 def button(id: String, submit: () = Void): Button = {
   
it should be () = Unit, no ?
   
On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov 
  mgrigo...@apache.org
   
wrote:
 Adding some usage examples at the bottom will help us
 evaluate
  it.

 Why not add type to
 def textField(id: String): TextField[_] = { val field = new
 TextField(id); add(field); field }
 to become

Re: Scala DSL for Wicket

2011-07-28 Thread Bruno Borges
Just wanted to share my experience playing a little more with Scala and
Wicket A few minutes ago I got this excelent code:

I know it is too simple, and it can be accomplished as well in Java with
static imports. But still, for my project it's being great (and cool) to do
such things.

 object btnEditar extends Button(btnEditar) {
   override def onSubmit() = {
-/* show fields */
-camposForm.setVisibilityAllowed(true)
-btnSalvar.setVisibilityAllowed(true)
-cancelar.setVisibilityAllowed(true)
-
-/* hide them */
-camposTela.setVisibilityAllowed(false)
-btnEditar.setVisibilityAllowed(false)
+show(camposForm, btnSalvar, cancelar)
+hide(camposTela, btnEditar)
   }
 }
 add(btnEditar)

Methods show/hide are imported as import code.DSLWicket._



*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jul 27, 2011 at 4:53 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 Thanks Martin,

 There was only a small little problem in your code. The correct syntax is:

 def label[T](id: String, model: IModel[T] = null): Label = { val label
 = new Label(id, model); add(label); label }

 The suggestions were updated on Gist.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Idea for simplification: use named parameters.
 For example
 def label[T](id: String, model: IModel[T]): Label = { val label = new
 Label(id, model); add(label); label }
 would become
 def label[T](id: String, model = _ : IModel[T]): Label = { val label =
 new Label(id, model); add(label); label }

 this way you'll have just one declaration of label function which will
 handle the current three

 additionally you may add a pimp:
 implicit def ser2model[S : Serializable](ser: S): IModel[S] =
 Model.of(ser)

 now even when you pass String as second param to label() it will be
 converted to IModel

 On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
  Take a look at scala.swing.* sources.
 
  On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Can some Scala expert help me to make this DSL available as PML (pimp
 my
  library)?
 
  I've tried to code it that way but things didn't quite worked out the
 way
  they should.
 
  The reason is that for every Wicket object I create, I must extend the
 trait
  DSLWicket
 
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
 
  Not really.
 
  The method onSubmit() of button is void, as well onClick(), so there's
 no
  need for the function be passed as () = Unit or anything else.
 
  I made a few changes to it and updated on Gist.
 
  I've also uploaded a page that uses this DSL at
  https://gist.github.com/1109919
 
  Take a look
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank scott.sw...@gmail.com
 wrote:
 
  I think you do want Unit, which as I understand it is closest
  equivalent to void in Scala.
 
  http://www.scala-lang.org/api/current/scala/Unit.html
 
  Scott
 
  On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
   No, the function must return void, not another function (unit).
  
   But there's also the option of () = Nothing. Which one should I
 use for
   this case?
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
  
def button(id: String, submit: () = Void): Button = {
  
   it should be () = Unit, no ?
  
   On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov 
 mgrigo...@apache.org
  
   wrote:
Adding some usage examples at the bottom will help us evaluate
 it.
   
Why not add type to
def textField(id: String): TextField[_] = { val field = new
TextField(id); add(field); field }
to become
def textField[T](id: String): TextField[T] = { val field = new
TextField[T](id); add(field); field }
   
usage: textField[Int](someId)
   
with using implicit Manifest for T you can also can
 automatically set
the type: field.setType(m.erasure)
   
On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
I've been playing with Wicket and Scala and I thought this
 could be
   added to
the wicket-scala project at WicketStuff.
   
What do you guys think?
   
https://gist.github.com/1109603
   
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
   
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
   
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com
  
  
 -
   To unsubscribe, e-mail: users

Scala DSL for Wicket

2011-07-27 Thread Bruno Borges
I've been playing with Wicket and Scala and I thought this could be added to
the wicket-scala project at WicketStuff.

What do you guys think?

https://gist.github.com/1109603


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Scala DSL for Wicket

2011-07-27 Thread Bruno Borges
No, the function must return void, not another function (unit).

But there's also the option of () = Nothing. Which one should I use for
this case?

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov mgrigo...@apache.orgwrote:

  def button(id: String, submit: () ⇒ Void): Button = {

 it should be () = Unit, no ?

 On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
  Adding some usage examples at the bottom will help us evaluate it.
 
  Why not add type to
  def textField(id: String): TextField[_] = { val field = new
  TextField(id); add(field); field }
  to become
  def textField[T](id: String): TextField[T] = { val field = new
  TextField[T](id); add(field); field }
 
  usage: textField[Int](someId)
 
  with using implicit Manifest for T you can also can automatically set
  the type: field.setType(m.erasure)
 
  On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  I've been playing with Wicket and Scala and I thought this could be
 added to
  the wicket-scala project at WicketStuff.
 
  What do you guys think?
 
  https://gist.github.com/1109603
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Scala DSL for Wicket

2011-07-27 Thread Bruno Borges
Not really.

The method onSubmit() of button is void, as well onClick(), so there's no
need for the function be passed as () = Unit or anything else.

I made a few changes to it and updated on Gist.

I've also uploaded a page that uses this DSL at
https://gist.github.com/1109919

Take a look

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank scott.sw...@gmail.com wrote:

 I think you do want Unit, which as I understand it is closest
 equivalent to void in Scala.

 http://www.scala-lang.org/api/current/scala/Unit.html

 Scott

 On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  No, the function must return void, not another function (unit).
 
  But there's also the option of () = Nothing. Which one should I use for
  this case?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
   def button(id: String, submit: () = Void): Button = {
 
  it should be () = Unit, no ?
 
  On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
   Adding some usage examples at the bottom will help us evaluate it.
  
   Why not add type to
   def textField(id: String): TextField[_] = { val field = new
   TextField(id); add(field); field }
   to become
   def textField[T](id: String): TextField[T] = { val field = new
   TextField[T](id); add(field); field }
  
   usage: textField[Int](someId)
  
   with using implicit Manifest for T you can also can automatically set
   the type: field.setType(m.erasure)
  
   On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges bruno.bor...@gmail.com
 
  wrote:
   I've been playing with Wicket and Scala and I thought this could be
  added to
   the wicket-scala project at WicketStuff.
  
   What do you guys think?
  
   https://gist.github.com/1109603
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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: Scala DSL for Wicket

2011-07-27 Thread Bruno Borges
Can some Scala expert help me to make this DSL available as PML (pimp my
library)?

I've tried to code it that way but things didn't quite worked out the way
they should.

The reason is that for every Wicket object I create, I must extend the trait
DSLWicket



*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 Not really.

 The method onSubmit() of button is void, as well onClick(), so there's no
 need for the function be passed as () = Unit or anything else.

 I made a few changes to it and updated on Gist.

 I've also uploaded a page that uses this DSL at
 https://gist.github.com/1109919

 Take a look

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank scott.sw...@gmail.comwrote:

 I think you do want Unit, which as I understand it is closest
 equivalent to void in Scala.

 http://www.scala-lang.org/api/current/scala/Unit.html

 Scott

 On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  No, the function must return void, not another function (unit).
 
  But there's also the option of () = Nothing. Which one should I use for
  this case?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
   def button(id: String, submit: () = Void): Button = {
 
  it should be () = Unit, no ?
 
  On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov mgrigo...@apache.org
 
  wrote:
   Adding some usage examples at the bottom will help us evaluate it.
  
   Why not add type to
   def textField(id: String): TextField[_] = { val field = new
   TextField(id); add(field); field }
   to become
   def textField[T](id: String): TextField[T] = { val field = new
   TextField[T](id); add(field); field }
  
   usage: textField[Int](someId)
  
   with using implicit Manifest for T you can also can automatically set
   the type: field.setType(m.erasure)
  
   On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
   I've been playing with Wicket and Scala and I thought this could be
  added to
   the wicket-scala project at WicketStuff.
  
   What do you guys think?
  
   https://gist.github.com/1109603
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.com
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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: Scala DSL for Wicket

2011-07-27 Thread Bruno Borges
Thanks Martin,

There was only a small little problem in your code. The correct syntax is:

def label[T](id: String, model: IModel[T] = null): Label = { val label = new
Label(id, model); add(label); label }

The suggestions were updated on Gist.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Idea for simplification: use named parameters.
 For example
 def label[T](id: String, model: IModel[T]): Label = { val label = new
 Label(id, model); add(label); label }
 would become
 def label[T](id: String, model = _ : IModel[T]): Label = { val label =
 new Label(id, model); add(label); label }

 this way you'll have just one declaration of label function which will
 handle the current three

 additionally you may add a pimp:
 implicit def ser2model[S : Serializable](ser: S): IModel[S] =
 Model.of(ser)

 now even when you pass String as second param to label() it will be
 converted to IModel

 On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
  Take a look at scala.swing.* sources.
 
  On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Can some Scala expert help me to make this DSL available as PML (pimp my
  library)?
 
  I've tried to code it that way but things didn't quite worked out the
 way
  they should.
 
  The reason is that for every Wicket object I create, I must extend the
 trait
  DSLWicket
 
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
 
  Not really.
 
  The method onSubmit() of button is void, as well onClick(), so there's
 no
  need for the function be passed as () = Unit or anything else.
 
  I made a few changes to it and updated on Gist.
 
  I've also uploaded a page that uses this DSL at
  https://gist.github.com/1109919
 
  Take a look
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank scott.sw...@gmail.com
 wrote:
 
  I think you do want Unit, which as I understand it is closest
  equivalent to void in Scala.
 
  http://www.scala-lang.org/api/current/scala/Unit.html
 
  Scott
 
  On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
   No, the function must return void, not another function (unit).
  
   But there's also the option of () = Nothing. Which one should I use
 for
   this case?
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov 
 mgrigo...@apache.org
  wrote:
  
def button(id: String, submit: () = Void): Button = {
  
   it should be () = Unit, no ?
  
   On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov 
 mgrigo...@apache.org
  
   wrote:
Adding some usage examples at the bottom will help us evaluate
 it.
   
Why not add type to
def textField(id: String): TextField[_] = { val field = new
TextField(id); add(field); field }
to become
def textField[T](id: String): TextField[T] = { val field = new
TextField[T](id); add(field); field }
   
usage: textField[Int](someId)
   
with using implicit Manifest for T you can also can automatically
 set
the type: field.setType(m.erasure)
   
On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
I've been playing with Wicket and Scala and I thought this could
 be
   added to
the wicket-scala project at WicketStuff.
   
What do you guys think?
   
https://gist.github.com/1109603
   
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
   
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
   
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.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
 
 
 
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: changing the background color of link on performing onclick event

2011-07-26 Thread Bruno Borges
You can use CssAttributeModifier to specify a different class.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Jul 22, 2011 at 4:56 AM, raju.ch raju.challagun...@gmail.comwrote:

 Hi, I'm using wicket 1.4 and my site contains one Template which
 header,footer,hor.menu and it is common to all the pages now, my req is
 onclicking the hor menu item, i want to show the active link with some
 background.. I tried with a:active but it is not working as it is a common
 template to all the pages..Can any one help in doing this?..here is my Hor
 menu

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/changing-the-background-color-of-link-on-performing-onclick-event-tp3686180p3686180.html
 Sent from the Users forum 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: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Bruno Borges
You should pick the last 1.4 stable version, as of the time of this email,
would be 1.4.17.

Secondly, Hibernate is an implementation of JPA and has no relationship with
Wicket, but it has with Spring. You may drop all of your Spring MVC code,
and keep the rest of its service and data layers.

Why don't you run your system and save the screens in static HTML files?
That way it will be easier to apply the wicket:id modifiers to dynamic
nodes.

Then you will only have to code the presentation layer of Wicket as Java
classes.

Also, get Spring 3.0.5.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Jul 25, 2011 at 2:37 PM, eugenebalt eugeneb...@yahoo.com wrote:

 Thanks, so I should choose

 Wicket 1.4.12, Spring 3.0.2, JPA 2.0 ?

 I didn't see a Hibernate option in that list. Hibernate is an
 implementation
 of JPA?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-project-tp3693395p3693440.html
 Sent from the Users forum 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: Bigger sites running on wicket?

2011-07-18 Thread Bruno Borges
Just to contribute on this topic:

www.americanas.com (brazilian online store - the biggest one)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Bigger-sites-running-on-wicket-tp2197500p3676154.html
Sent from the Users forum 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: WicketStuff artifacts naming strategy

2011-07-06 Thread Bruno Borges
Correct, I don't think it would be nice to rename artifacts for 1.4 branch.
There's just too many people relying on old names.

What do others think?
On 2011 7 6 11:29, Martin Grigorov mgrigo...@apache.org wrote:
 The improvement in the naming was done only for 1.5 branch of
 wicketstuff/core and will be available with the next release (RC6 ?!).

 On Wed, Jul 6, 2011 at 4:13 PM, gilbertoca gilbert...@gmail.com wrote:
 Hi, Bruno!

 I'm with the same problem:


 gilberto@SUGEP-DMASI:~/dev/netbeans-config/snp$ ll
 target/snp-1.1-SNAPSHOT/WEB-INF/lib/|grep jasper
 -rw-r--r-- 1 gilberto users   23955 2011-07-04 11:31
 jasperreports-1.4.17.2.jar
 -rw-r--r-- 1 gilberto users 2525996 2011-07-04 11:12
 jasperreports-3.5.3.jar



 Other thing, the jasperreports(wicketstuff) is tied to jasperreports
3.5.3
 as you see above - I can't use another version, even using the maven
 exclusion tag.

 We are using:
 wicket version 1.4.17
 wicketstuff version 1.4.17.2

 Where can I get this artefact (wicketstuff-jasperreports) for 1.4
version?

 Regards,

 Gilberto Caetano de Andrade
 Analista de Sistemas/DBA
 www.secad.to.gov.br
 blog.gilbertoca.com



 Bruno Borges wrote:

 Hell, it has been merged.

 pull request #42 merged to master.

 I've updated the wiki already asking for new JAR modules to follow this
 naming strategy.

 Thank you all for the support.

 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges
 lt;bruno.bor...@gmail.comgt;wrote:

 The Pull request #42 is ready to be merged.

 Please review and vote.

 https://github.com/wicketstuff/core/pull/42

 There's one modification I made that is not related to the repository.
It
 is here:
 https://github.com/wicketstuff/core/pull/42/files#r55594



 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts
 lt;checke...@gmail.comgt;wrote:

 I seem to recall the Maven guys recommending against periods in
 artifactIds.
 Can't find the link for the info though... maybe it was just soething
 they
 mentioned in the class.

 The purpose was to reduce confusion between artifactIds and groupIds.

 -Clint

 On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg
 lt;igor.vaynb...@gmail.com
 gt; wrote:

  i think the groupid/artifactid do matter because some containers
have
  bundle deployers that pull things from the maven repo...i think
 
  -igor
 
  On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov
 lt;mgrigo...@apache.orggt;
  wrote:
   The Maven artifact id is not important.
   The name of the produced .jar is what matters, right ?
  
   Harald just said that there is a convention in OSGi world to work
 with
   such named .jars (com.acme.blah)
  
   On Thu, Jun 30, 2011 at 6:31 PM, James Carman
   lt;jcar...@carmanconsulting.comgt; wrote:
   And repetitive
  
   Sent from my Android device.  Please excuse typos and brevity.
   On Jun 30, 2011 11:12 AM, Bruno Borges
 lt;bruno.bor...@gmail.comgt;
  wrote:
   Yes, me neither. That's why I asked.
  
   The preffix I'm using is wicketstuff-, but Harald mentioned
   org.wicketstuff.
  
   I don't want to use that, it's too verbose.
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Thu, Jun 30, 2011 at 12:06 PM, James Carman
   lt;ja...@carmanconsulting.comgt;wrote:
  
   I haven't seen that syntax before of having the group id in the
   artifact id, at least not with the longer group ids (reverse
 domain).
  
   On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
The preffix is 'wicketstuff-', not 'org.wicketstuff.'
   
Is this ok?
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann 
   harald.wellm...@gmx.de
   wrote:
   
For Maven OSGi bundle artifacts, there is a quasi-convention
 to
  have
artifactId = Bundle-Symbolic name, so you would have
   
groupId: org.wicketstuff
artifactId: org.wicketstuff.foo.bar
version: 1.5
   
Bundle-Symbolic-Name: org.wicketstuff.foo.bar
JAR name: org.wicketstuff.foo.bar-1.5.**jar
   
Apache Servicemix and Apache Aries use this convention,
while
  Apache
Commons sticks with the old names.
   
Having this naming scheme and the one Bruno suggested in
 parallel
   would
help to distinguish OSGi bundles from plain old JARs.
   
Then again, that would mean you'd have to rename artifacts,
 once
  you
   osgify
them.
   
Regards,
Harald
   
   
   
   
  
 

--**--**-
To unsubscribe, e-mail: users-unsubscribe@wicket.**
apache.org
   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

Re: Markup of type 'html' not found. Not usual error...

2011-07-05 Thread Bruno Borges
Please post it.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jul 5, 2011 at 10:05 AM, Tito njyt...@gmail.com wrote:

 Hi I'm having this error for several days now.
 But the strange thing is that it doesn't happen all the time. It's more
 like
 a random error.

 I know this error usually means that the html file is missing, but html is
 there and working. I have this error in production and only in a few cases.
 This happens with some users who log in my system from their machines. I
 can't reproduce this error, it just happens.

 I know it's not enough information but perhaps someone had this problem
 before. I can post stacktrace if somone considers it useful.

 Thanks in advanced.

 Tito



Re: Markup of type 'html' not found. Not usual error...

2011-07-05 Thread Bruno Borges
Are you manipulating the HttpSession somehow?

I would guess there's something messing with attributes in session and
making Wicket loose it's references of cache or something.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jul 5, 2011 at 11:23 AM, Tito njyt...@gmail.com wrote:

 I'm still running on wicket 1.4. I'm using 1.4.17 version.

 Here is the stack trace. Thank you!

 2011-05-16 10:07:42,870 [http-80-12] ERROR keepcon23
 org.apache.wicket.RequestCycle
 - Markup of type 'html' for component
 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not found. Enable
 debug messages for org.apache.wicket.util.resource to get a list of all
 filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version =
 0]***
 *

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
 component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not found.
 Enable debug messages for org.apache.wicket.util.resource to get a list of
 all filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version =
 0]***
 *

at org.apache.wicket
 .markup.MarkupCache.getMarkupStream(MarkupCache.java:227)

at org.apache.wicket
 .MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)

at org.apache.wicket.Page.onRender(Page.java:1587)

at org.apache.wicket.Component.render(Component.java:2521)

at org.apache.wicket.Page.renderPage(Page.java:932)

at org.apache.wicket

 .request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
 

at org.apache.wicket

 .request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.respond(HybridUrlCodingStrategy.java:987)
 

at org.apache.wicket

 .request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 

at org.apache.wicket
 .RequestCycle.processEventsAndRespond(RequestCycle.java:1258)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)

at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)

at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)

at org.apache.wicket
 .protocol.http.WicketFilter.doGet(WicketFilter.java:486)

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

at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at
 com.keepcon.web.filter.EncodingFilter.doFilter(EncodingFilter.java:20)

at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at
 com.keepcon.web.filter.SecurityFilter.doFilter(SecurityFilter.java:67)

at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at

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

at

 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 

at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at

 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157)

at

 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131)

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:191)
 

at

 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
 

at

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

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:298)*
 ***

at

 org.apache.coyote.http11.Http11Processor.process

Re: Markup of type 'html' not found. Not usual error...

2011-07-05 Thread Bruno Borges
I don't know. I'm just guessing. You may not be writing any wicket
attribute, but you may be removing them.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jul 5, 2011 at 12:14 PM, Tito njyt...@gmail.com wrote:

 Yes I am, by a servlet that manage the session.

 But I don't get your point. why you mean It could be the problem?
 I think I'm not writing wicket attributes of session.

 I can't use wicket session because struts can't access to it. So I have to
 access direct to HttpSession.


 2011/7/5 Bruno Borges bruno.bor...@gmail.com

  Are you manipulating the HttpSession somehow?
 
  I would guess there's something messing with attributes in session and
  making Wicket loose it's references of cache or something.
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Tue, Jul 5, 2011 at 11:23 AM, Tito njyt...@gmail.com wrote:
 
   I'm still running on wicket 1.4. I'm using 1.4.17 version.
  
   Here is the stack trace. Thank you!
  
   2011-05-16 10:07:42,870 [http-80-12] ERROR keepcon23
   org.apache.wicket.RequestCycle
   - Markup of type 'html' for component
   'com.keepcon.web.timetracking.EmployeeDedicationLoad' not found. Enable
   debug messages for org.apache.wicket.util.resource to get a list of all
   filenames tried.: [Page class =
   com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version =
   0]***
   *
  
   org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
  for
   component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
  found.
   Enable debug messages for org.apache.wicket.util.resource to get a list
  of
   all filenames tried.: [Page class =
   com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version =
   0]***
   *
  
  at org.apache.wicket
   .markup.MarkupCache.getMarkupStream(MarkupCache.java:227)
  
  at org.apache.wicket
  
 .MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
  
  at org.apache.wicket.Page.onRender(Page.java:1587)
  
  at org.apache.wicket.Component.render(Component.java:2521)
  
  at org.apache.wicket.Page.renderPage(Page.java:932)
  
  at org.apache.wicket
  
  
 
 .request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
   
  
  at org.apache.wicket
  
  
 
 .request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.respond(HybridUrlCodingStrategy.java:987)
   
  
  at org.apache.wicket
  
  
 
 .request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
   
  
  at org.apache.wicket
   .RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
  
  at
 org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
  
  at
  org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
  
  at
  org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
  
  at org.apache.wicket
   .protocol.http.WicketFilter.doGet(WicketFilter.java:486)
  
  at org.apache.wicket
   .protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   
  
  at
  
 
 com.keepcon.web.filter.EncodingFilter.doFilter(EncodingFilter.java:20)
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   
  
  at
  
 
 com.keepcon.web.filter.SecurityFilter.doFilter(SecurityFilter.java:67)
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   
  
  at
  
  
 
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
   
  
  at
  
  
 
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
   
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   
  
  at
  
  
 
 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157)
  
  at
  
  
 
 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131)
  
  at
  
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

Re: Markup of type 'html' not found. Not usual error...

2011-07-05 Thread Bruno Borges
Are you running on a cluster? Maybe sessions are being serialized between
instances and not working properly.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jul 5, 2011 at 12:37 PM, Tito njyt...@gmail.com wrote:

 Mmm I remembered something.
 I made a RenderTest for this page and It works, but again, sometimes it
 doesn't.

 When it fails, in an specific machine, I have the same error. In that case
 I
 think It's not a session problem, don't you think? I mean, servlet
 shouldn't
 catch any request in that case.

 But a session problem sound logic, because it happens with specific users
 on
 specific machines. I don't know what to think.


 2011/7/5 Bruno Borges bruno.bor...@gmail.com

  I don't know. I'm just guessing. You may not be writing any wicket
  attribute, but you may be removing them.
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Tue, Jul 5, 2011 at 12:14 PM, Tito njyt...@gmail.com wrote:
 
   Yes I am, by a servlet that manage the session.
  
   But I don't get your point. why you mean It could be the problem?
   I think I'm not writing wicket attributes of session.
  
   I can't use wicket session because struts can't access to it. So I have
  to
   access direct to HttpSession.
  
  
   2011/7/5 Bruno Borges bruno.bor...@gmail.com
  
Are you manipulating the HttpSession somehow?
   
I would guess there's something messing with attributes in session
 and
making Wicket loose it's references of cache or something.
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Tue, Jul 5, 2011 at 11:23 AM, Tito njyt...@gmail.com wrote:
   
 I'm still running on wicket 1.4. I'm using 1.4.17 version.

 Here is the stack trace. Thank you!

 2011-05-16 10:07:42,870 [http-80-12] ERROR keepcon23
 org.apache.wicket.RequestCycle
 - Markup of type 'html' for component
 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not found.
  Enable
 debug messages for org.apache.wicket.util.resource to get a list of
  all
 filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0,
 version
  =
 0]***
 *

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
  'html'
for
 component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
found.
 Enable debug messages for org.apache.wicket.util.resource to get a
  list
of
 all filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0,
 version
  =
 0]***
 *

at org.apache.wicket
 .markup.MarkupCache.getMarkupStream(MarkupCache.java:227)

at org.apache.wicket

  
 .MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)

at org.apache.wicket.Page.onRender(Page.java:1587)

at
 org.apache.wicket.Component.render(Component.java:2521)

at org.apache.wicket.Page.renderPage(Page.java:932)

at org.apache.wicket


   
  
 
 .request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
 

at org.apache.wicket


   
  
 
 .request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.respond(HybridUrlCodingStrategy.java:987)
 

at org.apache.wicket


   
  
 
 .request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 

at org.apache.wicket
 .RequestCycle.processEventsAndRespond(RequestCycle.java:1258)

at
   org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)

at
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)

at
org.apache.wicket.RequestCycle.request(RequestCycle.java:545)

at org.apache.wicket
 .protocol.http.WicketFilter.doGet(WicketFilter.java:486)

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

at


   
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at


   
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at

   
  
 
 com.keepcon.web.filter.EncodingFilter.doFilter(EncodingFilter.java:20)

at


   
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 

at


   
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 

at

   
  
 
 com.keepcon.web.filter.SecurityFilter.doFilter(SecurityFilter.java:67

Re: to integrate wicket with hibernate using spring

2011-07-04 Thread Bruno Borges
Wicket is a presentation framework. Your task is to integrate Spring and
Hibernate in the first place. Later, you can just use Hibernate objects
returned by Spring methods into Wicket with classes of type IModel. Although
I don't recommend that. IMO you should work with detatched objects, value
objects or something.

You can also read about the pattern Open Session in View for web
development with Hibernate. Some consider it an anti-pattern. But usually,
it becomes an anti-pattern if overused IMO.

But anyway, you must read. A lot. :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Jul 4, 2011 at 12:48 PM, hariharansrc hariharan...@gmail.comwrote:

 i want to integrate wicket with hibernate using spring what can i do to do
 that
 i know wicket and hibernate to some extent is it necessary to learn spring
 framework for integrating that

 i searched spring hibernate integration i found some materials then what
 wicket actually does int that regard

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




Re: Wicket/Spring/Junit/Maven - Don't understand what's going on.

2011-07-04 Thread Bruno Borges
I'm working on this right now and I found this problem:

java.lang.IllegalStateException: the application key does not seem to be set
properly or this method is called before WicketServlet is set, which leads
to the wrong behavior
at
org.apache.wicket.protocol.http.WebApplication.getApplicationKey(WebApplication.java:164)
at org.apache.wicket.Application.internalInit(Application.java:1045)
at
org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:549)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
...

I followed the same tutorial as you and I'm working with Embedded Derby
datasource. Is there any way to come around this issue or am I missing
something?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Jul 4, 2011 at 2:26 AM, Niranjan Rao nhr...@gmail.com wrote:

 Sorry for the delay in the response folks and thanks for the help.

 My gut feeling is also same - differences of classpaths. That's why I
 actually added println statements in the code to see what classpath code
 is seeing.

 I am working on isolated test case that I can send to this DL. Should be
 done by tomorrow.

 Regards,

 Niranjan

 On Sun, 2011-07-03 at 10:22 -0700, Igor Vaynberg wrote:
  yep. thats probably the cause. to elaborate a little more: eclipse
  does not separate between a test class path and normal class path,
  while maven does.
 
  -igor
 
  On Sun, Jul 3, 2011 at 3:01 AM, Harald Wellmann harald.wellm...@gmx.de
 wrote:
   Without a stacktrace or more details about your setup, I can only
 guess...
   Most likely it's not a Wicket problem.
  
   I'd say your applicationContext.xml is in the wrong place where Maven
 can't
   see it, and Eclipse just happens to see it because m2eclipse cannot map
   Maven classpaths 1:1 to Eclipse.
  
   In the blog you cited, this line looks suspicious to me:
  
   @ContextConfiguration(locations =
   {classpath:WEB-INF/applicationContext.xml})
  
   If you have a default Maven project structure, then WEB-INF is under
   src/main/webapp, and this is not on the test classpath for Surefire.
  
   Regards,
  
   Harald
  
  
  
   -
   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: What is the status of wicketstuff dojo?

2011-07-01 Thread Bruno Borges
Steve, it may take less time to merge the code by yourself, learn the basics
of git to push that into github than to wait somebody that contributes to
wicketstuff to do that to you, because unfortunately, if I'm not wrong,
there's no one right now at wicketstuff doing things with dojo. And that's
why the project is disabled.

I'm sorry,

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Jul 1, 2011 at 9:59 AM, Steve Swinsburg
steve.swinsb...@gmail.comwrote:

 I don't use the library, I'm just converting a tool from 1.3 to 1.4 that
 someone else wrote. I have no idea how wicketstuff-dojo works.

 If Wicketstuff still used SVN I'd just merge it in and make sure it
 compiled, but I have no experience in git and no time to learn a new source
 control system that I don't use in my everyday work. So, hopefully someone
 that works on wicketstuff can!

 thanks,
 Steve


 On 01/07/2011, at 9:51 PM, Martin Grigorov wrote:

  How much ? :-)
 
  What's the problem you to do it ? You already use this library so you
  know how it works.
 
  On Fri, Jul 1, 2011 at 2:48 PM, Steve Swinsburg
  steve.swinsb...@gmail.com wrote:
  Ok, but even in that 1.4 branch it is missing dozens of classes that
 were present in the 1.3 version. They are also missing in the release
 artifacts.
 
  Can someone please migrate them from 1.3 to 1.4?
 
  Thanks,
  Steve
 
  On 01/07/2011, at 15:30, Attila Király kiralyattila...@gmail.com
 wrote:
 
  That is the 1.5 branch of wicketstuff. The 1.4 is in
 
 https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because
 there
  was noone to maintain it.
 
  Attila
 
  2011/7/1 Steve Swinsburg steve.swinsb...@gmail.com
 
  I found the old source. There is a LOT of stuff missing in the 1.4
 release
  compared to the 1.3 release.
 
  1.3:
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/
 
  1.4:
 
 
 https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Is someone able to migrate that and push a release?
 
  cheers,
  Steve
 
  On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote:
 
  Hi,
 
  Does anyone know what the status of wicketstuff dojo is?
 
  I have an application that was written in Wicket 1.3 which I have
  converted to 1.4, likewise for dojo. However there are classes missing
 from
  the 1.4 release that were being used in the 1.3 release, specifically:
 
  org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer;
  org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView;
 
  It seems that there is only 'toaster' in the
  org/wicketstuff/dojo/markup/html directory:
 
 
 https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Is the 1.3 source available anywhere? Is anyone maintaining dojo?
 
  thanks,
  Steve
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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 is the status of wicketstuff dojo?

2011-07-01 Thread Bruno Borges
You're welcome,

And as soon you fix it, let us know to give you access to the
repository. Or, you can just create your own branch at github and later
request for a pull and we do that for you.

Best regards,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, Jul 1, 2011 at 10:25 AM, Steve Swinsburg
steve.swinsb...@gmail.comwrote:

 Hi Bruno,

 Thanks, I wasn't aware that the project was actually disabled, since there
 are still releases going out (albeit non functional ones). Perhaps we'll
 just stick with 1.3 for now. If I get some time I'll get in touch to get a
 wicketstuff account.

 cheers,
 Steve

 On 01/07/2011, at 11:21 PM, Bruno Borges wrote:

  Steve, it may take less time to merge the code by yourself, learn the
 basics
  of git to push that into github than to wait somebody that contributes to
  wicketstuff to do that to you, because unfortunately, if I'm not wrong,
  there's no one right now at wicketstuff doing things with dojo. And
 that's
  why the project is disabled.
 
  I'm sorry,
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Fri, Jul 1, 2011 at 9:59 AM, Steve Swinsburg
  steve.swinsb...@gmail.comwrote:
 
  I don't use the library, I'm just converting a tool from 1.3 to 1.4 that
  someone else wrote. I have no idea how wicketstuff-dojo works.
 
  If Wicketstuff still used SVN I'd just merge it in and make sure it
  compiled, but I have no experience in git and no time to learn a new
 source
  control system that I don't use in my everyday work. So, hopefully
 someone
  that works on wicketstuff can!
 
  thanks,
  Steve
 
 
  On 01/07/2011, at 9:51 PM, Martin Grigorov wrote:
 
  How much ? :-)
 
  What's the problem you to do it ? You already use this library so you
  know how it works.
 
  On Fri, Jul 1, 2011 at 2:48 PM, Steve Swinsburg
  steve.swinsb...@gmail.com wrote:
  Ok, but even in that 1.4 branch it is missing dozens of classes that
  were present in the 1.3 version. They are also missing in the release
  artifacts.
 
  Can someone please migrate them from 1.3 to 1.4?
 
  Thanks,
  Steve
 
  On 01/07/2011, at 15:30, Attila Király kiralyattila...@gmail.com
  wrote:
 
  That is the 1.5 branch of wicketstuff. The 1.4 is in
 
 
 https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because
  there
  was noone to maintain it.
 
  Attila
 
  2011/7/1 Steve Swinsburg steve.swinsb...@gmail.com
 
  I found the old source. There is a LOT of stuff missing in the 1.4
  release
  compared to the 1.3 release.
 
  1.3:
 
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/
 
  1.4:
 
 
 
 https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Is someone able to migrate that and push a release?
 
  cheers,
  Steve
 
  On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote:
 
  Hi,
 
  Does anyone know what the status of wicketstuff dojo is?
 
  I have an application that was written in Wicket 1.3 which I have
  converted to 1.4, likewise for dojo. However there are classes
 missing
  from
  the 1.4 release that were being used in the 1.3 release,
 specifically:
 
  org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer;
  org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView;
 
  It seems that there is only 'toaster' in the
  org/wicketstuff/dojo/markup/html directory:
 
 
 
 https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html
 
  Is the 1.3 source available anywhere? Is anyone maintaining dojo?
 
  thanks,
  Steve
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
The preffix is 'wicketstuff-', not 'org.wicketstuff.'

Is this ok?

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann harald.wellm...@gmx.dewrote:

 For Maven OSGi bundle artifacts, there is a quasi-convention to have
 artifactId = Bundle-Symbolic name, so you would have

 groupId: org.wicketstuff
 artifactId: org.wicketstuff.foo.bar
 version: 1.5

 Bundle-Symbolic-Name: org.wicketstuff.foo.bar
 JAR name: org.wicketstuff.foo.bar-1.5.**jar

 Apache Servicemix and Apache Aries use this convention, while Apache
 Commons sticks with the old names.

 Having this naming scheme and the one Bruno suggested in parallel would
 help to distinguish OSGi bundles from plain old JARs.

 Then again, that would mean you'd have to rename artifacts, once you osgify
 them.

 Regards,
 Harald



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




Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
Yes, me neither. That's why I asked.

The preffix I'm using is wicketstuff-, but Harald mentioned
org.wicketstuff.

I don't want to use that, it's too verbose.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 30, 2011 at 12:06 PM, James Carman
ja...@carmanconsulting.comwrote:

 I haven't seen that syntax before of having the group id in the
 artifact id, at least not with the longer group ids (reverse domain).

 On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  The preffix is 'wicketstuff-', not 'org.wicketstuff.'
 
  Is this ok?
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann harald.wellm...@gmx.de
 wrote:
 
  For Maven OSGi bundle artifacts, there is a quasi-convention to have
  artifactId = Bundle-Symbolic name, so you would have
 
  groupId: org.wicketstuff
  artifactId: org.wicketstuff.foo.bar
  version: 1.5
 
  Bundle-Symbolic-Name: org.wicketstuff.foo.bar
  JAR name: org.wicketstuff.foo.bar-1.5.**jar
 
  Apache Servicemix and Apache Aries use this convention, while Apache
  Commons sticks with the old names.
 
  Having this naming scheme and the one Bruno suggested in parallel would
  help to distinguish OSGi bundles from plain old JARs.
 
  Then again, that would mean you'd have to rename artifacts, once you
 osgify
  them.
 
  Regards,
  Harald
 
 
 
 
 --**--**-
  To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
 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: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
But is it necessary to rename the artifactId to OSGify a module?

I'm just asking. Not that I'm going back to rename all again. :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 30, 2011 at 12:20 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Harald said that org.wicketstuff. convention is used by OSGi-ed projects.

 On Thu, Jun 30, 2011 at 6:09 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Yes, me neither. That's why I asked.
 
  The preffix I'm using is wicketstuff-, but Harald mentioned
  org.wicketstuff.
 
  I don't want to use that, it's too verbose.
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Thu, Jun 30, 2011 at 12:06 PM, James Carman
  ja...@carmanconsulting.comwrote:
 
  I haven't seen that syntax before of having the group id in the
  artifact id, at least not with the longer group ids (reverse domain).
 
  On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   The preffix is 'wicketstuff-', not 'org.wicketstuff.'
  
   Is this ok?
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann 
 harald.wellm...@gmx.de
  wrote:
  
   For Maven OSGi bundle artifacts, there is a quasi-convention to have
   artifactId = Bundle-Symbolic name, so you would have
  
   groupId: org.wicketstuff
   artifactId: org.wicketstuff.foo.bar
   version: 1.5
  
   Bundle-Symbolic-Name: org.wicketstuff.foo.bar
   JAR name: org.wicketstuff.foo.bar-1.5.**jar
  
   Apache Servicemix and Apache Aries use this convention, while Apache
   Commons sticks with the old names.
  
   Having this naming scheme and the one Bruno suggested in parallel
 would
   help to distinguish OSGi bundles from plain old JARs.
  
   Then again, that would mean you'd have to rename artifacts, once you
  osgify
   them.
  
   Regards,
   Harald
  
  
  
  
 
 --**--**-
   To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
  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
 
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
The Pull request #42 is ready to be merged.

Please review and vote.

https://github.com/wicketstuff/core/pull/42

There's one modification I made that is not related to the repository. It is
here:
https://github.com/wicketstuff/core/pull/42/files#r55594



*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts checke...@gmail.comwrote:

 I seem to recall the Maven guys recommending against periods in
 artifactIds.
 Can't find the link for the info though... maybe it was just soething they
 mentioned in the class.

 The purpose was to reduce confusion between artifactIds and groupIds.

 -Clint

 On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  i think the groupid/artifactid do matter because some containers have
  bundle deployers that pull things from the maven repo...i think
 
  -igor
 
  On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov mgrigo...@apache.org
  wrote:
   The Maven artifact id is not important.
   The name of the produced .jar is what matters, right ?
  
   Harald just said that there is a convention in OSGi world to work with
   such named .jars (com.acme.blah)
  
   On Thu, Jun 30, 2011 at 6:31 PM, James Carman
   jcar...@carmanconsulting.com wrote:
   And repetitive
  
   Sent from my Android device.  Please excuse typos and brevity.
   On Jun 30, 2011 11:12 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Yes, me neither. That's why I asked.
  
   The preffix I'm using is wicketstuff-, but Harald mentioned
   org.wicketstuff.
  
   I don't want to use that, it's too verbose.
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Thu, Jun 30, 2011 at 12:06 PM, James Carman
   ja...@carmanconsulting.comwrote:
  
   I haven't seen that syntax before of having the group id in the
   artifact id, at least not with the longer group ids (reverse
 domain).
  
   On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
The preffix is 'wicketstuff-', not 'org.wicketstuff.'
   
Is this ok?
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann 
   harald.wellm...@gmx.de
   wrote:
   
For Maven OSGi bundle artifacts, there is a quasi-convention to
  have
artifactId = Bundle-Symbolic name, so you would have
   
groupId: org.wicketstuff
artifactId: org.wicketstuff.foo.bar
version: 1.5
   
Bundle-Symbolic-Name: org.wicketstuff.foo.bar
JAR name: org.wicketstuff.foo.bar-1.5.**jar
   
Apache Servicemix and Apache Aries use this convention, while
  Apache
Commons sticks with the old names.
   
Having this naming scheme and the one Bruno suggested in parallel
   would
help to distinguish OSGi bundles from plain old JARs.
   
Then again, that would mean you'd have to rename artifacts, once
  you
   osgify
them.
   
Regards,
Harald
   
   
   
   
  
  --**--**-
To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
   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
  
  
  
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.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: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Bruno Borges
If you are calling a jsp file, Wicket is not being processed.

And so, Application.get() won't return a valid object.

In your newSession() method, add something your project understand to
HttpSession as Pedro said.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 30, 2011 at 3:52 PM, Pedro Santos pedros...@gmail.com wrote:

 Hi, you can share this info in the HttpServletSession.

 On Tue, Jun 28, 2011 at 4:57 PM, fachhoch fachh...@gmail.com wrote:
  I have very few jsp pages and for these pages I want to check that user
 is
  authenticated. I tried calling
 
  AuthenticatedWebSession.get().isSignedIn()   and I getting this exception
 
   java.lang.IllegalStateException: you can only locate or create sessions
 in
  the context of a request cycle
 at org.apache.wicket.Session.findOrCreate(Session.java:208)
 at org.apache.wicket.Session.get(Session.java:252)
 at
 
 org.apache.wicket.authentication.AuthenticatedWebSession.get(AuthenticatedWebSession.java:40)
 at
 
 gov.hhs.acf.web.filter.JspSecurityFilter.doFilter(JspSecurityFilter.java:29)
 at
 
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
 at
 
 org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at
 
 org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
 at
 
 org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at
 
 org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at
 
 org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 at
 
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
 at
 
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at
 
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
 at
 
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
 at
 
 org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
 at
 
 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
 at
 
 org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493)
 at
 
 org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 at
 
 org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924)
 at
  org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
 at
 
 org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
 at
 
 org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860)
 at
 
 org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at
 
 org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
 at
 
 org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
 at
 
 org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
 at org.eclipse.jetty.server.Server.handle(Server.java:335)
 at
 
 org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588)
 at
 
 org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1029)
 at
 org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549)
 at
 org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
 at
 org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418)
 at
 
 org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:476)
 at
 
 org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
 at java.lang.Thread.run(Thread.java:619)
 
 
  please suggest me how check if user is authenticated in case of jsp pages
 ?
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/jsp-check-AuthenticatedWebSession-get-isSignedIn-tp3631307p3631307.html
  Sent from the Users forum 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
 
 



 --
 Pedro Henrique Oliveira dos Santos

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




Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
Hell, it has been merged.

pull request #42 merged to master.

I've updated the wiki already asking for new JAR modules to follow this
naming strategy.

Thank you all for the support.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 The Pull request #42 is ready to be merged.

 Please review and vote.

 https://github.com/wicketstuff/core/pull/42

 There's one modification I made that is not related to the repository. It
 is here:
 https://github.com/wicketstuff/core/pull/42/files#r55594



 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts checke...@gmail.comwrote:

 I seem to recall the Maven guys recommending against periods in
 artifactIds.
 Can't find the link for the info though... maybe it was just soething they
 mentioned in the class.

 The purpose was to reduce confusion between artifactIds and groupIds.

 -Clint

 On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  i think the groupid/artifactid do matter because some containers have
  bundle deployers that pull things from the maven repo...i think
 
  -igor
 
  On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov mgrigo...@apache.org
  wrote:
   The Maven artifact id is not important.
   The name of the produced .jar is what matters, right ?
  
   Harald just said that there is a convention in OSGi world to work with
   such named .jars (com.acme.blah)
  
   On Thu, Jun 30, 2011 at 6:31 PM, James Carman
   jcar...@carmanconsulting.com wrote:
   And repetitive
  
   Sent from my Android device.  Please excuse typos and brevity.
   On Jun 30, 2011 11:12 AM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Yes, me neither. That's why I asked.
  
   The preffix I'm using is wicketstuff-, but Harald mentioned
   org.wicketstuff.
  
   I don't want to use that, it's too verbose.
  
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Thu, Jun 30, 2011 at 12:06 PM, James Carman
   ja...@carmanconsulting.comwrote:
  
   I haven't seen that syntax before of having the group id in the
   artifact id, at least not with the longer group ids (reverse
 domain).
  
   On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges 
  bruno.bor...@gmail.com
   wrote:
The preffix is 'wicketstuff-', not 'org.wicketstuff.'
   
Is this ok?
   
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
   
   
   
On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann 
   harald.wellm...@gmx.de
   wrote:
   
For Maven OSGi bundle artifacts, there is a quasi-convention to
  have
artifactId = Bundle-Symbolic name, so you would have
   
groupId: org.wicketstuff
artifactId: org.wicketstuff.foo.bar
version: 1.5
   
Bundle-Symbolic-Name: org.wicketstuff.foo.bar
JAR name: org.wicketstuff.foo.bar-1.5.**jar
   
Apache Servicemix and Apache Aries use this convention, while
  Apache
Commons sticks with the old names.
   
Having this naming scheme and the one Bruno suggested in
 parallel
   would
help to distinguish OSGi bundles from plain old JARs.
   
Then again, that would mean you'd have to rename artifacts, once
  you
   osgify
them.
   
Regards,
Harald
   
   
   
   
  
 
 --**--**-
To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org
   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
  
  
  
  
  
  
   --
   Martin Grigorov
   jWeekend
   Training, Consulting, Development
   http://jWeekend.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: setting number of pages in the session

2011-06-28 Thread Bruno Borges
Isn't it possible to code a PageStore that ... does not store pages?

Like DevNullPageStore ? :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jun 28, 2011 at 6:31 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Harrie,

 In RC5.1 (the latest one) there is IStoreSettings
 (application.getStoreSettings()) which provides methods for
 configuring the functionalities provided by the page stores.
 But if you decrease the in memory store size then the page will be
 looked up from the disk so it will be found again.
 The in-memory (http session) storage is used as perf optimization for
 faster retrieval.

 Better make your page either stateless (all components should have
 #getStatelessHint() == false) or unversioned (#setVersioned(false)).
 This way the page wont be stored at all in the page stores.

 On Tue, Jun 28, 2011 at 12:15 PM, Harrie Hazewinkel
 hhazewin...@iprofs.nl wrote:
  Hello,
 
 
 
  Ik would like to reduce the amount of pages maintained in the session to
 1
  in order to disable the back button. How can I set this in wicket 1.5RC2?
 
  With this I would like to avoid the possibility that after a logout, the
 user can come
  back to the previous logged in page via the back button. I already search
 the
  Internet archives, but found nothing useful (some hints seemed not for
 wicket 1.5RC2)
 
 
  Any help appreciated,
 
 
  Met hartelijke groet,
  Harrie Hazewinkel
  Software Architect
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: WicketStuff artifacts naming strategy

2011-06-28 Thread Bruno Borges
I started to modify all JAR poms to have the wicketstuff- preffix.

Is anybody against this? Why?

:-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges bruno.bor...@gmail.comwrote:

 We could simply rename the artifactId property of projects, prepending with
 wicketstuff-, like wicket does with their modules.

 Still, I agree that this is will take some time and effort.


 Bruno Borges
 www.brunoborges.com.br
 +55 21 76727099

 The glory of great men should always be
 measured by the means they have used to
 acquire it.
  - Francois de La Rochefoucauld



 On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh 
 michael.ocleir...@rivulet.ca wrote:

 This is more complicated than I first thought.

 See this issue: http://jira.codehaus.org/browse/MDEPLOY-93

 Essentially it seems that the deploy plugin does not honour the
 finalName option and uploads in the original format when deploying.

 I will investigate this further but it won't be part of the next point
 releases unfortunately.

 Mike


  I'm planning on doing point releases this weekend for 1.4.16.1 and
 1.5-rc2.1 and I'll make sure the artifacts generate using the longer name.

 Thanks,

 Mike


  In the most parent wicketstuff pom.xml:

 build
 finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName

 

 On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Ivertoriv...@arrive.no
 wrote:

  - jasperreports-1.4.16.jar
 - jasperreports-3.7.2.jar
 The first one is from WicketStuff, but still, it is confusing to see

 this.

 This one of my biggest peeves with Maven: It has this concept of a
 groupId to namespace artifacts in the repository, but this is of no
 consequence when the jar files appear in the classpath, since the
 groupId
 namespace is not part of the actual file name.

 A workaround could be to prefix the jar file name with the groupId
 namespace somehow.

 - Tor Iver





 -
 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: WicketStuff artifacts naming strategy

2011-06-28 Thread Bruno Borges
because the JAR file does not come with the groupId, and some projects have
some very short names, like dojo, or yui.

If I look at a JAR file named wicket-dojo-1.5-RC5.1.jar, is that from
wicketstuff or wicket ?

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jun 28, 2011 at 6:39 PM, Clint Checketts checke...@gmail.comwrote:

 Why not just just use wicket- as the prefix? The groupId shows that it is
 org.wicketstuff.

 -Clint

 On Tue, Jun 28, 2011 at 4:27 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:

  I started to modify all JAR poms to have the wicketstuff- preffix.
 
  Is anybody against this? Why?
 
  :-)
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
 
   We could simply rename the artifactId property of projects, prepending
  with
   wicketstuff-, like wicket does with their modules.
  
   Still, I agree that this is will take some time and effort.
  
  
   Bruno Borges
   www.brunoborges.com.br
   +55 21 76727099
  
   The glory of great men should always be
   measured by the means they have used to
   acquire it.
- Francois de La Rochefoucauld
  
  
  
   On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh 
   michael.ocleir...@rivulet.ca wrote:
  
   This is more complicated than I first thought.
  
   See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
  
   Essentially it seems that the deploy plugin does not honour the
   finalName option and uploads in the original format when deploying.
  
   I will investigate this further but it won't be part of the next point
   releases unfortunately.
  
   Mike
  
  
I'm planning on doing point releases this weekend for 1.4.16.1 and
   1.5-rc2.1 and I'll make sure the artifacts generate using the longer
  name.
  
   Thanks,
  
   Mike
  
  
In the most parent wicketstuff pom.xml:
  
   build
  
 
 finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName
  
   
  
   On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver
  toriv...@arrive.no
   wrote:
  
- jasperreports-1.4.16.jar
   - jasperreports-3.7.2.jar
   The first one is from WicketStuff, but still, it is confusing to
 see
  
   this.
  
   This one of my biggest peeves with Maven: It has this concept of a
   groupId to namespace artifacts in the repository, but this is of
 no
   consequence when the jar files appear in the classpath, since the
   groupId
   namespace is not part of the actual file name.
  
   A workaround could be to prefix the jar file name with the groupId
   namespace somehow.
  
   - Tor Iver
  
  
  
  
  
   -
   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: WicketStuff artifacts naming strategy

2011-06-28 Thread Bruno Borges
How can that happen if the purpose of this change is exactly to avoid
collisions ?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jun 28, 2011 at 6:59 PM, James Carman
jcar...@carmanconsulting.comwrote:

 This can cause classpath collisions

 Sent from my Android device.  Please excuse typos and brevity.
 On Jun 28, 2011 5:27 PM, Bruno Borges bruno.bor...@gmail.com wrote:
  I started to modify all JAR poms to have the wicketstuff- preffix.
 
  Is anybody against this? Why?
 
  :-)
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
 
  We could simply rename the artifactId property of projects, prepending
 with
  wicketstuff-, like wicket does with their modules.
 
  Still, I agree that this is will take some time and effort.
 
 
  Bruno Borges
  www.brunoborges.com.br
  +55 21 76727099
 
  The glory of great men should always be
  measured by the means they have used to
  acquire it.
  - Francois de La Rochefoucauld
 
 
 
  On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh 
  michael.ocleir...@rivulet.ca wrote:
 
  This is more complicated than I first thought.
 
  See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
 
  Essentially it seems that the deploy plugin does not honour the
  finalName option and uploads in the original format when deploying.
 
  I will investigate this further but it won't be part of the next point
  releases unfortunately.
 
  Mike
 
 
  I'm planning on doing point releases this weekend for 1.4.16.1 and
  1.5-rc2.1 and I'll make sure the artifacts generate using the longer
 name.
 
  Thanks,
 
  Mike
 
 
  In the most parent wicketstuff pom.xml:
 
  build
 

 finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName
 
  
 
  On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver
 toriv...@arrive.no
  wrote:
 
  - jasperreports-1.4.16.jar
  - jasperreports-3.7.2.jar
  The first one is from WicketStuff, but still, it is confusing to
 see
 
  this.
 
  This one of my biggest peeves with Maven: It has this concept of a
  groupId to namespace artifacts in the repository, but this is of
 no
  consequence when the jar files appear in the classpath, since the
  groupId
  namespace is not part of the actual file name.
 
  A workaround could be to prefix the jar file name with the groupId
  namespace somehow.
 
  - Tor Iver
 
 
 
 
 
  -
  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: WicketStuff artifacts naming strategy

2011-06-28 Thread Bruno Borges
I understand that, but as this is a 1.5 release, I thought it shouldn't be a
problem as it is mostly used for new projects.

I would take the risk. I prefer to have collision between 1.4 and 1.5
wicketstuff artifacts, instead of pushing jasperreports-version.jar to a lib
folder instead of the actual (official) jasperreports-version.jar, if you
know what I mean.

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jun 28, 2011 at 8:02 PM, James Carman ja...@carmanconsulting.comwrote:

 Sorry, hit send too soon.

 Are you changing artifact ids?  If you are, then Maven will think that
 it's something different and will thus allow both the old and the new
 jars on the same classpath.  If the class names don't change, then
 you've go the potential for a collision.  Now, this might be an
 acceptable risk when you consider how many folks are actually using
 the wicketstuff code, but I thought I'd bring it up.  We face this
 same stuff at Apache Commons.

 On Tue, Jun 28, 2011 at 6:48 PM, James Carman
 ja...@carmanconsulting.com wrote:
  Are you changing artifact ids?
 
  On Tue, Jun 28, 2011 at 6:26 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  How can that happen if the purpose of this change is exactly to avoid
  collisions ?
 
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 
 
 
  On Tue, Jun 28, 2011 at 6:59 PM, James Carman
  jcar...@carmanconsulting.comwrote:
 
  This can cause classpath collisions
 
  Sent from my Android device.  Please excuse typos and brevity.
  On Jun 28, 2011 5:27 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
   I started to modify all JAR poms to have the wicketstuff- preffix.
  
   Is anybody against this? Why?
  
   :-)
  
   *Bruno Borges*
   www.brunoborges.com.br
   +55 21 76727099
  
  
  
   On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges 
 bruno.bor...@gmail.com
  wrote:
  
   We could simply rename the artifactId property of projects,
 prepending
  with
   wicketstuff-, like wicket does with their modules.
  
   Still, I agree that this is will take some time and effort.
  
  
   Bruno Borges
   www.brunoborges.com.br
   +55 21 76727099
  
   The glory of great men should always be
   measured by the means they have used to
   acquire it.
   - Francois de La Rochefoucauld
  
  
  
   On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh 
   michael.ocleir...@rivulet.ca wrote:
  
   This is more complicated than I first thought.
  
   See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
  
   Essentially it seems that the deploy plugin does not honour the
   finalName option and uploads in the original format when
 deploying.
  
   I will investigate this further but it won't be part of the next
 point
   releases unfortunately.
  
   Mike
  
  
   I'm planning on doing point releases this weekend for 1.4.16.1 and
   1.5-rc2.1 and I'll make sure the artifacts generate using the
 longer
  name.
  
   Thanks,
  
   Mike
  
  
   In the most parent wicketstuff pom.xml:
  
   build
  
 
 
 finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName
  
   
  
   On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver
  toriv...@arrive.no
   wrote:
  
   - jasperreports-1.4.16.jar
   - jasperreports-3.7.2.jar
   The first one is from WicketStuff, but still, it is confusing
 to
  see
  
   this.
  
   This one of my biggest peeves with Maven: It has this concept of
 a
   groupId to namespace artifacts in the repository, but this is
 of
  no
   consequence when the jar files appear in the classpath, since
 the
   groupId
   namespace is not part of the actual file name.
  
   A workaround could be to prefix the jar file name with the
 groupId
   namespace somehow.
  
   - Tor Iver
  
  
  
  
  
  
 -
   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-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Bruno Borges
I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

Gerard, you can now ask for commit access at wicketstuff, or just fork it
from there and then push a patch.

https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

Thanks again for showing interest in this project.

Cheers
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

 with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
}

 On Thu, Jun 16, 2011 at 3:39 PM, gerar gerardp...@gmail.com wrote:
  Thanks for the very quick answer.
 
  However, now another error message appears.
 
  The superclass now looks like this:
 
  public abstract class AbstractWebServicePage extends WebPage implements
  IMarkupResourceStreamProvider {
  // Removed hasAssociatedMarkup method and added:
  
 public IResourceStream getMarkupResourceStream(MarkupContainer
  container, Class? containerClass) {
 return new StringResourceStream();
 }
 
  
 
  This error appears when requesting the page in a browser:
 
  Root cause:
 
  java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at java.util.ArrayList.RangeCheck(ArrayList.java:547)
  at java.util.ArrayList.get(ArrayList.java:322)
  at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
  at org.apache.wicket.markup.Markup.get(Markup.java:109)
  at org.apache.wicket.Component.internalRender(Component.java:2371)
  at org.apache.wicket.Component.render(Component.java:2322)
  at org.apache.wicket.Page.renderPage(Page.java:1120)
  at
 
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
  at
 
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
  at
 
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
  at
 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
  at
 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
  at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
  .
 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
  Sent from the Users forum 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
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Gamboa Project

2011-06-16 Thread Bruno Borges
 Which feature exactly do you mean ?

I don't know on which version this came up, but I'm talking about resource
references, like CSS, JS and image files.

Whenever an html references a css, wicket takes care of putting trailing
dots ../../ if it renders a webpage at /wicket/bookmarkable or something.



*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, Jun 8, 2011 at 4:13 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Very nice, Bruno!

 Just one thing:
  Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
  better to have separated HTML+css+js from the Java/Scala code.

 Which feature exactly do you mean ?

 On Wed, Jun 8, 2011 at 3:22 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Hi everyone,
 
 I've been working on what I call the Gamboa Project for a couple of
 days
  and now the project is ready and published.
 
 It is a Maven archetype for rapid web application development. It
  combines well-know technologies:
 
  - Scala
  - Apache Wicket
  - MongoDB
  - Spring Framework
  - Velocity
  - HTML5+jQuery
 
  The purpose of this project is to give developers a quick start for Web
 2.0
  applications based on NoSQL.
  Plans for another archetype for SQL does exist though.
 
  https://github.com/brunoborges/gamboa-project/
 
  Also, this project aims a common scenario where web designers build
  prototypes and give them to developers.
  With Gamboa, all the prototype goes to *layout* folder and page classes
 goes
  to *code/pages*.
  Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
  better to have separated HTML+css+js from the Java/Scala code.
 
  I also plan to build (with it) its own website at www.gamboa-project.org
 .
 
  If anyone is interested on this, please take a look.
  Feedbacks are welcome.
 
  Thank you,
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Form with TextField to Label readonly mode

2011-06-16 Thread Bruno Borges
Has anyone ever done this?

A form where you can set it as to readonly, and components like TextField
will render as Label components?

AjaxEditableLabel is an option, but the scenario I'm really looking for. I
want to have a button where user clicks on it to Edit and the form reloads
in writeable mode.

regards,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Form with TextField to Label readonly mode

2011-06-16 Thread Bruno Borges
Thank you very much sir! :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 5:21 PM, robert.mcguinness 
robert.mcguinness@gmail.com wrote:

 like so? http://wicket.visural.net/examples/app/view-or-edit

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Form-with-TextField-to-Label-readonly-mode-tp3603438p3603631.html
 Sent from the Users forum 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




Gamboa Project

2011-06-07 Thread Bruno Borges
Hi everyone,

I've been working on what I call the Gamboa Project for a couple of days
and now the project is ready and published.

It is a Maven archetype for rapid web application development. It
combines well-know technologies:

- Scala
- Apache Wicket
- MongoDB
- Spring Framework
- Velocity
- HTML5+jQuery

The purpose of this project is to give developers a quick start for Web 2.0
applications based on NoSQL.
Plans for another archetype for SQL does exist though.

https://github.com/brunoborges/gamboa-project/

Also, this project aims a common scenario where web designers build
prototypes and give them to developers.
With Gamboa, all the prototype goes to *layout* folder and page classes goes
to *code/pages*.
Thanks to Wicket 1.5 and the auto resource path URL feature, it is even
better to have separated HTML+css+js from the Java/Scala code.

I also plan to build (with it) its own website at www.gamboa-project.org.

If anyone is interested on this, please take a look.
Feedbacks are welcome.

Thank you,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Bruno Borges
Server is up and running, if anyone haven't noticed yet. :-)


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, May 26, 2011 at 12:45 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 Download the distribution, and run the examples locally. Using an
 external (I might add free, volunteer, no-guarantees) service for a
 demo that you don't have any control over is asking for trouble.

 Martijn

 On Thu, May 26, 2011 at 5:28 PM, Brown, Berlin [GCG-PFS]
 berlin.br...@primerica.com wrote:
  Is it down again, darn I was doing a demo.
 
  I am getting a 503 unavailable error.
 
  -Original Message-
  From: Martin Grigorov [mailto:mgrigo...@apache.org]
  Sent: Thursday, May 26, 2011 9:59 AM
  To: users@wicket.apache.org
  Subject: Re: WicketStuff.org is down, do you guys need some change for
 your server?
 
  Seems to be up now.
 
  On Thu, May 26, 2011 at 4:32 PM, Brown, Berlin [GCG-PFS] 
 berlin.br...@primerica.com wrote:
  Is wicketstuff.org supposed to be up?  I don't know if it is
  deprecated or not.  There were some good examples out there.
 
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.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
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com

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




Big Brazilian e-Stores using Wicket

2011-05-20 Thread Bruno Borges
I've come to know that these websites are using Wicket on their mainstream
apps (not just intranet stuff):

- www.americanas.com.br  (go to this specific URL:
https://carrinho.nova.americanas.com.br/CustomerWeb/pages/Login and look at
the source for 'wicket')
- www.submarino.com.br
- www.shoptime.com.br

The first one is already in production and the laters are on final stage.

Wicket wins more portfolio. :-)

#FTW \o/

Cheers!!
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099


Re: Wicket Widget

2011-05-19 Thread Bruno Borges
Reminds me of a problem I had playing with jQuery Mobile.

jqM plays with hash links and with Wicket 1.4.17, it does not work properly.
I had to disable all Ajax links jQuery Mobile handles.

How to avoid that?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, May 19, 2011 at 11:50 AM, LePirlouit lepirlo...@hotmail.com wrote:

 I have the same question :

 Is there a way to force wicket to generate absolute urls
 for the page being rendered?

 for javascript, onclick events and A urls

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Widget-tp1867919p3535951.html
 Sent from the Users forum 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: Killing threads in Application's onDestroy method

2011-05-18 Thread Bruno Borges
Don't kill your threads...

You should code them the right way:

public void run() {
   while(running) {
  // do stuff
   }
}

Instead of killing them, change the value of that boolean 'running' to false
through any other method.

Cheers,
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, May 18, 2011 at 3:51 PM, Henrique Boregio hbore...@gmail.comwrote:

 Hi, in my Wicket Application class, I create a couple of thread that
 sleep most of the time..and come alive every one in a while to do some
 maintenance tasks.

 I create them in the init() method of the Wicket Application...and
 call kill() on them in the onDestroy() method.

 When I shutdown tomcat and restart it again (via the default .bat or
 .sh), I can see from my log files that some threads from the previuos
 deploy are still hanging around in memory.

 Am I doing something wrong?

 Many thanks.

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




Re: JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread Bruno Borges
Please send more code.

Would be great if you could put that on a quickstart project.


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Wed, May 18, 2011 at 5:04 PM, eugenebalt eugeneb...@yahoo.com wrote:

 Hi,

 My SubmitButton has an onClick JavaScript handler. Let's say the handler is
 something simple, like

 onclick=alert('Test')

 There are no JS errors when I run. But the problem is, the form submit flow
 stops. The flow doesn't go into Form.onSubmit() as it should.

 I tried returning true and false in the handler, but it doesn't help, the
 flow stops. Any ideas?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/JavaScript-onClick-Handler-Stops-Form-Submit-tp3533771p3533771.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




Re: Wicket Release of 1.4.18?

2011-05-06 Thread Bruno Borges
Why don't you upgrade to 1.4.17 and as soon 18 is relased, you plan to
upgrade again?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Fri, May 6, 2011 at 4:41 PM, Corbin, James jcor...@iqnavigator.comwrote:

 Hello,

 I have a project running against Wicket 1.4.13 and am considering upgrading
 to be more current with the latest 1.4.x version (currently 17).
 I would rather hold off upgrading to Wicket 1.4.17,  if Wicket 1.4.18 is
 planned for a release in the next few weeks.

 Thoughts,

 J.D.



Re: Running Wicket under WebSphere

2011-05-04 Thread Bruno Borges
There's no need for an index.jsp / index.html if you enable the property I
mentioned before.

Cheers,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099



On Wed, May 4, 2011 at 4:51 PM, D D dawi...@gmail.com wrote:

 try adding index file under WebContent - make sure that extension
 matches the welcome-file-list element in your deployment descriptor.

 you are probably seeing 404 as I was.

 Dave

 On Tue, May 3, 2011 at 2:56 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  You must enable the
  *com.ibm.ws.webcontainer.invokefilterscompatibility*property.
 
  Check this webpage:
 
 http://greatwebguy.com/programming/java/urlrewritefilter-servlet-filter-problem-in-websphere-6105-and-greater/
 
  Hope this helps.
 
  Cheers,
 
  *Bruno Borges*
  www.brunoborges.com.br
  +55 21 76727099
 

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




  1   2   3   >