Re: [Wicket-user] PageMap.AccessStack gone in 1.3

2007-06-21 Thread Ivo van Dongen

Well, I wouldn't mind doing that. One problem I see though is that the
component depends on a base page to update the Session which also needs to
be adapted. This doesn't make it self contained,

On 6/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


if you could come up with a nice navigation component that does this
behavior
we could maybe add this into wicket extentions  if more people would like
to have such a thing

johan


On 6/21/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks again for the help. As soon as I hit the reply button it dawned
> on me, guess it's to early :)
>
> Ivo
>
> On 6/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> >
> > If you store the id/version of a page when it is renderd in your
> > session (in a list/stack object)
> > then you are doing exactly the same as the AccessStackPageMap would
> > do.
> >
> > You should only store the id/version not the page itself, because you
> > don't have to hold on to a reference of it you can always restore any page
> > of the current session.
> >
> > So pagex.onRender -> store the id/version in your session: now has an
> > entry of 1
> > pagey.onRender -> add the id/version of this one now has an entry of 2
> > pagez.onRender ->  add the id/version of this one now has an entry of
> > 3
> >
> > then you want to go back and take the id/version of pagey and restore
> > that page for rendering.
> > if you then want to completely do the same thing remove the pagez
> > entry so that you now have 2 entries again after pagey rendered for the
> > second time
> >
> > johan
> >
> >
> > On 6/21/07, Ivo van Dongen < [EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > Sorry, but I don't get exactly what to do here. As I understand it
> > > you're advising me to store a separate map of Pages in the Session and 
then
> > > lookup the previous Page there? Otherwise I wouldn't see how to implement
> > > the YourSession.get().getPage() method as I still can't get to the
> > > PageMap's size to use that to calculate the previous PageEntry's id. I'm
> > > probably totally missing something here :)
> > >
> > > Thanks,
> > > Ivo
> > >
> > > On 6/20/07, Johan Compagner <[EMAIL PROTECTED] > wrote:
> > > >
> > > > What i would do is a bit different.
> > > >
> > > > You want a stack of the last rendered pages?
> > > >
> > > > if you have a common BasePage then override:
> > > >
> > > > protected void onBeforeRender()
> > > >
> > > >
> > > > in that method you take your session and add a object that stores
> > > > the page id and the current version number entry.
> > > >
> > > > YourSession.get().addPageEntry(getPageMapName(), getNumericId(),
> > > > getCurrentPageVersion());
> > > >
> > > > then if you want go back:
> > > >
> > > > YourSession.get().getPage(-1)
> > > >
> > > > -1 (is the previous page) -2 skip 2
> > > >
> > > >
> > > > in that method you can get the page then:
> > > >
> > > > return PageMap.forName(pagemapname).get(pageid,versionid)
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > > On 6/20/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > We're in the middle of upgrading one of our apps from wicket
> > > > > 1.2.6 to 1.3 (finally :)). Sadly, we're running into a small
> > > > > problem which we don't know how to get around.
> > > > > In our 1.2.6 version we had an utility class to set up previous
> > > > > page links based on the PageMap. It went something like this:
> > > > >
> > > > > public static PreviousPageLink getInstance(String markupId)
> > > > > {
> > > > > PageMap pageMap = (PageMap) Session.get
> > > > > ().getDefaultPageMap();
> > > > > int size = pageMap.getAccessStack().size();
> > > > > if(size > 0) {
> > > > > PageMap.Access access = (PageMap.Access)
> > > > > pageMap.getAccessStack().get(size-1);
> > > > > Page previousPage = pageMap.getEntry(acces

Re: [Wicket-user] PageMap.AccessStack gone in 1.3

2007-06-21 Thread Ivo van Dongen

Hi,

Thanks again for the help. As soon as I hit the reply button it dawned on
me, guess it's to early :)

Ivo

On 6/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


If you store the id/version of a page when it is renderd in your session
(in a list/stack object)
then you are doing exactly the same as the AccessStackPageMap would do.

You should only store the id/version not the page itself, because you
don't have to hold on to a reference of it you can always restore any page
of the current session.

So pagex.onRender -> store the id/version in your session: now has an
entry of 1
pagey.onRender -> add the id/version of this one now has an entry of 2
pagez.onRender ->  add the id/version of this one now has an entry of 3

then you want to go back and take the id/version of pagey and restore that
page for rendering.
if you then want to completely do the same thing remove the pagez entry so
that you now have 2 entries again after pagey rendered for the second time

johan


On 6/21/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Sorry, but I don't get exactly what to do here. As I understand it
> you're advising me to store a separate map of Pages in the Session and then
> lookup the previous Page there? Otherwise I wouldn't see how to implement
> the YourSession.get().getPage() method as I still can't get to the
> PageMap's size to use that to calculate the previous PageEntry's id. I'm
> probably totally missing something here :)
>
> Thanks,
> Ivo
>
> On 6/20/07, Johan Compagner <[EMAIL PROTECTED] > wrote:
> >
> > What i would do is a bit different.
> >
> > You want a stack of the last rendered pages?
> >
> > if you have a common BasePage then override:
> >
> > protected void onBeforeRender()
> >
> >
> > in that method you take your session and add a object that stores the
> > page id and the current version number entry.
> >
> > YourSession.get().addPageEntry(getPageMapName(), getNumericId(),
> > getCurrentPageVersion());
> >
> > then if you want go back:
> >
> > YourSession.get().getPage(-1)
> >
> > -1 (is the previous page) -2 skip 2
> >
> >
> > in that method you can get the page then:
> >
> > return PageMap.forName(pagemapname).get(pageid,versionid)
> >
> > johan
> >
> >
> >
> > On 6/20/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > We're in the middle of upgrading one of our apps from wicket 1.2.6to
> > > 1.3 (finally :)). Sadly, we're running into a small problem which we
> > > don't know how to get around.
> > > In our 1.2.6 version we had an utility class to set up previous page
> > > links based on the PageMap. It went something like this:
> > >
> > > public static PreviousPageLink getInstance(String markupId) {
> > > PageMap pageMap = (PageMap) Session.get
> > > ().getDefaultPageMap();
> > > int size = pageMap.getAccessStack().size();
> > > if(size > 0) {
> > > PageMap.Access access = (PageMap.Access)
> > > pageMap.getAccessStack().get(size-1);
> > > Page previousPage = pageMap.getEntry(access.getId
> > > ()).getPage();
> > >         ...
> > > }
> > >
> > > But in 1.3 the AccessStack isn't available in PageMap, only in
> > > AccessStackPageMap. But the PageMap used in our application is the
> > > SecondLevelCachePageMap which doesn't have any means to access the list of
> > > PageMapEntries.
> > >
> > > Any ideas on how to work arround this? We've tried to use the
> > > numeric id from the page, but that seems to be zero every time.
> > >
> > > Thanks in advance,
> > > Ivo and Rommert
> > >
> > > --
> > > Ivo van Dongen
> > > Func. Internet Integration
> > > W http://www.func.nl
> > > T +31 20 423
> > > F +31 20 4223500
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> &

Re: [Wicket-user] PageMap.AccessStack gone in 1.3

2007-06-21 Thread Ivo van Dongen

Hi,

Sorry, but I don't get exactly what to do here. As I understand it you're
advising me to store a separate map of Pages in the Session and then lookup
the previous Page there? Otherwise I wouldn't see how to implement the
YourSession.get().getPage() method as I still can't get to the PageMap's
size to use that to calculate the previous PageEntry's id. I'm probably
totally missing something here :)

Thanks,
Ivo

On 6/20/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


What i would do is a bit different.

You want a stack of the last rendered pages?

if you have a common BasePage then override:

protected void onBeforeRender()


in that method you take your session and add a object that stores the page
id and the current version number entry.

YourSession.get().addPageEntry(getPageMapName(), getNumericId(),
getCurrentPageVersion());

then if you want go back:

YourSession.get().getPage(-1)

-1 (is the previous page) -2 skip 2


in that method you can get the page then:

return PageMap.forName(pagemapname).get(pageid,versionid)

johan



On 6/20/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We're in the middle of upgrading one of our apps from wicket 1.2.6 to
> 1.3 (finally :)). Sadly, we're running into a small problem which we
> don't know how to get around.
> In our 1.2.6 version we had an utility class to set up previous page
> links based on the PageMap. It went something like this:
>
> public static PreviousPageLink getInstance(String markupId) {
> PageMap pageMap = (PageMap) Session.get().getDefaultPageMap();
> int size = pageMap.getAccessStack().size();
> if(size > 0) {
> PageMap.Access access = (PageMap.Access)
> pageMap.getAccessStack().get(size-1);
> Page previousPage = pageMap.getEntry(access.getId
> ()).getPage();
> ...
> }
>
> But in 1.3 the AccessStack isn't available in PageMap, only in
> AccessStackPageMap. But the PageMap used in our application is the
> SecondLevelCachePageMap which doesn't have any means to access the list of
> PageMapEntries.
>
> Any ideas on how to work arround this? We've tried to use the numeric id
> from the page, but that seems to be zero every time.
>
> Thanks in advance,
> Ivo and Rommert
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PageMap.AccessStack gone in 1.3

2007-06-21 Thread Ivo van Dongen

Hi,

Thanks for the quick reply. That would mean that the second level cache
isn't used any more right? Does this lead to a great increase in session
size or are there other disadvantages?

Regards,
Ivo

On 6/20/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 6/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> you either have to pass a reference, keep a reference to last page in
> session, or not use the second level page store.

If you put:

protected ISessionStore newSessionStore() {
  return new HttpSessionStore(this);
}

in your application object, Wicket will use that session store instead
of the default. HttpSessionStore is the same store as was the default
in 1.2.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] PageMap.AccessStack gone in 1.3

2007-06-20 Thread Ivo van Dongen

Hi,

We're in the middle of upgrading one of our apps from wicket 1.2.6 to
1.3(finally :)). Sadly, we're running into a small problem which we
don't know
how to get around.
In our 1.2.6 version we had an utility class to set up previous page links
based on the PageMap. It went something like this:

   public static PreviousPageLink getInstance(String markupId) {
   PageMap pageMap = (PageMap) Session.get().getDefaultPageMap();
   int size = pageMap.getAccessStack().size();
   if(size > 0) {
   PageMap.Access access = (PageMap.Access) pageMap.getAccessStack
().get(size-1);
   Page previousPage = pageMap.getEntry(access.getId()).getPage();
   ...
   }

But in 1.3 the AccessStack isn't available in PageMap, only in
AccessStackPageMap. But the PageMap used in our application is the
SecondLevelCachePageMap which doesn't have any means to access the list of
PageMapEntries.

Any ideas on how to work arround this? We've tried to use the numeric id
from the page, but that seems to be zero every time.

Thanks in advance,
Ivo and Rommert

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to remove a Behaviour?

2007-05-04 Thread Ivo van Dongen

Great, thanks!

Ivo

On 5/4/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


See https://issues.apache.org/jira/browse/WICKET-529

Fine by me too.

Eelco

On 5/3/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> fine by me
>
> -igor
>
>
>
> On 5/3/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > i think we should be thinking of a remove(IBehavior)
> > It is pretty in line with the rest (think about Swing listeners)
> > And it doesn't sit in the way as far as i can think of.
> >
> > johan
> >
> >
> >
> > On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > > you cannot remove a behavior currently. what you can do is call
stop()
> on the timerbehavior.
> > >
> > > -igor
> > >
> > >
> > >
> > >
> > > On 5/2/07, Ivo van Dongen < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > We have a component with an AjaxSelfUpdatingTimerBehavior attached
to
> it. When a certain condition is reached we want to remove the behaviour
from
> its parent before updating it again, to prefent it from going on
forever. We
> couldn't find a way for this. Component has a remove() method, but
> IBehaviour does not. What is the preferred way to do this?
> > > >
> > > > Thanks in advance,
> > > > Ivo van Dongen
> > > >
> > > > --
> > > > Ivo van Dongen
> > > > Func. Internet Integration
> > > > W http://www.func.nl
> > > > T +31 20 423
> > > > F +31 20 4223500
> > > >
>
-
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > >
>
-
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> >
>
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to remove a Behaviour?

2007-05-02 Thread Ivo van Dongen

Hi,

Sorry to bother you again, but I can't find that method in the api. I've
should have mentioned I'm using 1.2.6, maybe this is trunk only?

Thanks,
Ivo

On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


you cannot remove a behavior currently. what you can do is call stop() on
the timerbehavior.

-igor


On 5/2/07, Ivo van Dongen < [EMAIL PROTECTED]> wrote:

> Hi,
>
> We have a component with an AjaxSelfUpdatingTimerBehavior attached to
> it. When a certain condition is reached we want to remove the behaviour from
> its parent before updating it again, to prefent it from going on forever. We
> couldn't find a way for this. Component has a remove() method, but
> IBehaviour does not. What is the preferred way to do this?
>
> Thanks in advance,
> Ivo van Dongen
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to remove a Behaviour?

2007-05-02 Thread Ivo van Dongen

Hi,

We have a component with an AjaxSelfUpdatingTimerBehavior attached to it.
When a certain condition is reached we want to remove the behaviour from its
parent before updating it again, to prefent it from going on forever. We
couldn't find a way for this. Component has a remove() method, but
IBehaviour does not. What is the preferred way to do this?

Thanks in advance,
Ivo van Dongen

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate/Spring and Wicket architecture "request for validation" (was Wicket's questions)

2007-03-23 Thread Ivo van Dongen

My favorite way is to use the domain objects directly, but let updates
(to the database) always go through services/ daos and *not* have
transactions per request. I'll still use value objects every now and
then because sometimes it's just easier to work with a 'flat' object
that is focussed on a particular case.




A small question in between. How do you actually control the sessions and
especially reattaching the domain objects to the session without breaking
the application layers (eg reattaching in the view layer)? I've tried using
a writable OpenSessionInViewFilter (Spring) but that ends in a lot of
LazyInitializationException stuff. I'n now using an Aspect that catches this
and reattaches the object, but this can cause a lot of nasty exception
logging :)

tnx


Eelco


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] using a map in a model

2007-02-28 Thread Ivo van Dongen

Thanks, I'll try that this afternoon.

Ivo

On 2/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


this should work i think:

Map map = new HashMap();
// fill map
map.put("name", "Ivo");

Form form = new Form("form", new CompoundModel(map));

form.add(new TextField("name"));

johan



On 2/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:

> Hi,
>
> We have a domain object that contains (among others) a map with
> key-value pairs. I want to use entries in this map in a Form with separate
> input fields for each entry (some may not already exist in the map). What
> would be the way to do this? Can I use a CompoundModel for this somehow?
>
> Thanks in advance,
> Ivo
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Ivo van Dongen

Hi,

Using a table in a link is probably not standards compliant. I don't know if
that is the problem here, but this kind of thing can cause a lot of problems
with javascript.

See http://htmlhelp.com/reference/html40/special/a.html for the element
specs.

Ivo

On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:


 Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor
tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1:
  <
td>increment  ( ajax-only link )
it will stop working.

Does anyone has any idea why ???

Regards
Dipu






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] using a map in a model

2007-02-28 Thread Ivo van Dongen

Hi,

We have a domain object that contains (among others) a map with key-value
pairs. I want to use entries in this map in a Form with separate input
fields for each entry (some may not already exist in the map). What would be
the way to do this? Can I use a CompoundModel for this somehow?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Done: WICKET-334 <https://issues.apache.org/jira/browse/WICKET-334>. Thanks!

On 2/27/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


no special need. i thought i already changed it to a div a while
back...but i guess not. please create a jira issue.

-igor


On 2/27/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
>
> Thanks, I'll Try that. I was just wondering if there was some special
> need for that span or that it just as well could be a div. If so, perhaps
> it's wise to do so to make it as easy as possible to remain standards
> compliant.
>
> On 2/27/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> >
> > I think you can just extends AjaxTabbedPanel and provide your own
> > markup if you want.  It is what I have done with lot of wicket component...
> > Not done it for now on AjaxTabPanel, but it can be done.
> >
> >  On 2/27/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > We ran into a little problem with the (Ajax)TabbedPanel. The markup
> > > is defined as:
> > >
> > > **
> > > * > >
> > >
> > > **"tab-row"**>*
> > > **
> > >  * > >
> > >
> > > "tabs"**>*
> > >  * > >
> > > "link"**>** > >
> > > >*[[tab title]]
> > >
> > > 
> > >  **
> > > *
> > >
> > > *
> > > *
> > >
> > > *
> > > * > > **"tab-panel"
> > >
> > > **>*[panel]**
> > > *
> > > *
> > >
> > >
> > >
> > > This leads us ito problems because a span tag is an inline element
> > > and shouldn't contain any block level elements. Our designer is having
> > > difficulties creating a consistent layout with it and we would like to be 
as
> > > accesible as possible. Is there a reason why the panels are using a span?
> > >
> > > Can I override the markup somehow (bij extending)? Perhaps this can
> > > be changed to a div ?
> > >
> > > Thanks in advance,
> > > Ivo
> > >
> > > --
> > > Ivo van Dongen
> > > Func. Internet Integration
> > > W http://www.func.nl
> > > T +31 20 423
> > > F +31 20 4223500
> > >
> > > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Thanks, I'll Try that. I was just wondering if there was some special need
for that span or that it just as well could be a div. If so, perhaps it's
wise to do so to make it as easy as possible to remain standards compliant.

On 2/27/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


I think you can just extends AjaxTabbedPanel and provide your own markup
if you want.  It is what I have done with lot of wicket component...  Not
done it for now on AjaxTabPanel, but it can be done.

On 2/27/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:

> Hi,
>
> We ran into a little problem with the (Ajax)TabbedPanel. The markup is
> defined as:
>
> **
> *
> **"tab-row"**>*
> **
>*
> "tabs"**>*
>*
> "link"**>***[[tab title]]
>
> 
>**
> **
> *
>
> *
> *
> **>*[panel]**
> **
>
>
>
> This leads us ito problems because a span tag is an inline element and
> shouldn't contain any block level elements. Our designer is having
> difficulties creating a consistent layout with it and we would like to be as
> accesible as possible. Is there a reason why the panels are using a span?
>
> Can I override the markup somehow (bij extending)? Perhaps this can be
> changed to a div ?
>
> Thanks in advance,
> Ivo
>
> --
> Ivo van Dongen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] xhtml compliant TabbedPanel

2007-02-27 Thread Ivo van Dongen

Hi,

We ran into a little problem with the (Ajax)TabbedPanel. The markup is
defined as:

**
**
**
**
[[tab title]]
**
**
**
**[panel]**
**



This leads us ito problems because a span tag is an inline element and
shouldn't contain any block level elements. Our designer is having
difficulties creating a consistent layout with it and we would like to be as
accesible as possible. Is there a reason why the panels are using a span?

Can I override the markup somehow (bij extending)? Perhaps this can be
changed to a div ?

Thanks in advance,
Ivo

--
Ivo van Dongen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Right-click context menu

2007-02-03 Thread Ivo van Dongen

I'm working on the yui menu. Its working in firefox, but for some strange
reason not in ie. A pop-up appears with the message: Could not complete the
operation due to error 80004004.
As soon as that is fixed I'll post it on the mailing list.

On 2/1/07, Shams Mahmood <[EMAIL PROTECTED]> wrote:


See the following site :

http://www.dhtmlgoodies.com/index.html?whichScript=context_menu
demo : http://www.dhtmlgoodies.com/scripts/context-menu/context-menu.html

I think the html can be easily generated by using a ListView and
Adding Links inisde and handling the onclick of the links.

Hope u find it useful.


Shams

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] in-progress indicator

2007-01-29 Thread Ivo van Dongen

Thanks, I'll try that aswell.

On 1/29/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:


I don't know if it can help, but for us, we added this code in our base
page to make the cursor change when there is an ajax call in progress :

Wicket.Ajax.registerPreCallHandler(function() {
document.getElementById("main").style.cursor='progress'; });
Wicket.Ajax.registerPostCallHandler(function() {
document.getElementById ("main").style.cursor='auto'; });
Wicket.Ajax.registerFailureHandler(function() {
document.getElementById("main").style.cursor='auto'; });


On 1/28/07, Frank Bille <[EMAIL PROTECTED]> wrote:
>
> You are welcome to add it to the wiki :)
>
> Frank
>
> On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> >
> > Thanks, works like a charm! I didn't find a tabbed panel variant that
> > uses the indicating links by the way. I've added it below, perhaps someone
> > finds it usefull.
> >
> > package org.webical.web.components.ajax.tabs ;
> >
> > import java.util.List;
> >
> > import wicket.ajax.AjaxRequestTarget;
> > import wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
> > import wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
> > import wicket.markup.html.WebMarkupContainer ;
> >
> > /**
> >  * Adds indicating behavior to the tabbed panel
> >  * @author ivo
> >  *
> >  */
> > public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {
> > private static final long serialVersionUID = 1L;
> >
> > /**
> >  * @param id the components id
> >  * @param tabs the tabs to show
> >  */
> > public IndicatingAjaxTabbedPanel(String id, List tabs) {
> > super(id, tabs);
> > }
> >
> > /**
> >  * Adds an IndicatingAjaxLink
> >  * @see
> > wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel#newLink(
> > java.lang.String, int)
> >  */
> > @Override
> > protected WebMarkupContainer newLink(String linkId, final int
> > index) {
> >
> > return new IndicatingAjaxLink(linkId) {
> > private static final long serialVersionUID = 1L;
> >
> > /**
> >  * Copied from 
> > wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel 
> >  * @see wicket.ajax.markup.html.AjaxLink#onClick(
> > wicket.ajax.AjaxRequestTarget)
> >  */
> > @Override
> > public void onClick(AjaxRequestTarget target) {
> > setSelectedTab(index);
> >
> > if(target != null) {
> > target.addComponent(IndicatingAjaxTabbedPanel.this
> > );
> > }
> >
> > onAjaxUpdate(target);
> >     }
> >
> > };
> >
> > }
> > }
> >
> > On 1/28/07, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> > >
> > > We have an AjaxIndicatingLink (or something similarly named)
> > > component
> > > that displays an indicator next to the link. I believe it is in the
> > > extensions project. You can take that and use it directly or use it
> > > to
> > > add the desired functionality to your own components.
> > >
> > > Martijn
> > >
> > > On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> > > > I agree, but what I meant to ask is how to go about this? I
> > > thought of using
> > > > an AjaxCallDecorator, but that would mean that it must be added to
> > > each
> > > > component that makes an ajax call. I was wondering if somebody had
> > > an easier
> > > > idea.
> > > >
> > > >
> > > > On 1/28/07, Carfield Yim < [EMAIL PROTECTED]> wrote:
> > > > > I personally think gmail presentation is simple and user
> > > friendly
> > > > >
> > > > > On 1/28/07, Ivo van Dongen < [EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > We're adding some Ajax support to our pages and some of the
> > > components
> > > > can
> > > > > > take a long time to load. To the user it is not clear if
> > > anything is
> > > > > > happening so we want to add a sign that a request is in
> > > progress,
> > > > something
> > > > > 

Re: [Wicket-user] in-progress indicator

2007-01-29 Thread Ivo van Dongen

On 1/28/07, Frank Bille <[EMAIL PROTECTED]> wrote:


You are welcome to add it to the wiki :)



Any place in particular?

Frank


On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
>
> Thanks, works like a charm! I didn't find a tabbed panel variant that
> uses the indicating links by the way. I've added it below, perhaps someone
> finds it usefull.
>
> package org.webical.web.components.ajax.tabs ;
>
> import java.util.List;
>
> import wicket.ajax.AjaxRequestTarget;
> import wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
> import wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
> import wicket.markup.html.WebMarkupContainer ;
>
> /**
>  * Adds indicating behavior to the tabbed panel
>  * @author ivo
>  *
>  */
> public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {
> private static final long serialVersionUID = 1L;
>
> /**
>  * @param id the components id
>  * @param tabs the tabs to show
>  */
> public IndicatingAjaxTabbedPanel(String id, List tabs) {
> super(id, tabs);
> }
>
> /**
>  * Adds an IndicatingAjaxLink
>  * @see
> wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel#newLink(
> java.lang.String, int)
>  */
> @Override
> protected WebMarkupContainer newLink(String linkId, final int index)
> {
>
> return new IndicatingAjaxLink(linkId) {
> private static final long serialVersionUID = 1L;
>
> /**
>  * Copied from 
> wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel 
>  * @see wicket.ajax.markup.html.AjaxLink#onClick(
> wicket.ajax.AjaxRequestTarget)
>  */
> @Override
> public void onClick(AjaxRequestTarget target) {
> setSelectedTab(index);
>
> if(target != null) {
> target.addComponent(IndicatingAjaxTabbedPanel.this);
> }
>
> onAjaxUpdate(target);
> }
>
> };
>
> }
> }
>
> On 1/28/07, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> >
> > We have an AjaxIndicatingLink (or something similarly named) component
> >
> > that displays an indicator next to the link. I believe it is in the
> > extensions project. You can take that and use it directly or use it to
> > add the desired functionality to your own components.
> >
> > Martijn
> >
> > On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> > > I agree, but what I meant to ask is how to go about this? I thought
> > of using
> > > an AjaxCallDecorator, but that would mean that it must be added to
> > each
> > > component that makes an ajax call. I was wondering if somebody had
> > an easier
> > > idea.
> > >
> > >
> > > On 1/28/07, Carfield Yim < [EMAIL PROTECTED]> wrote:
> > > > I personally think gmail presentation is simple and user friendly
> > > >
> > > > On 1/28/07, Ivo van Dongen < [EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > We're adding some Ajax support to our pages and some of the
> > components
> > > can
> > > > > take a long time to load. To the user it is not clear if
> > anything is
> > > > > happening so we want to add a sign that a request is in
> > progress,
> > > something
> > > > > like an animated gif. This should pop-up on each XMLhttpRequest
> > and
> > > > > disappear when the call is completed. What would be a good way
> > to
> > > accomplish
> > > > > this?
> > > > >
> > > > > Thanks in advance,
> > > > > Ivo van Dongen
> > > > >
> > > > >
> > >
> > -
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance
> > to share
> > > your
> > > > > opinions on IT & business topics through brief surveys - and
> > earn cash
> > > > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > > > >
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > > https://lists.sourcefo

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen

Thanks, works like a charm! I didn't find a tabbed panel variant that uses
the indicating links by the way. I've added it below, perhaps someone finds
it usefull.

package org.webical.web.components.ajax.tabs;

import java.util.List;

import wicket.ajax.AjaxRequestTarget;
import wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
import wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
import wicket.markup.html.WebMarkupContainer;

/**
* Adds indicating behavior to the tabbed panel
* @author ivo
*
*/
public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {
   private static final long serialVersionUID = 1L;

   /**
* @param id the components id
* @param tabs the tabs to show
*/
   public IndicatingAjaxTabbedPanel(String id, List tabs) {
   super(id, tabs);
   }

   /**
* Adds an IndicatingAjaxLink
* @see wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel#newLink(
java.lang.String, int)
*/
   @Override
   protected WebMarkupContainer newLink(String linkId, final int index) {

   return new IndicatingAjaxLink(linkId) {
   private static final long serialVersionUID = 1L;

   /**
* Copied from 
wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel
* @see wicket.ajax.markup.html.AjaxLink#onClick(
wicket.ajax.AjaxRequestTarget)
*/
   @Override
   public void onClick(AjaxRequestTarget target) {
   setSelectedTab(index);

   if(target != null) {
   target.addComponent(IndicatingAjaxTabbedPanel.this);
   }

   onAjaxUpdate(target);
   }

   };

   }
}

On 1/28/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


We have an AjaxIndicatingLink (or something similarly named) component
that displays an indicator next to the link. I believe it is in the
extensions project. You can take that and use it directly or use it to
add the desired functionality to your own components.

Martijn

On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> I agree, but what I meant to ask is how to go about this? I thought of
using
> an AjaxCallDecorator, but that would mean that it must be added to each
> component that makes an ajax call. I was wondering if somebody had an
easier
> idea.
>
>
> On 1/28/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > I personally think gmail presentation is simple and user friendly
> >
> > On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > We're adding some Ajax support to our pages and some of the
components
> can
> > > take a long time to load. To the user it is not clear if anything is
> > > happening so we want to add a sign that a request is in progress,
> something
> > > like an animated gif. This should pop-up on each XMLhttpRequest and
> > > disappear when the call is completed. What would be a good way to
> accomplish
> > > this?
> > >
> > > Thanks in advance,
> > > Ivo van Dongen
> > >
> > >
>
-
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys - and earn
cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _

Re: [Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen

I agree, but what I meant to ask is how to go about this? I thought of using
an AjaxCallDecorator, but that would mean that it must be added to each
component that makes an ajax call. I was wondering if somebody had an easier
idea.

On 1/28/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


I personally think gmail presentation is simple and user friendly

On 1/28/07, Ivo van Dongen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We're adding some Ajax support to our pages and some of the components
can
> take a long time to load. To the user it is not clear if anything is
> happening so we want to add a sign that a request is in progress,
something
> like an animated gif. This should pop-up on each XMLhttpRequest and
> disappear when the call is completed. What would be a good way to
accomplish
> this?
>
> Thanks in advance,
> Ivo van Dongen
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] in-progress indicator

2007-01-28 Thread Ivo van Dongen

Hi,

We're adding some Ajax support to our pages and some of the components can
take a long time to load. To the user it is not clear if anything is
happening so we want to add a sign that a request is in progress, something
like an animated gif. This should pop-up on each XMLhttpRequest and
disappear when the call is completed. What would be a good way to accomplish
this?

Thanks in advance,
Ivo van Dongen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.include.Include replace text

2007-01-22 Thread Ivo van Dongen

Hi,

I've used 
PackagedTextTemplatea
couple of times in the past to include some macro like replacements.
You
can use the string from the template in a label and use setEscapeModelStrings()
to let the html be rendered normally. I've used this for javascript in the
past, but I don't see any problems in using it for html includes.
Look at this 
componentand
its
templatefor
an example.

Hope it helps,
Ivo

On 1/22/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:


Hi,
I'm using an Include component to include some 'static' html file. The
problem is that the html file references path that depend on the context
path of the application so I would like to dynamically replace some text
in the html file with the context path. i.e.: link.

What would be the 'wicket' way to do this? I've looked at
VariableInterpolator and that seems like an interesting class to use,
but I don't know how and where. One idea would be to write a
IResponseFilter but if it can be done in an easier way I would prefer
that of course.

Thanks in advance,
Matthijs

--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] simulating javascript events in WicketTester

2006-12-30 Thread Ivo van Dongen

Hi,

I'm trying to write some tests for a page that uses ajax to update itself.
The page initializes in an accessible mode (not dependent on Javascipt) and
when the javascript callback is made the page adds the javascript dependent
components.
To test this I wanted  to check that all  components are added to the page
correctly, but it seems that the callback is never made. How do I fire
javascript events (onload in this case) in the test? I've tried
WicketTester.executeAjaxEvent() but this seems to work only on components
where an AjaxBehaviour is added, in this case I've added an onLoad event on
the page with a AbstractDefaultAjaxBehavior subclass.

Thanks in advance,
Ivo van Dongen
(www.webical.org)
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] java.lang.IllegalStateException: WicketServlet cannot be changed once it is set

2006-12-17 Thread Ivo van Dongen

Hi,

Replying to my own mail. I just found out where the problem lies. I don't
get it though. In the applicationContext.xml I stated the following to allow
for some additional resource paths:

   
   
   
   
Default entry
   
   additionalResources
   TRUE
   
   
  
 

When replaced with the following everything (except for the resource paths)
works fine again:



Shouldn't it be possible to set properties from Spring in the
WebApplication?

Thanks,
Ivo

On 12/16/06, Ivo van Dongen <[EMAIL PROTECTED]> wrote:


Hi,

We are working on an web calendar application, 
webical<http://webical.org/twiki>.
We ran into a problem today while deploying a new demo. When I try to access
the application I get the following exception:

2006-12-16 18:23:29,805 ERROR StandardWrapperValve - Allocate exception
for servlet wicket
java.lang.IllegalStateException: WicketServlet cannot be changed once it
is set
at wicket.protocol.http.WebApplication.setWicketServlet (
WebApplication.java:400)
at wicket.protocol.http.WicketServlet.init(WicketServlet.java:283)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet (
StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:130)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:514)
at org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java :80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

The app runs just fine in eclipse with wtp, but when I create a war with
maven it doesn't work. We are using wicket 1.2.3 with spring 2.0. I've
attached our pom.xml, web.xml and applicationContext.xml. The code is also
accessible in svn<http://webical.svn.sourceforge.net/viewvc/webical/trunk/>
.

Does anybody know what the problem could be? I can't find this problem
anywhere on google..

Thanks in advance,
Ivo van Dongen


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] java.lang.IllegalStateException: WicketServlet cannot be changed once it is set

2006-12-16 Thread Ivo van Dongen

Hi,

We are working on an web calendar application,
webical<http://webical.org/twiki>.
We ran into a problem today while deploying a new demo. When I try to access
the application I get the following exception:

2006-12-16 18:23:29,805 ERROR StandardWrapperValve - Allocate exception for
servlet wicket
java.lang.IllegalStateException: WicketServlet cannot be changed once it is
set
   at wicket.protocol.http.WebApplication.setWicketServlet(
WebApplication.java:400)
   at wicket.protocol.http.WicketServlet.init(WicketServlet.java:283)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1091)
   at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:130)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:514)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:868)
   at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:663)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

The app runs just fine in eclipse with wtp, but when I create a war with
maven it doesn't work. We are using wicket 1.2.3 with spring 2.0. I've
attached our pom.xml, web.xml and applicationContext.xml. The code is also
accessible in svn <http://webical.svn.sourceforge.net/viewvc/webical/trunk/>
.

Does anybody know what the problem could be? I can't find this problem
anywhere on google..

Thanks in advance,
Ivo van Dongen

http://www.springframework.org/dtd/spring-beans.dtd";>


	
	
		
		
			


	additionalResources
	TRUE

   		 
   	
   	
	
	
	
	
	
	
	 	
	 	
	 	/tmp
		
		.zip
		
		
		
	
		 
	
	
	 	
	 	/xsd/plugin.xsd
	
	
	
	 
	
	
	java:comp/env/jdbc/calendarDataBase



	




	org/webical/User.hbm.xml 
	org/webical/Calendar.hbm.xml 
	org/webical/Event.hbm.xml 
org/webical/RecurrenceRule.hbm.xml


		
		


	
org.hibernate.dialect.MySQLDialect
true=1 false=0
true
true
1

  validate
org.hibernate.cache.EhCacheProvider





 





	
	



	



	
	


	
	 
	 
	 	
	 
	 
	 
	 	
	 
	 
	 
	 	
		
	 
	 
	 
	  
	  
	  	
	  		
	  			
	  		
	  	
	  


http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

	webiCal
 	
 	
 	
		wicket
		wicket.protocol.http.WicketServlet

applicationFactoryClassName
wicket.spring.SpringWebApplicationFactory


	environment
	deployment

		1
	
 	
	
		wicket
		/app/*
	
	
	
	 
	
	
  		contextConfigLocation
		/WEB-INF/applicationContext.xml
	

	
		org.springframework.web.context.ContextLoaderListener
	
	
	
	
		sessionFilter
		org.webical.web.util.WriteableOpenSessionInViewFilter
	
	
	
		sessionFilter
		/app/*
	
  
	
	
	
	
		
		FORM
		Webical Calendar Application
		
			/login.jsp
			/fail_login.html
		
	
	
	
		
			SecurityRestriction
			Webical security
			/app/*
			GET
			POST
		
		
			webicaluser
		
	
  
	
		Webical User
		webicaluser
	
	
	
	
		DB Connection
		jdbc/calendarDataBase
		javax.sql.DataSource
	

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
	4.0.0
	org.webical.calendar
	webical
	war
	0.1
	webical
	http://webical.org/twiki
  	
		
			paul
			Paul Maarschalkerweerd
			[EMAIL PROTECTED]
			HU
			http://www.hu.nl
			
Senior Developer
			
		
		
			jochem
			Jochem Kolthof
			[EMAIL PROTE