Re: [Wicket-user] writing unit tests

2007-02-09 Thread Carfield Yim
WicketTester is good for me for most case... may be you can share the
complications you have?

On 1/31/07, Nino Wael <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi
>
>
>
> I've been wondering about best practices for writing unit tests with wicket?
>
>
>
> Looking around the source of wicket, I can see that most uses junit. A few
> places wicket tester are used.
>
>
>
> Last time I wrote a test I tried writing using jwebunit and http unit (as I
> remember). I tried using the wicket test framework, but it gave me some
> complications (might be because I was new to the wicket world). Also this
> was on wicket 1.x.
>
>
>
> What do others do?
>
>
>
> -Nino Wael
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


Re: [Wicket-user] Easier way to force resourceKey for a Validator error message

2007-02-09 Thread Peter Thomas

I was earlier returning a "***" kind of String when the Spring MessageSource
failed to resolve the key (so that missing error messages would be
obvious).  Obviously that was the wrong thing to do.  The trick is to return
null so that Wicket continue trying to resolve the message in the sequence
you described.

Thanks Igor for the tip - things work as they should now : )

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


i believe the search order is to first try the id.key and then to try key,
so your messages should still resolve properly. can you break in localizer
and see what its doing?

-igor


On 2/3/07, Peter Thomas <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm migrating an existing (Spring MVC) JSP application to Wicket and
> this application already has i18n with just one largish properties file,
> named as per Spring tradition "messages.properties".
>
> I'm using Wicket 1.2.4.  I was able to easily delegate looking up of
> messages to Spring's "MessageSource" by doing
> getResourceSettings().addStringResourceLoader(new IStringResourceLoader() in
> the Application class.  This is working fine.
>
> My problem is when I have a custom Validator attached to a form
> component.  In the Validator, I am trying to force the resourceKey that will
> be used to resolve the error message by overriding "protected String
> resourceKey(FormComponent)".
>
> The problem is the Component id is always being prefixed to whatever I
> try to set the resourceKey to. All I want to do is to tell wicket to use a
> specific key as-is for a validation error and not prefix anything to it.
>
> I guess that if I were using the Wicket default StringResourceLoader, I
> could have used an ApplicationName.properties to "generalize" messages.
> But you see my problem, this is a migration and I would really like to use
> my existing resource bundles as is and I am tied to the Spring message
> source for now.
>
> Any way around this?
>
> Thanks,
>
> Peter.
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

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


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


Re: [Wicket-user] Adding more roles to wicket-auth-roles

2007-02-09 Thread Igor Vaynberg

the project is really meant to be an example rather then something for you
to use directly in your project, so feel free to cannibalize whatever code
you want from it.

-igor


On 2/9/07, Matt Welch <[EMAIL PROTECTED]> wrote:


I'm trying to use wicket-auth-roles for authentication and authorization,
but there are a few things I'm not quite understanding. I really like the
annotation base authorization, but the two provided roles (ADMIN and USER)
are nowhere near enough to cover our use cases. I'm sure that this is a
common problem so I'm guessing that I'm missing something obvious with
regards to adding more roles or replacing the existing Roles class with our
own. Roles is final so I can't extend it directly and replacing it with our
own implementation seems out of the question as well because it renders
useless all of the existing convenience class around annotations and
authorization that utilize the provided Roles class directly.

So, am I missing something?

Matt

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


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


Re: [Wicket-user] Query regarding formation of URL for a link

2007-02-09 Thread Igor Vaynberg

when a url is invoked wicket doesnt know its a "link" component. if we did
it this way we would have to build in knowledge of all components into
wicket, and that would throw out custom components out of the window. this
way its nice and generic, take this object and invoke this listener
interface on it.

and yes, the other reason is that some components have two or more listener
interfaces.

-igor




On 2/9/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:


Hello All

This is w.r.t url generated for links. I was looking at the wicket
examples page  and did a view source for
a link. One link had this URL :
http://localhost:8080/wicket-examples/linkomatic;jsessionid=7hp5u436aji7?wicket:interface=:0:actionLink::ILinkListener

My doubt is regarding ILinkListener. I was wondering whether it is
absolutely necessary to have it in the URL.
My reasoning is this - since wicket can find out the type of component by
looking at component id which in this case
happens to be actionLink. So if wicket can  find out that it is a link
component , then it can automcatically
call the onClick() method of this link component.

Was the listener included because there is a possibility of more than one
listener being implemented by the
actionLink component and hence wicket needs to know which listener's
method shud get triggered. ?

Regards
swaroop belur






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


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


Re: [Wicket-user] writing unit tests

2007-02-09 Thread Peter Thomas

I haven't tried to use WicketTester etc. for JUnit testing yet, plan to.

Just wanted to mention that I personally have had good results with Watij [
http://watij.com ] so you can automate browser based testing in Java itself,
so no need to learn Ruby, Javascript etc.

On 2/10/07, nilo de roock <[EMAIL PROTECTED]> wrote:



Hai,

I wonder how you got on with setting up your testenvironment?
For a comprehensive Wicket try-out I have to set up a test environment.
Normally I use Junit ( for classes ) and Jdemo ( for Swing apps ), testing
of web-apps however, is something I haven't included in a regressiontest
before.

As I said I am very interested to hear from your experiences.
What choices did you make? Are you satisfied with your setup?
Selenium is new to me, I will have a look at that but I don't want Ruby
creeping in, or any other language except Java. Can you recommend
Selenium?
Are you in fact using Wicket Test?

Any other Wicket developerZ have an opinion on testing?
-nilo



Nino Wael wrote:
>
> Hi
>
> I've been wondering about best practices for writing unit tests with
> wicket?
>
> Looking around the source of wicket, I can see that most uses junit. A
few
> places wicket tester are used.
>
> Last time I wrote a test I tried writing using jwebunit and http unit
(as
> I remember). I tried using the wicket test framework, but it gave me
some
> complications (might be because I was new to the wicket world). Also
this
> was on wicket 1.x.
>
> What do others do?
>
> -Nino Wael
>
>
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/-Wicket-user--writing-unit-tests-tf3147996.html#a8895418
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] Adding more roles to wicket-auth-roles

2007-02-09 Thread Matt Welch

I'm trying to use wicket-auth-roles for authentication and authorization,
but there are a few things I'm not quite understanding. I really like the
annotation base authorization, but the two provided roles (ADMIN and USER)
are nowhere near enough to cover our use cases. I'm sure that this is a
common problem so I'm guessing that I'm missing something obvious with
regards to adding more roles or replacing the existing Roles class with our
own. Roles is final so I can't extend it directly and replacing it with our
own implementation seems out of the question as well because it renders
useless all of the existing convenience class around annotations and
authorization that utilize the provided Roles class directly.

So, am I missing something?

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


[Wicket-user] Query regarding formation of URL for a link

2007-02-09 Thread Swaroop Belur

Hello All

This is w.r.t url generated for links. I was looking at the wicket examples
page  and did a view source for
a link. One link had this URL :
http://localhost:8080/wicket-examples/linkomatic;jsessionid=7hp5u436aji7?wicket:interface=:0:actionLink::ILinkListener

My doubt is regarding ILinkListener. I was wondering whether it is
absolutely necessary to have it in the URL.
My reasoning is this - since wicket can find out the type of component by
looking at component id which in this case
happens to be actionLink. So if wicket can  find out that it is a link
component , then it can automcatically
call the onClick() method of this link component.

Was the listener included because there is a possibility of more than one
listener being implemented by the
actionLink component and hence wicket needs to know which listener's method
shud get triggered. ?

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


Re: [Wicket-user] 1.3 and 2.0 schedules

2007-02-09 Thread Eelco Hillenius
> is there a list on 1.3 new features and any more user guide target on 1.3,
> since I just upgraded from 1.2.4, I keep hearing stateless page, delayed
> session creation etc. (constructor changes only in 2.0?), of course I have
> read migrate-1.3 wiki page.

The migration page outlines the most important new features and
breaks. There are a lot of small improvements, which you can view e.g.
in the roadmap of JIRA:
http://issues.apache.org/jira/browse/WICKET?report=com.atlassian.jira.plugin.system.project:roadmap-panel

For some new features, like stateless pages, there are new examples in
wicket-examples.

Eelco

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


Re: [Wicket-user] 1.3 and 2.0 schedules

2007-02-09 Thread Matthew Kwong

Hi,

is there a list on 1.3 new features and any more user guide target on 1.3,
since I just upgraded from 1.2.4, I keep hearing stateless page, delayed
session creation etc. (constructor changes only in 2.0?), of course I have
read migrate-1.3 wiki page.

Matthew


Eelco Hillenius wrote:
> 
> On 2/9/07, Scott Swank <[EMAIL PROTECTED]> wrote:
>> Good morning all.
>>
>> We are just gearing up for our development effort with Wicket.  We are
>> looking at completing development mid-to-late March.  Should we target
>> Wicket 1.3 for the effort?  Is 1.3 stable enough for us to work against
>> it,
>> or should we just stay with 1.2.x for now?
> 
> You should definitively go for 1.3. Imo, there's enough good stuff in
> there to warrant using it, and we have several members (including me)
> who work on 1.3's head for their production systems. If you're afraid
> of breaks you can fix on dated snapshots and upgrade once a week or
> so. You can even ask us beforehand whether we think it is wise to
> upgrade. And... I'm still hopeful we'll get a release for 1.3 very
> very soon.
> 
> Eelco
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/1.3-and-2.0-schedules-tf3201851.html#a8896723
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] obfuscate/encrypt a wicket url in 1.3

2007-02-09 Thread Matthew Kwong

yea it is working now :)

Matthew


Eelco Hillenius wrote:
> 
> Seems that was causes by the new way of handling URLs we introduced
> last week. I just committed a fix for 1.3 and 2.0.
> 
> Cheers,
> 
> Eelco
> 
> On 2/9/07, Matthew Kwong <[EMAIL PROTECTED]> wrote:
>>
>> Hi fellows,
>>
>> I have just upgraded 1.2.4 to 1.3 branch because of the "Palette"
>> compoundPropertyModel fix, and find out
>>
>> protected IRequestCycleProcessor newRequestCycleProcessor() {
>> return new CompoundRequestCycleProcessor(new
>> CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()));
>> }
>>
>> is not working, the URL still shows ?wicket:interface=:1:::
>>
>> is it working for you? It was working in 1.2.4
>>
>> Matthew Kwong
>> --
>> View this message in context:
>> http://www.nabble.com/obfuscate-encrypt-a-wicket-url-in-1.3-tf3199812.html#a8884030
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/obfuscate-encrypt-a-wicket-url-in-1.3-tf3199812.html#a8896689
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] writing unit tests

2007-02-09 Thread nilo de roock

Hai,

I wonder how you got on with setting up your testenvironment?
For a comprehensive Wicket try-out I have to set up a test environment.
Normally I use Junit ( for classes ) and Jdemo ( for Swing apps ), testing
of web-apps however, is something I haven't included in a regressiontest
before.

As I said I am very interested to hear from your experiences.
What choices did you make? Are you satisfied with your setup?
Selenium is new to me, I will have a look at that but I don't want Ruby
creeping in, or any other language except Java. Can you recommend Selenium?
Are you in fact using Wicket Test? 

Any other Wicket developerZ have an opinion on testing?
-nilo



Nino Wael wrote:
> 
> Hi
> 
> I've been wondering about best practices for writing unit tests with
> wicket?
> 
> Looking around the source of wicket, I can see that most uses junit. A few
> places wicket tester are used.
> 
> Last time I wrote a test I tried writing using jwebunit and http unit (as
> I remember). I tried using the wicket test framework, but it gave me some
> complications (might be because I was new to the wicket world). Also this
> was on wicket 1.x.
> 
> What do others do?
> 
> -Nino Wael
> 
>  
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--writing-unit-tests-tf3147996.html#a8895418
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Igor Vaynberg

2.0 and 1.2.x are here

http://wicketstuff.org/maven/repository/wicket/

just not in org/apache/wicket yet

-igor


On 2/9/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


i can't wait for 2.0 snapshots!  =)

would it be worthwhile for me to open a JIRA issue to monitor when
snapshots for 2.0 start getting published?

On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> 1.3 is here, 2.0 will be joining at some point in the future
>
> http://wicketstuff.org/maven/repository/org/apache/wicket/
>
> -igor
>
>
> On 2/9/07, spencer.c < [EMAIL PROTECTED]> wrote:
> >
> >
> > Excellent, I hadn't seen that link anywhere.
> >
> > This helps, esp. with the 2.0 build.  1.3 is not listed here, however,
> > and
> > perhaps could be set up since the other two branches are
> > handled.  Then we
> > could have a one stop snapshot spot.
> >
> >
> > http://wicketstuff.org/maven/repository/
> >
> > -igor
> >
> >
> > On 2/9/07, spencer.c wrote:
> > >
> > >
> > > Since it seems like there are alot of recommendations toward using
> > the 1.3
> > > and/or 2.0 branches on new developments, I was wondering if it would
> > be
> > > possible to start getting snapshots of those branches built once in
> > a
> > > while
> > > for download?  Whether continuously or every so often at a mostly
> > stable
> > > state, it would be a big time saver.
> > >
> > > Thanks for your consideration.
> > >
> > > -spencer
> >
> > --
> > View this message in context:
> > http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893671
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> >
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Ryan Sonnek

i can't wait for 2.0 snapshots!  =)

would it be worthwhile for me to open a JIRA issue to monitor when snapshots
for 2.0 start getting published?

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


1.3 is here, 2.0 will be joining at some point in the future

http://wicketstuff.org/maven/repository/org/apache/wicket/

-igor


On 2/9/07, spencer.c <[EMAIL PROTECTED]> wrote:
>
>
> Excellent, I hadn't seen that link anywhere.
>
> This helps, esp. with the 2.0 build.  1.3 is not listed here, however,
> and
> perhaps could be set up since the other two branches are handled.  Then
> we
> could have a one stop snapshot spot.
>
>
> http://wicketstuff.org/maven/repository/
>
> -igor
>
>
> On 2/9/07, spencer.c wrote:
> >
> >
> > Since it seems like there are alot of recommendations toward using the
> 1.3
> > and/or 2.0 branches on new developments, I was wondering if it would
> be
> > possible to start getting snapshots of those branches built once in a
> > while
> > for download?  Whether continuously or every so often at a mostly
> stable
> > state, it would be a big time saver.
> >
> > Thanks for your consideration.
> >
> > -spencer
>
> --
> View this message in context:
> http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893671
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
>
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


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


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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Igor Vaynberg

1.3 is here, 2.0 will be joining at some point in the future

http://wicketstuff.org/maven/repository/org/apache/wicket/

-igor


On 2/9/07, spencer.c <[EMAIL PROTECTED]> wrote:



Excellent, I hadn't seen that link anywhere.

This helps, esp. with the 2.0 build.  1.3 is not listed here, however, and
perhaps could be set up since the other two branches are handled.  Then we
could have a one stop snapshot spot.


http://wicketstuff.org/maven/repository/

-igor


On 2/9/07, spencer.c wrote:
>
>
> Since it seems like there are alot of recommendations toward using the
1.3
> and/or 2.0 branches on new developments, I was wondering if it would be
> possible to start getting snapshots of those branches built once in a
> while
> for download?  Whether continuously or every so often at a mostly stable
> state, it would be a big time saver.
>
> Thanks for your consideration.
>
> -spencer

--
View this message in context:
http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893671
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread spencer.c

Excellent, I hadn't seen that link anywhere.  

This helps, esp. with the 2.0 build.  1.3 is not listed here, however, and
perhaps could be set up since the other two branches are handled.  Then we
could have a one stop snapshot spot.


http://wicketstuff.org/maven/repository/

-igor


On 2/9/07, spencer.c wrote:
>
>
> Since it seems like there are alot of recommendations toward using the 1.3
> and/or 2.0 branches on new developments, I was wondering if it would be
> possible to start getting snapshots of those branches built once in a
> while
> for download?  Whether continuously or every so often at a mostly stable
> state, it would be a big time saver.
>
> Thanks for your consideration.
>
> -spencer

-- 
View this message in context: 
http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893671
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Igor Vaynberg

yes its bamboo, and its offical afaic. so feel free to put it anywhere

-igor


On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> http://wicketstuff.org/maven/repository/

Cool. So those builds are done by bamboo? Can we put this URL in a
document somewhere (or actually a couple of places) or is this still
unofficial?

Eelco

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

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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Eelco Hillenius
On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> http://wicketstuff.org/maven/repository/

Cool. So those builds are done by bamboo? Can we put this URL in a
document somewhere (or actually a couple of places) or is this still
unofficial?

Eelco

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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Eelco Hillenius
On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> We can probably set our server up to do that, right? Al, weren't you
> looking into that a couple of days ago?

server == bamboo server

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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Eelco Hillenius
We can probably set our server up to do that, right? Al, weren't you
looking into that a couple of days ago?

Eelco


On 2/9/07, spencer.c <[EMAIL PROTECTED]> wrote:
>
> Since it seems like there are alot of recommendations toward using the 1.3
> and/or 2.0 branches on new developments, I was wondering if it would be
> possible to start getting snapshots of those branches built once in a while
> for download?  Whether continuously or every so often at a mostly stable
> state, it would be a big time saver.
>
> Thanks for your consideration.
>
> -spencer
>
>
> --
> View this message in context: 
> http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893406
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread Igor Vaynberg

http://wicketstuff.org/maven/repository/

-igor


On 2/9/07, spencer.c <[EMAIL PROTECTED]> wrote:



Since it seems like there are alot of recommendations toward using the 1.3
and/or 2.0 branches on new developments, I was wondering if it would be
possible to start getting snapshots of those branches built once in a
while
for download?  Whether continuously or every so often at a mostly stable
state, it would be a big time saver.

Thanks for your consideration.

-spencer


--
View this message in context:
http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893406
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] 1.3/2.0 Snapshots?

2007-02-09 Thread spencer.c

Since it seems like there are alot of recommendations toward using the 1.3
and/or 2.0 branches on new developments, I was wondering if it would be
possible to start getting snapshots of those branches built once in a while
for download?  Whether continuously or every so often at a mostly stable
state, it would be a big time saver.

Thanks for your consideration.

-spencer


-- 
View this message in context: 
http://www.nabble.com/1.3-2.0-Snapshots--tf3202761.html#a8893406
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] 1.3 and 2.0 schedules

2007-02-09 Thread Eelco Hillenius
On 2/9/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> Good morning all.
>
> We are just gearing up for our development effort with Wicket.  We are
> looking at completing development mid-to-late March.  Should we target
> Wicket 1.3 for the effort?  Is 1.3 stable enough for us to work against it,
> or should we just stay with 1.2.x for now?

You should definitively go for 1.3. Imo, there's enough good stuff in
there to warrant using it, and we have several members (including me)
who work on 1.3's head for their production systems. If you're afraid
of breaks you can fix on dated snapshots and upgrade once a week or
so. You can even ask us beforehand whether we think it is wise to
upgrade. And... I'm still hopeful we'll get a release for 1.3 very
very soon.

Eelco

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


Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread Johan Compagner

so can't we somehow fix it that the detach is called?
catch specific exceptions on one place?

johan


On 2/9/07, Al Maw <[EMAIL PROTECTED]> wrote:



I sort-of debugged this the other day.

The errors are caused by the Wicket exception page (which is why there
are a million components - they're all the Labels for the various
components/traces/whatever).

This is what I think goes wrong:

HtmlHeaderContainer throws an exception while rendering, or something,
such that its onDetach() is never called on it. This causes the
reference it has to headerResponse to never be set to null. It therefore
has a ref to a HeaderResponse, which has a ref to the Response object
itself.

This problem fixes itself if you make HeaderResponse's response field
transient, but I'm not sure that's the right solution.

Or something like that.

Al

Johan Compagner wrote:
> that also my question
> Now and then that pops up.. (the stringbuffer)
> but a response should never be hold on to.
>
> We need the new debugging outputstream for this!
>
> johan
>
>
> On 2/9/07, *Martijn Dashorst* <[EMAIL PROTECTED]
> > wrote:
>
> But why is wicket.response.StringResponse this one still attached to
> the page?
>
> That shouldn't happen!
>
> Martijn
>
> On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]
> > wrote:
>  > On 2/9/07, ChuckDeal <[EMAIL PROTECTED] >
wrote:
>  > >
>  > > Wicket 1.3 (revision 505283)
>  > >
>  > > The following is a stack trace that I have experienced quite a
> few times
>  > > recently.  This new behavior started in the past couple of
> weeks.  My real
>  > > concern (besides all of the crap that is spewed into my log,
> obscuring the
>  > > real exception) is the time it takes to do this: from the
> timestamps you can
>  > > see that this takes roughly 21 seconds!  I guess my argument
> would be that
>  > > if I received the first exception then of course something is
> screwed up, so
>  > > why bother continueing whatever processing that is going on
> that causes
>  > > at wicket.util.lang.Objects.sizeof(Objects.java:1281)
>  > > at wicket.Component.getSizeInBytes(Component.java:1107)
>  > > at wicket.markup.html.debug.PageView$3.component
> (PageView.java:140)
>  > > to be called.  It looks like some attempt to serialize but, if
> I got the
>  > > first exception, what cause would there be to serialize
> anything?  Is this a
>  > > work in progress type of thing or unexpected behavior?
>  >
>  > The NotSerializableExceptions gets swallowed silently in that
> function
>  > since yesterday (which is in line with how it was implemented for
>  > 2.0). Why it takes so long? I have no idea unless you are working
> with
>  > huge components. Even then 21 seconds sounds like something
>  > definitively being wrong.
>  >
>  > Eelco
>  >
>  >
>
-
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier.
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
>
>
> --
> Vote for Wicket at the
> http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org 
>
>
-
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> !DSPAM:45ccb74e321021313520622!
>
>
> 
>
>
-
> Using Tomcat but ne

Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-09 Thread Matej Knopp
Hi.

The major problem is (amongst other problems) that you have page from 
another host in modal window. Generally, this is going to cause some 
trouble, because it's cross site scripting. The browsers are trying to 
prevent that.

Another thing is that I don't understand how you can submit wicket form 
to another host. Because to submit form in wicket (unless the form is 
stateless, which is possibility only 1.x or 2.0) you need first to 
create page instance, and then use the instance number in the post url, 
as well as the FormSubmitListener listener and form component path.

-Matej

Carfield Yim wrote:
>> you'd need to use some distributed session mechanism. Just a guess...
>>
> Might be, Can I just include the sessionid as hidden field / url to
> fix that? I probably cannot have too complicate distributed session
> mechanism
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


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


Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread Al Maw

I sort-of debugged this the other day.

The errors are caused by the Wicket exception page (which is why there 
are a million components - they're all the Labels for the various 
components/traces/whatever).

This is what I think goes wrong:

HtmlHeaderContainer throws an exception while rendering, or something, 
such that its onDetach() is never called on it. This causes the 
reference it has to headerResponse to never be set to null. It therefore 
has a ref to a HeaderResponse, which has a ref to the Response object 
itself.

This problem fixes itself if you make HeaderResponse's response field 
transient, but I'm not sure that's the right solution.

Or something like that.

Al

Johan Compagner wrote:
> that also my question
> Now and then that pops up.. (the stringbuffer)
> but a response should never be hold on to.
> 
> We need the new debugging outputstream for this!
> 
> johan
> 
> 
> On 2/9/07, *Martijn Dashorst* <[EMAIL PROTECTED] 
> > wrote:
> 
> But why is wicket.response.StringResponse this one still attached to
> the page?
> 
> That shouldn't happen!
> 
> Martijn
> 
> On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]
> > wrote:
>  > On 2/9/07, ChuckDeal <[EMAIL PROTECTED] > 
> wrote:
>  > >
>  > > Wicket 1.3 (revision 505283)
>  > >
>  > > The following is a stack trace that I have experienced quite a
> few times
>  > > recently.  This new behavior started in the past couple of
> weeks.  My real
>  > > concern (besides all of the crap that is spewed into my log,
> obscuring the
>  > > real exception) is the time it takes to do this: from the
> timestamps you can
>  > > see that this takes roughly 21 seconds!  I guess my argument
> would be that
>  > > if I received the first exception then of course something is
> screwed up, so
>  > > why bother continueing whatever processing that is going on
> that causes
>  > > at wicket.util.lang.Objects.sizeof(Objects.java:1281)
>  > > at wicket.Component.getSizeInBytes(Component.java:1107)
>  > > at wicket.markup.html.debug.PageView$3.component
> (PageView.java:140)
>  > > to be called.  It looks like some attempt to serialize but, if
> I got the
>  > > first exception, what cause would there be to serialize
> anything?  Is this a
>  > > work in progress type of thing or unexpected behavior?
>  >
>  > The NotSerializableExceptions gets swallowed silently in that
> function
>  > since yesterday (which is in line with how it was implemented for
>  > 2.0). Why it takes so long? I have no idea unless you are working
> with
>  > huge components. Even then 21 seconds sounds like something
>  > definitively being wrong.
>  >
>  > Eelco
>  >
>  >
> -
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier.
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
>  > ___
>  > Wicket-user mailing list
>  > Wicket-user@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/wicket-user
>  >
> 
> 
> --
> Vote for Wicket at the
> http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org 
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> !DSPAM:45ccb74e321021313520622!
> 
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology

Re: [Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-09 Thread Al Maw
Johan Compagner wrote:
> 
> Sorry, the docs should be updated. "filterPath" should no longer be
> required, unless you configure your container without a web.xml file.
> 
> 
> so no i configure my container without a web.xml file
> Then i have to specify the filter path, but where do i specify it then?
> in the none existing web.xml? ;)

No, you need to programmatically set the filterMappingUrlPattern to the 
exact same String value you use for your filter-mapping's url-pattern.

Like I said, I'll write this up shortly.

Al

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


Re: [Wicket-user] question regarding component replacement

2007-02-09 Thread Igor Vaynberg

the replaced panel is held in a "version" of the page. as soon as that
version is evicted from session panel1 can be garbage collected. if you are
using the default 2.0 disk session store this happens after the next
request.

-igor


On 2/9/07, Otan <[EMAIL PROTECTED]> wrote:


Example (in Wicket 2.0):

Panel panel1 = new MyCustomPanel(this, "searchPanel");
... then later in the same page (maybe, after an event)...
Panel panel2 = new MyOtherPanel(this, "searchPanel");

when panel2 was added, it replaced panel1 because they have the same id.
The question:...
Is panel1 becomes garbage-collection candidate as soon as it was replaced
by panel2? If not yet, when? Is it after the end of request, or is it after
invalidation of session?

Thanks a lot.


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


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


Re: [Wicket-user] FormComponentLabel.getFormComponent()

2007-02-09 Thread Igor Vaynberg

done, it was already so in 2.0 :)

-igor


On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:



Is there any argument against adding a getFormComponent method to
FormComponentLabel?  I am extending this class and it seems redundent for
me
to hold a reference in my object as well as the one in the parent.

If so, what is the reasoning?

If not, here is a patch for 1.3

Index:

Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
===
---

Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(revision 505364)
+++

Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(working copy)
@@ -54,4 +54,9 @@
checkComponentTag(tag, "label");
tag.put("for", fc.getMarkupId());
}
+
+   protected FormComponent getFormComponent()
+   {
+   return fc;
+   }
}

--
View this message in context:
http://www.nabble.com/FormComponentLabel.getFormComponent%28%29-tf3201494.html#a8889360
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-09 Thread Johan Compagner

Sorry, the docs should be updated. "filterPath" should no longer be
required, unless you configure your container without a web.xml file.



so no i configure my container without a web.xml file
Then i have to specify the filter path, but where do i specify it then?
in the none existing web.xml? ;)

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


Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread Johan Compagner

that also my question
Now and then that pops up.. (the stringbuffer)
but a response should never be hold on to.

We need the new debugging outputstream for this!

johan


On 2/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


But why is wicket.response.StringResponse this one still attached to the
page?

That shouldn't happen!

Martijn

On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
> >
> > Wicket 1.3 (revision 505283)
> >
> > The following is a stack trace that I have experienced quite a few
times
> > recently.  This new behavior started in the past couple of weeks.  My
real
> > concern (besides all of the crap that is spewed into my log, obscuring
the
> > real exception) is the time it takes to do this: from the timestamps
you can
> > see that this takes roughly 21 seconds!  I guess my argument would be
that
> > if I received the first exception then of course something is screwed
up, so
> > why bother continueing whatever processing that is going on that
causes
> > at wicket.util.lang.Objects.sizeof(Objects.java:1281)
> > at wicket.Component.getSizeInBytes(Component.java:1107)
> > at wicket.markup.html.debug.PageView$3.component(PageView.java
:140)
> > to be called.  It looks like some attempt to serialize but, if I got
the
> > first exception, what cause would there be to serialize anything?  Is
this a
> > work in progress type of thing or unexpected behavior?
>
> The NotSerializableExceptions gets swallowed silently in that function
> since yesterday (which is in line with how it was implemented for
> 2.0). Why it takes so long? I have no idea unless you are working with
> huge components. Even then 21 seconds sounds like something
> definitively being wrong.
>
> Eelco
>
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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

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


Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread Martijn Dashorst
But why is wicket.response.StringResponse this one still attached to the page?

That shouldn't happen!

Martijn

On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
> >
> > Wicket 1.3 (revision 505283)
> >
> > The following is a stack trace that I have experienced quite a few times
> > recently.  This new behavior started in the past couple of weeks.  My real
> > concern (besides all of the crap that is spewed into my log, obscuring the
> > real exception) is the time it takes to do this: from the timestamps you can
> > see that this takes roughly 21 seconds!  I guess my argument would be that
> > if I received the first exception then of course something is screwed up, so
> > why bother continueing whatever processing that is going on that causes
> > at wicket.util.lang.Objects.sizeof(Objects.java:1281)
> > at wicket.Component.getSizeInBytes(Component.java:1107)
> > at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
> > to be called.  It looks like some attempt to serialize but, if I got the
> > first exception, what cause would there be to serialize anything?  Is this a
> > work in progress type of thing or unexpected behavior?
>
> The NotSerializableExceptions gets swallowed silently in that function
> since yesterday (which is in line with how it was implemented for
> 2.0). Why it takes so long? I have no idea unless you are working with
> huge components. Even then 21 seconds sounds like something
> definitively being wrong.
>
> Eelco
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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


[Wicket-user] 1.3 and 2.0 schedules

2007-02-09 Thread Scott Swank

Good morning all.

We are just gearing up for our development effort with Wicket.  We are
looking at completing development mid-to-late March.  Should we target
Wicket 1.3 for the effort?  Is 1.3 stable enough for us to work against it,
or should we just stay with 1.2.x for now?

Thank you,
Scott

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


Re: [Wicket-user] relative urls?

2007-02-09 Thread ChuckDeal


Al Maw wrote:
> 
> It looks like you're trying to link to an external JSP, but that for 
> some reason you're doing this via with a setResponsePage(), which is 
> most definitely only for Wicket-based pages.
> 

Close, I am passing the legacy url to the LegacyWrapperPage (mounted as
Legacy) in order to load the legacy *inside* the context of a wicket page. 
I do this by putting an iframe in the LegacyWrapperPage and loading the
legacyUrl parameter into that IFrame.  I encode the legacyUrl (to avoid any
conflicts with /, ?, or &) in the code the generates the Link to the
LegacyWrapperPage.


Al Maw wrote:
> 
> If you look at your URL, it has things like %252F in it. This is a 
> doubly-URL-encoded version of "?".
> 
> It seems likely that this might actually be a URL escaping bug caused by 
> you embedding your JSP paths in a Wicket page parameter on a mounted 
> page URL, which is this one:
> http://issues.apache.org/jira/browse/WICKET-40
> 

I'm not quite sure how it is getting double encoded, I'll see if I am doing
it.

Perhaps you are right, I know I was experiencng problems with my legacyUrl
getting decoded to soon(?).  It was when I was using the
AjaxRequestTarget.appendJavascript().  The String the I sent to the page
(and verified via the ajax debug window) was correct, but when the
javascript was evaluated, it got decoded too soon (maybe?).


Al Maw wrote:
> 
> Are you wrapping your old JSP pages inside a Wicket page using a 
> RequestDispatcher? I might be able to give you some cunning advice on 
> how to make all this work.
> 

Right now, I'll take any advice.  I'm shooting from the hip and I'm not sure
if I'm even hitting the target!  What I have appears to be working, sort of.  


Al Maw wrote:
> 
> If you don't need to wrap a Wicket page around your JSPs, then you 
> should probably be creating your links to them directly, rather than 
> creating a Legacy.java Wicket page that takes JSP paths as a parameter.
> 
> Can you give me a bit more detail? Feel free to respond off-list, or 
> open a JIRA issue and attach some code.
> 

I do need access to the Wicket framework because I am using
Databinder/hibernate and it just makes things easier/better to be able to
utilize some of that in the legacy backend.  I also created a special filter
that fires after the WicketFilter that is designed to handle legacy pages as
well, but I need to be able to navigate among the pages as semmlessly as
possible, and heres the clincher, I need it to require as few changes to the
legacy code as humanly possible.

Hopefully, I've given you a rough idea of what I am attempting to do.  I'd
be glad to share whatever I can, I'm just not sure where to start. 

Chuck
-- 
View this message in context: 
http://www.nabble.com/relative-urls--tf3195723.html#a8890498
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] delete row and update view?

2007-02-09 Thread Igor Vaynberg

yep, sounds like something is being cached by hibernate. did you confirm the
delete method properly removes a row?
what does your dataprovider and the rest of the page look like?

-igor


On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Or: set a break point in your data provider's iterator(int, int)
method, confirms that it gets hit, and use the debugger to find out
what it returns.

Eelco


On 2/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> How do you populate your dataprovider? Does it query the database
> again, or do you cache the list yourself?
>
> Martijn
>
> On 2/9/07, Francisco Treacy <[EMAIL PROTECTED]> wrote:
> > Igor,
> > Well, actually nothing happens :)
> >
> >  final DataView dataView = new DataView("listing", myDataProvider)
> >  {
> >  protected void populateItem(final Item item)
> >  {
> >  Product product
> >  = (Product
> > )item.getModelObject();
> >
> >  item.add(new Link("delete-product")
> >  {
> >  public void onClick()
> >  {
> >  // Service call to delete the product
> >  service.delete();
> >  // Nothing else to call here for view update?
> >  }
> >  });
> >  item.add(new Label("product-id", product.getId().toString()));
> >
> >  ...
> >
> >
> > I took the example from the repeaters example, OIRPage.java... what am
I
> > doing wrong?
> > Seems like a Hibernate-cache thingy otherwise... how do I make to be
sure
> > the table refreshing has the same effect as clicking its link (when I
click
> > ProductList link in my page header, it shows the updated view) ?
> >
> > Francisco
> >
> > Date: Thu, 8 Feb 2007 16:11:49 -0800
> > From: "Igor Vaynberg"
> > Subject: Re: [Wicket-user] delete row and update view?
> > To: wicket-user@lists.sourceforge.net
> > Message-ID:
> > <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > actually you need to do nothing :)
> >
> > after onclick for your delete link is done executing the page will
refresh
> > and so will the dataview. when it refreshes it will call methods on
the
> > dataprovider again and refresh accordingly
> >
> > -igor
> >
> >
> > On 2/8/07, Francisco Treacy wrote:
> > >
> > > I have a DataView fed by a SortableDataProvider to display a
pageable and
> > > sortable table. In each row, I have a link to delete the current
item.
> > >
> > > My problem is that I cannot find the way to remove from the view the
item
> > > I just deleted in the database by clicking on the link. I need to
refresh
> > > immediately the view in order to reflect the actual state... but
don't
> > know
> > > how.
> > > I tried with lots of possibilites like rendering the item, disabling
it,
> > > hiding it... but nothing...
> > >
> > > Wicket Library example (
> > > http://www.wicket-library.com/wicket-examples/library)
> > does what I want,
> > > but uses a PageableListView. And I think I need DataView because it
has
> > > better capabilities.
> > >
> > > What should I do to be sure that each time I fire an action (add,
delete,
> > > edit), my view is going to reflect my actual model?
> > >
> > > Thanks!
> > > Francisco
> > >
> > > --
> > > D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos
questions
> > > ! Profitez des connaissances, des opinions et des exp?riences des
> > > internautes sur Yahoo! Questions/R?ponses
> > > .
> >
> >
> >
> >  
> >  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
questions
> > ! Profitez des connaissances, des opinions et des expériences des
> > internautes sur Yahoo! Questions/Réponses.
> >
> >
> >
-
> > Using Tomcat but need to do more? Need to support web services,
security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org
>
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do m

Re: [Wicket-user] quirk with getRequestCycleSettings().setGatherExtendedBrowserInfo(true)

2007-02-09 Thread Eelco Hillenius
I'm afraid I'll need some more time, so if you please open up an issue
for it, I'll try to give it a look this weekend. Thanks,

Eelco

On 2/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > In the future, if a problem gets as far as needing a quickstart to show the
> > problem, should I automatically write a JIRA and then reply back with the
> > link to the JIRA issue?  I just want to try and understand the "process".
>
> We don't have a formalized process for that. Just keep bugging and if
> we feel it's too difficult or we have not enough time, we'll kindly
> ask you to open up a JIRA issue. Or if it is obvious it is a Wicket
> bug, we like JIRA issues so that we have the change log.
>
> Anyway, I'll take a look now.
>
> Eelco
>

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


Re: [Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-09 Thread Al Maw
Al Maw wrote:
> Sorry, the docs should be updated. "filterPath" should no longer be 
> required, unless you configure your container without a web.xml file.
> 
> Just omit it entirely. If you're calling setContextPath() in 
> ApplicationSettings, you should avoid doing that too.
> 
> I will tidy this up (including the docs) shortly.

Sorry, to clarify, neither filterPath nor filterMappingUrlPattern are 
required in the typical case (where you're configuring with web.xml).

Al

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


Re: [Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-09 Thread Al Maw

Sorry, the docs should be updated. "filterPath" should no longer be 
required, unless you configure your container without a web.xml file.

Just omit it entirely. If you're calling setContextPath() in 
ApplicationSettings, you should avoid doing that too.

I will tidy this up (including the docs) shortly.

Al

Johan Compagner wrote:
> i think this should be fixed now in 1.3 stream
> AlMaw?
> 
> johan
> 
> 
> On 2/8/07, *ChuckDeal* <[EMAIL PROTECTED] > wrote:
> 
> 
> Wicket 1.3
> 
> I had been using getRootPath() on WebApplication and noticed that it
> had
> been removed, so I was trying to figure out how to replace it when I
> noticed
> that WicketFilter has changed quite a bit.  One of the changes was a
> preference for filterMappingUrlPattern instead of filterPath.
> 
> So, I switched my web.xml to this:
> 
> aimsWicket
> 
> wicket.protocol.http.WicketFilter
> 
> 
> applicationClassName
> 
> com.csc.aims.framework.AIMSApplication
> 
> 
> 
> filterMappingUrlPattern
> 
> >/app/*
> 
> 
> 
> aimsWicket
> /app/*
> 
> 
> And then my home page wouldn't load!  but with this filter mapping
> everything loads.
> 
> 
> aimsWicket
> 
> wicket.protocol.http.WicketFilter
> 
> applicationClassName
> 
> com.csc.aims.framework.AIMSApplication
> 
> 
> 
> filterPath
> app
> 
> 
> 
> aimsWicket
> /app/*
> 
> 
> So, I guess my point is that the two parameters are not
> equivalent.  I am
> also having a relative url issue
> (http://www.nabble.com/relative-urls--tf3195723.html#a8873292),
> could that
> be related?
> 
> Chuck
> --
> View this message in context:
> 
> http://www.nabble.com/filterPath-vs-filterMappingUrlPattern-tf3196150.html#a8874619
> Sent from the Wicket - User mailing list archive at Nabble.com
> .
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> !DSPAM:45cba2f554594576627205!
> 
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> !DSPAM:45cba2f554594576627205!
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> !DSPAM:45cba2f554594576627205!


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


Re: [Wicket-user] quirk with getRequestCycleSettings().setGatherExtendedBrowserInfo(true)

2007-02-09 Thread Eelco Hillenius
> In the future, if a problem gets as far as needing a quickstart to show the
> problem, should I automatically write a JIRA and then reply back with the
> link to the JIRA issue?  I just want to try and understand the "process".

We don't have a formalized process for that. Just keep bugging and if
we feel it's too difficult or we have not enough time, we'll kindly
ask you to open up a JIRA issue. Or if it is obvious it is a Wicket
bug, we like JIRA issues so that we have the change log.

Anyway, I'll take a look now.

Eelco

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


Re: [Wicket-user] relative urls?

2007-02-09 Thread Al Maw
ChuckDeal wrote:
> Hopefully, I don't have some unique scenario.  We are going to migrate our
> app over to the Wicket framework in pieces.  To do so, app will technically
> be based on Wicket and we will make calls back to the legacy code (JSPs).

Ah ha, thought so. I have already been down this road. It's a complex 
one. :)

What you'd ideally like to be able to do is have a Wicket page which has 
a  in it, and render the JSP in there, yes?

In fact, ideally, you'd probably like the page URLs to stay the same; 
"server.com/foo.jsp" rather than "server.com/HackPage/page/foo.jsp", am 
I right?

Believe it or not, this is actually possible, although there are certain 
issues with it. I'm going to write this up on my blog so I can link to 
some example code and things, and I'll see if I can have that done for 
you before Monday. It's somewhat complex -  I'm not sure it belongs on 
the wiki, because I'm not sure I want to have to support it.

Like I say, try it without mounting your Legacy page and see if it 
works. If it does, it's definitely WICKET-40. We've recently been 
discussing making the URLs all generate in a single place, so we don't 
URL encode twice and have these kind of issues. I think we need 
definitely need to fix WICKET-40 before 1.3 goes out, so this should 
happen fairly soon.

Al

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


Re: [Wicket-user] obfuscate/encrypt a wicket url in 1.3

2007-02-09 Thread Eelco Hillenius
Seems that was causes by the new way of handling URLs we introduced
last week. I just committed a fix for 1.3 and 2.0.

Cheers,

Eelco

On 2/9/07, Matthew Kwong <[EMAIL PROTECTED]> wrote:
>
> Hi fellows,
>
> I have just upgraded 1.2.4 to 1.3 branch because of the "Palette"
> compoundPropertyModel fix, and find out
>
> protected IRequestCycleProcessor newRequestCycleProcessor() {
> return new CompoundRequestCycleProcessor(new
> CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()));
> }
>
> is not working, the URL still shows ?wicket:interface=:1:::
>
> is it working for you? It was working in 1.2.4
>
> Matthew Kwong
> --
> View this message in context: 
> http://www.nabble.com/obfuscate-encrypt-a-wicket-url-in-1.3-tf3199812.html#a8884030
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] relative urls?

2007-02-09 Thread Al Maw
ChuckDeal wrote:
> I just built Wicket 1.3 from source this morning (possibly revision 504918?). 
> Actually, I built from source a couple of times over the past two weeks and
> each one had the same "problem".
> 
> I'm having a problem where sometimes my url gets rewritten as a relative
> that has a lot of "../" prefixed on it.
> 
> In a specific case, I have an AjaxLink that calls setResponsePage(Class,
> PageParameters) from the onClick() method that generates this url (captured
> from BookmarkablePageRequestTarget.respond(RequestCycle), line 219):
> Legacy/legacyUrl/%252Faims%252Freports%252FcatReports.jsp%253FlistName%253DaimsIssueTrackerReports%2526pageTitle%253DIssue%2BTracker%2BReports
> 
> That happens the first time I click it (which is the Home Page), which loads
> the page but screws up the  hrefs and 

[Wicket-user] question regarding component replacement

2007-02-09 Thread Otan

Example (in Wicket 2.0):

Panel panel1 = new MyCustomPanel(this, "searchPanel");
... then later in the same page (maybe, after an event)...
Panel panel2 = new MyOtherPanel(this, "searchPanel");

when panel2 was added, it replaced panel1 because they have the same id.
The question:...
Is panel1 becomes garbage-collection candidate as soon as it was replaced by
panel2? If not yet, when? Is it after the end of request, or is it after
invalidation of session?

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


Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread ChuckDeal

The 21 seconds isn't an abnormal case either, that's about average for me,
when it occurs.  Perhaps the timing will change when the stacktrace is no
longer thrown.

I'll check to make sure that I am actually using the revision that I updated
to  :)

Chuck


Eelco Hillenius wrote:
> 
> On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>>
>> Wicket 1.3 (revision 505283)
>>
>> The following is a stack trace that I have experienced quite a few times
>> recently.  This new behavior started in the past couple of weeks.  My
>> real
>> concern (besides all of the crap that is spewed into my log, obscuring
>> the
>> real exception) is the time it takes to do this: from the timestamps you
>> can
>> see that this takes roughly 21 seconds!  I guess my argument would be
>> that
>> if I received the first exception then of course something is screwed up,
>> so
>> why bother continueing whatever processing that is going on that causes
>> at wicket.util.lang.Objects.sizeof(Objects.java:1281)
>> at wicket.Component.getSizeInBytes(Component.java:1107)
>> at
>> wicket.markup.html.debug.PageView$3.component(PageView.java:140)
>> to be called.  It looks like some attempt to serialize but, if I got the
>> first exception, what cause would there be to serialize anything?  Is
>> this a
>> work in progress type of thing or unexpected behavior?
> 
> The NotSerializableExceptions gets swallowed silently in that function
> since yesterday (which is in line with how it was implemented for
> 2.0). Why it takes so long? I have no idea unless you are working with
> huge components. Even then 21 seconds sounds like something
> definitively being wrong.
> 
> Eelco
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tons-of-%22size-of-failed%22-exceptions-tf3200578.html#a8889835
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] relative urls?

2007-02-09 Thread ChuckDeal


Eelco Hillenius wrote:
> 
>> What is that all about?  I feel like I remember seeing a discussion or
>> announcement by Al Maw about changing Wicket to use relative URLs, if
>> this
>> is true, perhaps this is a side effect of that change?  What am I
>> missing?
>> Where should I start looking?
> 
> Yep, that's a result of Al's changes. So it looks a bit weird, but it
> should not cause any problems (and if fact solve a couple).
> 
> Did you experience any problems in your app?
> 
> Eelco
> 


That's how I noticed the change  :)

Hopefully, I don't have some unique scenario.  We are going to migrate our
app over to the Wicket framework in pieces.  To do so, app will technically
be based on Wicket and we will make calls back to the legacy code (JSPs). 
In order to handle some functionality that I need (databinder/hibernate
stuff) I created a LegacyWrapperPage that basically holds an IFrame that I
render the legacy URL in.  The idea behind this is that the legacy page will
render in what it thinks is the topmost frame and will lessen problems in
the old code until it can be converted.  I don't believe that that is the
source of my grief, but I can't be sure just yet.

What I noticed is that when coming from the HomePage (where the urls have
not been altered yet), when I click a link, the page renders ok, but if I
view the underlying html I see the "../" stuff.  At this point I can't click
even the same link again because it reports that it can't find the Page. 
>From my original post, you can see that wicket generates two different urls
(for the redirectUrl field) for the same exact Link.  Also, I have a bit of
Ajax that replaces an image upon the click, and that image won't load after
the new page loads.  It is interesting to note that on fully Wicket pages, I
don't seem to have this issue, but I'm sure sure how that fits into the
picture yet.

Chuck
-- 
View this message in context: 
http://www.nabble.com/relative-urls--tf3195723.html#a8889676
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] FormComponentLabel.getFormComponent()

2007-02-09 Thread ChuckDeal

Is there any argument against adding a getFormComponent method to
FormComponentLabel?  I am extending this class and it seems redundent for me
to hold a reference in my object as well as the one in the parent.

If so, what is the reasoning?

If not, here is a patch for 1.3

Index:
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
===
---
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(revision 505364)
+++
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(working copy)
@@ -54,4 +54,9 @@
checkComponentTag(tag, "label");
tag.put("for", fc.getMarkupId());
}
+   
+   protected FormComponent getFormComponent() 
+   {
+   return fc;
+   }
 }

-- 
View this message in context: 
http://www.nabble.com/FormComponentLabel.getFormComponent%28%29-tf3201494.html#a8889360
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] relative urls?

2007-02-09 Thread Eelco Hillenius
> What is that all about?  I feel like I remember seeing a discussion or
> announcement by Al Maw about changing Wicket to use relative URLs, if this
> is true, perhaps this is a side effect of that change?  What am I missing?
> Where should I start looking?

Yep, that's a result of Al's changes. So it looks a bit weird, but it
should not cause any problems (and if fact solve a couple).

Did you experience any problems in your app?

Eelco

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


Re: [Wicket-user] delete row and update view?

2007-02-09 Thread Eelco Hillenius
Or: set a break point in your data provider's iterator(int, int)
method, confirms that it gets hit, and use the debugger to find out
what it returns.

Eelco


On 2/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> How do you populate your dataprovider? Does it query the database
> again, or do you cache the list yourself?
>
> Martijn
>
> On 2/9/07, Francisco Treacy <[EMAIL PROTECTED]> wrote:
> > Igor,
> > Well, actually nothing happens :)
> >
> >  final DataView dataView = new DataView("listing", myDataProvider)
> >  {
> >  protected void populateItem(final Item item)
> >  {
> >  Product product
> >  = (Product
> > )item.getModelObject();
> >
> >  item.add(new Link("delete-product")
> >  {
> >  public void onClick()
> >  {
> >  // Service call to delete the product
> >  service.delete();
> >  // Nothing else to call here for view update?
> >  }
> >  });
> >  item.add(new Label("product-id", product.getId().toString()));
> >
> >  ...
> >
> >
> > I took the example from the repeaters example, OIRPage.java... what am I
> > doing wrong?
> > Seems like a Hibernate-cache thingy otherwise... how do I make to be sure
> > the table refreshing has the same effect as clicking its link (when I click
> > ProductList link in my page header, it shows the updated view) ?
> >
> > Francisco
> >
> > Date: Thu, 8 Feb 2007 16:11:49 -0800
> > From: "Igor Vaynberg"
> > Subject: Re: [Wicket-user] delete row and update view?
> > To: wicket-user@lists.sourceforge.net
> > Message-ID:
> > <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > actually you need to do nothing :)
> >
> > after onclick for your delete link is done executing the page will refresh
> > and so will the dataview. when it refreshes it will call methods on the
> > dataprovider again and refresh accordingly
> >
> > -igor
> >
> >
> > On 2/8/07, Francisco Treacy wrote:
> > >
> > > I have a DataView fed by a SortableDataProvider to display a pageable and
> > > sortable table. In each row, I have a link to delete the current item.
> > >
> > > My problem is that I cannot find the way to remove from the view the item
> > > I just deleted in the database by clicking on the link. I need to refresh
> > > immediately the view in order to reflect the actual state... but don't
> > know
> > > how.
> > > I tried with lots of possibilites like rendering the item, disabling it,
> > > hiding it... but nothing...
> > >
> > > Wicket Library example (
> > > http://www.wicket-library.com/wicket-examples/library)
> > does what I want,
> > > but uses a PageableListView. And I think I need DataView because it has
> > > better capabilities.
> > >
> > > What should I do to be sure that each time I fire an action (add, delete,
> > > edit), my view is going to reflect my actual model?
> > >
> > > Thanks!
> > > Francisco
> > >
> > > --
> > > D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions
> > > ! Profitez des connaissances, des opinions et des exp?riences des
> > > internautes sur Yahoo! Questions/R?ponses
> > > .
> >
> >
> >
> >  
> >  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
> > ! Profitez des connaissances, des opinions et des expériences des
> > internautes sur Yahoo! Questions/Réponses.
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
> Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
> http://wicketframework.org
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=12

Re: [Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread Eelco Hillenius
On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
> Wicket 1.3 (revision 505283)
>
> The following is a stack trace that I have experienced quite a few times
> recently.  This new behavior started in the past couple of weeks.  My real
> concern (besides all of the crap that is spewed into my log, obscuring the
> real exception) is the time it takes to do this: from the timestamps you can
> see that this takes roughly 21 seconds!  I guess my argument would be that
> if I received the first exception then of course something is screwed up, so
> why bother continueing whatever processing that is going on that causes
> at wicket.util.lang.Objects.sizeof(Objects.java:1281)
> at wicket.Component.getSizeInBytes(Component.java:1107)
> at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
> to be called.  It looks like some attempt to serialize but, if I got the
> first exception, what cause would there be to serialize anything?  Is this a
> work in progress type of thing or unexpected behavior?

The NotSerializableExceptions gets swallowed silently in that function
since yesterday (which is in line with how it was implemented for
2.0). Why it takes so long? I have no idea unless you are working with
huge components. Even then 21 seconds sounds like something
definitively being wrong.

Eelco

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


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-09 Thread Carfield Yim
Still have problem with this issue... I 've to include the page in a
iframe but still not working.

On 1/26/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
> On 1/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Is that a wicket form? Is it a completely different application? How it
> > is related to modal window?
> >
> Yes, it is wicket form at completely difference application
> (difference host). One application call that page through ModalWindow
> and RedirectPage, the code is
>
>
> final ModalWindow modal = new ModalWindow("ajaxpanel");
> modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
> modal.setPageCreator(new PageCreator() {
> private static final long serialVersionUID = 1L;
> public Page createPage() {
> return  new RedirectPage("http://host2/app/tickdatasearch";);
> }
> });
> add(modal);
> add(new AjaxFallbackLink("tickdatasearch") {
> private static final long serialVersionUID = 1L;
> public void onClick(AjaxRequestTarget target) {
> modal.show(target);
> }
> });
>

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


Re: [Wicket-user] How can I add some javascript to make sure the main page will occupy whole browser?

2007-02-09 Thread Carfield Yim
Thanks!

On 2/9/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Carfield Yim:
>
> > How can I add that javascript to onload event of that main page?
>
> Use getBodyContainer().addOnLoadModifier()
> --
>  Jean-Baptiste Quenot
> aka  John Banana   Qwerty
> http://caraldi.com/jbq/
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

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


Re: [Wicket-user] How can I add some javascript to make sure the main page will occupy whole browser?

2007-02-09 Thread Jean-Baptiste Quenot
* Carfield Yim:

> How can I add that javascript to onload event of that main page?

Use getBodyContainer().addOnLoadModifier()
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

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


Re: [Wicket-user] quirk with getRequestCycleSettings().setGatherExtendedBrowserInfo(true)

2007-02-09 Thread ChuckDeal

This is not a bump per se, because I know that it has only been a couple of
days.  I just want to know if I should write a JIRA for this.  I know that
the volume of mail on the list causes things to drop below the radar
relatively quickly.  I also know that some development teams don't like to
"fill up" the JIRA with items that end up getting withdrawn because of
improper use of a feature, etc.

In the future, if a problem gets as far as needing a quickstart to show the
problem, should I automatically write a JIRA and then reply back with the
link to the JIRA issue?  I just want to try and understand the "process".

Thanks
Chuck


ChuckDeal wrote:
> 
> Ok, here is my attempt at a quickstart to show the problem.
> 
>  http://www.nabble.com/file/6272/quickstart-clientinfo.zip
> quickstart-clientinfo.zip   (minus the lib folder, using Wicket 1.3)
> 
> When you start Jetty it has two Wicket Applications mounted at app and
> app2.  
> 
> Steps to see problem:
> 
> 1. go to http://localhost:8081/quickstart/app
> 2.  This takes you to Index
> 3. You will be redirected immediately to InterceptPage
> 4.  Click Continue
> 5.  You will be sent back to Index
> 
> 6. go to http://localhost:8081/quickstart/app2
> 7.  This takes you to Index
> 8. You will be redirected immediately to InterceptPage
> 9.  Click Continue (nothing appears to happen)
> 10. Click Continue
> 11.  You will be sent to WrongPage
> 
> The only differences are QuickStartApplication/QuickStart2Application
> where  setGatherExtendedBrowserInfo is set to false/true and I needed to
> use two different Session objects (QuickStartSession/QuickStart2Session)
> because clientInfo is cached.
> 
> For this sceenario to "work" I needed to attempt to retrieve the
> clientInfo on the InterceptPage (before attempting the
> continueToDestination) otherwise it succeeded as you expected.  But once I
> added in the getSession().getClientInfo() thats when it broke down.  
> 
> I know the code is a little rough and forced but it does appear to
> demonstrate the problem.
> 
> Thanks
> Chuck
> 
> 
> 
> Eelco Hillenius wrote:
>> 
>>> However, when I do this in
>>> Application.init():
>>>
>>> getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
>>>
>>> The continueToOriginalDestination() does not return the correct value. 
>>> I
>>> think it has something to do with the way that extended info is gathered
>>> (something about posting data to the BrowserInfoPage) that it loses my
>>> original destination.
>> 
>> Nope, that shouldn't be the case. The redirect to extended browser
>> info doesn't rely on the original destination thingy.
>> 
>>> Does this seem to be accurate?  If so, how can I overcome this problem? 
>>> If
>>> I get an extra minute I'll try to put together a quickstart but I was
>>> hoping
>>> that if one of you was familiar with the BrowserInfoPage and its
>>> functioning
>>> that you might be able to give me a headstart.
>> 
>> Quickstart would be great. I haven't seen an issue like this before.
>> 
>> Eelco
>> 
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> 
>> 
> 

-- 
View this message in context: 
http://www.nabble.com/quirk-with-getRequestCycleSettings%28%29.setGatherExtendedBrowserInfo%28true%29-tf3176153.html#a8886499
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] tons of "size of failed" exceptions

2007-02-09 Thread ChuckDeal

Wicket 1.3 (revision 505283)

The following is a stack trace that I have experienced quite a few times
recently.  This new behavior started in the past couple of weeks.  My real
concern (besides all of the crap that is spewed into my log, obscuring the
real exception) is the time it takes to do this: from the timestamps you can
see that this takes roughly 21 seconds!  I guess my argument would be that
if I received the first exception then of course something is screwed up, so
why bother continueing whatever processing that is going on that causes
at wicket.util.lang.Objects.sizeof(Objects.java:1281)
at wicket.Component.getSizeInBytes(Component.java:1107)
at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
to be called.  It looks like some attempt to serialize but, if I got the
first exception, what cause would there be to serialize anything?  Is this a
work in progress type of thing or unexpected behavior?  

The obvious answer would be for me to stop making stupid mistakes  :)  

Chuck


08:57:47,823 ERROR RequestCycle:1101 - Unable to find component with id
'headerSection' in [MarkupContainer [Component id = _extend, page =
com.csc.aims.specchange.wicket.SpecChangePage, path =
14:contentPanel:dataForm:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
isVisible = true, isVersioned = false]]. This means that you declared
wicket:id=headerSection in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.
[markup =
file:/M:/cdeal_rel12_path21_view/aims/Eclipse/aims-jar/target/classes/com/csc/aims/specchange/wicket/Content.html,
index = 14, current = '' (line 4, column 4)]
wicket.markup.MarkupException: Unable to find component with id
'headerSection' in [MarkupContainer [Component id = _extend, page =
com.csc.aims.specchange.wicket.SpecChangePage, path =
14:contentPanel:dataForm:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
isVisible = true, isVersioned = false]]. This means that you declared
wicket:id=headerSection in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.
[markup =
file:/M:/cdeal_rel12_path21_view/aims/Eclipse/aims-jar/target/classes/com/csc/aims/specchange/wicket/Content.html,
index = 14, current = '' (line 4, column 4)]
at 
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:289)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1350)
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:951)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:886)
at wicket.Component.renderComponent(Component.java:1644)
at wicket.MarkupContainer.onRender(MarkupContainer.java:896)
...
08:57:47,917  WARN Objects:1287 - Size of failed of object:
com.csc.aims.framework.wicket.BorderedPage$1
java.io.NotSerializableException: wicket.response.StringResponse
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at wicket.util.lang.Objects.sizeof(Objects.java:1281)
at wicket.Component.getSizeInBytes(Component.java:1107)
at wicket.markup.html.debug.PageView$3.component(PageView.java:140)
at wicket.MarkupContainer.visitChildren(MarkupContainer.java:746)
at wick

Re: [Wicket-user] AjaxFormValidatingBehavior and focus

2007-02-09 Thread Robert ...

I tried it in Firefox 2.0.0.1 and IE 7 and it had the same problems. I
didn't try it in IE6 yet.
I will add a feature request to JIRA for it.

Robert

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


go ahead and make it a feature request and add a quickstart to it

i remember i ran into something like this - it worked fine in firefox or
ie but failed in the other because for some reason dom updates would cause
the field to lose focus when it is repainted by ajax.

-igor


On 2/8/07, Robert ... <[EMAIL PROTECTED]> wrote:

> Hi everyone,
>
> I tried to use AjaxFormValidatingBehavior like this:
> AjaxFormValidatingBehavior.addToAllFormComponents(form,
>   "onkeyup",
>
> wicket.util.time.Duration.seconds(3));
>
> It works. The feedback panel is updated and everything.
> However while I'm typing the focus keeps dissapearing from the input
> field. That's very annoying as you can imagine. Can I set Wicket to keep my
> focus? If not, I would like to make this a feature request.
>
> Robert
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


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


[Wicket-user] obfuscate/encrypt a wicket url in 1.3

2007-02-09 Thread Matthew Kwong

Hi fellows,

I have just upgraded 1.2.4 to 1.3 branch because of the "Palette"
compoundPropertyModel fix, and find out 

protected IRequestCycleProcessor newRequestCycleProcessor() {
return new CompoundRequestCycleProcessor(new
CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()));
}

is not working, the URL still shows ?wicket:interface=:1:::

is it working for you? It was working in 1.2.4

Matthew Kwong
-- 
View this message in context: 
http://www.nabble.com/obfuscate-encrypt-a-wicket-url-in-1.3-tf3199812.html#a8884030
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] delete row and update view?

2007-02-09 Thread Martijn Dashorst
How do you populate your dataprovider? Does it query the database
again, or do you cache the list yourself?

Martijn

On 2/9/07, Francisco Treacy <[EMAIL PROTECTED]> wrote:
> Igor,
> Well, actually nothing happens :)
>
>  final DataView dataView = new DataView("listing", myDataProvider)
>  {
>  protected void populateItem(final Item item)
>  {
>  Product product
>  = (Product
> )item.getModelObject();
>
>  item.add(new Link("delete-product")
>  {
>  public void onClick()
>  {
>  // Service call to delete the product
>  service.delete();
>  // Nothing else to call here for view update?
>  }
>  });
>  item.add(new Label("product-id", product.getId().toString()));
>
>  ...
>
>
> I took the example from the repeaters example, OIRPage.java... what am I
> doing wrong?
> Seems like a Hibernate-cache thingy otherwise... how do I make to be sure
> the table refreshing has the same effect as clicking its link (when I click
> ProductList link in my page header, it shows the updated view) ?
>
> Francisco
>
> Date: Thu, 8 Feb 2007 16:11:49 -0800
> From: "Igor Vaynberg"
> Subject: Re: [Wicket-user] delete row and update view?
> To: wicket-user@lists.sourceforge.net
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> actually you need to do nothing :)
>
> after onclick for your delete link is done executing the page will refresh
> and so will the dataview. when it refreshes it will call methods on the
> dataprovider again and refresh accordingly
>
> -igor
>
>
> On 2/8/07, Francisco Treacy wrote:
> >
> > I have a DataView fed by a SortableDataProvider to display a pageable and
> > sortable table. In each row, I have a link to delete the current item.
> >
> > My problem is that I cannot find the way to remove from the view the item
> > I just deleted in the database by clicking on the link. I need to refresh
> > immediately the view in order to reflect the actual state... but don't
> know
> > how.
> > I tried with lots of possibilites like rendering the item, disabling it,
> > hiding it... but nothing...
> >
> > Wicket Library example (
> > http://www.wicket-library.com/wicket-examples/library)
> does what I want,
> > but uses a PageableListView. And I think I need DataView because it has
> > better capabilities.
> >
> > What should I do to be sure that each time I fire an action (add, delete,
> > edit), my view is going to reflect my actual model?
> >
> > Thanks!
> > Francisco
> >
> > --
> > D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions
> > ! Profitez des connaissances, des opinions et des exp?riences des
> > internautes sur Yahoo! Questions/R?ponses
> > .
>
>
>
>  
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
> ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses.
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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


Re: [Wicket-user] delete row and update view?

2007-02-09 Thread Francisco Treacy
Igor,
Well, actually nothing happens :)


 final DataView dataView = new DataView("listing", myDataProvider)
  {
   protected void populateItem(final Item item)
   {
Product product
 = (Product
)item.getModelObject();

item.add(new Link("delete-product")
{
 public void onClick()
 {
  // Service call to delete the product
  service.delete();
  // Nothing else to call here for view update?
 }
});
item.add(new Label("product-id", product.getId().toString()));

...


I took the example from the repeaters example, OIRPage.java... what am I doing 
wrong?
Seems like a Hibernate-cache thingy otherwise... how do I make to be sure the 
table refreshing has the same effect as clicking its link (when I click 
ProductList link in my page header, it shows the updated view) ?

Francisco

Date: Thu, 8 Feb 2007 16:11:49 -0800
From: "Igor Vaynberg" 
Subject: Re: [Wicket-user] delete row and update view?
To: wicket-user@lists.sourceforge.net
Message-ID:
 <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

actually you need to do nothing :)

after onclick for your delete link is done executing the page will refresh
and so will the dataview. when it refreshes it will call methods on the
dataprovider again and refresh accordingly

-igor


On 2/8/07, Francisco Treacy  wrote:
>
> I have a DataView fed by a SortableDataProvider  to display a pageable and
> sortable table. In each row, I have a link to delete the current item.
>
> My problem is that I cannot find the way to remove from the view the item
> I just deleted in the database by clicking on the link. I need to refresh
> immediately the view in order to reflect the actual state... but don't know
> how.
> I tried with lots of possibilites like rendering the item, disabling it,
> hiding it... but nothing...
>
> Wicket Library example (
> http://www.wicket-library.com/wicket-examples/library) does what I want,
> but uses a PageableListView. And I think I need DataView because it has
> better capabilities.
>
> What should I do to be sure that each time I fire an action (add, delete,
> edit), my view is going to reflect my actual model?
>
> Thanks!
> Francisco
>
> --
> D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions
> ! Profitez des connaissances, des opinions et des exp?riences des
> internautes sur Yahoo! Questions/R?ponses
> .



-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-09 Thread Martijn Dashorst
It needs some love, but I've put the blurb of Igor here:

http://cwiki.apache.org/WICKETxSITE/ExampleAuthorization

(you can show it some love using this link:
http://cwiki.apache.org/confluence/display/WICKETxSITE/ExampleAuthorization)

Martijn

On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> woopsie
>
> s/boolean user!=null&&user.isadmin();/return user!=null&&user.isadmin();/
>
> -igor
>
>
> On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > it is pretty trivial
> >
> > lets say you have tag interface AdminComponent. all your admin components
> implement this interface.
> >
> > all you have to do is
> >
> > class MyAuthStrat implements IAuthorizationStrategy {
> >   boolean isInstantioantionAuthorizer() { return true; }
> >
> >   boolean isActionAuthorized(Component c, Action action) {
> >if (c instanceof AdminComponent) {
> >   if
> (action.equals(Component.RENDER)||action.equals(Component.ENABLE)) {
> >  User user= Session.get().getUser();
> >boolean user!=null&&user.isadmin();
> >   }
> >}
> > }
> >
> > myapplication.init() {
> getsecuritysettings().setauthostrat(new myauthstrat()); }
> >
> > what these few lines of code do is give you an application wide security.
> any component that implements AdminComponent interface will now only be
> rendered and enabled for admin users.
> >
> > wicket-auth-role is really an example  that demonstrates usecase where
> security is defined by a set of preselected roles.
> >
> > have fun
> >
> > -igor
> >
> >
> >
> >
> >
> > On 2/8/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Jonathan,
> > >
> > > How can I implement this using a security strategy?   Do I need to
> implement my own strategy or does the wicket-auth-roles package take care of
> this automatically?
> > >
> > > Sean
> > >
> > >
> > >
> > > On 2/8/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > > if your home page is similar for different roles, you might even make
> > > > one home page and hide/show different panels/components depending
> > > > on who is signed in.  you can /even/ do that automatically using a
> security
> > > > strategy because in wicket you can create panels that are only visible
> > > > to users having certain roles.  the advantage there is that you can
> stick
> > > > such panels anywhere and not be concerned that the wrong class of use
> > > > might ever see them.
> > > >
> > > >
> > > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> easier.
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

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