Re: Ten things every Wicket programmer must know?

2011-07-28 Thread Ted Roeloffzen
In my humble opinion:

The most important thing that you should know are models en how powerfull
they can be used.
Models can be quite confusing, especially to programmers who've just started
using Wicket.
I remember how I struggled with the concept, when I started to use Wicket.

How and when to detach them, how to use them when using an ORM-framework,
etc.


Ted



2011/7/28 Carl-Eric Menzel 

> On Thu, 28 Jul 2011 11:10:30 +0300
> Martin Makundi  wrote:
>
> > > * "compressing" code by use of ids matching property names combined
> > > with CompoundPropertyModel and/or PropertyListView
> >
> > Oh.. that will lead to fragility.
>
> It can, but in my experience it hasn't. Our domain objects rarely
> change, and if they do, our unit tests catch that immediately. The page
> doesn't even render if the property model doesn't work, so if you have
> a simple "tester.startPage(MyPage.class);" you're safe enough in most
> cases.
>
> This is actually a good point to make for the list:
>
> - Unit test everything you can using WicketTester. It doesn't do
>  everything, but it's invaluable as a smoke test at the very least. If
>  possible, try and check stuff like visibility and enabled state of
>  your components too.
>
> Carl-Eric
> www.wicketbuch.de
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
But how does that relate to the bug i'm having?
Will the model lose the binding when an ajax-call updates the component?
Ted

2010/4/21 Igor Vaynberg 

> javadoc of bound:
>
> /**
>  * A compound property model that supports type conversions and
> property expression bindings.
>  *
>  * @author Jonathan Locke
>  *
>  * @param 
>  *The model object
>  *
>  * @deprecated See {...@link CompoundPropertyModel#bind(String)}
>  */
>
> -igor
>
> On Wed, Apr 21, 2010 at 8:25 AM, Ted Roeloffzen
>  wrote:
> > Hi All,
> > Can anyone tell me the exact differences between a CompoundPropertyModel
> and
> > a BoundCompoundPropertyModel?
> > In an app i'm working on i'm getting a strange bug.
> > When I update a compnent via ajax the value of that component is not set
> in
> > the entity.
> > thanks
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
Hi All,
Can anyone tell me the exact differences between a CompoundPropertyModel and
a BoundCompoundPropertyModel?
In an app i'm working on i'm getting a strange bug.
When I update a compnent via ajax the value of that component is not set in
the entity.
thanks


Re: Wicket-auth-roles problem

2008-02-22 Thread Ted Roeloffzen
Thanks for the feedback, but i already figured out what i did wrong.
Can somebody get me a brown bag, because i forgot to call super.init() in
the init method of the webapplication class

Ted


2008/2/22, richardwilko <[EMAIL PROTECTED]>:
>
>
> A few questions:
>
> 1) does your session extend AuthenticatedWebSession
> 2) if so what does your getRoles() method in your web session look like
> 3) presumably you mean @AuthorizeInstantiation(Roles.USER) - without the
> stars?
> 4) do you manually set any of the options on getSecuritySettings() in your
> webapplication class (afaik you shouldn't, i don't)
>
> Richard
>
>
>
> Ted Roeloffzen-2 wrote:
> >
> > I've made a webapplication class that extends from
> > AuthenticatedWebApplication in the wicket-auth-roles project version
> 1.3.1
> > I've implemented the needed methods, such as getHomePage,
> > getSignInPageClass
> > and getWebSessionClass. They all return the appropiate class.
> > On the homepage i've added the annotation:
> @AuthorizeInstantiation(Roles.*
> > USER*)
> >
> > but when i run the application and go to the URL, it goes directly to
> the
> > homepage and the loginpage isn't called. This isn't supposed to happen,
> > because you need the user rol to get there.
> >
> > Does anyone have an idea about what i'm doing wrong?
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wicket-auth-roles-problem-tp15631688p15632086.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Wicket-auth-roles problem

2008-02-22 Thread Ted Roeloffzen
I've made a webapplication class that extends from
AuthenticatedWebApplication in the wicket-auth-roles project version 1.3.1
I've implemented the needed methods, such as getHomePage, getSignInPageClass
and getWebSessionClass. They all return the appropiate class.
On the homepage i've added the annotation: @AuthorizeInstantiation(Roles.*
USER*)

but when i run the application and go to the URL, it goes directly to the
homepage and the loginpage isn't called. This isn't supposed to happen,
because you need the user rol to get there.

Does anyone have an idea about what i'm doing wrong?


Re: Kronos-cms installation

2007-09-10 Thread Ted Roeloffzen
I was one of two people who built kronos, but i have to say that i haven't
worked on it for quite a while, because of time issues, so the dependency is
most likely out of date.

Ted


2007/9/8, Maurice Marrink <[EMAIL PROTECTED]>:
>
> Ted, who build kronos, is on vacation and I'm not sure if he is
> monitoring the mailing list during this time. I do believe the 1.2
> branch to be the latest version. As for your other questions i have no
> idea :) A couple of months ago there also some questions on this
> mailing list (well the old sourceforge one actually) have you tried
> those?
>
> Maurice
>
> On 9/8/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> > I just checked out kronos-cms to take a look at it.  I could only find
> > it under the wicket-1.2 branch in wicketstuff.  Is that correct, or is
> > there a 1.3 release?
> >
> > During mvn install, I got a build error that it was missing
> > javax.jcr:jcr:jar:1.0.1.  It suggested the following:
> >
> >   Try downloading the file manually from:
> >
> http://www.day.com/site/en/index/related/downloads/RI_download.html
> >
> >   Then, install it using the command:
> >   mvn install:install-file -DgroupId=javax.jcr -DartifactId=jcr \
> >   -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file
> >
> > When I went to that download page, and filled out the form to get the
> > download, I downloaded a file called jcr-ri-1.0.zip.  There isn't a
> > jar file included in it.  Upon looking at the sources, it includes
> > some org.apache.jackrabbit packages.
> >
> > Is that really the file I should be using, or is the kronos dependency
> > out of date?  On the apache jackrabbit site, there are downloads
> > available as well.  Would those work instead of the day.com download?
> >
> > I don't want to waste  a bunch of time trying to get this working.  If
> > anyone else has messed with kronos-cms and has some tips, I'm all
> > ears.
> >
> > If someone could share their jcr-1.0.1.jar, that would work too!
> >
> > Thanks!
> > Tauren
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>