Re: [Wicket-user] AjaxRequestTarget.addComponent()

2006-12-01 Thread Otan

I need to take advantage of AJAX that's why I can't turn it into a normal
page request.

addComponent(page) doesn't work, but it's a nice feature if it does (I
guess).

On 02/12/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


You only have to add the top-level component; all the children of the
component will be rendered as well. But if you just want to render the
whole page, why not just turn it into a normal request by calling
setResponsePage(...))? I'm not totally sure whether addComponent(page)
would work, you could try that too.

Eelco


On 12/1/06, Otan <[EMAIL PROTECTED]> wrote:
> I'm using Wicket 2.0
>
> AjaxRequestTarget.addComponent() is so much useful to me. But there was
a
> usecase wherein I had to update each of the components contained in my
> wicket page, and I ended up with a numerous call to
> AjaxRequestTarget.addComponent().
>
> Is there a way (an easy way) for me to all at once update the components
in
> the page using AjaxRequestTarget, instead of calling addComponent() for
each
> of those components?
>
-
> 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


Re: [Wicket-user] AjaxRequestTarget.addComponent()

2006-12-01 Thread Dummy Email Address

I need to take advantage of AJAX that's why I can't turn it into a normal
page request.

addComponent(page) doesn't work, but it's a nice feature if it does (I
guess).

On 02/12/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


You only have to add the top-level component; all the children of the
component will be rendered as well. But if you just want to render the
whole page, why not just turn it into a normal request by calling
setResponsePage(...))? I'm not totally sure whether addComponent(page)
would work, you could try that too.

Eelco


On 12/1/06, Otan <[EMAIL PROTECTED]> wrote:
> I'm using Wicket 2.0
>
> AjaxRequestTarget.addComponent() is so much useful to me. But there was
a
> usecase wherein I had to update each of the components contained in my
> wicket page, and I ended up with a numerous call to
> AjaxRequestTarget.addComponent().
>
> Is there a way (an easy way) for me to all at once update the components
in
> the page using AjaxRequestTarget, instead of calling addComponent() for
each
> of those components?
>
-
> 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


Re: [Wicket-user] AjaxRequestTarget.addComponent()

2006-12-01 Thread Eelco Hillenius
You only have to add the top-level component; all the children of the
component will be rendered as well. But if you just want to render the
whole page, why not just turn it into a normal request by calling
setResponsePage(...))? I'm not totally sure whether addComponent(page)
would work, you could try that too.

Eelco


On 12/1/06, Otan <[EMAIL PROTECTED]> wrote:
> I'm using Wicket 2.0
>
> AjaxRequestTarget.addComponent() is so much useful to me. But there was a
> usecase wherein I had to update each of the components contained in my
> wicket page, and I ended up with a numerous call to
> AjaxRequestTarget.addComponent().
>
> Is there a way (an easy way) for me to all at once update the components in
> the page using AjaxRequestTarget, instead of calling addComponent() for each
> of those components?
> -
> 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] AjaxRequestTarget.addComponent()

2006-12-01 Thread Otan

I'm using Wicket 2.0

AjaxRequestTarget.addComponent() is so much useful to me. But there was a
usecase wherein I had to update each of the components contained in my
wicket page, and I ended up with a numerous call to
AjaxRequestTarget.addComponent().

Is there a way (an easy way) for me to all at once update the components in
the page using AjaxRequestTarget, instead of calling addComponent() for each
of those components?
-
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] Can I prevent wicket specific URL parameters

2006-12-01 Thread Eelco Hillenius
Yep.

On 12/1/06, craigdd <[EMAIL PROTECTED]> wrote:
>
> I haven't following the whole apache move, is there where we are logging
> issues now?
>
> https://issues.apache.org/jira/browse/WICKET
>
>
>
> Eelco Hillenius wrote:
> >
> > Could you please open up an issue for that then?
> >
> > Thanks,
> >
> > Eelco
> >
> >
> > On 12/1/06, craigdd <[EMAIL PROTECTED]> wrote:
> >>
> >> This is a nice solution, however, I noticed that if you are using this
> >> feature and try to hack the encrypted URL, in other words you type if
> >> "skaldjflskdajflsd" you get an exception that gets thrown back to the
> >> container.  It looks like the exception happens low enough where the
> >> default
> >> or overridden exception strategy does catch it.  It would be nice if this
> >> decrypt exception could be caught and forwards the user to a user
> >> friendly
> >> page stating something like "Unable to process your request".
> >>
> >> -Craig
> >>
> >>
> >>
> >> Dirk Markert wrote:
> >> >
> >> > http://cwiki.apache.org/WICKET/obfuscating-urls.html
> >> >
> >> > Dirk
> >> >
> >> > 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
> >> >>
> >> >> Is there way to not having parameters like "?wicket:interface=:4::" at
> >> >> the
> >> >> URL?
> >> >>
> >> >>
> >> -
> >> >> 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
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> 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
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7646620
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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.s

Re: [Wicket-user] Can I prevent wicket specific URL parameters

2006-12-01 Thread craigdd

I haven't following the whole apache move, is there where we are logging
issues now?

https://issues.apache.org/jira/browse/WICKET



Eelco Hillenius wrote:
> 
> Could you please open up an issue for that then?
> 
> Thanks,
> 
> Eelco
> 
> 
> On 12/1/06, craigdd <[EMAIL PROTECTED]> wrote:
>>
>> This is a nice solution, however, I noticed that if you are using this
>> feature and try to hack the encrypted URL, in other words you type if
>> "skaldjflskdajflsd" you get an exception that gets thrown back to the
>> container.  It looks like the exception happens low enough where the
>> default
>> or overridden exception strategy does catch it.  It would be nice if this
>> decrypt exception could be caught and forwards the user to a user
>> friendly
>> page stating something like "Unable to process your request".
>>
>> -Craig
>>
>>
>>
>> Dirk Markert wrote:
>> >
>> > http://cwiki.apache.org/WICKET/obfuscating-urls.html
>> >
>> > Dirk
>> >
>> > 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
>> >>
>> >> Is there way to not having parameters like "?wicket:interface=:4::" at
>> >> the
>> >> URL?
>> >>
>> >>
>> -
>> >> 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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7646620
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Can I prevent wicket specific URL parameters

2006-12-01 Thread Eelco Hillenius
Could you please open up an issue for that then?

Thanks,

Eelco


On 12/1/06, craigdd <[EMAIL PROTECTED]> wrote:
>
> This is a nice solution, however, I noticed that if you are using this
> feature and try to hack the encrypted URL, in other words you type if
> "skaldjflskdajflsd" you get an exception that gets thrown back to the
> container.  It looks like the exception happens low enough where the default
> or overridden exception strategy does catch it.  It would be nice if this
> decrypt exception could be caught and forwards the user to a user friendly
> page stating something like "Unable to process your request".
>
> -Craig
>
>
>
> Dirk Markert wrote:
> >
> > http://cwiki.apache.org/WICKET/obfuscating-urls.html
> >
> > Dirk
> >
> > 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
> >>
> >> Is there way to not having parameters like "?wicket:interface=:4::" at
> >> the
> >> URL?
> >>
> >> -
> >> 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
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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


Re: [Wicket-user] Forum congratulations...

2006-12-01 Thread Erik van Oosten
I do not agree.
I think we (the Wicket users and Wicket website master) should spend 
more time on making the existing FAQs more easily accessible.

:)
 Erik.

Nick Heudecker wrote:
> However, the same or similar questions are asked frequently.  We (the 
> Wicket users) should spend more time putting together FAQs. 
>
> On 12/1/06, *Pierre-Yves Saumont * <[EMAIL PROTECTED] 
> > wrote:
>
> I feel the only reason why there are so many questions asked on
> this list is because we can get so many and relevant answers.
> Nothing to do with lack of documentation or Wicket being too
> difficult to use.
>
> Pierre-Yves
>

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


-
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] Can I prevent wicket specific URL parameters

2006-12-01 Thread craigdd

This is a nice solution, however, I noticed that if you are using this
feature and try to hack the encrypted URL, in other words you type if
"skaldjflskdajflsd" you get an exception that gets thrown back to the
container.  It looks like the exception happens low enough where the default
or overridden exception strategy does catch it.  It would be nice if this
decrypt exception could be caught and forwards the user to a user friendly
page stating something like "Unable to process your request".

-Craig



Dirk Markert wrote:
> 
> http://cwiki.apache.org/WICKET/obfuscating-urls.html
> 
> Dirk
> 
> 2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:
>>
>> Is there way to not having parameters like "?wicket:interface=:4::" at
>> the
>> URL?
>>
>> -
>> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-prevent-wicket-specific-URL-parameters-tf2737189.html#a7639151
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] Problem disabling PageMaps (Erik van Oosten)

2006-12-01 Thread Martijn Dashorst
On 12/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> your models shouldnt keep a reference to that object, they should know how
> to retrieve it and do so when getobject() is called.

i.e. in your case:

class MyFinanModel extends Model {
public Object getObject(Component component) {
return FinanSession.get().getMyFinanObject();
}
public void setObject(Object object, Component component) {
return FinanSession.get().setMyFinanObject(object);
}
}

Martijn

-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
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] Problem disabling PageMaps (Erik van Oosten)

2006-12-01 Thread Igor Vaynberg

your models shouldnt keep a reference to that object, they should know how
to retrieve it and do so when getobject() is called.

-igor


On 12/1/06, A. Zwaan <[EMAIL PROTECTED]> wrote:


 Hello Erik,



I'm using wicket 1.2.



The pages themselves get the data from an object in the session every time
it's needed. There are quite a few panels though that use models which in
turn do have a reference to the object in the session. But I don't see a
possibility of changing that somehow, the models need access to the object
in several methods, and I can't use parameters to give it to the method
directly. So I hope that's not where the problem is.



Regards,



Arjan Zwaan.









Date: Thu, 30 Nov 2006 15:05:30 +0100

From: Erik van Oosten <[EMAIL PROTECTED]>

Subject: Re: [Wicket-user] Problem disabling PageMaps (Erik van

  Oosten)

To: wicket-user@lists.sourceforge.net

Message-ID: <[EMAIL PROTECTED]>

Content-Type: text/plain; charset=UTF-8; format=flowed



Hi Arjan,



What Wicket version are you using?



In addition, you can try to identify components that keep references to
objects outside the page structure. In wicket 2 this will all be serialized
so you need to keep your components lean. If you use clustering this is also
important in wicket 1.



  Erik.

-
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


Re: [Wicket-user] Forum congratulations...

2006-12-01 Thread Nathan Green
I wouldn't say it's hard to use, but documentation can definitely
improve.  Right now I learn most everything I need to know by looking
at example code, which isn't bad, but maybe it could be better.
Regardless, Wicket became my favorite framework in about a 24-hour
period, and I think it has a very bright future.  With most frameworks
I see limitations, with Wicket I see possibilities.  There's your
platitude for the day :)


On 11/30/06, Francis Amanfo <[EMAIL PROTECTED]> wrote:
> And do we interpret this as good news or bad news. To play the devils
> advocate here, this might also be interpreted as a framework with bad
> documentation and hard to use. So people often have o consult the mailing
> list to pose questions. What do you think?
>
>
>
>
> On 11/30/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > Congratulations, this mailing list is the most active java web framework
> > forum on Nabble!
> >
> http://day-to-day-stuff.blogspot.com/2006/11/wicket-most-active-java-web-framework.html
> >
> >
> >
> >
> -
> > 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
> >
>
>
>
> --
> Beware of bugs in the above code;
> I have only proved it correct, not tried it.
> -Donald Knuth
> -
> 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


Re: [Wicket-user] Forum congratulations...

2006-12-01 Thread Nick Heudecker

However, the same or similar questions are asked frequently.  We (the Wicket
users) should spend more time putting together FAQs.

On 12/1/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:


 I feel the only reason why there are so many questions asked on this list
is because we can get so many and relevant answers. Nothing to do with lack
of documentation or Wicket being too difficult to use.

Pierre-Yves

Erik van Oosten a écrit :

Considering that Wicket's documentation is ok (actually quite good
compared to many other products), I would like to interpreted it as good
news :)


Francis Amanfo schreef:

 And do we interpret this as good news or bad news. To play the devils
advocate here, this might also be interpreted as a framework with bad
documentation and hard to use. So people often have o consult the
mailing list to pose questions. What do you think?


On 11/30/06, *Erik van Oosten* <[EMAIL PROTECTED]
 <[EMAIL PROTECTED]>> wrote:

Congratulations, this mailing list is the most active java web
framework
forum on Nabble!

http://day-to-day-stuff.blogspot.com/2006/11/wicket-most-active-java-web-framework.html


 




-
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


Re: [Wicket-user] Problem disabling PageMaps

2006-12-01 Thread A. Zwaan
Hello Erik, Johan and karthik,

 

Upgrading from Wicket 1.2 to 1.2.3 seems to have solved the problem. I
do think I still have a bit of optimizing to do, but at least I'm not
running into the OutOfMemoryError anymore.

 

Thanks for your help and time.

 

Greetings,

 

Arjan Zwaan.

 

 

-
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 : addcomponent strange problem

2006-12-01 Thread Matej Knopp
Hi,

Can you create a bug report and attach a quickstart project that 
demonstrates this problem?

Thanks,
-Matej

Vincent Renaville wrote:
> Dear,
> 
> The problem is still there , this is a bug or it's a problem of
> Firefox,etc...
> 
> On Thu, 2006-11-30 at 17:47 +0100, Vincent Renaville wrote:
>> Dear,
>>
>> I use Ajax to assign data to Textfield dynamically when a user select a
>> value into a dropdownchoice :
>>
>> firstname = new TextField("firstname",new PropertyModel
>> (obj,"firstname")); 
>> add(firstname);
>> firstname.setOutputMarkupId(true);
>> 
>> extention = new TextField("extention",new PropertyModel
>> (obj,"extention"));
>> add(extention);
>> extention.setOutputMarkupId(true);
>>   
>>  
>>name = new DropDownChoice ("name",new PropertyModel
>> (obj,"name"),db.getAllSIPUsers())
>> {
>>  protected boolean wantOnSelectionChangedNotifications()
>>  {
>>  return false;
>>  }   
>>  public void onSelectionChanged(Object newSelection) {
>>  
>>  }
>> };
>>add(name);
>>name.setOutputMarkupId(true);
>>name.add(new AjaxFormComponentUpdatingBehavior("onchange") {
>>   protected void onUpdate(AjaxRequestTarget target)
>>{
>>
>>  obj.setFirstname((String)data[3]);
>>  obj.setExtention((String)data[4]);
>>  firstname.modelChanged();
>>  extention.modelChanged();
>>  target.addComponent(firstname);
>>  target.addComponent(extention);
>>   }
>>
>> the problem is the page do not update the firstname et extention
>> Textfield,
>> BUT if I remove target.addComponent(extention); the firstname Textfield
>> update correctly.
>>
>> somebody have a solution to this strange problem (for me only perhaps)
>>
>> Vincent
>>
>>
>> -
>> 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


Re: [Wicket-user] Ajax : addcomponent strange problem

2006-12-01 Thread Vincent Renaville
Dear,

The problem is still there , this is a bug or it's a problem of
Firefox,etc...

On Thu, 2006-11-30 at 17:47 +0100, Vincent Renaville wrote:
> Dear,
> 
> I use Ajax to assign data to Textfield dynamically when a user select a
> value into a dropdownchoice :
> 
> firstname = new TextField("firstname",new PropertyModel
> (obj,"firstname")); 
> add(firstname);
> firstname.setOutputMarkupId(true);
> 
> extention = new TextField("extention",new PropertyModel
> (obj,"extention"));
> add(extention);
> extention.setOutputMarkupId(true);
>   
>  
>name = new DropDownChoice ("name",new PropertyModel
> (obj,"name"),db.getAllSIPUsers())
> {
>   protected boolean wantOnSelectionChangedNotifications()
>   {
>   return false;
>   }   
>   public void onSelectionChanged(Object newSelection) {
>   
>   }
> };
>add(name);
>name.setOutputMarkupId(true);
>name.add(new AjaxFormComponentUpdatingBehavior("onchange") {
>   protected void onUpdate(AjaxRequestTarget target)
> {
> 
>   obj.setFirstname((String)data[3]);
>   obj.setExtention((String)data[4]);
>   firstname.modelChanged();
>   extention.modelChanged();
>   target.addComponent(firstname);
>   target.addComponent(extention);
>   }
> 
> the problem is the page do not update the firstname et extention
> Textfield,
> BUT if I remove target.addComponent(extention); the firstname Textfield
> update correctly.
> 
> somebody have a solution to this strange problem (for me only perhaps)
> 
> Vincent
> 
> 
> -
> 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


Re: [Wicket-user] Palette add selected option

2006-12-01 Thread Vincent Renaville
Hi Nino,

Thanks for your reply, I m still don't find a solution, can you provide
me the full component, to see if it correspond to my need :)
Thanks for your help (I m a neebies in Wicket) :)



On Fri, 2006-12-01 at 14:08 +0100, Nino Wael wrote:
> Hi Vincent
> 
> This is an replacement for the recorder component that are used in the wicket 
> extensions. This recorder in order with a minor update of the palette(you 
> need to call the recreate function in the palette onmodelchanged function).
> 
> I'll be glad to put our full component up somewhere, but I need to say all 
> texts are in Danish...
> 
> 
> Regards Nino
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent 
> Renaville
> Sent: 30. november 2006 15:38
> To: Wicket List
> Subject: Re: [Wicket-user] Palette add selected option
> 
> Dear,
> 
> Thanks for the respond but somebody have Already deploy the solution.
> I m a newbies with Wicket, so i you have a example , it will be nice :)
> 
> 
> Vincent
> 
> On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
> > I think I have something somewhere...
> > 
> > As I remember you need to update the recorder component...
> > 
> > Below is only meant as a sniplet(notice the recreate model, which now are 
> > called from the palette onchange function)..
> > 
> > 
> > 
> > package com.sas.jobindsats.ui.palette.component;
> > 
> > import java.util.ArrayList;
> > import java.util.Collection;
> > import java.util.Collections;
> > import java.util.Iterator;
> > import java.util.List;
> > 
> > import wicket.Component;
> > import wicket.markup.html.form.HiddenField;
> > import wicket.markup.html.form.IChoiceRenderer;
> > import wicket.model.AbstractModel;
> > import wicket.util.string.Strings;
> > 
> > import com.sas.jobindsats.ui.palette.Palette;
> > 
> > /**
> >  * Component to keep track of selections on the html side. Also used for
> >  * encoding and decoding those selections between html and java.
> >  * 
> >  * @author Igor Vaynberg ( ivaynberg )
> >  */
> > public class Recorder extends HiddenField {
> > private static final long serialVersionUID = 1L;
> > 
> > private static final String[] EMPTY_IDS = new String[0];
> > 
> > private final String seperator = "#";
> > 
> > /** conviniently maintained array of selected ids */
> > private String[] ids;
> > 
> > /** parent palette object */
> > private Palette palette;
> > 
> > /**
> >  * @return parent Palette object
> >  */
> > public Palette getPalette() {
> > return palette;
> > }
> > 
> > /**
> >  * @param id
> >  *component id
> >  * @param palette
> >  *parent palette object
> >  */
> > public Recorder(String id, Palette palette) {
> > super(id);
> > this.palette = palette;
> > 
> > // BELOW ENSURES THAT IDS ARE NOT NULL
> > reCreateModel();
> > AbstractModel model = new AbstractModel() {
> > 
> > public Object getObject(Component component) {
> > StringBuffer modelStringBuffer = new 
> > StringBuffer();
> > 
> > for (int i = 0; ids.length > i; i++) {
> > modelStringBuffer.append(ids[i]);
> > if (i + 1 < ids.length) {
> > 
> > modelStringBuffer.append(seperator);
> > }
> > }
> > 
> > // set model and update ids array
> > 
> > String modelString = 
> > modelStringBuffer.toString();
> > 
> > return modelString;
> > 
> > }
> > 
> > public void setObject(Component component, Object 
> > object) {
> > updateIds((String) object);
> > };
> > };
> > setModel(model);
> > }
> > 
> > protected void onValid() {
> > super.onValid();
> > updateIds();
> > }
> > 
> > /**
> >  * @return iterator over selected choices
> >  */
> > public Iterator getSelectedChoices() {
> > IChoiceRenderer renderer = getPalette().getChoiceRenderer();
> > 
> > if (ids.length == 0) {
> > return Collections.EMPTY_LIST.iterator();
> > }
> > 
> > List selected = new ArrayList(ids.length);
> > for (int i = 0; i < ids.length; i++) {
> > Iterator it = getPalette().getChoices().iterator();
> > while (it.hasNext()) {
> > final Object choice = it.next();
> > if (renderer.getIdValue(choice, 
> > 0).equals(ids[i])) {
> > selected.add(choice);
> > 

Re: [Wicket-user] Palette add selected option

2006-12-01 Thread Nino Wael
I'd like to see the alternative solution you mention if possible?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 1. december 2006 14:08
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Palette add selected option

Hi Vincent

This is an replacement for the recorder component that are used in the wicket 
extensions. This recorder in order with a minor update of the palette(you need 
to call the recreate function in the palette onmodelchanged function).

I'll be glad to put our full component up somewhere, but I need to say all 
texts are in Danish...


Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 30. november 2006 15:38
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Dear,

Thanks for the respond but somebody have Already deploy the solution.
I m a newbies with Wicket, so i you have a example , it will be nice :)


Vincent

On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
> I think I have something somewhere...
> 
> As I remember you need to update the recorder component...
> 
> Below is only meant as a sniplet(notice the recreate model, which now are 
> called from the palette onchange function)..
> 
> 
> 
> package com.sas.jobindsats.ui.palette.component;
> 
> import java.util.ArrayList;
> import java.util.Collection;
> import java.util.Collections;
> import java.util.Iterator;
> import java.util.List;
> 
> import wicket.Component;
> import wicket.markup.html.form.HiddenField;
> import wicket.markup.html.form.IChoiceRenderer;
> import wicket.model.AbstractModel;
> import wicket.util.string.Strings;
> 
> import com.sas.jobindsats.ui.palette.Palette;
> 
> /**
>  * Component to keep track of selections on the html side. Also used for
>  * encoding and decoding those selections between html and java.
>  * 
>  * @author Igor Vaynberg ( ivaynberg )
>  */
> public class Recorder extends HiddenField {
>   private static final long serialVersionUID = 1L;
> 
>   private static final String[] EMPTY_IDS = new String[0];
> 
>   private final String seperator = "#";
> 
>   /** conviniently maintained array of selected ids */
>   private String[] ids;
> 
>   /** parent palette object */
>   private Palette palette;
> 
>   /**
>* @return parent Palette object
>*/
>   public Palette getPalette() {
>   return palette;
>   }
> 
>   /**
>* @param id
>*component id
>* @param palette
>*parent palette object
>*/
>   public Recorder(String id, Palette palette) {
>   super(id);
>   this.palette = palette;
> 
>   // BELOW ENSURES THAT IDS ARE NOT NULL
>   reCreateModel();
>   AbstractModel model = new AbstractModel() {
> 
>   public Object getObject(Component component) {
>   StringBuffer modelStringBuffer = new 
> StringBuffer();
> 
>   for (int i = 0; ids.length > i; i++) {
>   modelStringBuffer.append(ids[i]);
>   if (i + 1 < ids.length) {
>   
> modelStringBuffer.append(seperator);
>   }
>   }
> 
>   // set model and update ids array
> 
>   String modelString = 
> modelStringBuffer.toString();
> 
>   return modelString;
> 
>   }
> 
>   public void setObject(Component component, Object 
> object) {
>   updateIds((String) object);
>   };
>   };
>   setModel(model);
>   }
> 
>   protected void onValid() {
>   super.onValid();
>   updateIds();
>   }
> 
>   /**
>* @return iterator over selected choices
>*/
>   public Iterator getSelectedChoices() {
>   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
> 
>   if (ids.length == 0) {
>   return Collections.EMPTY_LIST.iterator();
>   }
> 
>   List selected = new ArrayList(ids.length);
>   for (int i = 0; i < ids.length; i++) {
>   Iterator it = getPalette().getChoices().iterator();
>   while (it.hasNext()) {
>   final Object choice = it.next();
>   if (renderer.getIdValue(choice, 
> 0).equals(ids[i])) {
>   selected.add(choice);
>   break;
>   }
>   }
>   }
>   return selected.it

Re: [Wicket-user] Palette add selected option

2006-12-01 Thread Nino Wael
Hi Vincent

This is an replacement for the recorder component that are used in the wicket 
extensions. This recorder in order with a minor update of the palette(you need 
to call the recreate function in the palette onmodelchanged function).

I'll be glad to put our full component up somewhere, but I need to say all 
texts are in Danish...


Regards Nino


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Renaville
Sent: 30. november 2006 15:38
To: Wicket List
Subject: Re: [Wicket-user] Palette add selected option

Dear,

Thanks for the respond but somebody have Already deploy the solution.
I m a newbies with Wicket, so i you have a example , it will be nice :)


Vincent

On Thu, 2006-11-30 at 14:15 +0100, Nino Wael wrote:
> I think I have something somewhere...
> 
> As I remember you need to update the recorder component...
> 
> Below is only meant as a sniplet(notice the recreate model, which now are 
> called from the palette onchange function)..
> 
> 
> 
> package com.sas.jobindsats.ui.palette.component;
> 
> import java.util.ArrayList;
> import java.util.Collection;
> import java.util.Collections;
> import java.util.Iterator;
> import java.util.List;
> 
> import wicket.Component;
> import wicket.markup.html.form.HiddenField;
> import wicket.markup.html.form.IChoiceRenderer;
> import wicket.model.AbstractModel;
> import wicket.util.string.Strings;
> 
> import com.sas.jobindsats.ui.palette.Palette;
> 
> /**
>  * Component to keep track of selections on the html side. Also used for
>  * encoding and decoding those selections between html and java.
>  * 
>  * @author Igor Vaynberg ( ivaynberg )
>  */
> public class Recorder extends HiddenField {
>   private static final long serialVersionUID = 1L;
> 
>   private static final String[] EMPTY_IDS = new String[0];
> 
>   private final String seperator = "#";
> 
>   /** conviniently maintained array of selected ids */
>   private String[] ids;
> 
>   /** parent palette object */
>   private Palette palette;
> 
>   /**
>* @return parent Palette object
>*/
>   public Palette getPalette() {
>   return palette;
>   }
> 
>   /**
>* @param id
>*component id
>* @param palette
>*parent palette object
>*/
>   public Recorder(String id, Palette palette) {
>   super(id);
>   this.palette = palette;
> 
>   // BELOW ENSURES THAT IDS ARE NOT NULL
>   reCreateModel();
>   AbstractModel model = new AbstractModel() {
> 
>   public Object getObject(Component component) {
>   StringBuffer modelStringBuffer = new 
> StringBuffer();
> 
>   for (int i = 0; ids.length > i; i++) {
>   modelStringBuffer.append(ids[i]);
>   if (i + 1 < ids.length) {
>   
> modelStringBuffer.append(seperator);
>   }
>   }
> 
>   // set model and update ids array
> 
>   String modelString = 
> modelStringBuffer.toString();
> 
>   return modelString;
> 
>   }
> 
>   public void setObject(Component component, Object 
> object) {
>   updateIds((String) object);
>   };
>   };
>   setModel(model);
>   }
> 
>   protected void onValid() {
>   super.onValid();
>   updateIds();
>   }
> 
>   /**
>* @return iterator over selected choices
>*/
>   public Iterator getSelectedChoices() {
>   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
> 
>   if (ids.length == 0) {
>   return Collections.EMPTY_LIST.iterator();
>   }
> 
>   List selected = new ArrayList(ids.length);
>   for (int i = 0; i < ids.length; i++) {
>   Iterator it = getPalette().getChoices().iterator();
>   while (it.hasNext()) {
>   final Object choice = it.next();
>   if (renderer.getIdValue(choice, 
> 0).equals(ids[i])) {
>   selected.add(choice);
>   break;
>   }
>   }
>   }
>   return selected.iterator();
>   }
> 
>   /**
>* @return iterator over unselected choices
>*/
>   public Iterator getUnselectedChoices() {
>   IChoiceRenderer renderer = getPalette().getChoiceRenderer();
>   Collection choices = getPalette().getChoices();
>

Re: [Wicket-user] Changing class attribute of a HTML-tag

2006-12-01 Thread Martijn Dashorst
add the attribute modifier to the ITEM instead of the list.

Martijn

On 12/1/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> It is indeed a ListView.
> Which is attached to an UL-tag
>
> Ted
>
>
> 2006/12/1, Erik van Oosten <[EMAIL PROTECTED]>:
> > Hi Ted,
> >
> > I see that the component is called 'list'.
> > If it is a ListView (or similar) you should also read the FAQ entry on
> >
> http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html.
> >
> > Regards,
> > Erik.
> >
> >
> > Ted Roeloffzen wrote:
> > > list.add (new AttributeModifier("class", new Model() {
> > > public Object getObject(final Component component)
> > > {
> > > String cssClass;
> > > if(isHorizontal)
> > > {
> > >  cssClass = "menuItemsHorizontal";
> > > } else {
> > >  cssClass = "menuItemsVertical";
> > > }
> > > return cssClass;
> > > }
> > >}));
> > >
> > > This is almost exactly the same as the example i got from Erik.
> > >
> > > Ted
> >
> > --
> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/
> >
> >
> >
> -
> > 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
>
>
>


-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
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] Changing class attribute of a HTML-tag

2006-12-01 Thread Ted Roeloffzen

It is indeed a ListView.
Which is attached to an UL-tag

Ted


2006/12/1, Erik van Oosten <[EMAIL PROTECTED]>:


Hi Ted,

I see that the component is called 'list'.
If it is a ListView (or similar) you should also read the FAQ entry on
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html.

Regards,
Erik.


Ted Roeloffzen wrote:
> list.add(new AttributeModifier("class", new Model() {
> public Object getObject(final Component component)
> {
> String cssClass;
> if(isHorizontal)
> {
>  cssClass = "menuItemsHorizontal";
> } else {
>  cssClass = "menuItemsVertical";
> }
> return cssClass;
> }
>}));
>
> This is almost exactly the same as the example i got from Erik.
>
> Ted

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


-
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


Re: [Wicket-user] Changing class attribute of a HTML-tag

2006-12-01 Thread Ted Roeloffzen












-
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] Changing class attribute of a HTML-tag

2006-12-01 Thread Erik van Oosten
Hi Ted,

I see that the component is called 'list'.
If it is a ListView (or similar) you should also read the FAQ entry on 
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html.

Regards,
 Erik.


Ted Roeloffzen wrote:
> list.add(new AttributeModifier("class", new Model() {
> public Object getObject(final Component component)
> {  
> String cssClass;
> if(isHorizontal)
> {
>  cssClass = "menuItemsHorizontal";
> } else {
>  cssClass = "menuItemsVertical";
> }
> return cssClass;
> }
>}));
>  
> This is almost exactly the same as the example i got from Erik.
>  
> Ted

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


-
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] Can I prevent wicket specific URL parameters

2006-12-01 Thread Dirk Markert

http://cwiki.apache.org/WICKET/obfuscating-urls.html

Dirk

2006/12/1, Carfield Yim <[EMAIL PROTECTED]>:


Is there way to not having parameters like "?wicket:interface=:4::" at the
URL?

-
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


Re: [Wicket-user] Changing class attribute of a HTML-tag

2006-12-01 Thread Dirk Markert

And your html?

2006/12/1, Ted Roeloffzen <[EMAIL PROTECTED]>:


list.add(new AttributeModifier("class", new Model() {
public Object getObject(final Component component)
{
String cssClass;
if(isHorizontal)
{
 cssClass = "menuItemsHorizontal";
} else {
 cssClass = "menuItemsVertical";
}
return cssClass;
}
   }));

This is almost exactly the same as the example i got from Erik.

Ted

-
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


Re: [Wicket-user] Changing class attribute of a HTML-tag

2006-12-01 Thread Ted Roeloffzen

list.add(new AttributeModifier("class", new Model() {
   public Object getObject(final Component component)
   {
   String cssClass;
   if(isHorizontal)
   {
cssClass = "menuItemsHorizontal";
   } else {
cssClass = "menuItemsVertical";
   }
   return cssClass;
   }
  }));

This is almost exactly the same as the example i got from Erik.

Ted
-
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] Changing class attribute of a HTML-tag

2006-12-01 Thread Dirk Markert

Show us some of your code.

2006/12/1, Ted Roeloffzen <[EMAIL PROTECTED]>:


Hi all,



>
> > An example is described here:
> > http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
> >
> > 

>
>
If have taken a look at the example given above, but it still doesn't
work.
Wicket won't change the value of the class attribute.

Ted




-
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


Re: [Wicket-user] Changing class attribute of a HTML-tag

2006-12-01 Thread Ted Roeloffzen

Hi all,





> An example is described here:
> http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
>



If have taken a look at the example given above, but it still doesn't work.
Wicket won't change the value of the class attribute.

Ted
-
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] Can I prevent wicket specific URL parameters

2006-12-01 Thread Carfield Yim
Is there way to not having parameters like "?wicket:interface=:4::" at the URL?

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

2006-12-01 Thread Johannes Fahrenkrug
I'd also love to see some code and I'd like to offer my help, because 
I'm working on a new Wicket project and was already looking for a Java 
CMS that I could integrate into my project a Wicket CMS would be a 
perfect fit!

- Johannes

Ted Roeloffzen wrote:

> Hi all,
>
> As some of you may know, we're currently working on a Wicket CMS.
> We have begun with implementing the code and very soon we'll put what
> we have so far on wicket-stuff. We still hope that there are some 
> among you
> who are willing to help. If so, don't hesitate to ask.
>
> Ted & Rick
>
>
>
>-
>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


Re: [Wicket-user] Problem disabling PageMaps (Johan Compagner)

2006-12-01 Thread Johan Compagner

i don't know exactly when that property was made a setting now it is:
if (Application.get().getDebugSettings().getSerializeSessionAttributes())

but that is now quite sometime so when it was exactly changed i don't know

upgrade to the latest 1.2 then you can easily set that property.

johan


On 11/30/06, A. Zwaan <[EMAIL PROTECTED]> wrote:


 Hello Johan,



I've checked every mail since I posted my question and I have double
checked now, but I couldn't find your response. I do seem to be missing
issue 236, the one right after my question, though. Looks like I never
received that one somehow.



We have it running in deployment mode, but we're still having the problem.



Profiler says 40% of the String usage is in:

Page.renderPage()

|-> Session.touch()

|-> PageMap.put()

|-> Session.setAttribute()

|->HttpSessionStore.setAttribute()

   |->ObjectOutputStream.writeObject() (which continues with
more ObjectOutputStream stuff)



I use the InspectorPage from the wicket.examples.debug package to show
what pagemaps etc are in the session. This shows multiple pagemaps of which
some hold the same pages as others do.



Regards,



Arjan Zwaan.





Date: Thu, 30 Nov 2006 14:18:09 +0100

From: "Johan Compagner" <[EMAIL PROTECTED]>

Subject: Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan)

To: wicket-user@lists.sourceforge.net

Message-ID:

  <[EMAIL PROTECTED]>

Content-Type: text/plain; charset="iso-8859-1"



did you look at my reply i did earlier??



"PageMaps don't write anything to an outputstream. Do you run your app in
deployment or development mode? (in development the pages are tested for

serialization)



The qeustion is even with the settings you do there. Do you still really
have more then one page in the session as an attribute?

Debug this if possible by example displaying/outputting all names of the
attributes of a session after the request is finished (for example in the
detach of the RequestCycle)"



johan



-
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


Re: [Wicket-user] Problem disabling PageMaps

2006-12-01 Thread Erik van Oosten
Well, as long as the data is in the session and not outside, you should 
be okay.

Still, after you tried Igor's idea (the log4j debug parameter), you may 
want to take a look at the class LoadableDetachableModel. If you are 
interested, I made a small variation on LoadableDetachableModel that 
does not clear the data upon detach.

 Erik.


A. Zwaan schreef:
>
> Hello Erik,
>
>  
>
> I’m using wicket 1.2.
>
>  
>
> The pages themselves get the data from an object in the session every 
> time it’s needed. There are quite a few panels though that use models 
> which in turn do have a reference to the object in the session. But I 
> don’t see a possibility of changing that somehow, the models need 
> access to the object in several methods, and I can’t use parameters to 
> give it to the method directly. So I hope that’s not where the problem is.
>
>  
>
> Regards,
>
>  
>
> Arjan Zwaan.
>

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


-
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] Problem disabling PageMaps (Erik van Oosten)

2006-12-01 Thread A. Zwaan
Hello Erik,

 

I'm using wicket 1.2.

 

The pages themselves get the data from an object in the session every
time it's needed. There are quite a few panels though that use models
which in turn do have a reference to the object in the session. But I
don't see a possibility of changing that somehow, the models need access
to the object in several methods, and I can't use parameters to give it
to the method directly. So I hope that's not where the problem is.

 

Regards,

 

Arjan Zwaan.

 

 

 

 

Date: Thu, 30 Nov 2006 15:05:30 +0100

From: Erik van Oosten <[EMAIL PROTECTED]>

Subject: Re: [Wicket-user] Problem disabling PageMaps (Erik van

  Oosten)

To: wicket-user@lists.sourceforge.net

Message-ID: <[EMAIL PROTECTED]>

Content-Type: text/plain; charset=UTF-8; format=flowed

 

Hi Arjan,

 

What Wicket version are you using?

 

In addition, you can try to identify components that keep references to
objects outside the page structure. In wicket 2 this will all be
serialized so you need to keep your components lean. If you use
clustering this is also important in wicket 1.

 

  Erik.

-
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] Forum congratulations...

2006-12-01 Thread Pierre-Yves Saumont
I feel the only reason why there are so many questions asked on this 
list is because we can get so many and relevant answers. Nothing to do 
with lack of documentation or Wicket being too difficult to use.


Pierre-Yves

Erik van Oosten a écrit :
Considering that Wicket's documentation is ok (actually quite good 
compared to many other products), I would like to interpreted it as good 
news :)



Francis Amanfo schreef:
  
And do we interpret this as good news or bad news. To play the devils 
advocate here, this might also be interpreted as a framework with bad 
documentation and hard to use. So people often have o consult the 
mailing list to pose questions. What do you think?



On 11/30/06, *Erik van Oosten* <[EMAIL PROTECTED] 
> wrote:


Congratulations, this mailing list is the most active java web
framework
forum on Nabble!

http://day-to-day-stuff.blogspot.com/2006/11/wicket-most-active-java-web-framework.html







  
-
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