Re: Tree with invisible Nodes

2010-03-18 Thread MattyDE

Thanks igor for your Contribution.

I did it now with my own "TreeNode"-Type and my own
"AbstractTree"-Implementation:

@Override
protected void populateTreeItem(WebMarkupContainer item, int level) {   

super.populateTreeItem(item, level);

//Is this Node visible or not?
item.add(
new AbstractBehavior() {
@Override
public void onComponentTag(Component component, 
ComponentTag tag) {
TreeNode node = 
(TreeNode)component.getDefaultModelObject();
if(!node.isVisible()){
tag.put("class", ( 
tag.getString("class") + " hidden") );
}
}
}
);
} 


igor.vaynberg wrote:
> 
> filter them in your TreeModel, it should work. you also have to
> override getChildCount() to return a count without filtered children,
> and adjust TreeModel#getIndexOfChild() to skip over the filtered
> children.
> 
> -igor
> 
> On Thu, Mar 18, 2010 at 6:19 AM, Martin U 
> wrote:
>> Hi Folks,
>>
>> i've to implement a tree in which some node are exists under a parent
>> node
>> but they should not be visible to the user in browser at all.
>>
>> I tried to overwrite "getChild" from TreeNode. But it dont works for me.
>> I
>> need this node existens either they are not visible because the tree is
>> my
>> data(model)-holder too for further processing
>>
>>
>> Any Ideas?
>>
>> Thanks a lot.
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tree-with-invisible-Nodes-tp27945428p27950906.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Easies way to set custom HTML

2010-03-18 Thread Sigmar Muuga
Hello,
which is the easiest way to set custom HTML page for a Page or Panel?
For example I have panel called "HelloPanel", conventinally Wicket wants to
pair it with "HelloPanel.html" in the same package, but I want to
use "HelloMyDearFriends.html" with that panel...

Sigmar


AjaxThrottling

2010-03-18 Thread Douglas Ferguson
I have a search box that is submitted via a behavior listening for "onkeyup".

I set the throttle for the behavior and I'm seeing strange behavior.

If I type quickly a bunch of characters, it seems to queue up the requests.
I would expect it to wait for me to stop typing and then only issue the request 
once.

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



RE: Trailing / on parameter name/value pairs

2010-03-18 Thread Chris Colman
> all servlet containers do that on first request. if you dont care
> about browsers with cookies disabled you can tweak tomcat to never
> append jsessionid to the url, afair there is a setting for that.
> 
> -igor

I wish I didn't have to care for browsers with cookies disabled but
there's always some idiot who's preaching to the uninformed that
'cookies are a security risk' which is bollocks if you ask me.

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



JCaptcha sound with Wicket?

2010-03-18 Thread David Chang
Based on the WIA book, I am able to have a working example of JCaptcha image.

I am hoping to get JCaptcha sound working too. I tried different ways, but 
unable to get it working.

Did anyone get JCaptcha sound working with Wicket? Could you please share your 
config and code?

Thanks for any input!

Best.


  

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



Re: Trailing / on parameter name/value pairs

2010-03-18 Thread Igor Vaynberg
On Thu, Mar 18, 2010 at 6:32 PM, Chris Colman
 wrote:
>> that is mostly old seo thinking. some people still prerfer urls like
>>
>> /blog/entry/2007/my_awesome_blog because it is more readable to the
>> client, if they read urls...
>
> Yes, they probably don't read URLs anyway.
>
>> as far as the urls indexed you are right, the links wont be broken.
>> you can create rewrite rules for all your current mounts but that will
>> probably be a pita...
>
> Does this mean the links won't be broken if I simply change the strategy to 
> query string and do nothing else or does it mean the links won't be broken if 
> create rewrite rules for all current mounts?

sorry, i meant they *will* be broken. thus the url rewrite rules...

>> maybe we can patch the existing stuff to strip jsessionid before decoding.
>
> Yes that would be cool. It's only really tomcat that needs to see the 
> jessionid - after that point in the request lifecycle there's no need to keep 
> the jsessionid in the URL.

all servlet containers do that on first request. if you dont care
about browsers with cookies disabled you can tweak tomcat to never
append jsessionid to the url, afair there is a setting for that.

-igor

>
>>
>> as far as the trailing / - that causes its own problems because it
>> throws off relative urls.
>>
>> -igor
>>
>> On Thu, Mar 18, 2010 at 5:32 PM, Chris Colman
>>  wrote:
>> > Ouch! All the pages are indexed under google with the /name1/value1
>> strategy will this mean the google page links will break if we switch to
>> querystringurlcodingstrategy or can wicket handle resolution of both types
>> of strategies when it comes to responding to requests?
>> >
>> > I thought the thinking was that search engines indexed the /name1/value1
>> structure better than the query string ?name1=value1 because they look
>> like directories or is that old SEO thinking?
>> >
>> > Regards,
>> > Chris
>> >
>> >
>> >> -Original Message-
>> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> >> Sent: Friday, 19 March 2010 10:53 AM
>> >> To: users@wicket.apache.org
>> >> Subject: Re: Trailing / on parameter name/value pairs
>> >>
>> >> i suggest always mounting with querystringurlcodingstrategy unless you
>> >> specifically want the folder structure of /name1/value1/name2/value2
>> >> which most of the time you dont. too bad this was made the default, we
>> >> cant change it in 1.4 but are fixing it in 1.5 as it causes all kinds
>> >> of problems.
>> >>
>> >> -igor
>> >>
>> >> On Thu, Mar 18, 2010 at 4:42 PM, Chris Colman
>> >>  wrote:
>> >> > I'm using BookmarkablePageLink extensively as it makes it easy to add
>> >> > parameter name/value pairs. I end up with URLs like:
>> >> >
>> >> > www.mysite.com/p1/v1/p2/v2
>> >> >
>> >> > Which works fine for most cases but I have a number of
>> questions/issues:
>> >> >
>> >> > My logs show exceptions whereby some browsers (or crawlers) without
>> >> > cookies enabled end up requesting URLs with the ;jessionid=... suffix
>> >> > which is used when no cookie support is available.
>> >> >
>> >> > The exception is caused when I try to convert a parameter and the
>> >> > session suffix is included in its value eg.,
>> >> >
>> >> > org.apache.wicket.util.string.StringValueConversionException: Unable
>> to
>> >> > convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
>> >> > value
>> >> >
>> >> > The parameter pair was intended to be:
>> >> >
>> >> > parameter1/4574  i.e. parameter1=4574
>> >> >
>> >> > but with the suffix added by tomcat in the absence of cookies it
>> became:
>> >> >
>> >> > parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >> >
>> >> > i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >> >
>> >> > which isn't a valid integer value and so causes an exception.
>> >> >
>> >> > What can we do about this? Is it possible to force wicket to always
>> add
>> >> > a trailing / because this would help wicket's parameter parser avoid
>> >> > this issue eg.,
>> >> >
>> >> > parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >> >
>> >> > should work fine I'd imagine.
>> >> >
>> >> > Another thing about trailing slashes: apparently a trailing slash can
>> >> > avoid an redirect. Apparently:
>> >> >
>> >> > www.mysite.com/p1/v1 will be redirected to
>> >> > www.mysite.com/p1/v1/
>> >> >
>> >> > If the URL was simply www.mysite.com/p1/v1/ then the redirect is
>> >> > avoided.
>> >> >
>> >> >
>> >> > 7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC
>> >> >
>> >> >> -Original Message-
>> >> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> >> >> Sent: Friday, 19 March 2010 9:56 AM
>> >> >> To: users@wicket.apache.org
>> >> >> Subject: Re: StackOverflowError under serialization leaves pagemap
>> >> > locked
>> >> >>
>> >> >> the fix is in 1.4.x branch and will be part of 1.4.8.
>> >> >>
>> >> >> in the meantime you can build a fresh snapshot yourself and drop
>> that
>> >> >> into your application
>> >> >>
>> >> >> 

RE: Trailing / on parameter name/value pairs

2010-03-18 Thread Chris Colman
> that is mostly old seo thinking. some people still prerfer urls like
> 
> /blog/entry/2007/my_awesome_blog because it is more readable to the
> client, if they read urls...

Yes, they probably don't read URLs anyway.

> as far as the urls indexed you are right, the links wont be broken.
> you can create rewrite rules for all your current mounts but that will
> probably be a pita...

Does this mean the links won't be broken if I simply change the strategy to 
query string and do nothing else or does it mean the links won't be broken if 
create rewrite rules for all current mounts?

> 
> maybe we can patch the existing stuff to strip jsessionid before decoding.

Yes that would be cool. It's only really tomcat that needs to see the jessionid 
- after that point in the request lifecycle there's no need to keep the 
jsessionid in the URL.

> 
> as far as the trailing / - that causes its own problems because it
> throws off relative urls.
> 
> -igor
> 
> On Thu, Mar 18, 2010 at 5:32 PM, Chris Colman
>  wrote:
> > Ouch! All the pages are indexed under google with the /name1/value1
> strategy will this mean the google page links will break if we switch to
> querystringurlcodingstrategy or can wicket handle resolution of both types
> of strategies when it comes to responding to requests?
> >
> > I thought the thinking was that search engines indexed the /name1/value1
> structure better than the query string ?name1=value1 because they look
> like directories or is that old SEO thinking?
> >
> > Regards,
> > Chris
> >
> >
> >> -Original Message-
> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> >> Sent: Friday, 19 March 2010 10:53 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: Trailing / on parameter name/value pairs
> >>
> >> i suggest always mounting with querystringurlcodingstrategy unless you
> >> specifically want the folder structure of /name1/value1/name2/value2
> >> which most of the time you dont. too bad this was made the default, we
> >> cant change it in 1.4 but are fixing it in 1.5 as it causes all kinds
> >> of problems.
> >>
> >> -igor
> >>
> >> On Thu, Mar 18, 2010 at 4:42 PM, Chris Colman
> >>  wrote:
> >> > I'm using BookmarkablePageLink extensively as it makes it easy to add
> >> > parameter name/value pairs. I end up with URLs like:
> >> >
> >> > www.mysite.com/p1/v1/p2/v2
> >> >
> >> > Which works fine for most cases but I have a number of
> questions/issues:
> >> >
> >> > My logs show exceptions whereby some browsers (or crawlers) without
> >> > cookies enabled end up requesting URLs with the ;jessionid=... suffix
> >> > which is used when no cookie support is available.
> >> >
> >> > The exception is caused when I try to convert a parameter and the
> >> > session suffix is included in its value eg.,
> >> >
> >> > org.apache.wicket.util.string.StringValueConversionException: Unable
> to
> >> > convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
> >> > value
> >> >
> >> > The parameter pair was intended to be:
> >> >
> >> > parameter1/4574  i.e. parameter1=4574
> >> >
> >> > but with the suffix added by tomcat in the absence of cookies it
> became:
> >> >
> >> > parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >> >
> >> > i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >> >
> >> > which isn't a valid integer value and so causes an exception.
> >> >
> >> > What can we do about this? Is it possible to force wicket to always
> add
> >> > a trailing / because this would help wicket's parameter parser avoid
> >> > this issue eg.,
> >> >
> >> > parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >> >
> >> > should work fine I'd imagine.
> >> >
> >> > Another thing about trailing slashes: apparently a trailing slash can
> >> > avoid an redirect. Apparently:
> >> >
> >> > www.mysite.com/p1/v1 will be redirected to
> >> > www.mysite.com/p1/v1/
> >> >
> >> > If the URL was simply www.mysite.com/p1/v1/ then the redirect is
> >> > avoided.
> >> >
> >> >
> >> > 7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC
> >> >
> >> >> -Original Message-
> >> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> >> >> Sent: Friday, 19 March 2010 9:56 AM
> >> >> To: users@wicket.apache.org
> >> >> Subject: Re: StackOverflowError under serialization leaves pagemap
> >> > locked
> >> >>
> >> >> the fix is in 1.4.x branch and will be part of 1.4.8.
> >> >>
> >> >> in the meantime you can build a fresh snapshot yourself and drop
> that
> >> >> into your application
> >> >>
> >> >> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
> >> >>
> >> >> -igor
> >> >>
> >> >> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker
> >> > 
> >> >> wrote:
> >> >> >
> >> >> > Thank you Johan for your reply. Agree that original problem should
> >> > be
> >> >> fixed.
> >> >> > This is a critical problem for us. We have found out during the
> last
> >> > 24
> >> >> > hours that some of our pages are retaining a session reference.
> With
> >

Re: Trailing / on parameter name/value pairs

2010-03-18 Thread Igor Vaynberg
that is mostly old seo thinking. some people still prerfer urls like

/blog/entry/2007/my_awesome_blog because it is more readable to the
client, if they read urls...

my point was more that it was a bad default for us to choose, we
shouldve stuck with the query string. the current strategy still has
its applications

as far as the urls indexed you are right, the links wont be broken.
you can create rewrite rules for all your current mounts but that will
probably be a pita...

maybe we can patch the existing stuff to strip jsessionid before decoding.

as far as the trailing / - that causes its own problems because it
throws off relative urls.

-igor

On Thu, Mar 18, 2010 at 5:32 PM, Chris Colman
 wrote:
> Ouch! All the pages are indexed under google with the /name1/value1 strategy 
> will this mean the google page links will break if we switch to 
> querystringurlcodingstrategy or can wicket handle resolution of both types of 
> strategies when it comes to responding to requests?
>
> I thought the thinking was that search engines indexed the /name1/value1 
> structure better than the query string ?name1=value1 because they look like 
> directories or is that old SEO thinking?
>
> Regards,
> Chris
>
>
>> -Original Message-
>> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> Sent: Friday, 19 March 2010 10:53 AM
>> To: users@wicket.apache.org
>> Subject: Re: Trailing / on parameter name/value pairs
>>
>> i suggest always mounting with querystringurlcodingstrategy unless you
>> specifically want the folder structure of /name1/value1/name2/value2
>> which most of the time you dont. too bad this was made the default, we
>> cant change it in 1.4 but are fixing it in 1.5 as it causes all kinds
>> of problems.
>>
>> -igor
>>
>> On Thu, Mar 18, 2010 at 4:42 PM, Chris Colman
>>  wrote:
>> > I'm using BookmarkablePageLink extensively as it makes it easy to add
>> > parameter name/value pairs. I end up with URLs like:
>> >
>> > www.mysite.com/p1/v1/p2/v2
>> >
>> > Which works fine for most cases but I have a number of questions/issues:
>> >
>> > My logs show exceptions whereby some browsers (or crawlers) without
>> > cookies enabled end up requesting URLs with the ;jessionid=... suffix
>> > which is used when no cookie support is available.
>> >
>> > The exception is caused when I try to convert a parameter and the
>> > session suffix is included in its value eg.,
>> >
>> > org.apache.wicket.util.string.StringValueConversionException: Unable to
>> > convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
>> > value
>> >
>> > The parameter pair was intended to be:
>> >
>> > parameter1/4574  i.e. parameter1=4574
>> >
>> > but with the suffix added by tomcat in the absence of cookies it became:
>> >
>> > parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >
>> > i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >
>> > which isn't a valid integer value and so causes an exception.
>> >
>> > What can we do about this? Is it possible to force wicket to always add
>> > a trailing / because this would help wicket's parameter parser avoid
>> > this issue eg.,
>> >
>> > parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>> >
>> > should work fine I'd imagine.
>> >
>> > Another thing about trailing slashes: apparently a trailing slash can
>> > avoid an redirect. Apparently:
>> >
>> > www.mysite.com/p1/v1 will be redirected to
>> > www.mysite.com/p1/v1/
>> >
>> > If the URL was simply www.mysite.com/p1/v1/ then the redirect is
>> > avoided.
>> >
>> >
>> > 7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC
>> >
>> >> -Original Message-
>> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> >> Sent: Friday, 19 March 2010 9:56 AM
>> >> To: users@wicket.apache.org
>> >> Subject: Re: StackOverflowError under serialization leaves pagemap
>> > locked
>> >>
>> >> the fix is in 1.4.x branch and will be part of 1.4.8.
>> >>
>> >> in the meantime you can build a fresh snapshot yourself and drop that
>> >> into your application
>> >>
>> >> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
>> >>
>> >> -igor
>> >>
>> >> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker
>> > 
>> >> wrote:
>> >> >
>> >> > Thank you Johan for your reply. Agree that original problem should
>> > be
>> >> fixed.
>> >> > This is a critical problem for us. We have found out during the last
>> > 24
>> >> > hours that some of our pages are retaining a session reference. With
>> >> Ajax
>> >> > requests this gives a doubling of session size for every request,
>> > and we
>> >> now
>> >> > believe this to be the cause of the StackOverflowErrors. We will try
>> >> this in
>> >> > production tomorrow.
>> >> >
>> >> > We upgraded to to 1.4.7 but still see that the pagemap is locked
>> > when
>> >> the
>> >> > stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
>> >> >
>> >> > Thanks
>> >> > Nigel
>> >> >
>> >> >
>> >> > Johan Compagner wrote:
>> >> >>
>> >> >> i fixed 2075 s

RE: Trailing / on parameter name/value pairs

2010-03-18 Thread Chris Colman
Ouch! All the pages are indexed under google with the /name1/value1 strategy 
will this mean the google page links will break if we switch to 
querystringurlcodingstrategy or can wicket handle resolution of both types of 
strategies when it comes to responding to requests?

I thought the thinking was that search engines indexed the /name1/value1 
structure better than the query string ?name1=value1 because they look like 
directories or is that old SEO thinking?

Regards,
Chris


> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Friday, 19 March 2010 10:53 AM
> To: users@wicket.apache.org
> Subject: Re: Trailing / on parameter name/value pairs
> 
> i suggest always mounting with querystringurlcodingstrategy unless you
> specifically want the folder structure of /name1/value1/name2/value2
> which most of the time you dont. too bad this was made the default, we
> cant change it in 1.4 but are fixing it in 1.5 as it causes all kinds
> of problems.
> 
> -igor
> 
> On Thu, Mar 18, 2010 at 4:42 PM, Chris Colman
>  wrote:
> > I'm using BookmarkablePageLink extensively as it makes it easy to add
> > parameter name/value pairs. I end up with URLs like:
> >
> > www.mysite.com/p1/v1/p2/v2
> >
> > Which works fine for most cases but I have a number of questions/issues:
> >
> > My logs show exceptions whereby some browsers (or crawlers) without
> > cookies enabled end up requesting URLs with the ;jessionid=... suffix
> > which is used when no cookie support is available.
> >
> > The exception is caused when I try to convert a parameter and the
> > session suffix is included in its value eg.,
> >
> > org.apache.wicket.util.string.StringValueConversionException: Unable to
> > convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
> > value
> >
> > The parameter pair was intended to be:
> >
> > parameter1/4574  i.e. parameter1=4574
> >
> > but with the suffix added by tomcat in the absence of cookies it became:
> >
> > parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >
> > i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >
> > which isn't a valid integer value and so causes an exception.
> >
> > What can we do about this? Is it possible to force wicket to always add
> > a trailing / because this would help wicket's parameter parser avoid
> > this issue eg.,
> >
> > parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
> >
> > should work fine I'd imagine.
> >
> > Another thing about trailing slashes: apparently a trailing slash can
> > avoid an redirect. Apparently:
> >
> > www.mysite.com/p1/v1 will be redirected to
> > www.mysite.com/p1/v1/
> >
> > If the URL was simply www.mysite.com/p1/v1/ then the redirect is
> > avoided.
> >
> >
> > 7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC
> >
> >> -Original Message-
> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> >> Sent: Friday, 19 March 2010 9:56 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: StackOverflowError under serialization leaves pagemap
> > locked
> >>
> >> the fix is in 1.4.x branch and will be part of 1.4.8.
> >>
> >> in the meantime you can build a fresh snapshot yourself and drop that
> >> into your application
> >>
> >> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
> >>
> >> -igor
> >>
> >> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker
> > 
> >> wrote:
> >> >
> >> > Thank you Johan for your reply. Agree that original problem should
> > be
> >> fixed.
> >> > This is a critical problem for us. We have found out during the last
> > 24
> >> > hours that some of our pages are retaining a session reference. With
> >> Ajax
> >> > requests this gives a doubling of session size for every request,
> > and we
> >> now
> >> > believe this to be the cause of the StackOverflowErrors. We will try
> >> this in
> >> > production tomorrow.
> >> >
> >> > We upgraded to to 1.4.7 but still see that the pagemap is locked
> > when
> >> the
> >> > stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
> >> >
> >> > Thanks
> >> > Nigel
> >> >
> >> >
> >> > Johan Compagner wrote:
> >> >>
> >> >> i fixed 2075 so that it should always unlock the pages.
> >> >>
> >> >> Problem is that you still could get weird errors because that page
> > is
> >> not
> >> >> in
> >> >> a valid state in the session.
> >> >> So if back buttons/page versions are used it could be that that
> > doesnt
> >> >> work
> >> >>
> >> >> So what should be fixed is the original problem
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Mar 17, 2010 at 21:03, Nigel Parker
> > 
> >> >> wrote:
> >> >>
> >> >>> We are a Wicket shop and for one of our clients have been running
> > a
> >> >>> Wicket application successfully for over 2 years. We are now at
> >> >>> version 1.4.0. The traffic on the system is increasing and we are
> > now
> >> >>> seeing an increased frequency of pagemap locking which is
> > beginning to
> >> >>> be a serious problem for the users. By subclassing WebReques

Re: Trailing / on parameter name/value pairs

2010-03-18 Thread Igor Vaynberg
i suggest always mounting with querystringurlcodingstrategy unless you
specifically want the folder structure of /name1/value1/name2/value2
which most of the time you dont. too bad this was made the default, we
cant change it in 1.4 but are fixing it in 1.5 as it causes all kinds
of problems.

-igor

On Thu, Mar 18, 2010 at 4:42 PM, Chris Colman
 wrote:
> I'm using BookmarkablePageLink extensively as it makes it easy to add
> parameter name/value pairs. I end up with URLs like:
>
> www.mysite.com/p1/v1/p2/v2
>
> Which works fine for most cases but I have a number of questions/issues:
>
> My logs show exceptions whereby some browsers (or crawlers) without
> cookies enabled end up requesting URLs with the ;jessionid=... suffix
> which is used when no cookie support is available.
>
> The exception is caused when I try to convert a parameter and the
> session suffix is included in its value eg.,
>
> org.apache.wicket.util.string.StringValueConversionException: Unable to
> convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
> value
>
> The parameter pair was intended to be:
>
> parameter1/4574  i.e. parameter1=4574
>
> but with the suffix added by tomcat in the absence of cookies it became:
>
> parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>
> i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>
> which isn't a valid integer value and so causes an exception.
>
> What can we do about this? Is it possible to force wicket to always add
> a trailing / because this would help wicket's parameter parser avoid
> this issue eg.,
>
> parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC
>
> should work fine I'd imagine.
>
> Another thing about trailing slashes: apparently a trailing slash can
> avoid an redirect. Apparently:
>
> www.mysite.com/p1/v1 will be redirected to
> www.mysite.com/p1/v1/
>
> If the URL was simply www.mysite.com/p1/v1/ then the redirect is
> avoided.
>
>
> 7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC
>
>> -Original Message-
>> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> Sent: Friday, 19 March 2010 9:56 AM
>> To: users@wicket.apache.org
>> Subject: Re: StackOverflowError under serialization leaves pagemap
> locked
>>
>> the fix is in 1.4.x branch and will be part of 1.4.8.
>>
>> in the meantime you can build a fresh snapshot yourself and drop that
>> into your application
>>
>> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
>>
>> -igor
>>
>> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker
> 
>> wrote:
>> >
>> > Thank you Johan for your reply. Agree that original problem should
> be
>> fixed.
>> > This is a critical problem for us. We have found out during the last
> 24
>> > hours that some of our pages are retaining a session reference. With
>> Ajax
>> > requests this gives a doubling of session size for every request,
> and we
>> now
>> > believe this to be the cause of the StackOverflowErrors. We will try
>> this in
>> > production tomorrow.
>> >
>> > We upgraded to to 1.4.7 but still see that the pagemap is locked
> when
>> the
>> > stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
>> >
>> > Thanks
>> > Nigel
>> >
>> >
>> > Johan Compagner wrote:
>> >>
>> >> i fixed 2075 so that it should always unlock the pages.
>> >>
>> >> Problem is that you still could get weird errors because that page
> is
>> not
>> >> in
>> >> a valid state in the session.
>> >> So if back buttons/page versions are used it could be that that
> doesnt
>> >> work
>> >>
>> >> So what should be fixed is the original problem
>> >>
>> >>
>> >>
>> >> On Wed, Mar 17, 2010 at 21:03, Nigel Parker
> 
>> >> wrote:
>> >>
>> >>> We are a Wicket shop and for one of our clients have been running
> a
>> >>> Wicket application successfully for over 2 years. We are now at
>> >>> version 1.4.0. The traffic on the system is increasing and we are
> now
>> >>> seeing an increased frequency of pagemap locking which is
> beginning to
>> >>> be a serious problem for the users. By subclassing WebRequestCycle
> we
>> >>> have identified that a StackOverflowError under serialization in
>> >>> RequestCycle.detach() leaves the pagemap locked for the next
> minute.
>> >>> If our analysis is correct this is essentially the problem
> reported as
>> >>> https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately
> we
>> >>> cannot reproduce the problem in our test environment and it occurs
>> >>> only in about one in every thousand requests with no apparent
>> >>> consistent pattern about what the user has been doing. Can anybody
>> >>> suggest an immediate strategy for further investigations? In
>> >>> particular:
>> >>>
>> >>> - is there a practical way to find out what is causing the
>> >>> serialization problem. The stack trace is no help. We do in many
> cases
>> >>> have large amounts of data in the session, but doubling the
> default
>> >>> stack size leaves the problem frequency unchanged leading us to
>> >>> suspect a logical error rather

Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread James Carman
Perhaps put logic in onsubmit to check for required country?

On Mar 18, 2010 6:45 PM, "David Chang"  wrote:

Martin, the following is the code for the country dropdown list, which can
control the state dropdown list. The problem is that when the country list's
value is switched to "null" from a selected country (say, USA), then the
state dropdown list does not update. In addition, Wicket in the backend has
the following message. Another puzzling thing to me is that my FeedbackPanel
is there as defined below.

--- message 

18:38:20,890  WARN WebSession:193 - Component-targetted feedback message was
left unrendered. This could be because you
are missing a FeedbackPanel on the page.  Message: [FeedbackMessage message
= "Field 'Country' is required.", reporter =
 country, level = ERROR]



--- dropdown list code ---

List countryList = objectService.findAllCountries();
DropDownChoice countryDDC = new DropDownChoice("country",
   countryList,
   new ChoiceRenderer("name", "id") );
countryDDC.setRequired(true);
countryDDC.add(new AjaxFormComponentUpdatingBehavior("onchange") {

   protected void onUpdate(AjaxRequestTarget target) {
   if (target != null) {
   MyUser u = f.getModelObject();
   u.setState(null);
   DropDownChoice stateDDC = (DropDownChoice) f.get("state");

 
stateDDC.setChoices(objectService.findStatesByCountry(f.getModelObject().getCountry()));
 target.addComponent(stateDDC);
   }
   }
   });
f.add(new FormComponentFeedbackBorder("borderCountry").add(countryDDC));

-- FeedbackPanel code 

add(new FeedbackPanel("feedbackHolder") {
   @Override
   public boolean isVisible() {
   return true;//anyMessage();
   }
}.setOutputMarkupId(true));








--- On Thu, 3/18/10, Martin Makundi 
wrote:





> From: ...
> Date: Thursday, March 18, 2010, 11:50 AM

> Code?
>
> 2010/3/18 David Chang :
> > Martin, thanks for chimining in. I...


Trailing / on parameter name/value pairs

2010-03-18 Thread Chris Colman
I'm using BookmarkablePageLink extensively as it makes it easy to add
parameter name/value pairs. I end up with URLs like:

www.mysite.com/p1/v1/p2/v2

Which works fine for most cases but I have a number of questions/issues:

My logs show exceptions whereby some browsers (or crawlers) without
cookies enabled end up requesting URLs with the ;jessionid=... suffix
which is used when no cookie support is available.

The exception is caused when I try to convert a parameter and the
session suffix is included in its value eg.,

org.apache.wicket.util.string.StringValueConversionException: Unable to
convert '4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC' to a long
value

The parameter pair was intended to be:

parameter1/4574  i.e. parameter1=4574

but with the suffix added by tomcat in the absence of cookies it became:

parameter1/4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC

i.e. parameter1=4574;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC

which isn't a valid integer value and so causes an exception.

What can we do about this? Is it possible to force wicket to always add
a trailing / because this would help wicket's parameter parser avoid
this issue eg.,

parameter1/4574/;jsessionid=3359BBC174E43EF2AE12D7F8FA80FCEC

should work fine I'd imagine.

Another thing about trailing slashes: apparently a trailing slash can
avoid an redirect. Apparently:

www.mysite.com/p1/v1 will be redirected to 
www.mysite.com/p1/v1/

If the URL was simply www.mysite.com/p1/v1/ then the redirect is
avoided.


7%3Bjsessionid%3D3359BBC174E43EF2AE12D7F8FA80FCEC

> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: Friday, 19 March 2010 9:56 AM
> To: users@wicket.apache.org
> Subject: Re: StackOverflowError under serialization leaves pagemap
locked
> 
> the fix is in 1.4.x branch and will be part of 1.4.8.
> 
> in the meantime you can build a fresh snapshot yourself and drop that
> into your application
> 
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
> 
> -igor
> 
> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker

> wrote:
> >
> > Thank you Johan for your reply. Agree that original problem should
be
> fixed.
> > This is a critical problem for us. We have found out during the last
24
> > hours that some of our pages are retaining a session reference. With
> Ajax
> > requests this gives a doubling of session size for every request,
and we
> now
> > believe this to be the cause of the StackOverflowErrors. We will try
> this in
> > production tomorrow.
> >
> > We upgraded to to 1.4.7 but still see that the pagemap is locked
when
> the
> > stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
> >
> > Thanks
> > Nigel
> >
> >
> > Johan Compagner wrote:
> >>
> >> i fixed 2075 so that it should always unlock the pages.
> >>
> >> Problem is that you still could get weird errors because that page
is
> not
> >> in
> >> a valid state in the session.
> >> So if back buttons/page versions are used it could be that that
doesnt
> >> work
> >>
> >> So what should be fixed is the original problem
> >>
> >>
> >>
> >> On Wed, Mar 17, 2010 at 21:03, Nigel Parker

> >> wrote:
> >>
> >>> We are a Wicket shop and for one of our clients have been running
a
> >>> Wicket application successfully for over 2 years. We are now at
> >>> version 1.4.0. The traffic on the system is increasing and we are
now
> >>> seeing an increased frequency of pagemap locking which is
beginning to
> >>> be a serious problem for the users. By subclassing WebRequestCycle
we
> >>> have identified that a StackOverflowError under serialization in
> >>> RequestCycle.detach() leaves the pagemap locked for the next
minute.
> >>> If our analysis is correct this is essentially the problem
reported as
> >>> https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately
we
> >>> cannot reproduce the problem in our test environment and it occurs
> >>> only in about one in every thousand requests with no apparent
> >>> consistent pattern about what the user has been doing. Can anybody
> >>> suggest an immediate strategy for further investigations? In
> >>> particular:
> >>>
> >>> - is there a practical way to find out what is causing the
> >>> serialization problem. The stack trace is no help. We do in many
cases
> >>> have large amounts of data in the session, but doubling the
default
> >>> stack size leaves the problem frequency unchanged leading us to
> >>> suspect a logical error rather the sheer amount of data.
> >>>
> >>> - by overriding RequestCycle.detach() and catching the
> >>> StackOverflowError we can get control when the error occurs. Is
there
> >>> any way we can persuade Wicket to release the pagemap lock? I have
> >>> looked at the code and this doesn't look straightforward.
> >>>
> >>> - can we get Wicket itself to suppress the StackOverflowError so
that
> >>> detach() continues and releases the lock?
> >>>
> >>> Grateful for any suggestions.
> >>>
> >>> Nigel
> >>>
> >>>

Re: StackOverflowError under serialization leaves pagemap locked

2010-03-18 Thread Johan Compagner
Or:

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/

That should also have the latest fix

- Original message -
> the fix is in 1.4.x branch and will be part of 1.4.8.
>
> in the meantime you can build a fresh snapshot yourself and drop that
> into your application
>
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x
>
> -igor
>
> On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker  wrote:
> >
> > Thank you Johan for your reply. Agree that original problem should be fixed.
> > This is a critical problem for us. We have found out during the last 24
> > hours that some of our pages are retaining a session reference. With Ajax
> > requests this gives a doubling of session size for every request, and we now
> > believe this to be the cause of the StackOverflowErrors. We will try this in
> > production tomorrow.
> >
> > We upgraded to to 1.4.7 but still see that the pagemap is locked when the
> > stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
> >
> > Thanks
> > Nigel
> >
> >
> > Johan Compagner wrote:
> > >
> > > i fixed 2075 so that it should always unlock the pages.
> > >
> > > Problem is that you still could get weird errors because that page is not
> > > in
> > > a valid state in the session.
> > > So if back buttons/page versions are used it could be that that doesnt
> > > work
> > >
> > > So what should be fixed is the original problem
> > >
> > >
> > >
> > > On Wed, Mar 17, 2010 at 21:03, Nigel Parker 
> > > wrote:
> > >
> > > > We are a Wicket shop and for one of our clients have been running a
> > > > Wicket application successfully for over 2 years. We are now at
> > > > version 1.4.0. The traffic on the system is increasing and we are now
> > > > seeing an increased frequency of pagemap locking which is beginning to
> > > > be a serious problem for the users. By subclassing WebRequestCycle we
> > > > have identified that a StackOverflowError under serialization in
> > > > RequestCycle.detach() leaves the pagemap locked for the next minute.
> > > > If our analysis is correct this is essentially the problem reported as
> > > > https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately we
> > > > cannot reproduce the problem in our test environment and it occurs
> > > > only in about one in every thousand requests with no apparent
> > > > consistent pattern about what the user has been doing. Can anybody
> > > > suggest an immediate strategy for further investigations? In
> > > > particular:
> > > >
> > > > - is there a practical way to find out what is causing the
> > > > serialization problem. The stack trace is no help. We do in many cases
> > > > have large amounts of data in the session, but doubling the default
> > > > stack size leaves the problem frequency unchanged leading us to
> > > > suspect a logical error rather the sheer amount of data.
> > > >
> > > > - by overriding RequestCycle.detach() and catching the
> > > > StackOverflowError we can get control when the error occurs. Is there
> > > > any way we can persuade Wicket to release the pagemap lock? I have
> > > > looked at the code and this doesn't look straightforward.
> > > >
> > > > - can we get Wicket itself to suppress the StackOverflowError so that
> > > > detach() continues and releases the lock?
> > > >
> > > > Grateful for any suggestions.
> > > >
> > > > Nigel
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> > >
> >
> > --
> > View this message in context:
> > http://old.nabble.com/StackOverflowError-under-serialization-leaves-pagemap-locked-tp27938028p27950858.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



Re: StackOverflowError under serialization leaves pagemap locked

2010-03-18 Thread Igor Vaynberg
the fix is in 1.4.x branch and will be part of 1.4.8.

in the meantime you can build a fresh snapshot yourself and drop that
into your application

http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x

-igor

On Thu, Mar 18, 2010 at 3:27 PM, Nigel Parker  wrote:
>
> Thank you Johan for your reply. Agree that original problem should be fixed.
> This is a critical problem for us. We have found out during the last 24
> hours that some of our pages are retaining a session reference. With Ajax
> requests this gives a doubling of session size for every request, and we now
> believe this to be the cause of the StackOverflowErrors. We will try this in
> production tomorrow.
>
> We upgraded to to 1.4.7 but still see that the pagemap is locked when the
> stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?
>
> Thanks
> Nigel
>
>
> Johan Compagner wrote:
>>
>> i fixed 2075 so that it should always unlock the pages.
>>
>> Problem is that you still could get weird errors because that page is not
>> in
>> a valid state in the session.
>> So if back buttons/page versions are used it could be that that doesnt
>> work
>>
>> So what should be fixed is the original problem
>>
>>
>>
>> On Wed, Mar 17, 2010 at 21:03, Nigel Parker 
>> wrote:
>>
>>> We are a Wicket shop and for one of our clients have been running a
>>> Wicket application successfully for over 2 years. We are now at
>>> version 1.4.0. The traffic on the system is increasing and we are now
>>> seeing an increased frequency of pagemap locking which is beginning to
>>> be a serious problem for the users. By subclassing WebRequestCycle we
>>> have identified that a StackOverflowError under serialization in
>>> RequestCycle.detach() leaves the pagemap locked for the next minute.
>>> If our analysis is correct this is essentially the problem reported as
>>> https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately we
>>> cannot reproduce the problem in our test environment and it occurs
>>> only in about one in every thousand requests with no apparent
>>> consistent pattern about what the user has been doing. Can anybody
>>> suggest an immediate strategy for further investigations? In
>>> particular:
>>>
>>> - is there a practical way to find out what is causing the
>>> serialization problem. The stack trace is no help. We do in many cases
>>> have large amounts of data in the session, but doubling the default
>>> stack size leaves the problem frequency unchanged leading us to
>>> suspect a logical error rather the sheer amount of data.
>>>
>>> - by overriding RequestCycle.detach() and catching the
>>> StackOverflowError we can get control when the error occurs. Is there
>>> any way we can persuade Wicket to release the pagemap lock? I have
>>> looked at the code and this doesn't look straightforward.
>>>
>>> - can we get Wicket itself to suppress the StackOverflowError so that
>>> detach() continues and releases the lock?
>>>
>>> Grateful for any suggestions.
>>>
>>> Nigel
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/StackOverflowError-under-serialization-leaves-pagemap-locked-tp27938028p27950858.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
Martin, the following is the code for the country dropdown list, which can 
control the state dropdown list. The problem is that when the country list's 
value is switched to "null" from a selected country (say, USA), then the state 
dropdown list does not update. In addition, Wicket in the backend has the 
following message. Another puzzling thing to me is that my FeedbackPanel is 
there as defined below.

--- message 

18:38:20,890  WARN WebSession:193 - Component-targetted feedback message was 
left unrendered. This could be because you
are missing a FeedbackPanel on the page.  Message: [FeedbackMessage message = 
"Field 'Country' is required.", reporter =
 country, level = ERROR]



--- dropdown list code ---

List countryList = objectService.findAllCountries();
DropDownChoice countryDDC = new DropDownChoice("country",
countryList,
new ChoiceRenderer("name", "id") );
countryDDC.setRequired(true);
countryDDC.add(new AjaxFormComponentUpdatingBehavior("onchange") {

protected void onUpdate(AjaxRequestTarget target) {
if (target != null) {
MyUser u = f.getModelObject();
u.setState(null);
DropDownChoice stateDDC = (DropDownChoice) f.get("state");

stateDDC.setChoices(objectService.findStatesByCountry(f.getModelObject().getCountry()));
  target.addComponent(stateDDC);
}
}
});
f.add(new FormComponentFeedbackBorder("borderCountry").add(countryDDC));

-- FeedbackPanel code 

add(new FeedbackPanel("feedbackHolder") {
@Override
public boolean isVisible() {
return true;//anyMessage();
}
}.setOutputMarkupId(true));







--- On Thu, 3/18/10, Martin Makundi  wrote:





> From: Martin Makundi 
> Subject: Re: Select the "Choose one" of a required DropDownChoice
> To: users@wicket.apache.org
> Date: Thursday, March 18, 2010, 11:50 AM
> Code?
> 
> 2010/3/18 David Chang :
> > Martin, thanks for chimining in. I already did that.
> The problem is when I select "null" (choose one),
> AjaxFormComponentUpdatingBehavior#onUpdate is not called.
> Instead, Wicket generates a message and tries to seed it
> FeedbackPanel. I want to be able to handle that "null" and
> set another dropdown list blank.
> >
> > Regards.
> >
> > --- On Thu, 3/18/10, Martin Makundi 
> wrote:
> >
> >> From: Martin Makundi 
> >> Subject: Re: Select the "Choose one" of a required
> DropDownChoice
> >> To: users@wicket.apache.org
> >> Date: Thursday, March 18, 2010, 10:58 AM
> >> setNullValid
> >>
> >> 2010/3/18 David Chang :
> >> > In my case, the field is required. I make it
> required
> >> by setRequired(true), but I want the blank/choose
> one is
> >> still there.
> >> >
> >> > Doable?
> >> >
> >> >
> >> > --- On Thu, 3/18/10, Matthias Keller 
> >> wrote:
> >> >
> >> >> From: Matthias Keller 
> >> >> Subject: Re: Select the "Choose one" of a
> required
> >> DropDownChoice
> >> >> To: users@wicket.apache.org
> >> >> Date: Thursday, March 18, 2010, 9:42 AM
> >> >> Hi
> >> >>
> >> >> Yes, exactly, but why do you have it set
> to
> >> required at all
> >> >> in first
> >> >> place if you want to allow the empty
> selection
> >> too?
> >> >> I dont think a DropDownChoice is required
> by
> >> default but if
> >> >> it is, try
> >> >> setRequired(false) ...
> >> >>
> >> >> Matt
> >> >>
> >> >> On 2010-03-18 14:36, David Chang wrote:
> >> >> > Matt, I already did that.
> >> >> >
> >> >> > DropDownChoice.setNullValid() makes
> "Choose
> >> one"
> >> >> always stay there.
> >> >> > I notice that
> DropDownChoice.setRequired() is
> >> the
> >> >> reason to generate the message and not
> get
> >> onUpdate called.
> >> >> >
> >> >> > Thanks.
> >> >> >
> >> >> >
> >> >> > --- On Thu, 3/18/10, Matthias
> Keller
> >> >> wrote:
> >> >> >
> >> >> >
> >> >> >> From: Matthias Keller
> >> >> >> Subject: Re: Select the "Choose
> one" of a
> >> required
> >> >> DropDownChoice
> >> >> >> To: users@wicket.apache.org
> >> >> >> Date: Thursday, March 18, 2010,
> 9:30 AM
> >> >> >> Hi
> >> >> >>
> >> >> >> Have a look at
> >> DropDownChoice.setNullValid() and
> >> >> >> .setRequired()
> >> >> >>
> >> >> >> Matt
> >> >> >>
> >> >> >> On 2010-03-18 14:26, David Chang
> wrote:
> >> >> >>
> >> >> >>> Hi, I am new in Wicket and
> am playing
> >> with
> >> >> different
> >> >> >>>
> >> >> >> components.
> >> >> >>
> >> >> >>> I have a two dropdown lists.
> One is a
> >> list of
> >> >> >>>
> >> >> >> countries, required field,
> controlling
> >> another
> >> >> list of
> >> >> >> states/provinces via
> >> >> AjaxFormComponentUpdatingBehavior.
> >> >> >>
> >> >> >>> The country list always has
> a blank
> >> >> (equivalent of
> >> >> >>>
> >> >> >> "Choose one") as the first
> option in the
> >> list.
> >> >> When I select
> >> >> >> different countries, the
> state/province
> >> list
> >> >> changes
> >> >> >> accordingly. However, when I
> change to
> >> 

Re: StackOverflowError under serialization leaves pagemap locked

2010-03-18 Thread Nigel Parker

Thank you Johan for your reply. Agree that original problem should be fixed.
This is a critical problem for us. We have found out during the last 24
hours that some of our pages are retaining a session reference. With Ajax
requests this gives a doubling of session size for every request, and we now
believe this to be the cause of the StackOverflowErrors. We will try this in
production tomorrow.

We upgraded to to 1.4.7 but still see that the pagemap is locked when the
stack overflows. Do you know if the fix to WICKET-2075 is in 1.4.7?

Thanks
Nigel


Johan Compagner wrote:
> 
> i fixed 2075 so that it should always unlock the pages.
> 
> Problem is that you still could get weird errors because that page is not
> in
> a valid state in the session.
> So if back buttons/page versions are used it could be that that doesnt
> work
> 
> So what should be fixed is the original problem
> 
> 
> 
> On Wed, Mar 17, 2010 at 21:03, Nigel Parker 
> wrote:
> 
>> We are a Wicket shop and for one of our clients have been running a
>> Wicket application successfully for over 2 years. We are now at
>> version 1.4.0. The traffic on the system is increasing and we are now
>> seeing an increased frequency of pagemap locking which is beginning to
>> be a serious problem for the users. By subclassing WebRequestCycle we
>> have identified that a StackOverflowError under serialization in
>> RequestCycle.detach() leaves the pagemap locked for the next minute.
>> If our analysis is correct this is essentially the problem reported as
>> https://issues.apache.org/jira/browse/WICKET-2075. Unfortunately we
>> cannot reproduce the problem in our test environment and it occurs
>> only in about one in every thousand requests with no apparent
>> consistent pattern about what the user has been doing. Can anybody
>> suggest an immediate strategy for further investigations? In
>> particular:
>>
>> - is there a practical way to find out what is causing the
>> serialization problem. The stack trace is no help. We do in many cases
>> have large amounts of data in the session, but doubling the default
>> stack size leaves the problem frequency unchanged leading us to
>> suspect a logical error rather the sheer amount of data.
>>
>> - by overriding RequestCycle.detach() and catching the
>> StackOverflowError we can get control when the error occurs. Is there
>> any way we can persuade Wicket to release the pagemap lock? I have
>> looked at the code and this doesn't look straightforward.
>>
>> - can we get Wicket itself to suppress the StackOverflowError so that
>> detach() continues and releases the lock?
>>
>> Grateful for any suggestions.
>>
>> Nigel
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/StackOverflowError-under-serialization-leaves-pagemap-locked-tp27938028p27950858.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



LoadableDetachableListModel

2010-03-18 Thread Ilja Pavkovic
Hi,

if someone is interested in a LoadableDetachableListModel where every single 
entity in the List is loaded per request by its own detachable model, see 
below :). 

I found it quite useful. I needed for a multi file upload panel where all 
changes entities shall be saved in one step.

public class DocumentModel extends 
LoadableDetachableListModel{

public DDE(List entities) {
super(entities);
}

protected IModel createModel(Document entity) {
return new EntityBaseLoadableDetachableModel(entity);
}

}

package de.binaerebauten.app.presentation.wicket.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;

@SuppressWarnings("serial")
public abstract class LoadableDetachableListModel extends 
LoadableDetachableModel>{

private List> modelsList = new ArrayList>();

private List entities;

public LoadableDetachableListModel() {

}

public LoadableDetachableListModel(List entities) {
addAll(entities);
}

protected void addAll(List entities) {
for(T entity: entities) {
add(entity);
}
}

public void onDetach() {
for(IModel model : modelsList) {
model.detach();
}
entities = null;
}

private List loadAll() {
List rv = new ArrayList();
for(IModel model : modelsList) {
rv.add(model.getObject());
}
return rv;
}

protected List load() {
if(entities != null) {
return entities;
}
entities = new List() {

public boolean add(T o) {
return modelsList.add(createModel(o));
}


public void add(int index, T element) {
modelsList.add(index, createModel(element));
}

public boolean addAll(Collection c) {
throw new UnsupportedOperationException();
}

public boolean addAll(int index, Collection c) {
throw new UnsupportedOperationException();
}

public void clear() {
modelsList.clear();
}

public boolean contains(Object o) {
return indexOf(o) > -1;
}

public boolean containsAll(Collection c) {
throw new UnsupportedOperationException();
}

public T get(int index) {
IModel model = modelsList.get(index);
return model.getObject();
}

public int indexOf(Object o) {
int pos = 0;
for(IModel model : modelsList) {
T o1 = model.getObject();
if(o1.equals(o)) {
return pos;
}
pos++;
}
return -1;
}

public boolean isEmpty() {
return modelsList.isEmpty();
}

public Iterator iterator() {
return new Iterator() {
Iterator> delegate = 
modelsList.iterator();

public boolean hasNext() {
return delegate.hasNext();
}

public T next() {
IModel model = 
delegate.next();
return model == null ? null : 
model.getObject();
}

public void remove() {
delegate.remove();
}
};
}

public int lastIndexOf(Object o) {
   

Re: Registering a Wicket Application using OSGi HTTP service

2010-03-18 Thread Ernesto Reinaldo Barreiro
Hi,

That's weird. Did you tried to check-out [1] and  [2]? They did work a
couple of month ago when I tested them.

Ernesto

References,

1-http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter
2-
http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo






On Thu, Mar 18, 2010 at 5:45 PM, Jaime Soriano Pastor <
jsorianopas...@gmail.com> wrote:

> Hi,
>
> On Thu, Mar 18, 2010 at 3:58 PM, Fernando Wermus
>  wrote:
> > Take a look at Antilia
> >
> > http://code.google.com/p/antilia/
> >
> Thanks for the suggestion, Antilia seems to be a really interesting
> project, but it didn't solve my problem :(
>
> What I tried was to create a new Activator (AntiliaActivator) that
> extends WicketServletServiceActivator and implements BundleActivator.
> AntiliaActivator getApplicationClass() returns
> AntiliaMainApplication.class that extends AntiliaWebApplication that
> returns the MainPage class as Home Page.
>
> The new thing is that this solution also fails with Equinox, with a
> similar exception.
>
> Regards,
>
> Jaime.
>
> > On Thu, Mar 18, 2010 at 12:01 PM, Jaime Soriano Pastor <
> > jsorianopas...@gmail.com> wrote:
> >
> >> Hello,
> >>
> >> I'm trying to start a Wicket Application using Felix implementation of
> >> OSGi HTTP service, for that I just register the service using
> >> WicketServlet with applicationClassName parameter set to the main
> >> application class name:
> >>
> >> props.put("applicationClassName", MainApplication.class.getName());
> >> service = (HttpService)context.getService(httpReference);
> >> service.registerServlet("/", new WicketServlet(), props, null);
> >>
> >> But it fails to register saying that wicket is "Unable to create
> >> application of class es.warp.sample.HTTPLocalGUI.MainApplication".
> >> The output error also includes some lines about class loader so I
> >> thought it was something related with visibility. I tried to export
> >> everything but I had the same failure.
> >> 
> >> 
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >> at java.lang.Class.forName0(Native Method)
> >> at java.lang.Class.forName(Class.java:247)
> >> 
> >> 
> >>
> >> I use for deployment maven and pax runner with Felix framework (mvn
> >> package install pax:run -Dframework=felix -Dprofiles=log,config).
> >> If I use equinox instead of felix, the application is registered and
> >> works perfectly, it's ok for development, but I need it working on
> >> felix for production deployment.
> >>
> >> I'm thinking that I'm not doing it on the right way, but I don't know
> >> how to do it. I also tried to publish the servlet using Felix
> >> Whiteboard service, and I had the same results, it worked when I used
> >> equinox and it didn't work when I used felix.
> >>
> >> What am I doing wrong?
> >>
> >>
> >> Regards,
> >>
> >> Jaime.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: TinyMCE components in WicketStuff

2010-03-18 Thread Igor Vaynberg
http://wicketstuff.org/maven/repository/jazzyplugin/jazzyplugin/0.5.2/

-igor

On Tue, Mar 16, 2010 at 1:12 PM, Boris Goldowsky  wrote:
> Great.  Can someone with write access to the repository do this?  Or if i
> can do it via my SVN credentials, tell me how.
>
> Thanks!
>
> Bng
>
>
> Igor Vaynberg wrote:
>>
>> sure
>>
>> -igor
>>
>> On Tue, Mar 16, 2010 at 12:21 PM, Boris Goldowsky 
>> wrote:
>>
>>>
>>> The TinyMCE package depends on the Jazzy spell checker, which doesn't
>>> seem
>>> to be in any public maven repository.  Would it be reasonable to put that
>>> jar into the wicketstuff repository?
>>>
>>> The latest version appears to be the one at
>>> https://sourceforge.net/projects/jazzy/files/
>>>
>>> Bng
>>>
>>>    -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Cookie, WebRequest and mount point

2010-03-18 Thread Daniele Dellafiore
is what I have done, I ask my self if is fine.

I have backported the IAuthenticationStrategy and CookieUtils from 1.5 and
CookieUtils initialize the cookie with the path. I have hacked it and it
works. I wonder if I will have any other problem in future.

On Thu, Mar 18, 2010 at 6:34 PM, Igor Vaynberg wrote:

> always save your cookies using the / path
>
> -igor
>
> On Thu, Mar 18, 2010 at 10:14 AM, Daniele Dellafiore 
> wrote:
> > Hi.
> >
> > During the login I set a cookie called "login".
> > It works but when I want to logout, getWebRequest().getCookie("login")
> > does  not found the cookie so it does not remove it. The user is
> redirected
> > to the LoginPage where it still found the original cookie that auto login
> > the client.
> >
> > Why? Because the first time I search for the cookie, WebRequest have
> context
> > / while the second time, in the LoginPage, has context /login. The reason
> is
> > that the public page, when user land when is not logged in, is mounted
> this
> > way:
> >
> > mountBookmarkablePage("login", LoginPage.class);
> >
> > this make the cookie be set for WebRequest with context /public.
> > Logout link instead search for WebRequest with context /, with no cookie,
> so
> > it cannot remove the old one and the user is logged out and logged in
> again
> > automatically.
> >
> > In fact, If I do not mount pages, everything works. But I want to have
> nice
> > URL. It is not important that landing page is /public, I would prefere
> that
> > both landing page and home page (after signing in), have just / context.
> >
> > How can I achieve this? Any ideas?
> >
> > Thanks!
> >
> > --
> > Daniele Dellafiore
> > http://danieledellafiore.net
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: Wicketstuff versioning

2010-03-18 Thread Boris Goldowsky
Thank you for your thoughts Jeremy -- and your previous work on
WicketStuff.  I am certainly unhappy to hear that it felt like torture
and that junk was being dumped on you rather than getting support from
the community.

I'd volunteer to put a bit of time into this, but I don't have time to
be sole maintainer either.  Maybe there could be a small group who all
helped out - anyone else on this list willing to step up?

I already offered to fix and update the TinyMCE module, but that is
currently stalled since the necessary dependency is not in the
repository and I don't have permissions to add it.

Bng


On Wed, 2010-03-17 at 16:21 -0500, Jeremy Thomerson wrote:

> 
> I tried.  I don't have the time it takes.  With the free-for-all access that
> is given to it, people consistently commit inconsistent junk that they don't
> ever intend on maintaining in there.  Feel free to take over - most of the
> reorganization work is already done for you - by me.  You can pick up where
> I left off and carry the torture stake as far as you want.


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



Re: Cookie, WebRequest and mount point

2010-03-18 Thread Igor Vaynberg
always save your cookies using the / path

-igor

On Thu, Mar 18, 2010 at 10:14 AM, Daniele Dellafiore  wrote:
> Hi.
>
> During the login I set a cookie called "login".
> It works but when I want to logout, getWebRequest().getCookie("login")
> does  not found the cookie so it does not remove it. The user is redirected
> to the LoginPage where it still found the original cookie that auto login
> the client.
>
> Why? Because the first time I search for the cookie, WebRequest have context
> / while the second time, in the LoginPage, has context /login. The reason is
> that the public page, when user land when is not logged in, is mounted this
> way:
>
> mountBookmarkablePage("login", LoginPage.class);
>
> this make the cookie be set for WebRequest with context /public.
> Logout link instead search for WebRequest with context /, with no cookie, so
> it cannot remove the old one and the user is logged out and logged in again
> automatically.
>
> In fact, If I do not mount pages, everything works. But I want to have nice
> URL. It is not important that landing page is /public, I would prefere that
> both landing page and home page (after signing in), have just / context.
>
> How can I achieve this? Any ideas?
>
> Thanks!
>
> --
> Daniele Dellafiore
> http://danieledellafiore.net
>

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



Cookie, WebRequest and mount point

2010-03-18 Thread Daniele Dellafiore
Hi.

During the login I set a cookie called "login".
It works but when I want to logout, getWebRequest().getCookie("login")
does  not found the cookie so it does not remove it. The user is redirected
to the LoginPage where it still found the original cookie that auto login
the client.

Why? Because the first time I search for the cookie, WebRequest have context
/ while the second time, in the LoginPage, has context /login. The reason is
that the public page, when user land when is not logged in, is mounted this
way:

mountBookmarkablePage("login", LoginPage.class);

this make the cookie be set for WebRequest with context /public.
Logout link instead search for WebRequest with context /, with no cookie, so
it cannot remove the old one and the user is logged out and logged in again
automatically.

In fact, If I do not mount pages, everything works. But I want to have nice
URL. It is not important that landing page is /public, I would prefere that
both landing page and home page (after signing in), have just / context.

How can I achieve this? Any ideas?

Thanks!

-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: Analyzing HTML markup.

2010-03-18 Thread Igor Vaynberg
you can use IComponentResolver to achieve this.

-igor

On Thu, Mar 18, 2010 at 9:45 AM, Sergey Olefir  wrote:
> Hi,
>
> is it possible to (easily) analyze HTML markup at runtime? More
> specifically I'm thinking about implementing a component that will
> examine its (or more realistically the markup of extending class)
> markup to determine whether or not particular wicket:id is present.
>
> Or, in other words, is it possible to implement base component that
> will or will not add(..) some 'other component' inside itself
> depending on whether child (extending class) has provided place for
> 'other component' in its markup?
>
> Thanks in advance!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Analyzing HTML markup.

2010-03-18 Thread Sergey Olefir
Hi,

is it possible to (easily) analyze HTML markup at runtime? More
specifically I'm thinking about implementing a component that will
examine its (or more realistically the markup of extending class)
markup to determine whether or not particular wicket:id is present.

Or, in other words, is it possible to implement base component that
will or will not add(..) some 'other component' inside itself
depending on whether child (extending class) has provided place for
'other component' in its markup?

Thanks in advance!

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



Re: Registering a Wicket Application using OSGi HTTP service

2010-03-18 Thread Jaime Soriano Pastor
Hi,

On Thu, Mar 18, 2010 at 3:58 PM, Fernando Wermus
 wrote:
> Take a look at Antilia
>
> http://code.google.com/p/antilia/
>
Thanks for the suggestion, Antilia seems to be a really interesting
project, but it didn't solve my problem :(

What I tried was to create a new Activator (AntiliaActivator) that
extends WicketServletServiceActivator and implements BundleActivator.
AntiliaActivator getApplicationClass() returns
AntiliaMainApplication.class that extends AntiliaWebApplication that
returns the MainPage class as Home Page.

The new thing is that this solution also fails with Equinox, with a
similar exception.

Regards,

Jaime.

> On Thu, Mar 18, 2010 at 12:01 PM, Jaime Soriano Pastor <
> jsorianopas...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm trying to start a Wicket Application using Felix implementation of
>> OSGi HTTP service, for that I just register the service using
>> WicketServlet with applicationClassName parameter set to the main
>> application class name:
>>
>> props.put("applicationClassName", MainApplication.class.getName());
>> service = (HttpService)context.getService(httpReference);
>> service.registerServlet("/", new WicketServlet(), props, null);
>>
>> But it fails to register saying that wicket is "Unable to create
>> application of class es.warp.sample.HTTPLocalGUI.MainApplication".
>> The output error also includes some lines about class loader so I
>> thought it was something related with visibility. I tried to export
>> everything but I had the same failure.
>> 
>> 
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:247)
>> 
>> 
>>
>> I use for deployment maven and pax runner with Felix framework (mvn
>> package install pax:run -Dframework=felix -Dprofiles=log,config).
>> If I use equinox instead of felix, the application is registered and
>> works perfectly, it's ok for development, but I need it working on
>> felix for production deployment.
>>
>> I'm thinking that I'm not doing it on the right way, but I don't know
>> how to do it. I also tried to publish the servlet using Felix
>> Whiteboard service, and I had the same results, it worked when I used
>> equinox and it didn't work when I used felix.
>>
>> What am I doing wrong?
>>
>>
>> Regards,
>>
>> Jaime.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread Martin Makundi
Code?

2010/3/18 David Chang :
> Martin, thanks for chimining in. I already did that. The problem is when I 
> select "null" (choose one), AjaxFormComponentUpdatingBehavior#onUpdate is not 
> called. Instead, Wicket generates a message and tries to seed it 
> FeedbackPanel. I want to be able to handle that "null" and set another 
> dropdown list blank.
>
> Regards.
>
> --- On Thu, 3/18/10, Martin Makundi  
> wrote:
>
>> From: Martin Makundi 
>> Subject: Re: Select the "Choose one" of a required DropDownChoice
>> To: users@wicket.apache.org
>> Date: Thursday, March 18, 2010, 10:58 AM
>> setNullValid
>>
>> 2010/3/18 David Chang :
>> > In my case, the field is required. I make it required
>> by setRequired(true), but I want the blank/choose one is
>> still there.
>> >
>> > Doable?
>> >
>> >
>> > --- On Thu, 3/18/10, Matthias Keller 
>> wrote:
>> >
>> >> From: Matthias Keller 
>> >> Subject: Re: Select the "Choose one" of a required
>> DropDownChoice
>> >> To: users@wicket.apache.org
>> >> Date: Thursday, March 18, 2010, 9:42 AM
>> >> Hi
>> >>
>> >> Yes, exactly, but why do you have it set to
>> required at all
>> >> in first
>> >> place if you want to allow the empty selection
>> too?
>> >> I dont think a DropDownChoice is required by
>> default but if
>> >> it is, try
>> >> setRequired(false) ...
>> >>
>> >> Matt
>> >>
>> >> On 2010-03-18 14:36, David Chang wrote:
>> >> > Matt, I already did that.
>> >> >
>> >> > DropDownChoice.setNullValid() makes "Choose
>> one"
>> >> always stay there.
>> >> > I notice that DropDownChoice.setRequired() is
>> the
>> >> reason to generate the message and not get
>> onUpdate called.
>> >> >
>> >> > Thanks.
>> >> >
>> >> >
>> >> > --- On Thu, 3/18/10, Matthias Keller
>> >> wrote:
>> >> >
>> >> >
>> >> >> From: Matthias Keller
>> >> >> Subject: Re: Select the "Choose one" of a
>> required
>> >> DropDownChoice
>> >> >> To: users@wicket.apache.org
>> >> >> Date: Thursday, March 18, 2010, 9:30 AM
>> >> >> Hi
>> >> >>
>> >> >> Have a look at
>> DropDownChoice.setNullValid() and
>> >> >> .setRequired()
>> >> >>
>> >> >> Matt
>> >> >>
>> >> >> On 2010-03-18 14:26, David Chang wrote:
>> >> >>
>> >> >>> Hi, I am new in Wicket and am playing
>> with
>> >> different
>> >> >>>
>> >> >> components.
>> >> >>
>> >> >>> I have a two dropdown lists. One is a
>> list of
>> >> >>>
>> >> >> countries, required field, controlling
>> another
>> >> list of
>> >> >> states/provinces via
>> >> AjaxFormComponentUpdatingBehavior.
>> >> >>
>> >> >>> The country list always has a blank
>> >> (equivalent of
>> >> >>>
>> >> >> "Choose one") as the first option in the
>> list.
>> >> When I select
>> >> >> different countries, the state/province
>> list
>> >> changes
>> >> >> accordingly. However, when I change to
>> the blank
>> >> in the
>> >> >> country list, the state list stops
>> updating. I
>> >> looked into
>> >> >> it and found out that in this situation
>> (required
>> >> droopdown
>> >> >> list) selecting blank makes Wicket issue
>> a
>> >> feedback message
>> >> >> instead of calling
>> >> >>
>> AjaxFormComponentUpdatingBehavior#onUpdate, which
>> >> is what I
>> >> >> want.
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> >
>> >
>> -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: wicket-contrib-javaee: @EJB injection - injecting always the same instance regardless of session

2010-03-18 Thread Manfred Bergmann

Hi.

AFAIK a Wicket user session and a EJB Session are separated. Meaning that
the EJB container decides whether a new EJB instance needs to be created or
not. However even if multiple Wicket sessions get the same EJB instance the
EJB container will still ensure proper synchronisation and transaction
management.


Manfred


t3_chris wrote:
> 
> Hi!
> 
> I've just started using the @EJB injection annotation from 
> wicket-contrib-javaee.
> I use it to inject a Stateful Session Bean to keep track of my user 
> session and do some
> stuff like authorization.
> 
> I thought the @EJB annotation keeps track of my sessions and would 
> inject a unique instance of
> the Stateful Session Bean for each of my Wicket session.
> 
> But, it injects always the same Stateful Session Bean instance 
> completely ignoring my Wicket sessions. In this case it is useless to 
> keep track of my users.
> 
> Am i doing anything wrong or is this the intended behaviour?
> 
> Would it be better to get the Stateful Session Bean by a lookup call and 
> then store it in the
> Wicket session?
> 
> Thanks for your help!
> 
> Best Regards,
>   christian
> 
> -- 
> Christian Reiter|||c.rei...@gmx.net
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/wicket-contrib-javaee%3A-%40EJB-injection---injecting-always-the-same-instance-regardless-of-session-tp27943127p27947476.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



WicketTester and submiting form via ajax

2010-03-18 Thread Michał Letyński

Hi.
Again topic with submiting form via ajax with FileUpload inside. Im 
submiting form via AjaxButton.

For testing my panel im using:
wicketTester.executeAjaxEvent(butooon, "onclick") - i want to test some 
logic in onSubmit()
and i get ServletRequest does not contain multipart content. One 
possible solution is to explicitly call Form.setMultipart(true), Wicket 
tries its best to auto-detect multipart forms but there are certain 
situation where it cannot.


executeAjaxEvent method does not check if form is multiPart. To 
workaround this problem before executeAjaxEvent we can execute:
   MockHttpServletRequest servletRequest = 
wicketTester.getServletRequest();

   servletRequest.setUseMultiPartContentType(true);
But its annoying to set this flag again and again. Could you extend 
executeAjaxEvent to check if form is multiPart ? Similar checking is 
already done in FormTester.onSubmit().

Can i create jirra issue ?


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



Re: using IBehaviorListener

2010-03-18 Thread Igor Vaynberg
override requestcycle

-igor

On Thu, Mar 18, 2010 at 8:01 AM, Martin Asenov  wrote:
> Hi, Fernando!
>
> This is not my question... I was asking how could I know every time when the 
> user interacts with the system.
>
> Best,
> Martin
>
> -Original Message-
> From: Fernando Wermus [mailto:fernando.wer...@gmail.com]
> Sent: Thursday, March 18, 2010 4:57 PM
> To: users@wicket.apache.org
> Subject: Re: using IBehaviorListener
>
> Martin,
>     You can have any container, such as a Panel, into de Modal Window. You
> can program as you have always done with Wicket. No need of IBehaviorListener.
> The close button has its corresponding programming design. Take a look at
> the modal window documentation in the web.
>
>
>
> On Thu, Mar 18, 2010 at 12:27 PM, Martin Asenov  wrote:
>
>> Please, any help?!
>>
>> Best,
>> Martin
>>
>> -Original Message-
>> From: Martin Asenov [mailto:mase...@velti.com]
>> Sent: Thursday, March 18, 2010 1:11 PM
>> To: users@wicket.apache.org
>> Subject: using IBehaviorListener
>>
>> Hello, guys!
>>
>> I'm experiencing troubles with implementing IBehaviorListener on a
>> ModalWindow.
>>
>> I want to detect every single user interaction with to components inside
>> the modal window and the close button itself , as well.
>>
>> Would you give me some hints?
>>
>> Best,
>> Martin
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
Martin, thanks for chimining in. I already did that. The problem is when I 
select "null" (choose one), AjaxFormComponentUpdatingBehavior#onUpdate is not 
called. Instead, Wicket generates a message and tries to seed it FeedbackPanel. 
I want to be able to handle that "null" and set another dropdown list blank.

Regards.

--- On Thu, 3/18/10, Martin Makundi  wrote:

> From: Martin Makundi 
> Subject: Re: Select the "Choose one" of a required DropDownChoice
> To: users@wicket.apache.org
> Date: Thursday, March 18, 2010, 10:58 AM
> setNullValid
> 
> 2010/3/18 David Chang :
> > In my case, the field is required. I make it required
> by setRequired(true), but I want the blank/choose one is
> still there.
> >
> > Doable?
> >
> >
> > --- On Thu, 3/18/10, Matthias Keller 
> wrote:
> >
> >> From: Matthias Keller 
> >> Subject: Re: Select the "Choose one" of a required
> DropDownChoice
> >> To: users@wicket.apache.org
> >> Date: Thursday, March 18, 2010, 9:42 AM
> >> Hi
> >>
> >> Yes, exactly, but why do you have it set to
> required at all
> >> in first
> >> place if you want to allow the empty selection
> too?
> >> I dont think a DropDownChoice is required by
> default but if
> >> it is, try
> >> setRequired(false) ...
> >>
> >> Matt
> >>
> >> On 2010-03-18 14:36, David Chang wrote:
> >> > Matt, I already did that.
> >> >
> >> > DropDownChoice.setNullValid() makes "Choose
> one"
> >> always stay there.
> >> > I notice that DropDownChoice.setRequired() is
> the
> >> reason to generate the message and not get
> onUpdate called.
> >> >
> >> > Thanks.
> >> >
> >> >
> >> > --- On Thu, 3/18/10, Matthias Keller
> >> wrote:
> >> >
> >> >
> >> >> From: Matthias Keller
> >> >> Subject: Re: Select the "Choose one" of a
> required
> >> DropDownChoice
> >> >> To: users@wicket.apache.org
> >> >> Date: Thursday, March 18, 2010, 9:30 AM
> >> >> Hi
> >> >>
> >> >> Have a look at
> DropDownChoice.setNullValid() and
> >> >> .setRequired()
> >> >>
> >> >> Matt
> >> >>
> >> >> On 2010-03-18 14:26, David Chang wrote:
> >> >>
> >> >>> Hi, I am new in Wicket and am playing
> with
> >> different
> >> >>>
> >> >> components.
> >> >>
> >> >>> I have a two dropdown lists. One is a
> list of
> >> >>>
> >> >> countries, required field, controlling
> another
> >> list of
> >> >> states/provinces via
> >> AjaxFormComponentUpdatingBehavior.
> >> >>
> >> >>> The country list always has a blank
> >> (equivalent of
> >> >>>
> >> >> "Choose one") as the first option in the
> list.
> >> When I select
> >> >> different countries, the state/province
> list
> >> changes
> >> >> accordingly. However, when I change to
> the blank
> >> in the
> >> >> country list, the state list stops
> updating. I
> >> looked into
> >> >> it and found out that in this situation
> (required
> >> droopdown
> >> >> list) selecting blank makes Wicket issue
> a
> >> feedback message
> >> >> instead of calling
> >> >>
> AjaxFormComponentUpdatingBehavior#onUpdate, which
> >> is what I
> >> >> want.
> >> >>
> >> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 


  

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



Re: Tree with invisible Nodes

2010-03-18 Thread Igor Vaynberg
filter them in your TreeModel, it should work. you also have to
override getChildCount() to return a count without filtered children,
and adjust TreeModel#getIndexOfChild() to skip over the filtered
children.

-igor

On Thu, Mar 18, 2010 at 6:19 AM, Martin U  wrote:
> Hi Folks,
>
> i've to implement a tree in which some node are exists under a parent node
> but they should not be visible to the user in browser at all.
>
> I tried to overwrite "getChild" from TreeNode. But it dont works for me. I
> need this node existens either they are not visible because the tree is my
> data(model)-holder too for further processing
>
>
> Any Ideas?
>
> Thanks a lot.
>

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



Re: HttpsRequestCycleProcessor not immediately redirecting to https

2010-03-18 Thread Igor Vaynberg
why dont you continue this in the original thread. that way the
knowledge will not be spread all over.

-igor

On Thu, Mar 18, 2010 at 1:29 AM, Gianni  wrote:
> Apologies, I now see it's exactly the same problem as described here:
> http://old.nabble.com/%40RequireHttps---forms-misbehaving-ts26845496.html
>
> I can reproduce this in a quickstart, I just want to check before creating a 
> jira:
> - In my quickstart I'm calling setRedirect(true) within the form submit 
> button's onSubmit(), is this the correct place to force a redirect?
> - SignInPage has the @RequireHttps annotation, *should* the code below result 
> in immediate redirection to the https page or am I missing something?
>
> Button submitButton = new Button("submit") {
>       �...@override
>        public void onSubmit() {
>                setRedirect(true);
>                setResponsePage(new SignInPage());
>        }
> };
>
> -Gianni
>
>
> On 17/mar/2010, at 10.13, Gianni wrote:
>
>> As part of a product purchase workflow I require users to sign-in or 
>> register a new account in order to continue.
>> In my purchase page I'm checking if the user is already signed-in and if not 
>> I send them to a SignInOrRegisterPage which has the @RequireHttps annotation.
>>
>> BookingPage dest = new BookingPage(product);
>> if (signedIn) {
>>       setResponsePage(dest);
>> } else {
>>       session.getDefaultPageMap().put(dest);
>>       PageReference destPageRef = dest.getPageReference();
>>       setResponsePage(new SignInOrRegisterPage(destPageRef));
>> }
>>
>> @RequireHttps
>> public class SignInOrRegisterPage extends StandardBasePage {
>>    private PageReference destination;
>>
>>    public SignInOrRegisterPage(PageReference finalDest) {
>> ..
>>
>> In MyApplication:
>> @Override
>>    protected IRequestCycleProcessor newRequestCycleProcessor() {
>>        HttpsConfig config = new 
>> HttpsConfig(MyApplication.get().getHttpPort(), 
>> MyApplication.get().getHttpsPort());
>>        return new HttpsRequestCycleProcessor(config) {
>>           �...@override
>>            protected IRequestCodingStrategy newRequestCodingStrategy() {
>>                return new CryptedUrlWebRequestCodingStrategy(new 
>> WebRequestCodingStrategy());
>>            }
>>        };
>>    }
>>
>>
>> The initial redirection to SignInOrRegisterPage does not go to https, only 
>> when I submit the form on the http SignInOrRegisterPage does it then 
>> redirect to https.
>> Any ideas why it's not going immediately to https?
>> Thanks
>> Gianni
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



RE: using IBehaviorListener

2010-03-18 Thread Martin Asenov
Hi, Fernando!

This is not my question... I was asking how could I know every time when the 
user interacts with the system.

Best,
Martin

-Original Message-
From: Fernando Wermus [mailto:fernando.wer...@gmail.com] 
Sent: Thursday, March 18, 2010 4:57 PM
To: users@wicket.apache.org
Subject: Re: using IBehaviorListener

Martin,
 You can have any container, such as a Panel, into de Modal Window. You
can program as you have always done with Wicket. No need of IBehaviorListener.
The close button has its corresponding programming design. Take a look at
the modal window documentation in the web.



On Thu, Mar 18, 2010 at 12:27 PM, Martin Asenov  wrote:

> Please, any help?!
>
> Best,
> Martin
>
> -Original Message-
> From: Martin Asenov [mailto:mase...@velti.com]
> Sent: Thursday, March 18, 2010 1:11 PM
> To: users@wicket.apache.org
> Subject: using IBehaviorListener
>
> Hello, guys!
>
> I'm experiencing troubles with implementing IBehaviorListener on a
> ModalWindow.
>
> I want to detect every single user interaction with to components inside
> the modal window and the close button itself , as well.
>
> Would you give me some hints?
>
> Best,
> Martin
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread Martin Makundi
setNullValid

2010/3/18 David Chang :
> In my case, the field is required. I make it required by setRequired(true), 
> but I want the blank/choose one is still there.
>
> Doable?
>
>
> --- On Thu, 3/18/10, Matthias Keller  wrote:
>
>> From: Matthias Keller 
>> Subject: Re: Select the "Choose one" of a required DropDownChoice
>> To: users@wicket.apache.org
>> Date: Thursday, March 18, 2010, 9:42 AM
>> Hi
>>
>> Yes, exactly, but why do you have it set to required at all
>> in first
>> place if you want to allow the empty selection too?
>> I dont think a DropDownChoice is required by default but if
>> it is, try
>> setRequired(false) ...
>>
>> Matt
>>
>> On 2010-03-18 14:36, David Chang wrote:
>> > Matt, I already did that.
>> >
>> > DropDownChoice.setNullValid() makes "Choose one"
>> always stay there.
>> > I notice that DropDownChoice.setRequired() is the
>> reason to generate the message and not get onUpdate called.
>> >
>> > Thanks.
>> >
>> >
>> > --- On Thu, 3/18/10, Matthias Keller
>> wrote:
>> >
>> >
>> >> From: Matthias Keller
>> >> Subject: Re: Select the "Choose one" of a required
>> DropDownChoice
>> >> To: users@wicket.apache.org
>> >> Date: Thursday, March 18, 2010, 9:30 AM
>> >> Hi
>> >>
>> >> Have a look at DropDownChoice.setNullValid() and
>> >> .setRequired()
>> >>
>> >> Matt
>> >>
>> >> On 2010-03-18 14:26, David Chang wrote:
>> >>
>> >>> Hi, I am new in Wicket and am playing with
>> different
>> >>>
>> >> components.
>> >>
>> >>> I have a two dropdown lists. One is a list of
>> >>>
>> >> countries, required field, controlling another
>> list of
>> >> states/provinces via
>> AjaxFormComponentUpdatingBehavior.
>> >>
>> >>> The country list always has a blank
>> (equivalent of
>> >>>
>> >> "Choose one") as the first option in the list.
>> When I select
>> >> different countries, the state/province list
>> changes
>> >> accordingly. However, when I change to the blank
>> in the
>> >> country list, the state list stops updating. I
>> looked into
>> >> it and found out that in this situation (required
>> droopdown
>> >> list) selecting blank makes Wicket issue a
>> feedback message
>> >> instead of calling
>> >> AjaxFormComponentUpdatingBehavior#onUpdate, which
>> is what I
>> >> want.
>> >>
>> >>
>>
>>
>>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Registering a Wicket Application using OSGi HTTP service

2010-03-18 Thread Fernando Wermus
Take a look at Antilia

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

On Thu, Mar 18, 2010 at 12:01 PM, Jaime Soriano Pastor <
jsorianopas...@gmail.com> wrote:

> Hello,
>
> I'm trying to start a Wicket Application using Felix implementation of
> OSGi HTTP service, for that I just register the service using
> WicketServlet with applicationClassName parameter set to the main
> application class name:
>
> props.put("applicationClassName", MainApplication.class.getName());
> service = (HttpService)context.getService(httpReference);
> service.registerServlet("/", new WicketServlet(), props, null);
>
> But it fails to register saying that wicket is "Unable to create
> application of class es.warp.sample.HTTPLocalGUI.MainApplication".
> The output error also includes some lines about class loader so I
> thought it was something related with visibility. I tried to export
> everything but I had the same failure.
> 
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> 
> 
>
> I use for deployment maven and pax runner with Felix framework (mvn
> package install pax:run -Dframework=felix -Dprofiles=log,config).
> If I use equinox instead of felix, the application is registered and
> works perfectly, it's ok for development, but I need it working on
> felix for production deployment.
>
> I'm thinking that I'm not doing it on the right way, but I don't know
> how to do it. I also tried to publish the servlet using Felix
> Whiteboard service, and I had the same results, it worked when I used
> equinox and it didn't work when I used felix.
>
> What am I doing wrong?
>
>
> Regards,
>
> Jaime.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: using IBehaviorListener

2010-03-18 Thread Fernando Wermus
Martin,
 You can have any container, such as a Panel, into de Modal Window. You
can program as you have always done with Wicket. No need of IBehaviorListener.
The close button has its corresponding programming design. Take a look at
the modal window documentation in the web.



On Thu, Mar 18, 2010 at 12:27 PM, Martin Asenov  wrote:

> Please, any help?!
>
> Best,
> Martin
>
> -Original Message-
> From: Martin Asenov [mailto:mase...@velti.com]
> Sent: Thursday, March 18, 2010 1:11 PM
> To: users@wicket.apache.org
> Subject: using IBehaviorListener
>
> Hello, guys!
>
> I'm experiencing troubles with implementing IBehaviorListener on a
> ModalWindow.
>
> I want to detect every single user interaction with to components inside
> the modal window and the close button itself , as well.
>
> Would you give me some hints?
>
> Best,
> Martin
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


RE: using IBehaviorListener

2010-03-18 Thread Martin Asenov
Please, any help?!

Best,
Martin

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Thursday, March 18, 2010 1:11 PM
To: users@wicket.apache.org
Subject: using IBehaviorListener

Hello, guys!

I'm experiencing troubles with implementing IBehaviorListener on a ModalWindow.

I want to detect every single user interaction with to components inside the 
modal window and the close button itself , as well.

Would you give me some hints?

Best,
Martin


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



Registering a Wicket Application using OSGi HTTP service

2010-03-18 Thread Jaime Soriano Pastor
Hello,

I'm trying to start a Wicket Application using Felix implementation of
OSGi HTTP service, for that I just register the service using
WicketServlet with applicationClassName parameter set to the main
application class name:

props.put("applicationClassName", MainApplication.class.getName());
service = (HttpService)context.getService(httpReference);
service.registerServlet("/", new WicketServlet(), props, null);

But it fails to register saying that wicket is "Unable to create
application of class es.warp.sample.HTTPLocalGUI.MainApplication".
The output error also includes some lines about class loader so I
thought it was something related with visibility. I tried to export
everything but I had the same failure.


at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)



I use for deployment maven and pax runner with Felix framework (mvn
package install pax:run -Dframework=felix -Dprofiles=log,config).
If I use equinox instead of felix, the application is registered and
works perfectly, it's ok for development, but I need it working on
felix for production deployment.

I'm thinking that I'm not doing it on the right way, but I don't know
how to do it. I also tried to publish the servlet using Felix
Whiteboard service, and I had the same results, it worked when I used
equinox and it didn't work when I used felix.

What am I doing wrong?


Regards,

Jaime.

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
In my case, the field is required. I make it required by setRequired(true), but 
I want the blank/choose one is still there. 

Doable?


--- On Thu, 3/18/10, Matthias Keller  wrote:

> From: Matthias Keller 
> Subject: Re: Select the "Choose one" of a required DropDownChoice
> To: users@wicket.apache.org
> Date: Thursday, March 18, 2010, 9:42 AM
> Hi
> 
> Yes, exactly, but why do you have it set to required at all
> in first 
> place if you want to allow the empty selection too?
> I dont think a DropDownChoice is required by default but if
> it is, try  
> setRequired(false) ...
> 
> Matt
> 
> On 2010-03-18 14:36, David Chang wrote:
> > Matt, I already did that.
> >
> > DropDownChoice.setNullValid() makes "Choose one"
> always stay there.
> > I notice that DropDownChoice.setRequired() is the
> reason to generate the message and not get onUpdate called.
> >
> > Thanks.
> >
> >
> > --- On Thu, 3/18/10, Matthias Keller 
> wrote:
> >
> >    
> >> From: Matthias Keller
> >> Subject: Re: Select the "Choose one" of a required
> DropDownChoice
> >> To: users@wicket.apache.org
> >> Date: Thursday, March 18, 2010, 9:30 AM
> >> Hi
> >>
> >> Have a look at DropDownChoice.setNullValid() and
> >> .setRequired()
> >>
> >> Matt
> >>
> >> On 2010-03-18 14:26, David Chang wrote:
> >>      
> >>> Hi, I am new in Wicket and am playing with
> different
> >>>        
> >> components.
> >>      
> >>> I have a two dropdown lists. One is a list of
> >>>        
> >> countries, required field, controlling another
> list of
> >> states/provinces via
> AjaxFormComponentUpdatingBehavior.
> >>      
> >>> The country list always has a blank
> (equivalent of
> >>>        
> >> "Choose one") as the first option in the list.
> When I select
> >> different countries, the state/province list
> changes
> >> accordingly. However, when I change to the blank
> in the
> >> country list, the state list stops updating. I
> looked into
> >> it and found out that in this situation (required
> droopdown
> >> list) selecting blank makes Wicket issue a
> feedback message
> >> instead of calling
> >> AjaxFormComponentUpdatingBehavior#onUpdate, which
> is what I
> >> want.
> >>      
> >>
> 
> 
> 




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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread Matthias Keller

Hi

Yes, exactly, but why do you have it set to required at all in first 
place if you want to allow the empty selection too?
I dont think a DropDownChoice is required by default but if it is, try  
setRequired(false) ...


Matt

On 2010-03-18 14:36, David Chang wrote:

Matt, I already did that.

DropDownChoice.setNullValid() makes "Choose one" always stay there.
I notice that DropDownChoice.setRequired() is the reason to generate the 
message and not get onUpdate called.

Thanks.


--- On Thu, 3/18/10, Matthias Keller  wrote:

   

From: Matthias Keller
Subject: Re: Select the "Choose one" of a required DropDownChoice
To: users@wicket.apache.org
Date: Thursday, March 18, 2010, 9:30 AM
Hi

Have a look at DropDownChoice.setNullValid() and
.setRequired()

Matt

On 2010-03-18 14:26, David Chang wrote:
 

Hi, I am new in Wicket and am playing with different
   

components.
 

I have a two dropdown lists. One is a list of
   

countries, required field, controlling another list of
states/provinces via AjaxFormComponentUpdatingBehavior.
 

The country list always has a blank (equivalent of
   

"Choose one") as the first option in the list. When I select
different countries, the state/province list changes
accordingly. However, when I change to the blank in the
country list, the state list stops updating. I looked into
it and found out that in this situation (required droopdown
list) selecting blank makes Wicket issue a feedback message
instead of calling
AjaxFormComponentUpdatingBehavior#onUpdate, which is what I
want.
 






smime.p7s
Description: S/MIME Cryptographic Signature


SV: Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread Wilhelmsen Tor Iver
> How can I make FeedbackPanel occupy zero space when having no messages?

Override isVisible() to test if there are any messages to show, and call 
setOutputMarkupPlaceholder(true);

- Tor Iver

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
Matt, I already did that.

DropDownChoice.setNullValid() makes "Choose one" always stay there.
I notice that DropDownChoice.setRequired() is the reason to generate the 
message and not get onUpdate called.

Thanks.


--- On Thu, 3/18/10, Matthias Keller  wrote:

> From: Matthias Keller 
> Subject: Re: Select the "Choose one" of a required DropDownChoice
> To: users@wicket.apache.org
> Date: Thursday, March 18, 2010, 9:30 AM
> Hi
> 
> Have a look at DropDownChoice.setNullValid() and
> .setRequired()
> 
> Matt
> 
> On 2010-03-18 14:26, David Chang wrote:
> > Hi, I am new in Wicket and am playing with different
> components.
> >
> > I have a two dropdown lists. One is a list of
> countries, required field, controlling another list of
> states/provinces via AjaxFormComponentUpdatingBehavior.
> >
> > The country list always has a blank (equivalent of
> "Choose one") as the first option in the list. When I select
> different countries, the state/province list changes
> accordingly. However, when I change to the blank in the
> country list, the state list stops updating. I looked into
> it and found out that in this situation (required droopdown
> list) selecting blank makes Wicket issue a feedback message
> instead of calling
> AjaxFormComponentUpdatingBehavior#onUpdate, which is what I
> want.
> >
> > What can I do to make Wicket the way I want?
> >
> > Thanks!
> 
> 
> 


  

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



Re: Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread Matthias Keller

Hi

Just create your own FeedbackPanel subclass and add:

public boolean isVisible () {
return anyMessage();
}

Matt

On 2010-03-18 14:32, David Chang wrote:

Hello, I am playing with FeedbackPanel. I put it in a page like this:



I notice that when having no messages, it always take up some space.

How can I make FeedbackPanel occupy zero space when having no messages?

Wicket way? or CSS?

Any help is really appreciated.





smime.p7s
Description: S/MIME Cryptographic Signature


Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread David Chang
Hello, I am playing with FeedbackPanel. I put it in a page like this:



I notice that when having no messages, it always take up some space.

How can I make FeedbackPanel occupy zero space when having no messages?

Wicket way? or CSS? 

Any help is really appreciated.

Regards.



  

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



Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread Matthias Keller

Hi

Have a look at DropDownChoice.setNullValid() and .setRequired()

Matt

On 2010-03-18 14:26, David Chang wrote:

Hi, I am new in Wicket and am playing with different components.

I have a two dropdown lists. One is a list of countries, required field, 
controlling another list of states/provinces via 
AjaxFormComponentUpdatingBehavior.

The country list always has a blank (equivalent of "Choose one") as the first 
option in the list. When I select different countries, the state/province list changes 
accordingly. However, when I change to the blank in the country list, the state list 
stops updating. I looked into it and found out that in this situation (required droopdown 
list) selecting blank makes Wicket issue a feedback message instead of calling 
AjaxFormComponentUpdatingBehavior#onUpdate, which is what I want.

What can I do to make Wicket the way I want?

Thanks!





smime.p7s
Description: S/MIME Cryptographic Signature


Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang

Hi, I am new in Wicket and am playing with different components. 

I have a two dropdown lists. One is a list of countries, required field, 
controlling another list of states/provinces via 
AjaxFormComponentUpdatingBehavior. 

The country list always has a blank (equivalent of "Choose one") as the first 
option in the list. When I select different countries, the state/province list 
changes accordingly. However, when I change to the blank in the country list, 
the state list stops updating. I looked into it and found out that in this 
situation (required droopdown list) selecting blank makes Wicket issue a 
feedback message instead of calling AjaxFormComponentUpdatingBehavior#onUpdate, 
which is what I want.

What can I do to make Wicket the way I want?

Thanks!






  

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



Tree with invisible Nodes

2010-03-18 Thread Martin U
Hi Folks,

i've to implement a tree in which some node are exists under a parent node
but they should not be visible to the user in browser at all.

I tried to overwrite "getChild" from TreeNode. But it dont works for me. I
need this node existens either they are not visible because the tree is my
data(model)-holder too for further processing


Any Ideas?

Thanks a lot.


Re: V1.4 Decision

2010-03-18 Thread Matthias Keller

Hi Karmien

Wicket 1.3.X is not supported anymore as far as I know, so there will 
most probably be no more updates for it.
Go for 1.4, it's been around for very long and most components are 
updated to 1.4 in a breeze (given that you have access to their source 
code). If no models are involved, they might even continue to work 
without changes


Matt

On 2010-03-18 10:50, karmi...@absa.co.za wrote:

Hi

I have a general question, we are at the verge of starting a big, newish
project, with potentially many developers on Wicket and we need to
decide which version to base it on. The obvious choice is to choose
v1.4.x (latest) but we need Enterprise type components (like Security)
in the development, which many still are 1.3 based. What would you
recommend?

Thanks
Karmien





smime.p7s
Description: S/MIME Cryptographic Signature


V1.4 Decision

2010-03-18 Thread karmienm
Hi

I have a general question, we are at the verge of starting a big, newish
project, with potentially many developers on Wicket and we need to
decide which version to base it on. The obvious choice is to choose
v1.4.x (latest) but we need Enterprise type components (like Security)
in the development, which many still are 1.3 based. What would you
recommend?

Thanks
Karmien



Important Notice:
 
Absa is an Authorised Financial Services Provider and Registered Credit 
Provider, 
registration number: NCRCP7.
 
This e-mail and any files transmitted with it are confidential and intended for 
the use of 
the individual or entity to whom they are addressed.
 
Please note that there are terms and conditions and some important 
restrictions, 
qualifications and disclaimers ("the Disclaimer") that apply to this email. To 
read this 
click on the following address or copy into your Internet browser:
 
http://www.absa.co.za/disclaimer
 
The Disclaimer forms part of the content of this email in terms of 
section 11 of the Electronic Communications and Transactions 
Act, 25 of 2002.
 
If you are unable to access the Disclaimer, send a blank e-mail 
to disclai...@absa.co.za and we will send you a copy of the 
Disclaimer.


Re: URL coding strategies

2010-03-18 Thread bgooren

You cannot have a seo-friendly url _and_ pass objects. If you want to pass an
object to another page (say a Product), then you need to create a
constructor on the target page which accepts a Product or an
IModel. You can then call setResponsePage( new TargetPage( product
) ); The upside is that you only query the database once for the product,
but the url is not seo-friendly.


vp143 wrote:
> 
> Hi there, I have a question about URL coding strategies
> 
>  
> 
> I have decided to use IndexedParamUrlCodingStrategy for friendly URL's.
> 
>  
> 
> I have set PageParameters for this strategy in the following way:
> 
>  
> 
> PageParameters pageParameters = new PageParameters();
> 
> pageParameters.add("0", categoryName);
> 
> pageParameters.add("1", productName);
> 
>  
> 
> I have then created a Bookmarkable link like the following:
> 
> Link viewItem = new BookmarkablePageLink("viewItem", ProductInfo.class,
> pageParameters);
> 
>  
> 
> What I really want to do is pass the Product object to the ProductInfo
> class
> without it being visible in the URL. 
> 
> I would rather not have to query the database for data object that I
> already
> have.
> 
> How can this be achieved?
> 
>  
> 
> Many thanks in advance.
> 
>  
> 
> Regards
> 
> Vishal
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/URL-coding-strategies-tp27939290p27944464.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: A question about using Spring in Wicket 1.4

2010-03-18 Thread Gwyn Evans
Fixed the Javadoc in 1.4.x & trunk.  Thanks for reporting.
/Gwyn

On 11 March 2010 14:14, David Chang  wrote:

> James, thanks for quick reply. I guess I am a little confused is that in
> the init method, I use
>
> addComponentInstantiationListener(new SpringComponentInjector(this));
>
> instead of
>
> add(new SpringComponentInjector(this));
>
> as "Migrating" guide specified. The Guide-specified approach actually
> generates compiler error.
>
> Regards.
>
>
> --- On Thu, 3/11/10, James Carman  wrote:
>
> > From: James Carman 
> > Subject: Re: A question about using Spring in Wicket 1.4
> > To: users@wicket.apache.org
> > Date: Thursday, March 11, 2010, 9:09 AM
> > yes
> >
> > On Thu, Mar 11, 2010 at 8:56 AM, David Chang 
> > wrote:
> > > Yesterday I was looking at the page "Migrating to
> > Wicket 1.4"
> > >
> > > http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html
> > >
> > > Regarding SpringWebApplication, it says:
> > >
> > > SpringWebApplication has been deprecated in favor of
> > SpringBean annotation. See SpringWebApplication javadoc for
> > how to setup SpringBean based injection.
> > >
> > > I went to Wicket API about SpringWebApplication and it
> > says:
> > >
> > > Deprecated. when using java5 it is preferrable to use
> > SpringBean annotations for injection rather then this
> > spring-specific application subclass with its helpers. To
> > setup SpringBean add the following line to your
> > WebApplication subclass init method add(new
> > SpringComponentInjector(this));
> > >
> > > Here is my way of using Spring in my wicket app.
> > >
> > > 1. In the init method:
> > >
> > > addComponentInstantiationListener(new
> > SpringComponentInjector(this));
> > >
> > > Please note that it is not: add(new
> > SpringComponentInjector(this));
> > >
> > > 2. In wicket components that access Spring beans:
> > >
> > > @SpringBean
> > > private SupportService supportService;
> > >
> > >
> > > Am I doing Spring in Wicket right way?
> > >
> > > Thanks for input!
> > >
> > >
> > >
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


using IBehaviorListener

2010-03-18 Thread Martin Asenov
Hello, guys!

I'm experiencing troubles with implementing IBehaviorListener on a ModalWindow.

I want to detect every single user interaction with to components inside the 
modal window and the close button itself , as well.

Would you give me some hints?

Best,
Martin



Re: RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-18 Thread Leo . Erlandsson
> Anyone knows how to get the TreeTable Horizontal Scrollbar? If possible 
share the code snippet.
> Regards
> Vikash


Didn't you find any CSS Examples using Google?

This really is not a Wicket question, but a CSS question. However, I did a 
CSS Example for you.
Is this what you're looking for (click URL to see image)?

http://img514.imageshack.us/img514/1294/wicketscrollingtreetabl.jpg

It's all CSS. I took the Wicket TreeTable Example and added the following 
CSS (quick and dirty, there are more ways).
The magic is the CSS overflow-x: scroll;




div.my-tree  {
height: 20em;
width:1500px;
}

div.c {
width:1250px;
overflow-x: scroll;
}













RE: Prevent SessionExpiredPage from opening in a modal window

2010-03-18 Thread Martin Asenov
I have an idea: in my every modal dialog will put a listener that checks if 
session.isExpired() on user interaction with the modal window. 

Can someone tell me please what's the event fired when a user makes some action 
on a page, like clicking a link or a button. I want to listen for this.

Best,
Martin

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Thursday, March 18, 2010 10:02 AM
To: users@wicket.apache.org
Subject: RE: Prevent SessionExpiredPage from opening in a modal window

Unfortunately, the session expired page still opens in a modal window...

Any further help will be appreciated.

Best,
Martin

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Wednesday, March 17, 2010 6:34 PM
To: users@wicket.apache.org
Subject: RE: Prevent SessionExpiredPage from opening in a modal window

Thanks , Igor!

I did it that way:




function checkIfParentIsModal() {
if (window.opener!=null) { window.opener.location=window.location; }
}





Hopefully that works!

Best,
Martin

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Wednesday, March 17, 2010 5:45 PM
To: users@wicket.apache.org
Subject: Re: Prevent SessionExpiredPage from opening in a modal window

you can add a bit of js to your custom pageexpiredpage, something that
looks like this:

if (window.opener!=null) { window.opener.location=window.location; }

-igor

On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov  wrote:
> Hello, guys!
>
> I'm, wondering if I could prevent my sessionExpiredPage from opening in a 
> modal window. In case the user opens a modal window and goes away for a while 
> and in the meantime the session gets expired, I don't want when he comes back 
> and clicks inside the modal window to see the session expired page with a 
> button 'Go to home page" in the modal. Afterwards, of course, if he clicks on 
> the link he'll get home page shown inside the modal. I want to prevent this.
>
> Any hints or ideas?
>
> Best,
> Martin
>

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


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


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


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



Re: wicket-contrib-javaee: @EJB injection - injecting always the same instance regardless of session

2010-03-18 Thread Major Péter
Hi,

At first thought, please try your code out with wicketstuff
javaee-inject, but it will most likely behave just the same.
You cannot store your bean in session, because AFAIK they're not
serializable.
Please rise an issue for this (also quickstart would be great), and I
will look into it.

Best Regards,
Peter Major

2010-03-18 10:07 keltezéssel, Christian Reiter írta:
> Hi!
> 
> I've just started using the @EJB injection annotation from
> wicket-contrib-javaee.
> I use it to inject a Stateful Session Bean to keep track of my user
> session and do some
> stuff like authorization.
> 
> I thought the @EJB annotation keeps track of my sessions and would
> inject a unique instance of
> the Stateful Session Bean for each of my Wicket session.
> 
> But, it injects always the same Stateful Session Bean instance
> completely ignoring my Wicket sessions. In this case it is useless to
> keep track of my users.
> 
> Am i doing anything wrong or is this the intended behaviour?
> 
> Would it be better to get the Stateful Session Bean by a lookup call and
> then store it in the
> Wicket session?
> 
> Thanks for your help!
> 
> Best Regards,
> christian

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



wicket-contrib-javaee: @EJB injection - injecting always the same instance regardless of session

2010-03-18 Thread Christian Reiter

Hi!

I've just started using the @EJB injection annotation from 
wicket-contrib-javaee.
I use it to inject a Stateful Session Bean to keep track of my user 
session and do some

stuff like authorization.

I thought the @EJB annotation keeps track of my sessions and would 
inject a unique instance of

the Stateful Session Bean for each of my Wicket session.

But, it injects always the same Stateful Session Bean instance 
completely ignoring my Wicket sessions. In this case it is useless to 
keep track of my users.


Am i doing anything wrong or is this the intended behaviour?

Would it be better to get the Stateful Session Bean by a lookup call and 
then store it in the

Wicket session?

Thanks for your help!

Best Regards,
 christian

--
Christian Reiter|||c.rei...@gmx.net


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



Re: HttpsRequestCycleProcessor not immediately redirecting to https

2010-03-18 Thread Gianni
Apologies, I now see it's exactly the same problem as described here:
http://old.nabble.com/%40RequireHttps---forms-misbehaving-ts26845496.html

I can reproduce this in a quickstart, I just want to check before creating a 
jira:
- In my quickstart I'm calling setRedirect(true) within the form submit 
button's onSubmit(), is this the correct place to force a redirect?
- SignInPage has the @RequireHttps annotation, *should* the code below result 
in immediate redirection to the https page or am I missing something?

Button submitButton = new Button("submit") {
@Override
public void onSubmit() {
setRedirect(true);
setResponsePage(new SignInPage());
}
};

-Gianni


On 17/mar/2010, at 10.13, Gianni wrote:

> As part of a product purchase workflow I require users to sign-in or register 
> a new account in order to continue.
> In my purchase page I'm checking if the user is already signed-in and if not 
> I send them to a SignInOrRegisterPage which has the @RequireHttps annotation.
> 
> BookingPage dest = new BookingPage(product);
> if (signedIn) {
>   setResponsePage(dest);
> } else {
>   session.getDefaultPageMap().put(dest);
>   PageReference destPageRef = dest.getPageReference();
>   setResponsePage(new SignInOrRegisterPage(destPageRef));
> }
> 
> @RequireHttps
> public class SignInOrRegisterPage extends StandardBasePage {
>private PageReference destination;
> 
>public SignInOrRegisterPage(PageReference finalDest) {
> ..
> 
> In MyApplication:
> @Override
>protected IRequestCycleProcessor newRequestCycleProcessor() {
>HttpsConfig config = new 
> HttpsConfig(MyApplication.get().getHttpPort(), 
> MyApplication.get().getHttpsPort());
>return new HttpsRequestCycleProcessor(config) {
>@Override
>protected IRequestCodingStrategy newRequestCodingStrategy() {
>return new CryptedUrlWebRequestCodingStrategy(new 
> WebRequestCodingStrategy());
>}
>};
>}
> 
> 
> The initial redirection to SignInOrRegisterPage does not go to https, only 
> when I submit the form on the http SignInOrRegisterPage does it then redirect 
> to https.
> Any ideas why it's not going immediately to https?
> Thanks
> Gianni
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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



Re: Wicketstuff versioning

2010-03-18 Thread nino martinez wael
Exactly (I wrote something similar, but it apparently was declared spam:().
We could of course improve our structure as always, lifting the level a bit.
As I see it wicketstuff are as ops4j, which brings advantages and
disadvantages as well.

-regards Nino

2010/3/18 Martin Grigorov 

> Here is how I understand wicketstuff hosting:
>
> Someone makes something cool and decides to share it with the community.
> Then this person asks in the mailing lists for commit permissions. After
> that this person jumps into something else and don't have time to
> support the project. Later on I need this cool feature and the first
> place to look for it is wicketstuff.org (you know because of the
> advertising in the mailing lists). Then I add or improve something to
> this project and again share it with the community. After me someone
> else does the same and the project lives. Otherwise some volunteer (like
> Jeremy) decides that this project is not maintained and moves it to
> attic.
>
> About GoogleCode, github, bitbucket, ... yes, you can put your project
> there. But there are two problems:
> 1) it is less visible
> it is not next to the other wicketstuff projects where everyone checks
> first
> 2) when you don't have time to support it you need to give commit
> permissions to the people who have time or they will start clone it all
> over Internet. And this will just confuse further future
> users/maintainers
>
> On Wed, 2010-03-17 at 15:25 -0400, Boris Goldowsky wrote:
> > It sounds like whoever is responsible for wicketstuff needs to make a
> > clear choice here.
> >
> > Is Wicketstuff going to be maintained as a place where lots of useful
> > add-ons will live?  If so, it needs someone to take a slightly more
> > active role as curator; make sure the releases are done in parallel with
> > wicket releases, make sure modules don't get dumped there without at
> > least some documentation; and weed out modules that are abandoned, where
> > no one volunteers to take on maintenance, or whose function has been
> > absorbed into wicket's core.
> >
> > Alternatively, make it clear that wicketstuff is NOT going to be
> > maintained, and people like me who would like to share modules will
> > share them in some other way - on Google code, a personal website, or
> > whatever.
> >
> > Either way is ok I think, it just would be useful for those of us who
> > are interested in contributing modules to know.
> >
> > Thanks
> > Bng
> >
> >
> > Jeremy Thomerson wrote:
> > > Really, it should match what's at trunk of Wicket, which should be
> > > 1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
> > >  But, nobody is really maintaining it any more, so it's a free-for-all.
> > >  That's always been the problem with WicketStuff.
> > >
> > > --
> > > Jeremy Thomerson
> > > http://www.wickettraining.com
> > >
> > >
> > >
> > > On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky  >wrote:
> > >
> > >
> > >> The wicketstuff-core is calling itself version 1.4.2 in the HEAD of
> SVN.
> > >> Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?
> > >>
> > >> Bng
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>
> > >>
> > >>
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicketstuff versioning

2010-03-18 Thread Martin Grigorov
Here is how I understand wicketstuff hosting:

Someone makes something cool and decides to share it with the community.
Then this person asks in the mailing lists for commit permissions. After
that this person jumps into something else and don't have time to
support the project. Later on I need this cool feature and the first
place to look for it is wicketstuff.org (you know because of the
advertising in the mailing lists). Then I add or improve something to
this project and again share it with the community. After me someone
else does the same and the project lives. Otherwise some volunteer (like
Jeremy) decides that this project is not maintained and moves it to
attic.

About GoogleCode, github, bitbucket, ... yes, you can put your project
there. But there are two problems: 
1) it is less visible
it is not next to the other wicketstuff projects where everyone checks
first
2) when you don't have time to support it you need to give commit
permissions to the people who have time or they will start clone it all
over Internet. And this will just confuse further future
users/maintainers  

On Wed, 2010-03-17 at 15:25 -0400, Boris Goldowsky wrote:
> It sounds like whoever is responsible for wicketstuff needs to make a 
> clear choice here.
> 
> Is Wicketstuff going to be maintained as a place where lots of useful 
> add-ons will live?  If so, it needs someone to take a slightly more 
> active role as curator; make sure the releases are done in parallel with 
> wicket releases, make sure modules don't get dumped there without at 
> least some documentation; and weed out modules that are abandoned, where 
> no one volunteers to take on maintenance, or whose function has been 
> absorbed into wicket's core.
> 
> Alternatively, make it clear that wicketstuff is NOT going to be 
> maintained, and people like me who would like to share modules will 
> share them in some other way - on Google code, a personal website, or 
> whatever.
> 
> Either way is ok I think, it just would be useful for those of us who 
> are interested in contributing modules to know.
> 
> Thanks
> Bng
> 
> 
> Jeremy Thomerson wrote:
> > Really, it should match what's at trunk of Wicket, which should be
> > 1.5-SNAPSHOT.  There should be a branch for 1.4.x that is 1.4-SNAPSHOT.
> >  But, nobody is really maintaining it any more, so it's a free-for-all.
> >  That's always been the problem with WicketStuff.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Tue, Mar 16, 2010 at 1:00 PM, Boris Goldowsky wrote:
> >
> >   
> >> The wicketstuff-core is calling itself version 1.4.2 in the HEAD of SVN.
> >> Shouldn't this be updated to 1.4.7 now to keep in sync with Wicket?
> >>
> >> Bng
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >> 
> >
> >   
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 




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



RE: Prevent SessionExpiredPage from opening in a modal window

2010-03-18 Thread Martin Asenov
Unfortunately, the session expired page still opens in a modal window...

Any further help will be appreciated.

Best,
Martin

-Original Message-
From: Martin Asenov [mailto:mase...@velti.com] 
Sent: Wednesday, March 17, 2010 6:34 PM
To: users@wicket.apache.org
Subject: RE: Prevent SessionExpiredPage from opening in a modal window

Thanks , Igor!

I did it that way:




function checkIfParentIsModal() {
if (window.opener!=null) { window.opener.location=window.location; }
}





Hopefully that works!

Best,
Martin

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Wednesday, March 17, 2010 5:45 PM
To: users@wicket.apache.org
Subject: Re: Prevent SessionExpiredPage from opening in a modal window

you can add a bit of js to your custom pageexpiredpage, something that
looks like this:

if (window.opener!=null) { window.opener.location=window.location; }

-igor

On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov  wrote:
> Hello, guys!
>
> I'm, wondering if I could prevent my sessionExpiredPage from opening in a 
> modal window. In case the user opens a modal window and goes away for a while 
> and in the meantime the session gets expired, I don't want when he comes back 
> and clicks inside the modal window to see the session expired page with a 
> button 'Go to home page" in the modal. Afterwards, of course, if he clicks on 
> the link he'll get home page shown inside the modal. I want to prevent this.
>
> Any hints or ideas?
>
> Best,
> Martin
>

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


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


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



Re: A web site developed with Wicket

2010-03-18 Thread nino martinez wael
CSS are the way to do stuff, but usually IE smashes it somehow. My rule are
to develop for firefox, patch for IE. And so far it's worked very well.

However there are somethings that are really painfull todo with css. Like
round corners, this is where I came up with wicketstuff artwork two
integrations for js libs that helps making graphics like round corners.

regards

2010/3/18 voltron 

> Thank you for feedback. I used CSS positioning instead of tables, but it is
> real pain :)
>
>
>
>
>
> 
> From: Daniel Toffetti 
> To: users@wicket.apache.org
> Sent: Thu, March 18, 2010 1:46:37 AM
> Subject: Re: A web site developed with Wicket
>
> voltron  yahoo.com> writes:
> > Hello,
> >
> > http://www.nofailtime.com/appmonitor is a web application
> > developed with wicket framework.
> >
> > .
> >
> > I would be happy if you try the site and give feedback. You
> > can login the site with account;
> > username = demo
> > password = demo
> >
> > Thanks,
>
>It looks great, I like specially the menu. Some panels (Login,
> Subscription
> Update) seem to be somewhat to the right of the screen, it would be better
> if
> they were centered.
>And I get a 1 centimeter wide vertical padding both to the left and to
> the
> right, don't know if this is intentional, it doesn't look good but perhaps
> it's
> just me.
>Could not crash it yet, tested with Firefox 3.6 / Windows XP on a 17"
> CRT
> (non-wide format).
>
> Cheers,
>
> Daniel
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
>


RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-18 Thread Vikash Shrivastava
Anyone knows how to get the TreeTable Horizontal Scrollbar? If possible share 
the code snippet.

Regards
Vikash

-Original Message-
From: Vikash Shrivastava [mailto:vikash.shrivast...@igate.com] 
Sent: Monday, March 15, 2010 7:26 PM
To: users@wicket.apache.org
Subject: RE: RE: Regarding TreeTable Horizontal Scrollbar

It's true that we can get the horizontal scroll by using CSS but, in case of 
wicket TreeTable component, it's an issue as because of the wicket component 
getting prepared at java side and I couldn't find the appropriate place (in 
both java & markup code) to use the CSS attribute.
I tried to use CSS horizontal scroll attributes in "wicket-tree-table" CSS 
class but it couldn't work.

Please let me know the approach if anyone has faced & resolve similar kind of 
issue with TreeTable.

Thanks

-Original Message-
From: leo.erlands...@tyringe.com [mailto:leo.erlands...@tyringe.com] 
Sent: Monday, March 15, 2010 2:50 PM
To: users@wicket.apache.org
Subject: Re: RE: Regarding TreeTable Horizontal Scrollbar

If you want the entire table to be scrollable horizontally you should 
probably place the CSS attributes on the top CSS class 
(wicket-tree-table).

Search the net for "CSS horizontal scoll". There should be loads of 
examples on how to do this using CSS.

http://lmgtfy.com/?q=css horizontal scoll overflow


> Where should I place the contents you have sent me as I tried it at 
TreeTable html & couldn't get the needed output? Please see the below code 
and > let me know where I can modify...

>Tried for both TreeTable component html & web page html.

>



>
iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry 
survey of Best Companies to work for in India
DISCLAIMER-
Information transmitted by this EMAIL is proprietary to iGATE Group of 
Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is 
privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately 
notify the sender at iGATE or mailad...@igate.com 
and delete this EMAIL including any attachments


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


iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 
By Business Today-Mercer Human Resource Consulting-TNS  in a cross industry 
survey of Best Companies to work for in India
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of 
Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is 
privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately 
notify the sender at iGATE or mailad...@igate.com 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


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